chunk-libs.9fe31fc8.js 1.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"00ce":function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(O){c=null}var u=function(){throw new a},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,f=n("5156")(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},p="undefined"===typeof Uint8Array?r:d(Uint8Array),g={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%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%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?d(d([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f?d((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?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":p,"%TypeError%":a,"%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};try{null.error}catch(O){var v=d(d(O));g["%Error.prototype%"]=v}var m=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(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"]},I=n("0f7c"),M=n("a0d3"),b=I.call(Function.call,Array.prototype.concat),C=I.call(Function.apply,Array.prototype.splice),T=I.call(Function.call,String.prototype.replace),A=I.call(Function.call,String.prototype.slice),_=I.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E=/\\(\\)?/g,N=function(e){var t=A(e,0,1),n=A(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 T(e,w,(function(e,t,n,i){r[r.length]=n?T(i,E,"$1"):t||e})),r},S=function(e,t){var n,r=e;if(M(y,r)&&(n=y[r],r="%"+n[0]+"%"),M(g,r)){var o=g[r];if(o===h&&(o=m(r)),"undefined"===typeof o&&!t)throw new a("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 a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,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=S("%"+r+"%",t),s=o.name,u=o.value,l=!1,f=o.alias;f&&(r=f[0],C(n,b([0,1],f)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],v=A(p,0,1),m=A(p,-1);if(('"'===v||"'"===v||"`"===v||'"'===m||"'"===m||"`"===m)&&v!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&h||(l=!0),r+="."+p,s="%"+r+"%",M(g,s))u=g[s];else if(null!=u){if(!(p in u)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=n.length){var y=c(u,p);h=!!y,u=h&&"get"in y&&!("originalValue"in y.get)?y.get:u[p]}else h=M(u,p),u=u[p];h&&!l&&(g[s]=u)}}return u}},"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),d=n("62a0"),h=n("5168"),p=n("ccb9"),g=n("6718"),v=n("47ee"),m=n("9003"),y=n("e4ae"),I=n("f772"),M=n("241e"),b=n("36c3"),C=n("1bc3"),T=n("aebd"),A=n("a159"),_=n("0395"),w=n("bf0b"),E=n("9aa9"),N=n("d9f6"),S=n("c3a1"),O=w.f,D=N.f,x=_.f,R=r.Symbol,k=r.JSON,L=k&&k.stringify,j="prototype",P=h("_hidden"),U=h("toPrimitive"),z={}.propertyIsEnumerable,B=l("symbol-registry"),G=l("symbols"),Y=l("op-symbols"),H=Object[j],F="function"==typeof R&&!!E.f,$=r.QObject,V=!$||!$[j]||!$[j].findChild,Q=o&&u((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,W=function(e){var t=G[e]=A(R[j]);return t._k=e,t},Z=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(Y,t,n),y(e),t=C(t,!0),y(n),i(G,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),Q(e,t,n)):D(e,t,n)},q=function(e,t){y(e);var n,r=v(t=b(t)),i=0,o=r.length;while(o>i)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?A(e):q(A(e),t)},X=function(e){var t=z.call(this,e=C(e,!0));return!(this===H&&i(G,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(G,e)||i(this,P)&&this[P][e])||t)},ee=function(e,t){if(e=b(e),t=C(t,!0),e!==H||!i(G,t)||i(Y,t)){var n=O(e,t);return!n||!i(G,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},te=function(e){var t,n=x(b(e)),r=[],o=0;while(n.length>o)i(G,t=n[o++])||t==P||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=x(n?Y:b(e)),o=[],a=0;while(r.length>a)!i(G,t=r[a++])||n&&!i(H,t)||o.push(G[t]);return o};F||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(Y,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),Q(this,e,T(1,n))};return o&&V&&Q(H,e,{configurable:!0,set:t}),W(e)},s(R[j],"toString",(function(){return this._k})),w.f=ee,N.f=K,n("6abf").f=_.f=te,n("355d").f=X,E.f=ne,o&&!n("b8e3")&&s(H,"propertyIsEnumerable",X,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!F,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=S(h.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!F,"Object",{create:J,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(M(e))}}),k&&a(a.S+a.F*(!F||u((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(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)&&!Z(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Z(t))return t}),r[1]=t,L.apply(k,r)}}),R[j][U]||n("35e8")(R[j],U,R[j].valueOf),f(R,"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"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,m,y,I,M){c(n,t,m);var b,C,T,A=function(e){if(!d&&e in N)return N[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)}},_=t+" Iterator",w=y==g,E=!1,N=e.prototype,S=N[f]||N[h]||y&&N[y],O=S||A(y),D=y?w?A("entries"):O:void 0,x="Array"==t&&N.entries||S;if(x&&(T=l(x.call(new e)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[f]||a(T,f,v))),w&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!d&&!E&&N[f]||a(N,f,O),s[t]=O,s[_]=v,y)if(b={values:w?O:A(g),keys:I?O:A(p),entries:D},M)for(C in b)C in N||o(N,C,b[C]);else i(i.P+i.F*(d||E),t,b);return b}},"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}})},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"036c":function(e,t,n){"use strict";var r=n("5ca1"),i=n("4588"),o=n("bef9"),a=n("9744"),s=1..toFixed,c=Math.floor,u=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",d=function(e,t){var n=-1,r=t;while(++n<6)r+=e*u[n],u[n]=r%1e7,r=c(r/1e7)},h=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+a.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*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("79e5")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,c=o(this,l),u=i(e),m="",y=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&&(m="-",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){d(0,n),r=u;while(r>=7)d(1e7,0),r-=7;d(g(10,r,1),0),r=t-1;while(r>=23)h(1<<23),r-=23;h(1<<r),d(1,1),h(2),y=p()}else d(0,n),d(1<<-t,0),y=p()+a.call(f,u);return u>0?(s=y.length,y=m+(s<=u?"0."+a.call(f,u-s)+y:y.slice(0,s-u)+"."+y.slice(s-u))):y=m+y,y}})},"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,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"042e":function(e,t,n){var r=n("5ca1");r(r.S,"Math",{fround:n("91ca")})},"044b":function(e,t){
  2. /*!
  3. * Determine if an object is a Buffer
  4. *
  5. * @author Feross Aboukhadijeh <https://feross.org>
  6. * @license MIT
  7. */
  8. 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})},"06a7":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["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?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"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"),a=n("ebd6"),s=n("bcaa");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(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"),a=n("5270");function s(e){this.defaults=e,this.interceptors={request:new o,response:new o}}s.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=[a,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){s.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,h=t||s;return function(t,s,p){for(var g,v,m=o(t),y=i(m),I=r(s,p,3),M=a(y.length),b=0,C=n?h(t,M):c?h(t,0):void 0;M>b;b++)if((d||b in y)&&(g=y[b],v=I(g,b,m),e))if(n)C[b]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return b;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,a="process"==n("2d95")(o);r(r.G,{asap:function(e){var t=a&&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"),a=n("ca5a"),s=a("typed_array"),c=a("view"),u=!(!i.ArrayBuffer||!i.DataView),l=u,f=0,d=9,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(f<d)(r=i[h[f++]])?(o(r.prototype,s,!0),o(r.prototype,c,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:s,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"),a=c(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function c(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(i.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10ad":function(e,t,n){"use strict";var r,i=n("7726"),o=n("0a49")(0),a=n("2aba"),s=n("67ab"),c=n("7333"),u=n("643e"),l=n("d3f4"),f=n("b39a"),d=n("b39a"),h=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",g=s.getWeak,v=Object.isExtensible,m=u.ufstore,y=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?m(f(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,p),e,t)}},M=e.exports=n("e0b8")(p,y,I,u,!0,!0);d&&h&&(r=u.getConstructor(y,p),c(r.prototype,I),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=M.prototype,n=t[e];a(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)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(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})},"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,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[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){},"15ac":function(e,t,n){n("ec30")("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"15fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("ccb5");function i(e,t){if(null==e)return{};var n,i,o=Object(r["a"])(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},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,a=n("9b43"),s=n("31f4"),c=n("fab2"),u=n("230e"),l=n("7726"),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,m={},y="onreadystatechange",I=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},M=function(e){I.call(e.data)};d&&h||(d=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},h=function(e){delete m[e]},"process"==n("2d95")(f)?r=function(e){f.nextTick(a(I,e,1))}:g&&g.now?r=function(e){g.now(a(I,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=M,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",M,!1)):r=y in u("script")?function(e){c.appendChild(u("script"))[y]=function(){c.removeChild(this),I.call(e)}}:function(e){setTimeout(a(I,e,1),0)}),e.exports={set:d,clear:h}},"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"),a=n("1fa8"),s=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,d=o(e),h="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=l(d);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),void 0==y||h==Array&&s(y))for(t=c(d.length),n=new h(t);t>m;m++)u(n,m,v?g(d[m],m):d[m]);else for(f=y.call(d),n=new h;!(i=f.next()).done;m++)u(n,m,v?a(f,g,[i.value,m],!0):i.value);return n.length=m,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)}}},"1da1":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},"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,a){return o(i(e,t,n,r,a))}})},"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(a){var o=e["return"];throw void 0!==o&&r(o.call(e)),a}}},"1fb5":function(e,t,n){"use strict";t.byteLength=l,t.toByteArray=d,t.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;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 d(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(f(e,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;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===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t),1===s&&(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 h(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(h(r));return i.join("")}function g(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,c=n-i;s<c;s+=a)o.push(p(e,s,s+a>c?c:s+a));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",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),u=s("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 d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!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[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!l||"split"===e&&!f){var g=/./[d],v=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===c?h&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"217b":function(e,t,n){"use strict";var r=n("d3f4"),i=n("38fd"),o=n("2b4c")("hasInstance"),a=Function.prototype;o in a||n("86cc").f(a,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 a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return a?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,"&quot;");return t+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,c={};c[a.name]=a.uri,c[s.name]=s.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,d=i.xlink,h={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; ")},u[f.name]=f.uri,u[d.name]=d.uri,u)},p=function(e){this.config=n(h,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},m=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),y={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)},M=navigator.userAgent,b={isChrome:/chrome/i.test(M),isFirefox:/firefox/i.test(M),isIE:/msie/i.test(M)||/trident/i.test(M),isEdge:/edge/i.test(M)},C=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},T=function(e){var t=[];return I(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},A=function(e){return(e||window.location.href).split("#")[0]},_=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,r){C(e,{oldUrl:r,newUrl:n})}))}])},w="linearGradient, radialGradient, pattern",E=function(e,t){return void 0===t&&(t=w),I(e.querySelectorAll("symbol")).forEach((function(e){I(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function N(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 S=i.xlink.uri,O="xlink:href",D=/[{}|\\\^\[\]`"<>]/g;function x(e){return e.replace(D,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function R(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(S,O,i)}})),e}var k,L=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],j=L.map((function(e){return"["+e+"]"})).join(","),P=function(e,t,n,r){var i=x(n),o=x(r),a=e.querySelectorAll(j),s=N(a,(function(e){var t=e.localName,n=e.value;return-1!==L.indexOf(t)&&-1!==n.indexOf("url("+i)}));s.forEach((function(e){return e.value=e.value.replace(i,o)})),R(t,i,o)},U={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},z=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,n(y,t));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(t),s.syncUrlsWithBaseTag){var c=document.getElementsByTagName("base")[0].getAttribute("href");o.on(U.MOUNT,(function(){return i.updateUrls("#",c)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&_(s.locationChangeEvent),o.on(U.MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e)})),o.on(U.SYMBOL_MOUNT,(function(e){s.moveGradientsOutsideSymbol&&E(e.parentNode),(b.isIE||b.isEdge)&&T(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=b.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(U.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(U.SYMBOL_MOUNT,e.node)})),I(r.querySelectorAll("symbol")).forEach((function(e){var t=m.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(U.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(U.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 P(this.node,n,A(e)+"#",A(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),B=e((function(e){
  9. /*!
  10. * domready (c) Dustin Diaz 2014 - License MIT
  11. */
  12. !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)}}))})),G="__SVG_SPRITE_NODE__",Y="__SVG_SPRITE__",H=!!window[Y];H?k=window[Y]:(k=new z({attrs:{id:G}}),window[Y]=k);var F=function(){var e=document.getElementById(G);e?k.attach(e):k.mount(document.body,!0)};document.body?F():B(F);var $=k;return $}))}).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"),a=n("cb7c"),s=n("d3f4"),c=n("79e5"),u=n("f0c1"),l=(n("7726").Reflect||{}).construct,f=c((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),d=!c((function(){l((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!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,h=i(s(c)?c:Object.prototype),p=Function.apply.call(e,h,t);return s(p)?p:h}})},"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"),a=n("77f1"),s=n("9def"),c=[].slice;r(r.P+r.F*n("79e5")((function(){i&&c.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return c.call(this,e,t);for(var i=a(e,n),u=a(t,n),l=s(u-i),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"23db":function(e,t,n){(function(e,n){var r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",s="[object Map]",c="[object Object]",u="[object Promise]",l="[object Set]",f="[object WeakMap]",d="[object DataView]",h=/[\\^$.*+?()[\]{}|]/g,p=/^\[object .+?Constructor\]$/,g="object"==typeof e&&e&&e.Object===Object&&e,v="object"==typeof self&&self&&self.Object===Object&&self,m=g||v||Function("return this")(),y=t&&!t.nodeType&&t,I=y&&"object"==typeof n&&n&&!n.nodeType&&n,M=I&&I.exports===y;function b(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 T(e,t){return function(n){return e(t(n))}}var A=Function.prototype,_=Object.prototype,w=m["__core-js_shared__"],E=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),N=A.toString,S=_.hasOwnProperty,O=_.toString,D=RegExp("^"+N.call(S).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),x=M?m.Buffer:void 0,R=_.propertyIsEnumerable,k=x?x.isBuffer:void 0,L=T(Object.keys,Object),j=Z(m,"DataView"),P=Z(m,"Map"),U=Z(m,"Promise"),z=Z(m,"Set"),B=Z(m,"WeakMap"),G=!R.call({valueOf:1},"valueOf"),Y=X(j),H=X(P),F=X(U),$=X(z),V=X(B);function Q(e){return O.call(e)}function W(e){if(!ce(e)||q(e))return!1;var t=ae(e)||C(e)?D:p;return t.test(X(e))}function Z(e,t){var n=b(e,t);return W(n)?n:void 0}var K=Q;function q(e){return!!E&&E in e}function J(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||_;return e===n}function X(e){if(null!=e){try{return N.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function ee(e){return re(e)&&S.call(e,"callee")&&(!R.call(e,"callee")||O.call(e)==i)}(j&&K(new j(new ArrayBuffer(1)))!=d||P&&K(new P)!=s||U&&K(U.resolve())!=u||z&&K(new z)!=l||B&&K(new B)!=f)&&(K=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 Y:return d;case H:return s;case F:return u;case $:return l;case V:return f}return t});var te=Array.isArray;function ne(e){return null!=e&&se(e.length)&&!ae(e)}function re(e){return ue(e)&&ne(e)}var ie=k||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=K(e);if(t==s||t==l)return!e.size;if(G||J(e))return!L(e).length;for(var n in e)if(S.call(e,n))return!1;return!0}function ae(e){var t=ce(e)?O.call(e):"";return t==o||t==a}function se(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 a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t)&&(e=n("b50d")),e}var c={adapter:s(),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)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(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"))},"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})},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,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&c&&"function"===typeof c.get?c.get:null,l=s&&Set.prototype.forEach,f="function"===typeof WeakMap&&WeakMap.prototype,d=f?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,p=h?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,v=g?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,y=Object.prototype.toString,I=Function.prototype.toString,M=String.prototype.match,b=String.prototype.slice,C=String.prototype.replace,T=String.prototype.toUpperCase,A=String.prototype.toLowerCase,_=RegExp.prototype.test,w=Array.prototype.concat,E=Array.prototype.join,N=Array.prototype.slice,S=Math.floor,O="function"===typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,x="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"===typeof Symbol&&"object"===typeof Symbol.iterator,k="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R||"symbol")?Symbol.toStringTag:null,L=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var i=String(r),o=b.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 U=n(1),z=U.custom,B=K(z)?z:null;function G(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function Y(e){return C.call(String(e),/"/g,"&quot;")}function H(e){return"[object Array]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function F(e){return"[object Date]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function $(e){return"[object RegExp]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function V(e){return"[object Error]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function Q(e){return"[object String]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function W(e){return"[object Number]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function Z(e){return"[object Boolean]"===ee(e)&&(!k||!("object"===typeof e&&k in e))}function K(e){if(R)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!x)return!1;try{return x.call(e),!0}catch(t){}return!1}function q(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 s=n||{};if(X(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(s,"maxStringLength")&&("number"===typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!X(s,"customInspect")||s.customInspect;if("boolean"!==typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(s,"numericSeparator")&&"boolean"!==typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=s.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,s);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var d=String(t);return f?P(t,d):d}if("bigint"===typeof t){var h=String(t)+"n";return f?P(t,h):h}var p="undefined"===typeof s.depth?5:s.depth;if("undefined"===typeof r&&(r=0),r>=p&&p>0&&"object"===typeof t)return H(t)?"[Array]":"[Object]";var g=ge(s,r);if("undefined"===typeof i)i=[];else if(ne(i,t)>=0)return"[Circular]";function v(t,n,o){if(n&&(i=N.call(i),i.push(n)),o){var a={depth:s.depth};return X(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"===typeof t&&!$(t)){var y=te(t),I=me(t,v);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(I.length>0?" { "+E.call(I,", ")+" }":"")}if(K(t)){var M=R?C.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!==typeof t||R?M:fe(M)}if(ce(t)){for(var T="<"+A.call(String(t.nodeName)),_=t.attributes||[],S=0;S<_.length;S++)T+=" "+_[S].name+"="+G(Y(_[S].value),"double",s);return T+=">",t.childNodes&&t.childNodes.length&&(T+="..."),T+="</"+A.call(String(t.nodeName))+">",T}if(H(t)){if(0===t.length)return"[]";var D=me(t,v);return g&&!pe(D)?"["+ve(D,g)+"]":"[ "+E.call(D,", ")+" ]"}if(V(t)){var z=me(t,v);return"cause"in Error.prototype||!("cause"in t)||L.call(t,"cause")?0===z.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(z,", ")+" }":"{ ["+String(t)+"] "+E.call(w.call("[cause]: "+v(t.cause),z),", ")+" }"}if("object"===typeof t&&c){if(B&&"function"===typeof t[B]&&U)return U(t,{depth:p-r});if("symbol"!==c&&"function"===typeof t.inspect)return t.inspect()}if(re(t)){var J=[];return a&&a.call(t,(function(e,n){J.push(v(n,t,!0)+" => "+v(e,t))})),he("Map",o.call(t),J,g)}if(ae(t)){var le=[];return l&&l.call(t,(function(e){le.push(v(e,t))})),he("Set",u.call(t),le,g)}if(ie(t))return de("WeakMap");if(se(t))return de("WeakSet");if(oe(t))return de("WeakRef");if(W(t))return fe(v(Number(t)));if(q(t))return fe(v(O.call(t)));if(Z(t))return fe(m.call(t));if(Q(t))return fe(v(String(t)));if(!F(t)&&!$(t)){var ye=me(t,v),Ie=j?j(t)===Object.prototype:t instanceof Object||t.constructor===Object,Me=t instanceof Object?"":"null prototype",be=!Ie&&k&&Object(t)===t&&k in t?b.call(ee(t),8,-1):Me?"Object":"",Ce=Ie||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",Te=Ce+(be||Me?"["+E.call(w.call([],be||[],Me||[]),": ")+"] ":"");return 0===ye.length?Te+"{}":g?Te+"{"+ve(ye,g)+"}":Te+"{ "+E.call(ye,", ")+" }"}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 y.call(e)}function te(e){if(e.name)return e.name;var t=M.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(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);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 ae(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 se(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}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(b.call(e,0,t.maxStringLength),t)+r}var i=C.call(C.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,le);return G(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":"")+T.call(t.toString(16))}function fe(e){return"Object("+e+")"}function de(e){return e+" { ? }"}function he(e,t,n,r){var i=r?ve(n,r):E.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=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}function ve(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function me(e,t){var n=H(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,a="function"===typeof D?D(e):[];if(R){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var c in e)X(e,c)&&(n&&String(Number(c))===c&&c<e.length||R&&o["$"+c]instanceof Symbol||(_.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"===typeof D)for(var u=0;u<a.length;u++)L.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[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,a,s){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),a?(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(a)},u._ssrRegister=c):i&&(c=s?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"),a=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,d=[].push,h="split",p="length",g="lastIndex",v=4294967295,m=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[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,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=void 0===t?v:t>>>0,m=new RegExp(e.source,l+"g");while(o=u.call(m,i)){if(a=m[g],a>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&d.apply(c,o.slice(1)),s=o[0][p],f=a,c[p]>=h))break;m[g]===o.index&&m[g]++}return f===i[p]?!s&&m.test("")||c.push(""):c.push(i.slice(f)),c[p]>h?c.slice(0,h):c}:"0"[h](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):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var u=i(e),d=String(this),h=o(u,RegExp),p=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),I=new h(m?u:"^(?:"+u.source+")",g),M=void 0===t?v:t>>>0;if(0===M)return[];if(0===d.length)return null===c(I,d)?[d]:[];var b=0,C=0,T=[];while(C<d.length){I.lastIndex=m?C:0;var A,_=c(I,m?d:d.slice(C));if(null===_||(A=f(s(I.lastIndex+(m?0:C)),d.length))===b)C=a(d,C,p);else{if(T.push(d.slice(b,C)),T.length===M)return T;for(var w=1;w<=_.length-1;w++)if(T.push(_[w]),T.length===M)return T;C=b=A}}return T.push(d.slice(b)),T}]}))},"28e4":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("9b43"),a=n("4a59");e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return i(this),t=void 0!==c,t&&i(c),void 0==e?new this:(n=[],t?(r=0,s=o(c,arguments[2],2),a(e,!1,(function(e){n.push(s(e,r++))}))):a(e,!1,n.push,n),new this(n))}})}},2909:function(e,t,n){"use strict";var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");function s(){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 c(e){return i(e)||o(e)||Object(a["a"])(e)||s()}n.d(t,"a",(function(){return c}))},"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"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",u=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?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[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),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?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
  13. /*!
  14. * Vue.js v2.6.10
  15. * (c) 2014-2019 Evan You
  16. * Released under the MIT License.
  17. */
  18. 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 a(e){return!1===e}function s(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 d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(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 m=v("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var I=Object.prototype.hasOwnProperty;function M(e,t){return I.call(e,t)}function b(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var C=/-(\w)/g,T=b((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),A=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),_=/\B([A-Z])/g,w=b((function(e){return e.replace(_,"-$1").toLowerCase()}));function E(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 N(e,t){return e.bind(t)}var S=Function.prototype.bind?N:E;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 D(e,t){for(var n in t)e[n]=t[n];return e}function x(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function R(e,t,n){}var k=function(e,t,n){return!1},L=function(e){return e};function j(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 j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return j(e[n],t[n])}))}catch(u){return!1}}function P(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function U(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var z="data-server-rendered",B=["component","directive","filter"],G=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],Y={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:k,isReservedAttr:k,isUnknownElement:k,getTagNamespace:R,parsePlatformTagName:L,mustUseProp:k,async:!0,_lifecycleHooks:G},H=/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 F(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function $(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var V=new RegExp("[^"+H.source+".$_\\d]");function Q(e){if(!V.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 W,Z="__proto__"in{},K="undefined"!==typeof window,q="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=q&&WXEnvironment.platform.toLowerCase(),X=K&&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,ae=!1;if(K)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Ta){}var ce=function(){return void 0===W&&(W=!K&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),W},ue=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,de="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 he=R,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){y(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 me(e){ve.push(e),ge.target=e}function ye(){ve.pop(),ge.target=ve[ve.length-1]}var Ie=function(e,t,n,r,i,o,a,s){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=a,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=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Me={child:{configurable:!0}};Me.child.get=function(){return this.componentInstance},Object.defineProperties(Ie.prototype,Me);var be=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 Te(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 Ae=Array.prototype,_e=Object.create(Ae),we=["push","pop","shift","unshift","splice","sort","reverse"];we.forEach((function(e){var t=Ae[e];$(_e,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(_e),Ne=!0;function Se(e){Ne=e}var Oe=function(e){this.value=e,this.dep=new ge,this.vmCount=0,$(e,"__ob__",this),Array.isArray(e)?(Z?De(e,_e):xe(e,_e,Ee),this.observeArray(e)):this.walk(e)};function De(e,t){e.__proto__=t}function xe(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];$(e,o,t[o])}}function Re(e,t){var n;if(c(e)&&!(e instanceof Ie))return M(e,"__ob__")&&e.__ob__ instanceof Oe?n=e.__ob__:Ne&&!ce()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Oe(e)),t&&n&&n.vmCount++,n}function ke(e,t,n,r,i){var o=new ge,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Re(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ge.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Pe(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Re(t),o.notify())}})}}function Le(e,t,n){if(Array.isArray(e)&&d(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?(ke(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function je(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||M(e,t)&&(delete e[t],n&&n.dep.notify())}}function Pe(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)&&Pe(t)}Oe.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)ke(e,t[n])},Oe.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Re(e[t])};var Ue=Y.optionMergeStrategies;function ze(e,t){if(!t)return e;for(var n,r,i,o=de?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],M(e,n)?r!==i&&l(r)&&l(i)&&ze(r,i):Le(e,n,i));return e}function Be(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 Ge(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ye(n):n}function Ye(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function He(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Ue.data=function(e,t,n){return n?Be(e,t,n):t&&"function"!==typeof t?e:Be(e,t)},G.forEach((function(e){Ue[e]=Ge})),B.forEach((function(e){Ue[e+"s"]=He})),Ue.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 D(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ue.props=Ue.methods=Ue.inject=Ue.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Ue.provide=Be;var Fe=function(e,t){return void 0===t?e:t};function $e(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=T(i),a[o]={type:null})}else if(l(n))for(var s in n)i=n[s],o=T(s),a[o]=l(i)?i:{type:i};else 0;e.props=a}}function Ve(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 a=n[o];r[o]=l(a)?D({from:o},a):{from:a}}else 0}}function Qe(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 We(e,t,n){if("function"===typeof t&&(t=t.options),$e(t,n),Ve(t,n),Qe(t),!t._base&&(t.extends&&(e=We(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=We(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)M(e,o)||s(o);function s(r){var i=Ue[r]||Fe;a[r]=i(e[r],t[r],n,r)}return a}function Ze(e,t,n,r){if("string"===typeof n){var i=e[t];if(M(i,n))return i[n];var o=T(n);if(M(i,o))return i[o];var a=A(o);if(M(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Ke(e,t,n,r){var i=t[e],o=!M(n,e),a=n[e],s=et(Boolean,i.type);if(s>-1)if(o&&!M(i,"default"))a=!1;else if(""===a||a===w(e)){var c=et(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=qe(r,i,e);var u=Ne;Se(!0),Re(a),Se(u)}return a}function qe(e,t,n){if(M(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){me();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 a=!1===i[o].call(r,e,t,n);if(a)return}catch(Ta){rt(Ta,r,"errorCaptured hook")}}}rt(e,t,n)}finally{ye()}}function nt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&h(o)&&!o._handled&&(o.catch((function(e){return tt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Ta){tt(Ta,r,i)}return o}function rt(e,t,n){if(Y.errorHandler)try{return Y.errorHandler.call(null,e,t,n)}catch(Ta){Ta!==e&&it(Ta,null,"config.errorHandler")}it(e,t,n)}function it(e,t,n){if(!K&&!q||"undefined"===typeof console)throw e;console.error(e)}var ot,at=!1,st=[],ct=!1;function ut(){ct=!1;var e=st.slice(0);st.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(R)},at=!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,dt=new MutationObserver(ut),ht=document.createTextNode(String(ft));dt.observe(ht,{characterData:!0}),ot=function(){ft=(ft+1)%2,ht.data=String(ft)},at=!0}function pt(e,t){var n;if(st.push((function(){if(e)try{e.call(t)}catch(Ta){tt(Ta,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){mt(e,gt),gt.clear()}function mt(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--)mt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)mt(e[r[n]],t)}}}var yt=b((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 Mt(e,t,n,i,a,s){var c,u,l,f;for(c in e)u=e[c],l=t[c],f=yt(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=It(u,s)),o(f.once)&&(u=e[c]=a(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=yt(c),i(f.name,t[c],f.capture))}function bt(e,t,n){var a;e instanceof Ie&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),y(a.fns,c)}r(s)?a=It([c]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(c)):a=It([s,c]),a.merged=!0,e[t]=a}function Ct(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,c=e.props;if(i(s)||i(c))for(var u in o){var l=w(u);Tt(a,c,u,l,!0)||Tt(a,s,u,l,!1)}return a}}function Tt(e,t,n,r,o){if(i(t)){if(M(t,n))return e[n]=t[n],o||delete t[n],!0;if(M(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function At(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function _t(e){return s(e)?[Ce(e)]:Array.isArray(e)?Et(e):void 0}function wt(e){return i(e)&&i(e.text)&&a(e.isComment)}function Et(e,t){var n,a,c,u,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=Et(a,(t||"")+"_"+n),wt(a[0])&&wt(u)&&(l[c]=Ce(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?wt(u)?l[c]=Ce(u.text+a):""!==a&&l.push(Ce(a)):wt(a)&&wt(u)?l[c]=Ce(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function Nt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function St(e){var t=Ot(e.$options.inject,e);t&&(Se(!1),Object.keys(t).forEach((function(n){ke(e,n,t[n])})),Se(!0))}function Ot(e,t){if(e){for(var n=Object.create(null),r=de?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&M(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function Dt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(xt)&&delete n[u];return n}function xt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Rt(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=kt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=Lt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function kt(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]:_t(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 Lt(e,t){return function(){return e[t]}}function jt(e,t){var n,r,o,a,s;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(de&&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(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Pt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Ut(e){return Ze(this.$options,"filters",e,!0)||L}function zt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,r,i){var o=Y.keyCodes[t]||n;return i&&r&&!Y.keyCodes[t]?zt(i,r):o?zt(o,e):r?w(r)!==t:void 0}function Gt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=x(n));var a=function(a){if("class"===a||"style"===a||m(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||Y.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=T(a),u=w(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],i)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function Yt(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),Ft(r,"__static__"+e,!1)),r}function Ht(e,t,n){return Ft(e,"__once__"+t+(n?"_"+n:""),!0),e}function Ft(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&$t(e[r],t+"_"+r,n);else $t(e,t,n)}function $t(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Vt(e,t){if(t)if(l(t)){var n=e.on=e.on?D({},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 Qt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Qt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Wt(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 Zt(e,t){return"string"===typeof e?t+e:e}function Kt(e){e._o=Ht,e._n=g,e._s=p,e._l=jt,e._t=Pt,e._q=j,e._i=P,e._m=Yt,e._f=Ut,e._k=Bt,e._b=Gt,e._v=Ce,e._e=be,e._u=Qt,e._g=Vt,e._d=Wt,e._p=Zt}function qt(e,t,r,i,a){var s,c=this,u=a.options;M(i,"_uid")?(s=Object.create(i),s._original=i):(s=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||Rt(e.scopedSlots,c.$slots=Dt(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Rt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Rt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=fn(s,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(s,e,t,n,r,f)}}function Jt(e,t,r,o,a){var s=e.options,c={},u=s.props;if(i(u))for(var l in u)c[l]=Ke(l,u,t||n);else i(r.attrs)&&en(c,r.attrs),i(r.props)&&en(c,r.props);var f=new qt(r,c,a,o,e),d=s.render.call(null,f._c,f);if(d instanceof Ie)return Xt(d,r,f.parent,s,f);if(Array.isArray(d)){for(var h=_t(d)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=Xt(h[g],r,f.parent,s,f);return p}}function Xt(e,t,n,r,i){var o=Te(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[T(n)]=t[n]}Kt(qt.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;Ln(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):Pn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Un(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,a,s){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=bn(l,u),void 0===e))return Mn(l,t,n,a,s);t=t||{},br(e),i(t.model)&&cn(e.options,t);var f=Ct(t,e,s);if(o(e.options.functional))return Jt(e,f,t,n,a);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}an(t);var p=e.options.name||s,g=new Ie("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:d,tag:s,children:a},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 an(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?sn(o,i):o)}}function sn(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={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var un=1,ln=2;function fn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=ln),dn(e,t,n,r,i)}function dn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return be();if(i(n)&&i(n.is)&&(t=n.is),!t)return be();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===ln?r=_t(r):o===un&&(r=At(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||Y.getTagNamespace(t),a=Y.isReservedTag(t)?new Ie(Y.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=Ze(e.$options,"components",t))?new Ie(t,n,r,void 0,void 0,e):rn(c,n,e,r,t)):a=rn(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&hn(a,s),i(n)&&pn(n),a):be()}function hn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&hn(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=Dt(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;ke(e,"$attrs",o&&o.attrs||n,null,!0),ke(e,"$listeners",t._parentListeners||n,null,!0)}var vn,mn=null;function yn(e){Kt(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=Rt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{mn=t,e=r.call(t._renderProxy,t.$createElement)}catch(Ta){tt(Ta,t,"render"),e=t._vnode}finally{mn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof Ie||(e=be()),e.parent=i,e}}function In(e,t){return(e.__esModule||de&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Mn(e,t,n,r,i){var o=be();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function bn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=mn;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 a=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var f=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},d=U((function(n){e.resolved=In(n,t),s?a.length=0:f(!0)})),p=U((function(t){i(e.errorComp)&&(e.error=!0,f(!0))})),g=e(d,p);return c(g)&&(h(g)?r(e.resolved)&&g.then(d,p):h(g.component)&&(g.component.then(d,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)))),s=!1,e.loading?e.loadingComp:e.resolved}}function Cn(e){return e.isComment&&e.asyncFactory}function Tn(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 An(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Nn(e,t)}function _n(e,t){vn.$on(e,t)}function wn(e,t){vn.$off(e,t)}function En(e,t){var n=vn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function Nn(e,t,n){vn=e,Mt(t,n||{},_n,wn,En,e),vn=void 0}function Sn(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,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,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,a=n.length;o<a;o++)nt(n[o],t,r,t,i)}return t}}var On=null;function Dn(e){var t=On;return On=e,function(){On=t}}function xn(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 Rn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Dn(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||y(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 kn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=be),zn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&zn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,zn(e,"mounted")),e}function Ln(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$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){Se(!1);for(var l=e._props,f=e.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=e.$options.props;l[h]=Ke(h,p,t,e)}Se(!0),e.$options.propsData=t}r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,Nn(e,r,g),u&&(e.$slots=Dt(o,i.context),e.$forceUpdate())}function jn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Pn(e,t){if(t){if(e._directInactive=!1,jn(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++)Pn(e.$children[n]);zn(e,"activated")}}function Un(e,t){if((!t||(e._directInactive=!0,!jn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Un(e.$children[n]);zn(e,"deactivated")}}function zn(e,t){me();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),ye()}var Bn=[],Gn=[],Yn={},Hn=!1,Fn=!1,$n=0;function Vn(){$n=Bn.length=Gn.length=0,Yn={},Hn=Fn=!1}var Qn=0,Wn=Date.now;if(K&&!ee){var Zn=window.performance;Zn&&"function"===typeof Zn.now&&Wn()>document.createEvent("Event").timeStamp&&(Wn=function(){return Zn.now()})}function Kn(){var e,t;for(Qn=Wn(),Fn=!0,Bn.sort((function(e,t){return e.id-t.id})),$n=0;$n<Bn.length;$n++)e=Bn[$n],e.before&&e.before(),t=e.id,Yn[t]=null,e.run();var n=Gn.slice(),r=Bn.slice();Vn(),Xn(n),qn(r),ue&&Y.devtools&&ue.emit("flush")}function qn(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,Gn.push(e)}function Xn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Pn(e[t],!0)}function er(e){var t=e.id;if(null==Yn[t]){if(Yn[t]=!0,Fn){var n=Bn.length-1;while(n>$n&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Hn||(Hn=!0,pt(Kn))}}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=Q(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;me(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ta){if(!this.user)throw Ta;tt(Ta,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),ye(),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(Ta){tt(Ta,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||y(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:R,set:R};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&&ar(e,t.props),t.methods&&pr(e,t.methods),t.data?sr(e):Re(e._data={},!0),t.computed&&lr(e,t.computed),t.watch&&t.watch!==oe&&gr(e,t.watch)}function ar(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Se(!1);var a=function(o){i.push(o);var a=Ke(o,t,n,e);ke(r,o,a),o in e||ir(e,"_props",o)};for(var s in t)a(s);Se(!0)}function sr(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&&M(r,o)||F(o)||ir(e,"_data",o)}Re(t,!0)}function cr(e,t){me();try{return e.call(t,t)}catch(Ta){return tt(Ta,t,"data()"),{}}finally{ye()}}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],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(e,a||R,R,ur)),i in e||fr(e,i,o)}}function fr(e,t,n){var r=!ce();"function"===typeof n?(rr.get=r?dr(t):hr(n),rr.set=R):(rr.get=n.get?r&&!1!==n.cache?dr(t):hr(n.get):R,rr.set=n.set||R),Object.defineProperty(e,t,rr)}function dr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function hr(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]?R:S(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 mr(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=Le,e.prototype.$delete=je,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 yr=0;function Ir(e){e.prototype._init=function(e){var t=this;t._uid=yr++,t._isVue=!0,e&&e._isComponent?Mr(t,e):t.$options=We(br(t.constructor),e||{},t),t._renderProxy=t,t._self=t,xn(t),An(t),gn(t),zn(t,"beforeCreate"),St(t),or(t),Nt(t),zn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Mr(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 br(e){var t=e.options;if(e.super){var n=br(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=Cr(e);i&&D(e.extendOptions,i),t=e.options=We(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 Tr(e){this._init(e)}function Ar(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 _r(e){e.mixin=function(e){return this.options=We(this.options,e),this}}function wr(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 a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=We(n.options,e),a["super"]=n,a.options.props&&Er(a),a.options.computed&&Nr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[r]=a,a}}function Er(e){var t=e.options.props;for(var n in t)ir(e.prototype,"_props",n)}function Nr(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function Sr(e){B.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 Dr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function xr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=Or(a.componentOptions);s&&!t(s)&&Rr(n,o,r,i)}}}function Rr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}Ir(Tr),mr(Tr),Sn(Tr),Rn(Tr),yn(Tr);var kr=[String,RegExp,Array],Lr={name:"keep-alive",abstract:!0,props:{include:kr,exclude:kr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Rr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){xr(e,(function(e){return Dr(t,e)}))})),this.$watch("exclude",(function(t){xr(e,(function(e){return!Dr(t,e)}))}))},render:function(){var e=this.$slots.default,t=Tn(e),n=t&&t.componentOptions;if(n){var r=Or(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Dr(o,r))||a&&r&&Dr(a,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,y(u,l),u.push(l)):(c[l]=t,u.push(l),this.max&&u.length>parseInt(this.max)&&Rr(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},jr={KeepAlive:Lr};function Pr(e){var t={get:function(){return Y}};Object.defineProperty(e,"config",t),e.util={warn:he,extend:D,mergeOptions:We,defineReactive:ke},e.set=Le,e.delete=je,e.nextTick=pt,e.observable=function(e){return Re(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,jr),Ar(e),_r(e),wr(e),Sr(e)}Pr(Tr),Object.defineProperty(Tr.prototype,"$isServer",{get:ce}),Object.defineProperty(Tr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Tr,"FunctionalRenderContext",{value:qt}),Tr.version="2.6.10";var Ur=v("style,class"),zr=v("input,textarea,option,select,progress"),Br=function(e,t,n){return"value"===n&&zr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Gr=v("contenteditable,draggable,spellcheck"),Yr=v("events,caret,typing,plaintext-only"),Hr=function(e,t){return Wr(t)||"false"===t?"false":"contenteditable"===e&&Yr(t)?t:"true"},Fr=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"),$r="http://www.w3.org/1999/xlink",Vr=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Qr=function(e){return Vr(e)?e.slice(6,e.length):""},Wr=function(e){return null==e||!1===e};function Zr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Kr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Kr(t,n.data));return qr(t.staticClass,t.class)}function Kr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function qr(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 ai(e){return ii(e)?"svg":"math"===e?"math":void 0}var si=Object.create(null);function ci(e){if(!K)return!0;if(oi(e))return!1;if(e=e.toLowerCase(),null!=si[e])return si[e];var t=document.createElement(e);return e.indexOf("-")>-1?si[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:si[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 di(e,t){return document.createElementNS(ni[e],t)}function hi(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 mi(e,t){e.appendChild(t)}function yi(e){return e.parentNode}function Ii(e){return e.nextSibling}function Mi(e){return e.tagName}function bi(e,t){e.textContent=t}function Ci(e,t){e.setAttribute(t,"")}var Ti=Object.freeze({createElement:fi,createElementNS:di,createTextNode:hi,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:mi,parentNode:yi,nextSibling:Ii,tagName:Mi,setTextContent:bi,setStyleScope:Ci}),Ai={create:function(e,t){_i(t)},update:function(e,t){e.data.ref!==t.data.ref&&(_i(e,!0),_i(t))},destroy:function(e){_i(e,!0)}};function _i(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var wi=new Ie("",{},[]),Ei=["create","activate","update","remove","destroy"];function Ni(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Si(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Si(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,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Di(e){var t,n,a={},c=e.modules,u=e.nodeOps;for(t=0;t<Ei.length;++t)for(a[Ei[t]]=[],n=0;n<c.length;++n)i(c[n][Ei[t]])&&a[Ei[t]].push(c[n][Ei[t]]);function l(e){return new Ie(u.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&d(e)}return n.listeners=t,n}function d(e){var t=u.parentNode(e);i(t)&&u.removeChild(t,e)}function h(e,t,n,r,a,s,c){if(i(e.elm)&&i(s)&&(e=s[c]=Te(e)),e.isRootInsert=!a,!p(e,t,n,r)){var l=e.data,f=e.children,d=e.tag;i(d)?(e.elm=e.ns?u.createElementNS(e.ns,d):u.createElement(d,e),C(e),I(e,f,t),i(l)&&b(e,t),y(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,r)):(e.elm=u.createTextNode(e.text),y(n,e.elm,r))}}function p(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return g(e,t),y(n,e.elm,r),o(s)&&m(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,M(e)?(b(e,t),C(e)):(_i(e),t.push(e))}function m(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](wi,s);t.push(s);break}y(n,e.elm,r)}function y(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)h(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function M(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function b(e,n){for(var r=0;r<a.create.length;++r)a.create[r](wi,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(wi,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 T(e,t,n,r,i,o){for(;r<=i;++r)h(n[r],o,e,t,!1,n,r)}function A(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)A(e.children[n])}function _(e,t,n,r){for(;n<=r;++n){var o=t[n];i(o)&&(i(o.tag)?(w(o),A(o)):d(o.elm))}}function w(e,t){if(i(t)||i(e.data)){var n,r=a.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)&&w(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else d(e.elm)}function E(e,t,n,o,a){var s,c,l,f,d=0,p=0,g=t.length-1,v=t[0],m=t[g],y=n.length-1,I=n[0],M=n[y],b=!a;while(d<=g&&p<=y)r(v)?v=t[++d]:r(m)?m=t[--g]:Ni(v,I)?(S(v,I,o,n,p),v=t[++d],I=n[++p]):Ni(m,M)?(S(m,M,o,n,y),m=t[--g],M=n[--y]):Ni(v,M)?(S(v,M,o,n,y),b&&u.insertBefore(e,v.elm,u.nextSibling(m.elm)),v=t[++d],M=n[--y]):Ni(m,I)?(S(m,I,o,n,p),b&&u.insertBefore(e,m.elm,v.elm),m=t[--g],I=n[++p]):(r(s)&&(s=Oi(t,d,g)),c=i(I.key)?s[I.key]:N(I,t,d,g),r(c)?h(I,o,e,v.elm,!1,n,p):(l=t[c],Ni(l,I)?(S(l,I,o,n,p),t[c]=void 0,b&&u.insertBefore(e,l.elm,v.elm)):h(I,o,e,v.elm,!1,n,p)),I=n[++p]);d>g?(f=r(n[y+1])?null:n[y+1].elm,T(e,f,n,p,y,o)):p>y&&_(e,t,d,g)}function N(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&Ni(e,a))return o}}function S(e,t,n,s,c,l){if(e!==t){i(t.elm)&&i(s)&&(t=s[c]=Te(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?x(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 d,h=t.data;i(h)&&i(d=h.hook)&&i(d=d.prepatch)&&d(e,t);var p=e.children,g=t.children;if(i(h)&&M(t)){for(d=0;d<a.update.length;++d)a.update[d](e,t);i(d=h.hook)&&i(d=d.update)&&d(e,t)}r(t.text)?i(p)&&i(g)?p!==g&&E(f,p,g,n,l):i(g)?(i(e.text)&&u.setTextContent(f,""),T(f,null,g,0,g.length-1,n)):i(p)?_(f,p,0,p.length-1):i(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),i(h)&&i(d=h.hook)&&i(d=d.postpatch)&&d(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 D=v("attrs,class,staticClass,staticStyle,key");function x(e,t,n,r){var a,s=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(a=c.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return g(t,n),!0;if(i(s)){if(i(u))if(e.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,d=0;d<u.length;d++){if(!f||!x(f,u[d],n,r)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else I(t,u,n);if(i(c)){var h=!1;for(var p in c)if(!D(p)){h=!0,b(t,n);break}!h&&c["class"]&&vt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var c=!1,f=[];if(r(e))c=!0,h(t,f);else{var d=i(e.nodeType);if(!d&&Ni(e,t))S(e,t,f,null,null,s);else{if(d){if(1===e.nodeType&&e.hasAttribute(z)&&(e.removeAttribute(z),n=!0),o(n)&&x(e,t,f))return O(t,f,!0),e;e=l(e)}var p=e.elm,g=u.parentNode(p);if(h(t,f,p._leaveCb?null:g,u.nextSibling(p)),i(t.parent)){var v=t.parent,m=M(t);while(v){for(var y=0;y<a.destroy.length;++y)a.destroy[y](v);if(v.elm=t.elm,m){for(var I=0;I<a.create.length;++I)a.create[I](wi,v);var b=v.data.hook.insert;if(b.merged)for(var C=1;C<b.fns.length;C++)b.fns[C]()}else _i(v);v=v.parent}}i(g)?_(g,[e],0,0):i(e.tag)&&A(e)}}return O(t,f,c),t.elm}i(e)&&A(e)}}var xi={create:Ri,update:Ri,destroy:function(e){Ri(e,wi)}};function Ri(e,t){(e.data.directives||t.data.directives)&&ki(e,t)}function ki(e,t){var n,r,i,o=e===wi,a=t===wi,s=ji(e.data.directives,e.context),c=ji(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Ui(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(Ui(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++)Ui(u[n],"inserted",t,e)};o?bt(t,"insert",f):f()}if(l.length&&bt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Ui(l[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||Ui(s[n],"unbind",e,e,a)}var Li=Object.create(null);function ji(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=Li),i[Pi(r)]=r,r.def=Ze(t.$options,"directives",r.name,!0);return i}function Pi(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ui(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Ta){tt(Ta,n.context,"directive "+e.name+" "+t+" hook")}}var zi=[Ai,xi];function Bi(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,a,s,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(o in i(l.__ob__)&&(l=t.data.attrs=D({},l)),l)a=l[o],s=u[o],s!==a&&Gi(c,o,a);for(o in(ee||ne)&&l.value!==u.value&&Gi(c,"value",l.value),u)r(l[o])&&(Vr(o)?c.removeAttributeNS($r,Qr(o)):Gr(o)||c.removeAttribute(o))}}function Gi(e,t,n){e.tagName.indexOf("-")>-1?Yi(e,t,n):Fr(t)?Wr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Gr(t)?e.setAttribute(t,Hr(t,n)):Vr(t)?Wr(n)?e.removeAttributeNS($r,Qr(t)):e.setAttributeNS($r,t,n):Yi(e,t,n)}function Yi(e,t,n){if(Wr(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 Hi={create:Bi,update:Bi};function Fi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Zr(t),c=n._transitionClasses;i(c)&&(s=Jr(s,Xr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var $i,Vi={create:Fi,update:Fi},Qi="__r",Wi="__c";function Zi(e){if(i(e[Qi])){var t=ee?"change":"input";e[t]=[].concat(e[Qi],e[t]||[]),delete e[Qi]}i(e[Wi])&&(e.change=[].concat(e[Wi],e.change||[]),delete e[Wi])}function Ki(e,t,n){var r=$i;return function i(){var o=t.apply(null,arguments);null!==o&&Xi(e,i,n,r)}}var qi=at&&!(ie&&Number(ie[1])<=53);function Ji(e,t,n,r){if(qi){var i=Qn,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)}}$i.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function Xi(e,t,n,r){(r||$i).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||{};$i=t.elm,Zi(n),Mt(n,i,Ji,Xi,Ki,t.context),$i=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,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=D({},c)),s)n in c||(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var l=to.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ta){}}}}function io(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||ao(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ta){}return n&&e.value!==t}function ao(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 so={create:ro,update:ro},co=b((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?D(e.staticStyle,t):t}function lo(e){return Array.isArray(e)?x(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))&&D(r,n)}(n=uo(e.data))&&D(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&D(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(w(t),n.replace(go,""),"important");else{var r=yo(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}},mo=["Webkit","Moz","ms"],yo=b((function(e){if(ho=ho||document.createElement("div").style,e=T(e),"filter"!==e&&e in ho)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<mo.length;n++){var r=mo[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 a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,d=lo(t.data.style)||{};t.data.normalizedStyle=i(d.__ob__)?D({},d):d;var h=fo(t,!0);for(s in f)r(h[s])&&vo(c,s,"");for(s in h)a=h[s],a!==f[s]&&vo(c,s,null==a?"":a)}}var Mo={create:Io,update:Io},bo=/\s+/;function Co(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bo).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 To(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bo).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 Ao(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,_o(e.name||"v")),D(t,e),t}return"string"===typeof e?_o(e):void 0}}var _o=b((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"}})),wo=K&&!te,Eo="transition",No="animation",So="transition",Oo="transitionend",Do="animation",xo="animationend";wo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(So="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Do="WebkitAnimation",xo="webkitAnimationEnd"));var Ro=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ko(e){Ro((function(){Ro(e)}))}function Lo(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Co(e,t))}function jo(e,t){e._transitionClasses&&y(e._transitionClasses,t),To(e,t)}function Po(e,t,n){var r=zo(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Eo?Oo:xo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),e.addEventListener(s,l)}var Uo=/\b(transform|all)(,|$)/;function zo(e,t){var n,r=window.getComputedStyle(e),i=(r[So+"Delay"]||"").split(", "),o=(r[So+"Duration"]||"").split(", "),a=Bo(i,o),s=(r[Do+"Delay"]||"").split(", "),c=(r[Do+"Duration"]||"").split(", "),u=Bo(s,c),l=0,f=0;t===Eo?a>0&&(n=Eo,l=a,f=o.length):t===No?u>0&&(n=No,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Eo:No:null,f=n?n===Eo?o.length:c.length:0);var d=n===Eo&&Uo.test(r[So+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:d}}function Bo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Go(t)+Go(e[n])})))}function Go(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Yo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Ao(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,d=o.appearClass,h=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,m=o.enter,y=o.afterEnter,I=o.enterCancelled,M=o.beforeAppear,b=o.appear,C=o.afterAppear,T=o.appearCancelled,A=o.duration,_=On,w=On.$vnode;while(w&&w.parent)_=w.context,w=w.parent;var E=!_._isMounted||!e.isRootInsert;if(!E||b||""===b){var N=E&&d?d:u,S=E&&p?p:f,O=E&&h?h:l,D=E&&M||v,x=E&&"function"===typeof b?b:m,R=E&&C||y,k=E&&T||I,L=g(c(A)?A.enter:A);0;var j=!1!==a&&!te,P=$o(x),z=n._enterCb=U((function(){j&&(jo(n,O),jo(n,S)),z.cancelled?(j&&jo(n,N),k&&k(n)):R&&R(n),n._enterCb=null}));e.data.show||bt(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(),x&&x(n,z)})),D&&D(n),j&&(Lo(n,N),Lo(n,S),ko((function(){jo(n,N),z.cancelled||(Lo(n,O),P||(Fo(L)?setTimeout(z,L):Po(n,s,z)))}))),e.data.show&&(t&&t(),x&&x(n,z)),j||P||z()}}}function Ho(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Ao(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,l=o.leaveToClass,f=o.leaveActiveClass,d=o.beforeLeave,h=o.leave,p=o.afterLeave,v=o.leaveCancelled,m=o.delayLeave,y=o.duration,I=!1!==a&&!te,M=$o(h),b=g(c(y)?y.leave:y);0;var C=n._leaveCb=U((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),I&&(jo(n,l),jo(n,f)),C.cancelled?(I&&jo(n,u),v&&v(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(T):T()}function T(){C.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),I&&(Lo(n,u),Lo(n,f),ko((function(){jo(n,u),C.cancelled||(Lo(n,l),M||(Fo(b)?setTimeout(C,b):Po(n,s,C)))}))),h&&h(n,C),I||M||C())}}function Fo(e){return"number"===typeof e&&!isNaN(e)}function $o(e){if(r(e))return!1;var t=e.fns;return i(t)?$o(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Vo(e,t){!0!==t.data.show&&Yo(t)}var Qo=K?{create:Vo,activate:Vo,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Wo=[Hi,Vi,no,so,Mo,Qo],Zo=Wo.concat(zi),Ko=Di({nodeOps:Ti,modules:Zo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ia(e,"input")}));var qo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?bt(n,"postpatch",(function(){qo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ta)):("textarea"===n.tag||ui(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",na),e.addEventListener("compositionend",ra),e.addEventListener("change",ra),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,ta);if(i.some((function(e,t){return!j(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ea(e,i)})):t.value!==t.oldValue&&ea(t.value,i);o&&ia(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,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=P(r,ta(a))>-1,a.selected!==o&&(a.selected=o);else if(j(ta(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ea(e,t){return t.every((function(t){return!j(t,e)}))}function ta(e){return"_value"in e?e._value:e.value}function na(e){e.target.composing=!0}function ra(e){e.target.composing&&(e.target.composing=!1,ia(e.target,"input"))}function ia(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oa(e){return!e.componentInstance||e.data&&e.data.transition?e:oa(e.componentInstance._vnode)}var aa={bind:function(e,t,n){var r=t.value;n=oa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Yo(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=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Yo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(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)}},sa={model:qo,show:aa},ca={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 ua(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ua(Tn(t.children)):e}function la(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[T(o)]=i[o];return t}function fa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function da(e){while(e=e.parent)if(e.data.transition)return!0}function ha(e,t){return t.key===e.key&&t.tag===e.tag}var pa=function(e){return e.tag||Cn(e)},ga=function(e){return"show"===e.name},va={name:"transition",props:ca,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(da(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return fa(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=la(this),u=this._vnode,l=ua(u);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),l&&l.data&&!ha(o,l)&&!Cn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,bt(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fa(e,i);if("in-out"===r){if(Cn(o))return u;var d,h=function(){d()};bt(c,"afterEnter",h),bt(c,"enterCancelled",h),bt(f,"delayLeave",(function(e){d=e}))}}return i}}},ma=D({tag:String,moveClass:String},ca);delete ma.mode;var ya={props:ma,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Dn(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=[],a=la(this),s=0;s<i.length;s++){var c=i[s];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=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}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(Ia),e.forEach(Ma),e.forEach(ba),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Lo(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,jo(n,t))})}})))},methods:{hasMove:function(e,t){if(!wo)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){To(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 Ia(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ma(e){e.data.newPos=e.elm.getBoundingClientRect()}function ba(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 Ca={Transition:va,TransitionGroup:ya};Tr.config.mustUseProp=Br,Tr.config.isReservedTag=oi,Tr.config.isReservedAttr=Ur,Tr.config.getTagNamespace=ai,Tr.config.isUnknownElement=ci,D(Tr.options.directives,sa),D(Tr.options.components,Ca),Tr.prototype.__patch__=K?Ko:R,Tr.prototype.$mount=function(e,t){return e=e&&K?li(e):void 0,kn(this,e,t)},K&&setTimeout((function(){Y.devtools&&ue&&ue.emit("init",Tr)}),0),t["default"]=Tr}.call(this,n("c8ba"))},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2b88":function(e,t,n){"use strict";
  19. /*!
  20. * portal-vue © Thorsten Lünborg, 2019
  21. *
  22. * Version: 2.1.7
  23. *
  24. * LICENCE: MIT
  25. *
  26. * https://github.com/linusborg/portal-vue
  27. *
  28. */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 a(e){return s(e)||c(e)||u()}function s(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 d(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 h(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={},m={},y=i.extend({data:function(){return{transports:g,targets:v,sources:m,trackInstances:l}},methods:{open:function(e){if(l){var t=e.to,n=e.from,r=e.passengers,o=e.order,a=void 0===o?1/0:o;if(t&&n&&r){var s={to:t,from:n,passengers:f(r),order:a},c=Object.keys(this.transports);-1===c.indexOf(t)&&i.set(this.transports,t,[]);var u=this.$_getTransportIndex(s),d=this.transports[t].slice(0);-1===u?d.push(s):d[u]=s,this.transports[t]=h(d,(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 y(g),M=1,b=i.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return 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()))}}},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:a(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 d(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)}}),T=0,A=["disabled","name","order","slim","slotProps","tag","to"],_=["multiple","transition"],w=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(T++)}},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,_);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,A);return e(b,{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 E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.portalName||"Portal",b),e.component(t.portalTargetName||"PortalTarget",C),e.component(t.MountingPortalName||"MountingPortal",w)}var N={install:E};t.default=N,t.Portal=b,t.PortalTarget=C,t.MountingPortal=w,t.Wormhole=I},"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},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,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,a){var s=String(o(e)),c=s.length,u=void 0===n?" ":String(n),l=r(t);if(l<=c||""==u)return s;var f=l-c,d=i.call(u,Math.ceil(f/u.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},"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;
  29. /**
  30. * @license
  31. * Lodash <https://lodash.com/>
  32. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  33. * Released under MIT license <https://lodash.com/license>
  34. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  35. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  36. */(function(){var o,a="4.17.21",s=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__",d=500,h="__lodash_placeholder__",p=1,g=2,v=4,m=1,y=2,I=1,M=2,b=4,C=8,T=16,A=32,_=64,w=128,E=256,N=512,S=30,O="...",D=800,x=16,R=1,k=2,L=3,j=1/0,P=9007199254740991,U=17976931348623157e292,z=NaN,B=4294967295,G=B-1,Y=B>>>1,H=[["ary",w],["bind",I],["bindKey",M],["curry",C],["curryRight",T],["flip",N],["partial",A],["partialRight",_],["rearg",E]],F="[object Arguments]",$="[object Array]",V="[object AsyncFunction]",Q="[object Boolean]",W="[object Date]",Z="[object DOMException]",K="[object Error]",q="[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]",ae="[object Set]",se="[object String]",ce="[object Symbol]",ue="[object Undefined]",le="[object WeakMap]",fe="[object WeakSet]",de="[object ArrayBuffer]",he="[object DataView]",pe="[object Float32Array]",ge="[object Float64Array]",ve="[object Int8Array]",me="[object Int16Array]",ye="[object Int32Array]",Ie="[object Uint8Array]",Me="[object Uint8ClampedArray]",be="[object Uint16Array]",Ce="[object Uint32Array]",Te=/\b__p \+= '';/g,Ae=/\b(__p \+=) '' \+/g,_e=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,Ee=/[&<>"']/g,Ne=RegExp(we.source),Se=RegExp(Ee.source),Oe=/<%-([\s\S]+?)%>/g,De=/<%([\s\S]+?)%>/g,xe=/<%=([\s\S]+?)%>/g,Re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ke=/^\w*$/,Le=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,je=/[\\^$.*+?()[\]{}|]/g,Pe=RegExp(je.source),Ue=/^\s+/,ze=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ye=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/[()=,{}\[\]\/\s]/,$e=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ze=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,qe=/^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",at=rt+it+ot,st="\\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",dt=" \\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",ht="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",gt=ut+lt+ft+dt,vt="['’]",mt="["+nt+"]",yt="["+gt+"]",It="["+at+"]",Mt="\\d+",bt="["+st+"]",Ct="["+ct+"]",Tt="[^"+nt+gt+Mt+st+ct+ht+"]",At="\\ud83c[\\udffb-\\udfff]",_t="(?:"+It+"|"+At+")",wt="[^"+nt+"]",Et="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",St="["+ht+"]",Ot="\\u200d",Dt="(?:"+Ct+"|"+Tt+")",xt="(?:"+St+"|"+Tt+")",Rt="(?:"+vt+"(?:d|ll|m|re|s|t|ve))?",kt="(?:"+vt+"(?:D|LL|M|RE|S|T|VE))?",Lt=_t+"?",jt="["+pt+"]?",Pt="(?:"+Ot+"(?:"+[wt,Et,Nt].join("|")+")"+jt+Lt+")*",Ut="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bt=jt+Lt+Pt,Gt="(?:"+[bt,Et,Nt].join("|")+")"+Bt,Yt="(?:"+[wt+It+"?",It,Et,Nt,mt].join("|")+")",Ht=RegExp(vt,"g"),Ft=RegExp(It,"g"),$t=RegExp(At+"(?="+At+")|"+Yt+Bt,"g"),Vt=RegExp([St+"?"+Ct+"+"+Rt+"(?="+[yt,St,"$"].join("|")+")",xt+"+"+kt+"(?="+[yt,St+Dt,"$"].join("|")+")",St+"?"+Dt+"+"+Rt,St+"+"+kt,zt,Ut,Mt,Gt].join("|"),"g"),Qt=RegExp("["+Ot+nt+at+pt+"]"),Wt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zt=["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"],Kt=-1,qt={};qt[pe]=qt[ge]=qt[ve]=qt[me]=qt[ye]=qt[Ie]=qt[Me]=qt[be]=qt[Ce]=!0,qt[F]=qt[$]=qt[de]=qt[Q]=qt[he]=qt[W]=qt[K]=qt[q]=qt[X]=qt[ee]=qt[ne]=qt[oe]=qt[ae]=qt[se]=qt[le]=!1;var Jt={};Jt[F]=Jt[$]=Jt[de]=Jt[he]=Jt[Q]=Jt[W]=Jt[pe]=Jt[ge]=Jt[ve]=Jt[me]=Jt[ye]=Jt[X]=Jt[ee]=Jt[ne]=Jt[oe]=Jt[ae]=Jt[se]=Jt[ce]=Jt[Ie]=Jt[Me]=Jt[be]=Jt[Ce]=!0,Jt[K]=Jt[q]=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"==typeof e&&e&&e.Object===Object&&e,sn="object"==typeof self&&self&&self.Object===Object&&self,cn=an||sn||Function("return this")(),un=t&&!t.nodeType&&t,ln=un&&"object"==typeof r&&r&&!r.nodeType&&r,fn=ln&&ln.exports===un,dn=fn&&an.process,hn=function(){try{var e=ln&&ln.require&&ln.require("util").types;return e||dn&&dn.binding&&dn.binding("util")}catch(t){}}(),pn=hn&&hn.isArrayBuffer,gn=hn&&hn.isDate,vn=hn&&hn.isMap,mn=hn&&hn.isRegExp,yn=hn&&hn.isSet,In=hn&&hn.isTypedArray;function Mn(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 bn(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),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 Tn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function An(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 _n(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function wn(e,t){var n=null==e?0:e.length;return!!n&&Un(e,t,0)>-1}function En(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 Nn(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 Sn(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 Dn(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 xn(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 Rn=Yn("length");function kn(e){return e.split("")}function Ln(e){return e.match(He)||[]}function jn(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Pn(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 Un(e,t,n){return t===t?pr(e,t,n):Pn(e,Bn,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 Bn(e){return e!==e}function Gn(e,t){var n=null==e?0:e.length;return n?Vn(e,t)/n:z}function Yn(e){return function(t){return null==t?o:t[e]}}function Hn(e){return function(t){return null==e?o:e[t]}}function Fn(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function $n(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function Vn(e,t){var n,r=-1,i=e.length;while(++r<i){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Qn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Wn(e,t){return Nn(t,(function(t){return[t,e[t]]}))}function Zn(e){return e?e.slice(0,yr(e)+1).replace(Ue,""):e}function Kn(e){return function(t){return e(t)}}function qn(e,t){return Nn(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&&Un(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&Un(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=Hn(Xt),rr=Hn(en);function ir(e){return"\\"+nn[e]}function or(e,t){return null==e?o:e[t]}function ar(e){return Qt.test(e)}function sr(e){return Wt.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 a=e[n];a!==t&&a!==h||(e[n]=h,o[i++]=n)}return o}function dr(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hr(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 ar(e)?Mr(e):Rn(e)}function mr(e){return ar(e)?br(e):kn(e)}function yr(e){var t=e.length;while(t--&&ze.test(e.charAt(t)));return t}var Ir=Hn(tn);function Mr(e){var t=$t.lastIndex=0;while($t.test(e))++t;return t}function br(e){return e.match($t)||[]}function Cr(e){return e.match(Vt)||[]}var Tr=function e(t){t=null==t?cn:Ar.defaults(cn.Object(),t,Ar.pick(cn,Zt));var n=t.Array,r=t.Date,i=t.Error,ze=t.Function,He=t.Math,nt=t.Object,rt=t.RegExp,it=t.String,ot=t.TypeError,at=n.prototype,st=ze.prototype,ct=nt.prototype,ut=t["__core-js_shared__"],lt=st.toString,ft=ct.hasOwnProperty,dt=0,ht=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._,mt=rt("^"+lt.call(ft).replace(je,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=fn?t.Buffer:o,It=t.Symbol,Mt=t.Uint8Array,bt=yt?yt.allocUnsafe:o,Ct=lr(nt.getPrototypeOf,nt),Tt=nt.create,At=ct.propertyIsEnumerable,_t=at.splice,wt=It?It.isConcatSpreadable:o,Et=It?It.iterator:o,Nt=It?It.toStringTag:o,St=function(){try{var e=Qa(nt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ot=t.clearTimeout!==cn.clearTimeout&&t.clearTimeout,Dt=r&&r.now!==cn.Date.now&&r.now,xt=t.setTimeout!==cn.setTimeout&&t.setTimeout,Rt=He.ceil,kt=He.floor,Lt=nt.getOwnPropertySymbols,jt=yt?yt.isBuffer:o,Pt=t.isFinite,Ut=at.join,zt=lr(nt.keys,nt),Bt=He.max,Gt=He.min,Yt=r.now,$t=t.parseInt,Vt=He.random,Qt=at.reverse,Wt=Qa(t,"DataView"),Xt=Qa(t,"Map"),en=Qa(t,"Promise"),tn=Qa(t,"Set"),nn=Qa(t,"WeakMap"),an=Qa(nt,"create"),sn=nn&&new nn,un={},ln=xs(Wt),dn=xs(Xt),hn=xs(en),Rn=xs(tn),kn=xs(nn),Hn=It?It.prototype:o,pr=Hn?Hn.valueOf:o,Mr=Hn?Hn.toString:o;function br(e){if(_l(e)&&!cl(e)&&!(e instanceof Er)){if(e instanceof wr)return e;if(ft.call(e,"__wrapped__"))return ks(e)}return new wr(e)}var Tr=function(){function e(){}return function(t){if(!Al(t))return{};if(Tt)return Tt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function _r(){}function wr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Er(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function Nr(){var e=new Er(this.__wrapped__);return e.__actions__=ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ia(this.__views__),e}function Sr(){if(this.__filtered__){var e=new Er(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=Ja(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=r?s:a-1,l=this.__iteratees__,f=l.length,d=0,h=Gt(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return zo(e,this.__actions__);var p=[];e:while(c--&&d<h){u+=t;var g=-1,v=e[u];while(++g<f){var m=l[g],y=m.iteratee,I=m.type,M=y(v);if(I==k)v=M;else if(!M){if(I==R)continue e;break e}}p[d++]=v}return p}function Dr(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 xr(){this.__data__=an?an(null):{},this.size=0}function Rr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function kr(e){var t=this.__data__;if(an){var n=t[e];return n===f?o:n}return ft.call(t,e)?t[e]:o}function Lr(e){var t=this.__data__;return an?t[e]!==o:ft.call(t,e)}function jr(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=an&&t===o?f:t,this}function Pr(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 Ur(){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():_t.call(t,n,1),--this.size,!0}function Br(e){var t=this.__data__,n=li(t,e);return n<0?o:t[n][1]}function Gr(e){return li(this.__data__,e)>-1}function Yr(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 Hr(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 Fr(){this.size=0,this.__data__={hash:new Dr,map:new(Xt||Pr),string:new Dr}}function $r(e){var t=$a(this,e)["delete"](e);return this.size-=t?1:0,t}function Vr(e){return $a(this,e).get(e)}function Qr(e){return $a(this,e).has(e)}function Wr(e,t){var n=$a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Zr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Hr;while(++t<n)this.add(e[t])}function Kr(e){return this.__data__.set(e,f),this}function qr(e){return this.__data__.has(e)}function Jr(e){var t=this.__data__=new Pr(e);this.size=t.size}function Xr(){this.__data__=new Pr,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 Pr){var r=n.__data__;if(!Xt||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hr(r)}return n.set(e,t),this.size=n.size,this}function ii(e,t){var n=cl(e),r=!n&&sl(e),i=!n&&!r&&hl(e),o=!n&&!r&&!i&&Bl(e),a=n||r||i||o,s=a?Qn(e.length,it):[],c=s.length;for(var u in e)!t&&!ft.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||as(u,c))||s.push(u);return s}function oi(e){var t=e.length;return t?e[yo(0,t-1)]:o}function ai(e,t){return Ss(ia(e),vi(t,0,e.length))}function si(e){return Ss(ia(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 di(e,t){return e&&oa(t,Tf(t),e)}function hi(e,t){return e&&oa(t,Af(t),e)}function pi(e,t,n){"__proto__"==t&&St?St(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){var r=-1,i=t.length,a=n(i),s=null==e;while(++r<i)a[r]=s?o:mf(e,t[r]);return a}function vi(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function mi(e,t,n,r,i,a){var s,c=t&p,u=t&g,l=t&v;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Al(e))return e;var f=cl(e);if(f){if(s=ts(e),!c)return ia(e,s)}else{var d=qa(e),h=d==q||d==J;if(hl(e))return Wo(e,c);if(d==ne||d==F||h&&!i){if(s=u||h?{}:ns(e),!c)return u?sa(e,hi(s,e)):aa(e,di(s,e))}else{if(!Jt[d])return i?e:{};s=rs(e,d,c)}}a||(a=new Jr);var m=a.get(e);if(m)return m;a.set(e,s),Pl(e)?e.forEach((function(r){s.add(mi(r,t,n,r,e,a))})):wl(e)&&e.forEach((function(r,i){s.set(i,mi(r,t,n,i,e,a))}));var y=l?u?Ba:za:u?Af:Tf,I=f?o:y(e);return Cn(I||e,(function(r,i){I&&(i=r,r=e[i]),ui(s,i,mi(r,t,n,i,e,a))})),s}function yi(e){var t=Tf(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],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Mi(e,t,n){if("function"!=typeof e)throw new ot(u);return _s((function(){e.apply(o,n)}),t)}function bi(e,t,n,r){var i=-1,o=wn,a=!0,c=e.length,u=[],l=t.length;if(!c)return u;n&&(t=Nn(t,Kn(n))),r?(o=En,a=!1):t.length>=s&&(o=Jn,a=!1,t=new Zr(t));e:while(++i<c){var f=e[i],d=null==n?f:n(f);if(f=r||0!==f?f:0,a&&d===d){var h=l;while(h--)if(t[h]===d)continue e;u.push(f)}else o(t,d,r)||u.push(f)}return u}br.templateSettings={escape:Oe,evaluate:De,interpolate:xe,variable:"",imports:{_:br}},br.prototype=_r.prototype,br.prototype.constructor=br,wr.prototype=Tr(_r.prototype),wr.prototype.constructor=wr,Er.prototype=Tr(_r.prototype),Er.prototype.constructor=Er,Dr.prototype.clear=xr,Dr.prototype["delete"]=Rr,Dr.prototype.get=kr,Dr.prototype.has=Lr,Dr.prototype.set=jr,Pr.prototype.clear=Ur,Pr.prototype["delete"]=zr,Pr.prototype.get=Br,Pr.prototype.has=Gr,Pr.prototype.set=Yr,Hr.prototype.clear=Fr,Hr.prototype["delete"]=$r,Hr.prototype.get=Vr,Hr.prototype.has=Qr,Hr.prototype.set=Wr,Zr.prototype.add=Zr.prototype.push=Kr,Zr.prototype.has=qr,Jr.prototype.clear=Xr,Jr.prototype["delete"]=ei,Jr.prototype.get=ti,Jr.prototype.has=ni,Jr.prototype.set=ri;var Ci=la(Di),Ti=la(xi,!0);function Ai(e,t){var n=!0;return Ci(e,(function(e,r,i){return n=!!t(e,r,i),n})),n}function _i(e,t,n){var r=-1,i=e.length;while(++r<i){var a=e[r],s=t(a);if(null!=s&&(c===o?s===s&&!zl(s):n(s,c)))var c=s,u=a}return u}function wi(e,t,n,r){var i=e.length;n=Wl(n),n<0&&(n=-n>i?0:i+n),r=r===o||r>i?i:Wl(r),r<0&&(r+=i),r=n>r?0:Zl(r);while(n<r)e[n++]=t;return e}function Ei(e,t){var n=[];return Ci(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function Ni(e,t,n,r,i){var o=-1,a=e.length;n||(n=os),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Ni(s,t-1,n,r,i):Sn(i,s):r||(i[i.length]=s)}return i}var Si=fa(),Oi=fa(!0);function Di(e,t){return e&&Si(e,t,Tf)}function xi(e,t){return e&&Oi(e,t,Tf)}function Ri(e,t){return _n(t,(function(t){return bl(e[t])}))}function ki(e,t){t=Fo(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Ds(t[n++])];return n&&n==r?e:o}function Li(e,t,n){var r=t(e);return cl(e)?r:Sn(r,n(e))}function ji(e){return null==e?e===o?ue:te:Nt&&Nt in nt(e)?Wa(e):Is(e)}function Pi(e,t){return e>t}function Ui(e,t){return null!=e&&ft.call(e,t)}function zi(e,t){return null!=e&&t in nt(e)}function Bi(e,t,n){return e>=Gt(t,n)&&e<Bt(t,n)}function Gi(e,t,r){var i=r?En:wn,a=e[0].length,s=e.length,c=s,u=n(s),l=1/0,f=[];while(c--){var d=e[c];c&&t&&(d=Nn(d,Kn(t))),l=Gt(d.length,l),u[c]=!r&&(t||a>=120&&d.length>=120)?new Zr(c&&d):o}d=e[0];var h=-1,p=u[0];e:while(++h<a&&f.length<l){var g=d[h],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?Jn(p,v):i(f,v,r))){c=s;while(--c){var m=u[c];if(!(m?Jn(m,v):i(e[c],v,r)))continue e}p&&p.push(v),f.push(g)}}return f}function Yi(e,t,n,r){return Di(e,(function(e,i,o){t(r,n(e),i,o)})),r}function Hi(e,t,n){t=Fo(t,e),e=bs(e,t);var r=null==e?e:e[Ds(oc(t))];return null==r?o:Mn(r,e,n)}function Fi(e){return _l(e)&&ji(e)==F}function $i(e){return _l(e)&&ji(e)==de}function Vi(e){return _l(e)&&ji(e)==W}function Qi(e,t,n,r,i){return e===t||(null==e||null==t||!_l(e)&&!_l(t)?e!==e&&t!==t:Wi(e,t,n,r,Qi,i))}function Wi(e,t,n,r,i,o){var a=cl(e),s=cl(t),c=a?$:qa(e),u=s?$:qa(t);c=c==F?ne:c,u=u==F?ne:u;var l=c==ne,f=u==ne,d=c==u;if(d&&hl(e)){if(!hl(t))return!1;a=!0,l=!1}if(d&&!l)return o||(o=new Jr),a||Bl(e)?La(e,t,n,r,i,o):ja(e,t,c,n,r,i,o);if(!(n&m)){var h=l&&ft.call(e,"__wrapped__"),p=f&&ft.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,v=p?t.value():t;return o||(o=new Jr),i(g,v,n,r,o)}}return!!d&&(o||(o=new Jr),Pa(e,t,n,r,i,o))}function Zi(e){return _l(e)&&qa(e)==X}function Ki(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;e=nt(e);while(i--){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}while(++i<a){c=n[i];var u=c[0],l=e[u],f=c[1];if(s&&c[2]){if(l===o&&!(u in e))return!1}else{var d=new Jr;if(r)var h=r(l,f,u,e,t,d);if(!(h===o?Qi(f,l,m|y,r,d):h))return!1}}return!0}function qi(e){if(!Al(e)||fs(e))return!1;var t=bl(e)?mt:Ke;return t.test(xs(e))}function Ji(e){return _l(e)&&ji(e)==oe}function Xi(e){return _l(e)&&qa(e)==ae}function eo(e){return _l(e)&&Tl(e.length)&&!!qt[ji(e)]}function to(e){return"function"==typeof e?e:null==e?Dd:"object"==typeof e?cl(e)?so(e[0],e[1]):ao(e):Fd(e)}function no(e){if(!hs(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(!Al(e))return ys(e);var t=hs(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 ao(e){var t=Va(e);return 1==t.length&&t[0][2]?gs(t[0][0],t[0][1]):function(n){return n===e||Ki(n,e,t)}}function so(e,t){return cs(e)&&ps(t)?gs(Ds(e),t):function(n){var r=mf(n,e);return r===o&&r===t?If(n,e):Qi(t,r,m|y)}}function co(e,t,n,r,i){e!==t&&Si(t,(function(a,s){if(i||(i=new Jr),Al(a))uo(e,t,s,n,co,r,i);else{var c=r?r(Ts(e,s),a,s+"",e,t,i):o;c===o&&(c=a),ci(e,s,c)}}),Af)}function uo(e,t,n,r,i,a,s){var c=Ts(e,n),u=Ts(t,n),l=s.get(u);if(l)ci(e,n,l);else{var f=a?a(c,u,n+"",e,t,s):o,d=f===o;if(d){var h=cl(u),p=!h&&hl(u),g=!h&&!p&&Bl(u);f=u,h||p||g?cl(c)?f=c:fl(c)?f=ia(c):p?(d=!1,f=Wo(u,!0)):g?(d=!1,f=Xo(u,!0)):f=[]:kl(u)||sl(u)?(f=c,sl(c)?f=ql(c):Al(c)&&!bl(c)||(f=ns(u))):d=!1}d&&(s.set(u,f),i(f,u,r,a,s),s["delete"](u)),ci(e,n,f)}}function lo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:o}function fo(e,t,n){t=t.length?Nn(t,(function(e){return cl(e)?function(t){return ki(t,1===e.length?e[0]:e)}:e})):[Dd];var r=-1;t=Nn(t,Kn(Fa()));var i=oo(e,(function(e,n,i){var o=Nn(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return $n(i,(function(e,t){return ta(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 a=t[r],s=ki(e,a);n(s,a)&&Ao(o,Fo(a,e),s)}return o}function go(e){return function(t){return ki(t,e)}}function vo(e,t,n,r){var i=r?zn:Un,o=-1,a=t.length,s=e;e===t&&(t=ia(t)),n&&(s=Nn(e,Kn(n)));while(++o<a){var c=0,u=t[o],l=n?n(u):u;while((c=i(s,l,c,r))>-1)s!==e&&_t.call(s,c,1),_t.call(e,c,1)}return e}function mo(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;as(i)?_t.call(e,i,1):jo(e,i)}}return e}function yo(e,t){return e+kt(Vt()*(t-e+1))}function Io(e,t,r,i){var o=-1,a=Bt(Rt((t-e)/(r||1)),0),s=n(a);while(a--)s[i?a:++o]=e,e+=r;return s}function Mo(e,t){var n="";if(!e||t<1||t>P)return n;do{t%2&&(n+=e),t=kt(t/2),t&&(e+=e)}while(t);return n}function bo(e,t){return ws(Ms(e,t,Dd),e+"")}function Co(e){return oi(Yf(e))}function To(e,t){var n=Yf(e);return Ss(n,vi(t,0,n.length))}function Ao(e,t,n,r){if(!Al(e))return e;t=Fo(t,e);var i=-1,a=t.length,s=a-1,c=e;while(null!=c&&++i<a){var u=Ds(t[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var f=c[u];l=r?r(f,u,c):o,l===o&&(l=Al(f)?f:as(t[i+1])?[]:{})}ui(c,u,l),c=c[u]}return e}var _o=sn?function(e,t){return sn.set(e,t),e}:Dd,wo=St?function(e,t){return St(e,"toString",{configurable:!0,enumerable:!1,value:Ed(t),writable:!0})}:Dd;function Eo(e){return Ss(Yf(e))}function No(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 a=n(o);while(++i<o)a[i]=e[i+t];return a}function So(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<=Y){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!zl(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Do(e,t,Dd,n)}function Do(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);var s=t!==t,c=null===t,u=zl(t),l=t===o;while(i<a){var f=kt((i+a)/2),d=n(e[f]),h=d!==o,p=null===d,g=d===d,v=zl(d);if(s)var m=r||g;else m=l?g&&(r||h):c?g&&h&&(r||!p):u?g&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return Gt(a,G)}function xo(e,t){var n=-1,r=e.length,i=0,o=[];while(++n<r){var a=e[n],s=t?t(a):a;if(!n||!il(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Ro(e){return"number"==typeof e?e:zl(e)?z:+e}function ko(e){if("string"==typeof e)return e;if(cl(e))return Nn(e,ko)+"";if(zl(e))return Mr?Mr.call(e):"";var t=e+"";return"0"==t&&1/e==-j?"-0":t}function Lo(e,t,n){var r=-1,i=wn,o=e.length,a=!0,c=[],u=c;if(n)a=!1,i=En;else if(o>=s){var l=t?null:Sa(e);if(l)return dr(l);a=!1,i=Jn,u=new Zr}else u=t?[]:c;e:while(++r<o){var f=e[r],d=t?t(f):f;if(f=n||0!==f?f:0,a&&d===d){var h=u.length;while(h--)if(u[h]===d)continue e;t&&u.push(d),c.push(f)}else i(u,d,n)||(u!==c&&u.push(d),c.push(f))}return c}function jo(e,t){return t=Fo(t,e),e=bs(e,t),null==e||delete e[Ds(oc(t))]}function Po(e,t,n,r){return Ao(e,t,n(ki(e,t)),r)}function Uo(e,t,n,r){var i=e.length,o=r?i:-1;while((r?o--:++o<i)&&t(e[o],o,e));return n?No(e,r?0:o,r?o+1:i):No(e,r?o+1:0,r?i:o)}function zo(e,t){var n=e;return n instanceof Er&&(n=n.value()),On(t,(function(e,t){return t.func.apply(t.thisArg,Sn([e],t.args))}),n)}function Bo(e,t,r){var i=e.length;if(i<2)return i?Lo(e[0]):[];var o=-1,a=n(i);while(++o<i){var s=e[o],c=-1;while(++c<i)c!=o&&(a[o]=bi(a[o]||s,e[c],t,r))}return Lo(Ni(a,1),t,r)}function Go(e,t,n){var r=-1,i=e.length,a=t.length,s={};while(++r<i){var c=r<a?t[r]:o;n(s,e[r],c)}return s}function Yo(e){return fl(e)?e:[]}function Ho(e){return"function"==typeof e?e:Dd}function Fo(e,t){return cl(e)?e:cs(e,t)?[e]:Os(Xl(e))}var $o=bo;function Vo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:No(e,t,n)}var Qo=Ot||function(e){return cn.clearTimeout(e)};function Wo(e,t){if(t)return e.slice();var n=e.length,r=bt?bt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new Mt(t).set(new Mt(e)),t}function Ko(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qo(e){var t=new e.constructor(e.source,Qe.exec(e));return t.lastIndex=e.lastIndex,t}function Jo(e){return pr?nt(pr.call(e)):{}}function Xo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=zl(e),s=t!==o,c=null===t,u=t===t,l=zl(t);if(!c&&!l&&!a&&e>t||a&&s&&u&&!c&&!l||r&&s&&u||!n&&u||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||c&&n&&i||!s&&i||!u)return-1}return 0}function ta(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var c=ea(i[r],o[r]);if(c){if(r>=s)return c;var u=n[r];return c*("desc"==u?-1:1)}}return e.index-t.index}function na(e,t,r,i){var o=-1,a=e.length,s=r.length,c=-1,u=t.length,l=Bt(a-s,0),f=n(u+l),d=!i;while(++c<u)f[c]=t[c];while(++o<s)(d||o<a)&&(f[r[o]]=e[o]);while(l--)f[c++]=e[o++];return f}function ra(e,t,r,i){var o=-1,a=e.length,s=-1,c=r.length,u=-1,l=t.length,f=Bt(a-c,0),d=n(f+l),h=!i;while(++o<f)d[o]=e[o];var p=o;while(++u<l)d[p+u]=t[u];while(++s<c)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function ia(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function oa(e,t,n,r){var i=!n;n||(n={});var a=-1,s=t.length;while(++a<s){var c=t[a],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 aa(e,t){return oa(e,Za(e),t)}function sa(e,t){return oa(e,Ka(e),t)}function ca(e,t){return function(n,r){var i=cl(n)?bn:fi,o=t?t():{};return i(n,e,Fa(r,2),o)}}function ua(e){return bo((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;a=e.length>3&&"function"==typeof a?(i--,a):o,s&&ss(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=nt(t);while(++r<i){var c=n[r];c&&e(t,c,r,a)}return t}))}function la(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,a=nt(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}function fa(e){return function(t,n,r){var i=-1,o=nt(t),a=r(t),s=a.length;while(s--){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function da(e,t,n){var r=t&I,i=ga(e);function o(){var t=this&&this!==cn&&this instanceof o?i:e;return t.apply(r?n:this,arguments)}return o}function ha(e){return function(t){t=Xl(t);var n=ar(t)?mr(t):o,r=n?n[0]:t.charAt(0),i=n?Vo(n,1).join(""):t.slice(1);return r[e]()+i}}function pa(e){return function(t){return On(Cd(Zf(t).replace(Ht,"")),e,"")}}function ga(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=Tr(e.prototype),r=e.apply(n,t);return Al(r)?r:n}}function va(e,t,r){var i=ga(e);function a(){var s=arguments.length,c=n(s),u=s,l=Ha(a);while(u--)c[u]=arguments[u];var f=s<3&&c[0]!==l&&c[s-1]!==l?[]:fr(c,l);if(s-=f.length,s<r)return Ea(e,t,Ia,a.placeholder,o,c,f,o,o,r-s);var d=this&&this!==cn&&this instanceof a?i:e;return Mn(d,this,c)}return a}function ma(e){return function(t,n,r){var i=nt(t);if(!ll(t)){var a=Fa(n,3);t=Tf(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function ya(e){return Ua((function(t){var n=t.length,r=n,i=wr.prototype.thru;e&&t.reverse();while(r--){var a=t[r];if("function"!=typeof a)throw new ot(u);if(i&&!s&&"wrapper"==Ya(a))var s=new wr([],!0)}r=s?r:n;while(++r<n){a=t[r];var c=Ya(a),l="wrapper"==c?Ga(a):o;s=l&&ls(l[0])&&l[1]==(w|C|A|E)&&!l[4].length&&1==l[9]?s[Ya(l[0])].apply(s,l[3]):1==a.length&&ls(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&cl(r))return s.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 Ia(e,t,r,i,a,s,c,u,l,f){var d=t&w,h=t&I,p=t&M,g=t&(C|T),v=t&N,m=p?o:ga(e);function y(){var o=arguments.length,I=n(o),M=o;while(M--)I[M]=arguments[M];if(g)var b=Ha(y),C=tr(I,b);if(i&&(I=na(I,i,a,g)),s&&(I=ra(I,s,c,g)),o-=C,g&&o<f){var T=fr(I,b);return Ea(e,t,Ia,y.placeholder,r,I,T,u,l,f-o)}var A=h?r:this,_=p?A[e]:e;return o=I.length,u?I=Cs(I,u):v&&o>1&&I.reverse(),d&&l<o&&(I.length=l),this&&this!==cn&&this instanceof y&&(_=m||ga(_)),_.apply(A,I)}return y}function Ma(e,t){return function(n,r){return Yi(n,e,t(r),{})}}function ba(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=ko(n),r=ko(r)):(n=Ro(n),r=Ro(r)),i=e(n,r)}return i}}function Ca(e){return Ua((function(t){return t=Nn(t,Kn(Fa())),bo((function(n){var r=this;return e(t,(function(e){return Mn(e,r,n)}))}))}))}function Ta(e,t){t=t===o?" ":ko(t);var n=t.length;if(n<2)return n?Mo(t,e):t;var r=Mo(t,Rt(e/vr(t)));return ar(t)?Vo(mr(r),0,e).join(""):r.slice(0,e)}function Aa(e,t,r,i){var o=t&I,a=ga(e);function s(){var t=-1,c=arguments.length,u=-1,l=i.length,f=n(l+c),d=this&&this!==cn&&this instanceof s?a:e;while(++u<l)f[u]=i[u];while(c--)f[u++]=arguments[++t];return Mn(d,o?r:this,f)}return s}function _a(e){return function(t,n,r){return r&&"number"!=typeof r&&ss(t,n,r)&&(n=r=o),t=Ql(t),n===o?(n=t,t=0):n=Ql(n),r=r===o?t<n?1:-1:Ql(r),Io(t,n,r,e)}}function wa(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Kl(t),n=Kl(n)),e(t,n)}}function Ea(e,t,n,r,i,a,s,c,u,l){var f=t&C,d=f?s:o,h=f?o:s,p=f?a:o,g=f?o:a;t|=f?A:_,t&=~(f?_:A),t&b||(t&=~(I|M));var v=[e,t,i,p,d,g,h,c,u,l],m=n.apply(o,v);return ls(e)&&As(m,v),m.placeholder=r,Es(m,e,t)}function Na(e){var t=He[e];return function(e,n){if(e=Kl(e),n=null==n?0:Gt(Wl(n),292),n&&Pt(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 Sa=tn&&1/dr(new tn([,-0]))[1]==j?function(e){return new tn(e)}:zd;function Oa(e){return function(t){var n=qa(t);return n==X?ur(t):n==ae?hr(t):Wn(t,e(t))}}function Da(e,t,n,r,i,a,s,c){var l=t&M;if(!l&&"function"!=typeof e)throw new ot(u);var f=r?r.length:0;if(f||(t&=~(A|_),r=i=o),s=s===o?s:Bt(Wl(s),0),c=c===o?c:Wl(c),f-=i?i.length:0,t&_){var d=r,h=i;r=i=o}var p=l?o:Ga(e),g=[e,t,n,r,i,d,h,a,s,c];if(p&&ms(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:Bt(g[9]-f,0),!c&&t&(C|T)&&(t&=~(C|T)),t&&t!=I)v=t==C||t==T?va(e,t,c):t!=A&&t!=(I|A)||i.length?Ia.apply(o,g):Aa(e,t,n,r);else var v=da(e,t,n);var m=p?_o:As;return Es(m(v,g),e,t)}function xa(e,t,n,r){return e===o||il(e,ct[n])&&!ft.call(r,n)?t:e}function Ra(e,t,n,r,i,a){return Al(e)&&Al(t)&&(a.set(t,e),co(e,t,o,Ra,a),a["delete"](t)),e}function ka(e){return kl(e)?o:e}function La(e,t,n,r,i,a){var s=n&m,c=e.length,u=t.length;if(c!=u&&!(s&&u>c))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=n&y?new Zr:o;a.set(e,t),a.set(t,e);while(++d<c){var g=e[d],v=t[d];if(r)var I=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(I!==o){if(I)continue;h=!1;break}if(p){if(!xn(t,(function(e,t){if(!Jn(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){h=!1;break}}return a["delete"](e),a["delete"](t),h}function ja(e,t,n,r,i,o,a){switch(n){case he:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case de:return!(e.byteLength!=t.byteLength||!o(new Mt(e),new Mt(t)));case Q:case W:case ee:return il(+e,+t);case K:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case X:var s=ur;case ae:var c=r&m;if(s||(s=dr),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=y,a.set(e,t);var l=La(s(e),s(t),r,i,o,a);return a["delete"](e),l;case ce:if(pr)return pr.call(e)==pr.call(t)}return!1}function Pa(e,t,n,r,i,a){var s=n&m,c=za(e),u=c.length,l=za(t),f=l.length;if(u!=f&&!s)return!1;var d=u;while(d--){var h=c[d];if(!(s?h in t:ft.call(t,h)))return!1}var p=a.get(e),g=a.get(t);if(p&&g)return p==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);var y=s;while(++d<u){h=c[d];var I=e[h],M=t[h];if(r)var b=s?r(M,I,h,t,e,a):r(I,M,h,e,t,a);if(!(b===o?I===M||i(I,M,n,r,a):b)){v=!1;break}y||(y="constructor"==h)}if(v&&!y){var C=e.constructor,T=t.constructor;C==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof C&&C instanceof C&&"function"==typeof T&&T instanceof T||(v=!1)}return a["delete"](e),a["delete"](t),v}function Ua(e){return ws(Ms(e,o,Ws),e+"")}function za(e){return Li(e,Tf,Za)}function Ba(e){return Li(e,Af,Ka)}var Ga=sn?function(e){return sn.get(e)}:zd;function Ya(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 Ha(e){var t=ft.call(br,"placeholder")?br:e;return t.placeholder}function Fa(){var e=br.iteratee||xd;return e=e===xd?to:e,arguments.length?e(arguments[0],arguments[1]):e}function $a(e,t){var n=e.__data__;return us(t)?n["string"==typeof t?"string":"hash"]:n.map}function Va(e){var t=Tf(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ps(i)]}return t}function Qa(e,t){var n=or(e,t);return qi(n)?n:o}function Wa(e){var t=ft.call(e,Nt),n=e[Nt];try{e[Nt]=o;var r=!0}catch(a){}var i=pt.call(e);return r&&(t?e[Nt]=n:delete e[Nt]),i}var Za=Lt?function(e){return null==e?[]:(e=nt(e),_n(Lt(e),(function(t){return At.call(e,t)})))}:Wd,Ka=Lt?function(e){var t=[];while(e)Sn(t,Za(e)),e=Ct(e);return t}:Wd,qa=ji;function Ja(e,t,n){var r=-1,i=n.length;while(++r<i){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Gt(t,e+a);break;case"takeRight":e=Bt(e,t-a);break}}return{start:e,end:t}}function Xa(e){var t=e.match(Ge);return t?t[1].split(Ye):[]}function es(e,t,n){t=Fo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Ds(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Tl(i)&&as(a,i)&&(cl(e)||sl(e)))}function ts(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 ns(e){return"function"!=typeof e.constructor||hs(e)?{}:Tr(Ct(e))}function rs(e,t,n){var r=e.constructor;switch(t){case de:return Zo(e);case Q:case W:return new r(+e);case he:return Ko(e,n);case pe:case ge:case ve:case me:case ye:case Ie:case Me:case be:case Ce:return Xo(e,n);case X:return new r;case ee:case se:return new r(e);case oe:return qo(e);case ae:return new r;case ce:return Jo(e)}}function is(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(Be,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return cl(e)||sl(e)||!!(wt&&e&&e[wt])}function as(e,t){var n=typeof e;return t=null==t?P:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Al(n))return!1;var r=typeof t;return!!("number"==r?ll(n)&&as(t,n.length):"string"==r&&t in n)&&il(n[t],e)}function cs(e,t){if(cl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!zl(e))||(ke.test(e)||!Re.test(e)||null!=t&&e in nt(t))}function us(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ls(e){var t=Ya(e),n=br[t];if("function"!=typeof n||!(t in Er.prototype))return!1;if(e===n)return!0;var r=Ga(n);return!!r&&e===r[0]}function fs(e){return!!ht&&ht in e}(Wt&&qa(new Wt(new ArrayBuffer(1)))!=he||Xt&&qa(new Xt)!=X||en&&qa(en.resolve())!=re||tn&&qa(new tn)!=ae||nn&&qa(new nn)!=le)&&(qa=function(e){var t=ji(e),n=t==ne?e.constructor:o,r=n?xs(n):"";if(r)switch(r){case ln:return he;case dn:return X;case hn:return re;case Rn:return ae;case kn:return le}return t});var ds=ut?bl:Zd;function hs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function ps(e){return e===e&&!Al(e)}function gs(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in nt(n)))}}function vs(e){var t=Bu(e,(function(e){return n.size===d&&n.clear(),e})),n=t.cache;return t}function ms(e,t){var n=e[1],r=t[1],i=n|r,o=i<(I|M|w),a=r==w&&n==C||r==w&&n==E&&e[7].length<=t[8]||r==(w|E)&&t[7].length<=t[8]&&n==C;if(!o&&!a)return e;r&I&&(e[2]=t[2],i|=n&I?0:b);var s=t[3];if(s){var c=e[3];e[3]=c?na(c,s,t[4]):s,e[4]=c?fr(e[3],h):t[4]}return s=t[5],s&&(c=e[5],e[5]=c?ra(c,s,t[6]):s,e[6]=c?fr(e[5],h):t[6]),s=t[7],s&&(e[7]=s),r&w&&(e[8]=null==e[8]?t[8]:Gt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in nt(e))t.push(n);return t}function Is(e){return pt.call(e)}function Ms(e,t,r){return t=Bt(t===o?e.length-1:t,0),function(){var i=arguments,o=-1,a=Bt(i.length-t,0),s=n(a);while(++o<a)s[o]=i[t+o];o=-1;var c=n(t+1);while(++o<t)c[o]=i[o];return c[t]=r(s),Mn(e,this,c)}}function bs(e,t){return t.length<2?e:ki(e,No(t,0,-1))}function Cs(e,t){var n=e.length,r=Gt(t.length,n),i=ia(e);while(r--){var a=t[r];e[r]=as(a,n)?i[a]:o}return e}function Ts(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var As=Ns(_o),_s=xt||function(e,t){return cn.setTimeout(e,t)},ws=Ns(wo);function Es(e,t,n){var r=t+"";return ws(e,is(r,Rs(Xa(r),n)))}function Ns(e){var t=0,n=0;return function(){var r=Yt(),i=x-(r-n);if(n=r,i>0){if(++t>=D)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ss(e,t){var n=-1,r=e.length,i=r-1;t=t===o?r:t;while(++n<t){var a=yo(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Os=vs((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Le,(function(e,n,r,i){t.push(r?i.replace($e,"$1"):n||e)})),t}));function Ds(e){if("string"==typeof e||zl(e))return e;var t=e+"";return"0"==t&&1/e==-j?"-0":t}function xs(e){if(null!=e){try{return lt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Rs(e,t){return Cn(H,(function(n){var r="_."+n[0];t&n[1]&&!wn(e,r)&&e.push(r)})),e.sort()}function ks(e){if(e instanceof Er)return e.clone();var t=new wr(e.__wrapped__,e.__chain__);return t.__actions__=ia(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ls(e,t,r){t=(r?ss(e,t,r):t===o)?1:Bt(Wl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];var a=0,s=0,c=n(Rt(i/t));while(a<i)c[s++]=No(e,a,a+=t);return c}function js(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 Ps(){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 Sn(cl(r)?ia(r):[r],Ni(t,1))}var Us=bo((function(e,t){return fl(e)?bi(e,Ni(t,1,fl,!0)):[]})),zs=bo((function(e,t){var n=oc(t);return fl(n)&&(n=o),fl(e)?bi(e,Ni(t,1,fl,!0),Fa(n,2)):[]})),Bs=bo((function(e,t){var n=oc(t);return fl(n)&&(n=o),fl(e)?bi(e,Ni(t,1,fl,!0),o,n):[]}));function Gs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Wl(t),No(e,t<0?0:t,r)):[]}function Ys(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Wl(t),t=r-t,No(e,0,t<0?0:t)):[]}function Hs(e,t){return e&&e.length?Uo(e,Fa(t,3),!0,!0):[]}function Fs(e,t){return e&&e.length?Uo(e,Fa(t,3),!0):[]}function $s(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ss(e,t,n)&&(n=0,r=i),wi(e,t,n,r)):[]}function Vs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Wl(n);return i<0&&(i=Bt(r+i,0)),Pn(e,Fa(t,3),i)}function Qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=Wl(n),i=n<0?Bt(r+i,0):Gt(i,r-1)),Pn(e,Fa(t,3),i,!0)}function Ws(e){var t=null==e?0:e.length;return t?Ni(e,1):[]}function Zs(e){var t=null==e?0:e.length;return t?Ni(e,j):[]}function Ks(e,t){var n=null==e?0:e.length;return n?(t=t===o?1:Wl(t),Ni(e,t)):[]}function qs(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 Js(e){return e&&e.length?e[0]:o}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Wl(n);return i<0&&(i=Bt(r+i,0)),Un(e,t,i)}function ec(e){var t=null==e?0:e.length;return t?No(e,0,-1):[]}var tc=bo((function(e){var t=Nn(e,Yo);return t.length&&t[0]===e[0]?Gi(t):[]})),nc=bo((function(e){var t=oc(e),n=Nn(e,Yo);return t===oc(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Gi(n,Fa(t,2)):[]})),rc=bo((function(e){var t=oc(e),n=Nn(e,Yo);return t="function"==typeof t?t:o,t&&n.pop(),n.length&&n[0]===e[0]?Gi(n,o,t):[]}));function ic(e,t){return null==e?"":Ut.call(e,t)}function oc(e){var t=null==e?0:e.length;return t?e[t-1]:o}function ac(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=Wl(n),i=i<0?Bt(r+i,0):Gt(i,r-1)),t===t?gr(e,t,i):Pn(e,Bn,i,!0)}function sc(e,t){return e&&e.length?lo(e,Wl(t)):o}var cc=bo(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,Fa(n,2)):e}function fc(e,t,n){return e&&e.length&&t&&t.length?vo(e,t,o,n):e}var dc=Ua((function(e,t){var n=null==e?0:e.length,r=gi(e,t);return mo(e,Nn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),r}));function hc(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;t=Fa(t,3);while(++r<o){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return mo(e,i),n}function pc(e){return null==e?e:Qt.call(e)}function gc(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ss(e,t,n)?(t=0,n=r):(t=null==t?0:Wl(t),n=n===o?r:Wl(n)),No(e,t,n)):[]}function vc(e,t){return Oo(e,t)}function mc(e,t,n){return Do(e,t,Fa(n,2))}function yc(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 Mc(e,t,n){return Do(e,t,Fa(n,2),!0)}function bc(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?xo(e):[]}function Tc(e,t){return e&&e.length?xo(e,Fa(t,2)):[]}function Ac(e){var t=null==e?0:e.length;return t?No(e,1,t):[]}function _c(e,t,n){return e&&e.length?(t=n||t===o?1:Wl(t),No(e,0,t<0?0:t)):[]}function wc(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===o?1:Wl(t),t=r-t,No(e,t<0?0:t,r)):[]}function Ec(e,t){return e&&e.length?Uo(e,Fa(t,3),!1,!0):[]}function Nc(e,t){return e&&e.length?Uo(e,Fa(t,3)):[]}var Sc=bo((function(e){return Lo(Ni(e,1,fl,!0))})),Oc=bo((function(e){var t=oc(e);return fl(t)&&(t=o),Lo(Ni(e,1,fl,!0),Fa(t,2))})),Dc=bo((function(e){var t=oc(e);return t="function"==typeof t?t:o,Lo(Ni(e,1,fl,!0),o,t)}));function xc(e){return e&&e.length?Lo(e):[]}function Rc(e,t){return e&&e.length?Lo(e,Fa(t,2)):[]}function kc(e,t){return t="function"==typeof t?t:o,e&&e.length?Lo(e,o,t):[]}function Lc(e){if(!e||!e.length)return[];var t=0;return e=_n(e,(function(e){if(fl(e))return t=Bt(e.length,t),!0})),Qn(t,(function(t){return Nn(e,Yn(t))}))}function jc(e,t){if(!e||!e.length)return[];var n=Lc(e);return null==t?n:Nn(n,(function(e){return Mn(t,o,e)}))}var Pc=bo((function(e,t){return fl(e)?bi(e,t):[]})),Uc=bo((function(e){return Bo(_n(e,fl))})),zc=bo((function(e){var t=oc(e);return fl(t)&&(t=o),Bo(_n(e,fl),Fa(t,2))})),Bc=bo((function(e){var t=oc(e);return t="function"==typeof t?t:o,Bo(_n(e,fl),o,t)})),Gc=bo(Lc);function Yc(e,t){return Go(e||[],t||[],ui)}function Hc(e,t){return Go(e||[],t||[],Ao)}var Fc=bo((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,jc(e,n)}));function $c(e){var t=br(e);return t.__chain__=!0,t}function Vc(e,t){return t(e),e}function Qc(e,t){return t(e)}var Wc=Ua((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 Er&&as(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Qc,args:[i],thisArg:o}),new wr(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));function Zc(){return $c(this)}function Kc(){return new wr(this.value(),this.__chain__)}function qc(){this.__values__===o&&(this.__values__=Vl(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 _r){var r=ks(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 Er){var t=e;return this.__actions__.length&&(t=new Er(this)),t=t.reverse(),t.__actions__.push({func:Qc,args:[pc],thisArg:o}),new wr(t,this.__chain__)}return this.thru(pc)}function tu(){return zo(this.__wrapped__,this.__actions__)}var nu=ca((function(e,t,n){ft.call(e,n)?++e[n]:pi(e,n,1)}));function ru(e,t,n){var r=cl(e)?An:Ai;return n&&ss(e,t,n)&&(t=o),r(e,Fa(t,3))}function iu(e,t){var n=cl(e)?_n:Ei;return n(e,Fa(t,3))}var ou=ma(Vs),au=ma(Qs);function su(e,t){return Ni(vu(e,t),1)}function cu(e,t){return Ni(vu(e,t),j)}function uu(e,t,n){return n=n===o?1:Wl(n),Ni(vu(e,t),n)}function lu(e,t){var n=cl(e)?Cn:Ci;return n(e,Fa(t,3))}function fu(e,t){var n=cl(e)?Tn:Ti;return n(e,Fa(t,3))}var du=ca((function(e,t,n){ft.call(e,n)?e[n].push(t):pi(e,n,[t])}));function hu(e,t,n,r){e=ll(e)?e:Yf(e),n=n&&!r?Wl(n):0;var i=e.length;return n<0&&(n=Bt(i+n,0)),Ul(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Un(e,t,n)>-1}var pu=bo((function(e,t,r){var i=-1,o="function"==typeof t,a=ll(e)?n(e.length):[];return Ci(e,(function(e){a[++i]=o?Mn(t,e,r):Hi(e,t,r)})),a})),gu=ca((function(e,t,n){pi(e,n,t)}));function vu(e,t){var n=cl(e)?Nn:oo;return n(e,Fa(t,3))}function mu(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 yu=ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function Iu(e,t,n){var r=cl(e)?On:Fn,i=arguments.length<3;return r(e,Fa(t,4),n,i,Ci)}function Mu(e,t,n){var r=cl(e)?Dn:Fn,i=arguments.length<3;return r(e,Fa(t,4),n,i,Ti)}function bu(e,t){var n=cl(e)?_n:Ei;return n(e,Gu(Fa(t,3)))}function Cu(e){var t=cl(e)?oi:Co;return t(e)}function Tu(e,t,n){t=(n?ss(e,t,n):t===o)?1:Wl(t);var r=cl(e)?ai:To;return r(e,t)}function Au(e){var t=cl(e)?si:Eo;return t(e)}function _u(e){if(null==e)return 0;if(ll(e))return Ul(e)?vr(e):e.length;var t=qa(e);return t==X||t==ae?e.size:no(e).length}function wu(e,t,n){var r=cl(e)?xn:So;return n&&ss(e,t,n)&&(t=o),r(e,Fa(t,3))}var Eu=bo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),fo(e,Ni(t,1),[])})),Nu=Dt||function(){return cn.Date.now()};function Su(e,t){if("function"!=typeof t)throw new ot(u);return e=Wl(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,Da(e,w,o,o,o,o,t)}function Du(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Wl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var xu=bo((function(e,t,n){var r=I;if(n.length){var i=fr(n,Ha(xu));r|=A}return Da(e,r,t,n,i)})),Ru=bo((function(e,t,n){var r=I|M;if(n.length){var i=fr(n,Ha(Ru));r|=A}return Da(t,r,e,n,i)}));function ku(e,t,n){t=n?o:t;var r=Da(e,C,o,o,o,o,o,t);return r.placeholder=ku.placeholder,r}function Lu(e,t,n){t=n?o:t;var r=Da(e,T,o,o,o,o,o,t);return r.placeholder=Lu.placeholder,r}function ju(e,t,n){var r,i,a,s,c,l,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new ot(u);function g(t){var n=r,a=i;return r=i=o,f=t,s=e.apply(a,n),s}function v(e){return f=e,c=_s(I,t),d?g(e):s}function m(e){var n=e-l,r=e-f,i=t-n;return h?Gt(i,a-r):i}function y(e){var n=e-l,r=e-f;return l===o||n>=t||n<0||h&&r>=a}function I(){var e=Nu();if(y(e))return M(e);c=_s(I,m(e))}function M(e){return c=o,p&&r?g(e):(r=i=o,s)}function b(){c!==o&&Qo(c),f=0,r=l=i=c=o}function C(){return c===o?s:M(Nu())}function T(){var e=Nu(),n=y(e);if(r=arguments,i=this,l=e,n){if(c===o)return v(l);if(h)return Qo(c),c=_s(I,t),g(l)}return c===o&&(c=_s(I,t)),s}return t=Kl(t)||0,Al(n)&&(d=!!n.leading,h="maxWait"in n,a=h?Bt(Kl(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),T.cancel=b,T.flush=C,T}var Pu=bo((function(e,t){return Mi(e,1,t)})),Uu=bo((function(e,t,n){return Mi(e,Kl(t)||0,n)}));function zu(e){return Da(e,N)}function Bu(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 a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Bu.Cache||Hr),n}function Gu(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 Yu(e){return Du(2,e)}Bu.Cache=Hr;var Hu=$o((function(e,t){t=1==t.length&&cl(t[0])?Nn(t[0],Kn(Fa())):Nn(Ni(t,1),Kn(Fa()));var n=t.length;return bo((function(r){var i=-1,o=Gt(r.length,n);while(++i<o)r[i]=t[i].call(this,r[i]);return Mn(e,this,r)}))})),Fu=bo((function(e,t){var n=fr(t,Ha(Fu));return Da(e,A,o,t,n)})),$u=bo((function(e,t){var n=fr(t,Ha($u));return Da(e,_,o,t,n)})),Vu=Ua((function(e,t){return Da(e,E,o,o,o,t)}));function Qu(e,t){if("function"!=typeof e)throw new ot(u);return t=t===o?t:Wl(t),bo(e,t)}function Wu(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Bt(Wl(t),0),bo((function(n){var r=n[t],i=Vo(n,0,t);return r&&Sn(i,r),Mn(e,this,i)}))}function Zu(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(u);return Al(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ju(e,t,{leading:r,maxWait:t,trailing:i})}function Ku(e){return Ou(e,1)}function qu(e,t){return Fu(Ho(t),e)}function Ju(){if(!arguments.length)return[];var e=arguments[0];return cl(e)?e:[e]}function Xu(e){return mi(e,v)}function el(e,t){return t="function"==typeof t?t:o,mi(e,v,t)}function tl(e){return mi(e,p|v)}function nl(e,t){return t="function"==typeof t?t:o,mi(e,p|v,t)}function rl(e,t){return null==t||Ii(e,t,Tf(t))}function il(e,t){return e===t||e!==e&&t!==t}var ol=wa(Pi),al=wa((function(e,t){return e>=t})),sl=Fi(function(){return arguments}())?Fi:function(e){return _l(e)&&ft.call(e,"callee")&&!At.call(e,"callee")},cl=n.isArray,ul=pn?Kn(pn):$i;function ll(e){return null!=e&&Tl(e.length)&&!bl(e)}function fl(e){return _l(e)&&ll(e)}function dl(e){return!0===e||!1===e||_l(e)&&ji(e)==Q}var hl=jt||Zd,pl=gn?Kn(gn):Vi;function gl(e){return _l(e)&&1===e.nodeType&&!kl(e)}function vl(e){if(null==e)return!0;if(ll(e)&&(cl(e)||"string"==typeof e||"function"==typeof e.splice||hl(e)||Bl(e)||sl(e)))return!e.length;var t=qa(e);if(t==X||t==ae)return!e.size;if(hs(e))return!no(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function ml(e,t){return Qi(e,t)}function yl(e,t,n){n="function"==typeof n?n:o;var r=n?n(e,t):o;return r===o?Qi(e,t,o,n):!!r}function Il(e){if(!_l(e))return!1;var t=ji(e);return t==K||t==Z||"string"==typeof e.message&&"string"==typeof e.name&&!kl(e)}function Ml(e){return"number"==typeof e&&Pt(e)}function bl(e){if(!Al(e))return!1;var t=ji(e);return t==q||t==J||t==V||t==ie}function Cl(e){return"number"==typeof e&&e==Wl(e)}function Tl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=P}function Al(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function _l(e){return null!=e&&"object"==typeof e}var wl=vn?Kn(vn):Zi;function El(e,t){return e===t||Ki(e,t,Va(t))}function Nl(e,t,n){return n="function"==typeof n?n:o,Ki(e,t,Va(t),n)}function Sl(e){return Rl(e)&&e!=+e}function Ol(e){if(ds(e))throw new i(c);return qi(e)}function Dl(e){return null===e}function xl(e){return null==e}function Rl(e){return"number"==typeof e||_l(e)&&ji(e)==ee}function kl(e){if(!_l(e)||ji(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&&lt.call(n)==gt}var Ll=mn?Kn(mn):Ji;function jl(e){return Cl(e)&&e>=-P&&e<=P}var Pl=yn?Kn(yn):Xi;function Ul(e){return"string"==typeof e||!cl(e)&&_l(e)&&ji(e)==se}function zl(e){return"symbol"==typeof e||_l(e)&&ji(e)==ce}var Bl=In?Kn(In):eo;function Gl(e){return e===o}function Yl(e){return _l(e)&&qa(e)==le}function Hl(e){return _l(e)&&ji(e)==fe}var Fl=wa(io),$l=wa((function(e,t){return e<=t}));function Vl(e){if(!e)return[];if(ll(e))return Ul(e)?mr(e):ia(e);if(Et&&e[Et])return cr(e[Et]());var t=qa(e),n=t==X?ur:t==ae?dr:Yf;return n(e)}function Ql(e){if(!e)return 0===e?e:0;if(e=Kl(e),e===j||e===-j){var t=e<0?-1:1;return t*U}return e===e?e:0}function Wl(e){var t=Ql(e),n=t%1;return t===t?n?t-n:t:0}function Zl(e){return e?vi(Wl(e),0,B):0}function Kl(e){if("number"==typeof e)return e;if(zl(e))return z;if(Al(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Al(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var n=Ze.test(e);return n||qe.test(e)?on(e.slice(2),n?2:8):We.test(e)?z:+e}function ql(e){return oa(e,Af(e))}function Jl(e){return e?vi(Wl(e),-P,P):0===e?e:0}function Xl(e){return null==e?"":ko(e)}var ef=ua((function(e,t){if(hs(t)||ll(t))oa(t,Tf(t),e);else for(var n in t)ft.call(t,n)&&ui(e,n,t[n])})),tf=ua((function(e,t){oa(t,Af(t),e)})),nf=ua((function(e,t,n,r){oa(t,Af(t),e,r)})),rf=ua((function(e,t,n,r){oa(t,Tf(t),e,r)})),of=Ua(gi);function af(e,t){var n=Tr(e);return null==t?n:di(n,t)}var sf=bo((function(e,t){e=nt(e);var n=-1,r=t.length,i=r>2?t[2]:o;i&&ss(t[0],t[1],i)&&(r=1);while(++n<r){var a=t[n],s=Af(a),c=-1,u=s.length;while(++c<u){var l=s[c],f=e[l];(f===o||il(f,ct[l])&&!ft.call(e,l))&&(e[l]=a[l])}}return e})),cf=bo((function(e){return e.push(o,Ra),Mn(Nf,o,e)}));function uf(e,t){return jn(e,Fa(t,3),Di)}function lf(e,t){return jn(e,Fa(t,3),xi)}function ff(e,t){return null==e?e:Si(e,Fa(t,3),Af)}function df(e,t){return null==e?e:Oi(e,Fa(t,3),Af)}function hf(e,t){return e&&Di(e,Fa(t,3))}function pf(e,t){return e&&xi(e,Fa(t,3))}function gf(e){return null==e?[]:Ri(e,Tf(e))}function vf(e){return null==e?[]:Ri(e,Af(e))}function mf(e,t,n){var r=null==e?o:ki(e,t);return r===o?n:r}function yf(e,t){return null!=e&&es(e,t,Ui)}function If(e,t){return null!=e&&es(e,t,zi)}var Mf=Ma((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n}),Ed(Dd)),bf=Ma((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]}),Fa),Cf=bo(Hi);function Tf(e){return ll(e)?ii(e):no(e)}function Af(e){return ll(e)?ii(e,!0):ro(e)}function _f(e,t){var n={};return t=Fa(t,3),Di(e,(function(e,r,i){pi(n,t(e,r,i),e)})),n}function wf(e,t){var n={};return t=Fa(t,3),Di(e,(function(e,r,i){pi(n,r,t(e,r,i))})),n}var Ef=ua((function(e,t,n){co(e,t,n)})),Nf=ua((function(e,t,n,r){co(e,t,n,r)})),Sf=Ua((function(e,t){var n={};if(null==e)return n;var r=!1;t=Nn(t,(function(t){return t=Fo(t,e),r||(r=t.length>1),t})),oa(e,Ba(e),n),r&&(n=mi(n,p|g|v,ka));var i=t.length;while(i--)jo(n,t[i]);return n}));function Of(e,t){return xf(e,Gu(Fa(t)))}var Df=Ua((function(e,t){return null==e?{}:ho(e,t)}));function xf(e,t){if(null==e)return{};var n=Nn(Ba(e),(function(e){return[e]}));return t=Fa(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Rf(e,t,n){t=Fo(t,e);var r=-1,i=t.length;i||(i=1,e=o);while(++r<i){var a=null==e?o:e[Ds(t[r])];a===o&&(r=i,a=n),e=bl(a)?a.call(e):a}return e}function kf(e,t,n){return null==e?e:Ao(e,t,n)}function Lf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Ao(e,t,n,r)}var jf=Oa(Tf),Pf=Oa(Af);function Uf(e,t,n){var r=cl(e),i=r||hl(e)||Bl(e);if(t=Fa(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Al(e)&&bl(o)?Tr(Ct(e)):{}}return(i?Cn:Di)(e,(function(e,r,i){return t(n,e,r,i)})),n}function zf(e,t){return null==e||jo(e,t)}function Bf(e,t,n){return null==e?e:Po(e,t,Ho(n))}function Gf(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Po(e,t,Ho(n),r)}function Yf(e){return null==e?[]:qn(e,Tf(e))}function Hf(e){return null==e?[]:qn(e,Af(e))}function Ff(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=Kl(n),n=n===n?n:0),t!==o&&(t=Kl(t),t=t===t?t:0),vi(Kl(e),t,n)}function $f(e,t,n){return t=Ql(t),n===o?(n=t,t=0):n=Ql(n),e=Kl(e),Bi(e,t,n)}function Vf(e,t,n){if(n&&"boolean"!=typeof n&&ss(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=Ql(e),t===o?(t=e,e=0):t=Ql(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Vt();return Gt(e+i*(t-e+rn("1e-"+((i+"").length-1))),t)}return yo(e,t)}var Qf=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?Wf(t):t)}));function Wf(e){return bd(Xl(e).toLowerCase())}function Zf(e){return e=Xl(e),e&&e.replace(Xe,nr).replace(Ft,"")}function Kf(e,t,n){e=Xl(e),t=ko(t);var r=e.length;n=n===o?r:vi(Wl(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function qf(e){return e=Xl(e),e&&Se.test(e)?e.replace(Ee,rr):e}function Jf(e){return e=Xl(e),e&&Pe.test(e)?e.replace(je,"\\$&"):e}var Xf=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ed=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),td=ha("toLowerCase");function nd(e,t,n){e=Xl(e),t=Wl(t);var r=t?vr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ta(kt(i),n)+e+Ta(Rt(i),n)}function rd(e,t,n){e=Xl(e),t=Wl(t);var r=t?vr(e):0;return t&&r<t?e+Ta(t-r,n):e}function id(e,t,n){e=Xl(e),t=Wl(t);var r=t?vr(e):0;return t&&r<t?Ta(t-r,n)+e:e}function od(e,t,n){return n||null==t?t=0:t&&(t=+t),$t(Xl(e).replace(Ue,""),t||0)}function ad(e,t,n){return t=(n?ss(e,t,n):t===o)?1:Wl(t),Mo(Xl(e),t)}function sd(){var e=arguments,t=Xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var cd=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function ud(e,t,n){return n&&"number"!=typeof n&&ss(e,t,n)&&(t=n=o),n=n===o?B:n>>>0,n?(e=Xl(e),e&&("string"==typeof t||null!=t&&!Ll(t))&&(t=ko(t),!t&&ar(e))?Vo(mr(e),0,n):e.split(t,n)):[]}var ld=pa((function(e,t,n){return e+(n?" ":"")+bd(t)}));function fd(e,t,n){return e=Xl(e),n=null==n?0:vi(Wl(n),0,e.length),t=ko(t),e.slice(n,n+t.length)==t}function dd(e,t,n){var r=br.templateSettings;n&&ss(e,t,n)&&(t=o),e=Xl(e),t=nf({},t,r,xa);var a,s,c=nf({},t.imports,r.imports,xa),u=Tf(c),f=qn(c,u),d=0,h=t.interpolate||et,p="__p += '",g=rt((t.escape||et).source+"|"+h.source+"|"+(h===xe?Ve:et).source+"|"+(t.evaluate||et).source+"|$","g"),v="//# sourceURL="+(ft.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kt+"]")+"\n";e.replace(g,(function(t,n,r,i,o,c){return r||(r=i),p+=e.slice(d,c).replace(tt,ir),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),o&&(s=!0,p+="';\n"+o+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),d=c+t.length,t})),p+="';\n";var m=ft.call(t,"variable")&&t.variable;if(m){if(Fe.test(m))throw new i(l)}else p="with (obj) {\n"+p+"\n}\n";p=(s?p.replace(Te,""):p).replace(Ae,"$1").replace(_e,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Td((function(){return ze(u,v+"return "+p).apply(o,f)}));if(y.source=p,Il(y))throw y;return y}function hd(e){return Xl(e).toLowerCase()}function pd(e){return Xl(e).toUpperCase()}function gd(e,t,n){if(e=Xl(e),e&&(n||t===o))return Zn(e);if(!e||!(t=ko(t)))return e;var r=mr(e),i=mr(t),a=Xn(r,i),s=er(r,i)+1;return Vo(r,a,s).join("")}function vd(e,t,n){if(e=Xl(e),e&&(n||t===o))return e.slice(0,yr(e)+1);if(!e||!(t=ko(t)))return e;var r=mr(e),i=er(r,mr(t))+1;return Vo(r,0,i).join("")}function md(e,t,n){if(e=Xl(e),e&&(n||t===o))return e.replace(Ue,"");if(!e||!(t=ko(t)))return e;var r=mr(e),i=Xn(r,mr(t));return Vo(r,i).join("")}function yd(e,t){var n=S,r=O;if(Al(t)){var i="separator"in t?t.separator:i;n="length"in t?Wl(t.length):n,r="omission"in t?ko(t.omission):r}e=Xl(e);var a=e.length;if(ar(e)){var s=mr(e);a=s.length}if(n>=a)return e;var c=n-vr(r);if(c<1)return r;var u=s?Vo(s,0,c).join(""):e.slice(0,c);if(i===o)return u+r;if(s&&(c+=u.length-c),Ll(i)){if(e.slice(c).search(i)){var l,f=u;i.global||(i=rt(i.source,Xl(Qe.exec(i))+"g")),i.lastIndex=0;while(l=i.exec(f))var d=l.index;u=u.slice(0,d===o?c:d)}}else if(e.indexOf(ko(i),c)!=c){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r}function Id(e){return e=Xl(e),e&&Ne.test(e)?e.replace(we,Ir):e}var Md=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),bd=ha("toUpperCase");function Cd(e,t,n){return e=Xl(e),t=n?o:t,t===o?sr(e)?Cr(e):Ln(e):e.match(t)||[]}var Td=bo((function(e,t){try{return Mn(e,o,t)}catch(n){return Il(n)?n:new i(n)}})),Ad=Ua((function(e,t){return Cn(t,(function(t){t=Ds(t),pi(e,t,xu(e[t],e))})),e}));function _d(e){var t=null==e?0:e.length,n=Fa();return e=t?Nn(e,(function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]})):[],bo((function(n){var r=-1;while(++r<t){var i=e[r];if(Mn(i[0],this,n))return Mn(i[1],this,n)}}))}function wd(e){return yi(mi(e,p))}function Ed(e){return function(){return e}}function Nd(e,t){return null==e||e!==e?t:e}var Sd=ya(),Od=ya(!0);function Dd(e){return e}function xd(e){return to("function"==typeof e?e:mi(e,p))}function Rd(e){return ao(mi(e,p))}function kd(e,t){return so(e,mi(t,p))}var Ld=bo((function(e,t){return function(n){return Hi(n,e,t)}})),jd=bo((function(e,t){return function(n){return Hi(e,n,t)}}));function Pd(e,t,n){var r=Tf(t),i=Ri(t,r);null!=n||Al(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ri(t,Tf(t)));var o=!(Al(n)&&"chain"in n)||!!n.chain,a=bl(e);return Cn(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=ia(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Sn([this.value()],arguments))})})),e}function Ud(){return cn._===this&&(cn._=vt),this}function zd(){}function Bd(e){return e=Wl(e),bo((function(t){return lo(t,e)}))}var Gd=Ca(Nn),Yd=Ca(An),Hd=Ca(xn);function Fd(e){return cs(e)?Yn(Ds(e)):go(e)}function $d(e){return function(t){return null==e?o:ki(e,t)}}var Vd=_a(),Qd=_a(!0);function Wd(){return[]}function Zd(){return!1}function Kd(){return{}}function qd(){return""}function Jd(){return!0}function Xd(e,t){if(e=Wl(e),e<1||e>P)return[];var n=B,r=Gt(e,B);t=Fa(t),e-=B;var i=Qn(r,t);while(++n<e)t(n);return i}function eh(e){return cl(e)?Nn(e,Ds):zl(e)?[e]:ia(Os(Xl(e)))}function th(e){var t=++dt;return Xl(e)+t}var nh=ba((function(e,t){return e+t}),0),rh=Na("ceil"),ih=ba((function(e,t){return e/t}),1),oh=Na("floor");function ah(e){return e&&e.length?_i(e,Dd,Pi):o}function sh(e,t){return e&&e.length?_i(e,Fa(t,2),Pi):o}function ch(e){return Gn(e,Dd)}function uh(e,t){return Gn(e,Fa(t,2))}function lh(e){return e&&e.length?_i(e,Dd,io):o}function fh(e,t){return e&&e.length?_i(e,Fa(t,2),io):o}var dh=ba((function(e,t){return e*t}),1),hh=Na("round"),ph=ba((function(e,t){return e-t}),0);function gh(e){return e&&e.length?Vn(e,Dd):0}function vh(e,t){return e&&e.length?Vn(e,Fa(t,2)):0}return br.after=Su,br.ary=Ou,br.assign=ef,br.assignIn=tf,br.assignInWith=nf,br.assignWith=rf,br.at=of,br.before=Du,br.bind=xu,br.bindAll=Ad,br.bindKey=Ru,br.castArray=Ju,br.chain=$c,br.chunk=Ls,br.compact=js,br.concat=Ps,br.cond=_d,br.conforms=wd,br.constant=Ed,br.countBy=nu,br.create=af,br.curry=ku,br.curryRight=Lu,br.debounce=ju,br.defaults=sf,br.defaultsDeep=cf,br.defer=Pu,br.delay=Uu,br.difference=Us,br.differenceBy=zs,br.differenceWith=Bs,br.drop=Gs,br.dropRight=Ys,br.dropRightWhile=Hs,br.dropWhile=Fs,br.fill=$s,br.filter=iu,br.flatMap=su,br.flatMapDeep=cu,br.flatMapDepth=uu,br.flatten=Ws,br.flattenDeep=Zs,br.flattenDepth=Ks,br.flip=zu,br.flow=Sd,br.flowRight=Od,br.fromPairs=qs,br.functions=gf,br.functionsIn=vf,br.groupBy=du,br.initial=ec,br.intersection=tc,br.intersectionBy=nc,br.intersectionWith=rc,br.invert=Mf,br.invertBy=bf,br.invokeMap=pu,br.iteratee=xd,br.keyBy=gu,br.keys=Tf,br.keysIn=Af,br.map=vu,br.mapKeys=_f,br.mapValues=wf,br.matches=Rd,br.matchesProperty=kd,br.memoize=Bu,br.merge=Ef,br.mergeWith=Nf,br.method=Ld,br.methodOf=jd,br.mixin=Pd,br.negate=Gu,br.nthArg=Bd,br.omit=Sf,br.omitBy=Of,br.once=Yu,br.orderBy=mu,br.over=Gd,br.overArgs=Hu,br.overEvery=Yd,br.overSome=Hd,br.partial=Fu,br.partialRight=$u,br.partition=yu,br.pick=Df,br.pickBy=xf,br.property=Fd,br.propertyOf=$d,br.pull=cc,br.pullAll=uc,br.pullAllBy=lc,br.pullAllWith=fc,br.pullAt=dc,br.range=Vd,br.rangeRight=Qd,br.rearg=Vu,br.reject=bu,br.remove=hc,br.rest=Qu,br.reverse=pc,br.sampleSize=Tu,br.set=kf,br.setWith=Lf,br.shuffle=Au,br.slice=gc,br.sortBy=Eu,br.sortedUniq=Cc,br.sortedUniqBy=Tc,br.split=ud,br.spread=Wu,br.tail=Ac,br.take=_c,br.takeRight=wc,br.takeRightWhile=Ec,br.takeWhile=Nc,br.tap=Vc,br.throttle=Zu,br.thru=Qc,br.toArray=Vl,br.toPairs=jf,br.toPairsIn=Pf,br.toPath=eh,br.toPlainObject=ql,br.transform=Uf,br.unary=Ku,br.union=Sc,br.unionBy=Oc,br.unionWith=Dc,br.uniq=xc,br.uniqBy=Rc,br.uniqWith=kc,br.unset=zf,br.unzip=Lc,br.unzipWith=jc,br.update=Bf,br.updateWith=Gf,br.values=Yf,br.valuesIn=Hf,br.without=Pc,br.words=Cd,br.wrap=qu,br.xor=Uc,br.xorBy=zc,br.xorWith=Bc,br.zip=Gc,br.zipObject=Yc,br.zipObjectDeep=Hc,br.zipWith=Fc,br.entries=jf,br.entriesIn=Pf,br.extend=tf,br.extendWith=nf,Pd(br,br),br.add=nh,br.attempt=Td,br.camelCase=Qf,br.capitalize=Wf,br.ceil=rh,br.clamp=Ff,br.clone=Xu,br.cloneDeep=tl,br.cloneDeepWith=nl,br.cloneWith=el,br.conformsTo=rl,br.deburr=Zf,br.defaultTo=Nd,br.divide=ih,br.endsWith=Kf,br.eq=il,br.escape=qf,br.escapeRegExp=Jf,br.every=ru,br.find=ou,br.findIndex=Vs,br.findKey=uf,br.findLast=au,br.findLastIndex=Qs,br.findLastKey=lf,br.floor=oh,br.forEach=lu,br.forEachRight=fu,br.forIn=ff,br.forInRight=df,br.forOwn=hf,br.forOwnRight=pf,br.get=mf,br.gt=ol,br.gte=al,br.has=yf,br.hasIn=If,br.head=Js,br.identity=Dd,br.includes=hu,br.indexOf=Xs,br.inRange=$f,br.invoke=Cf,br.isArguments=sl,br.isArray=cl,br.isArrayBuffer=ul,br.isArrayLike=ll,br.isArrayLikeObject=fl,br.isBoolean=dl,br.isBuffer=hl,br.isDate=pl,br.isElement=gl,br.isEmpty=vl,br.isEqual=ml,br.isEqualWith=yl,br.isError=Il,br.isFinite=Ml,br.isFunction=bl,br.isInteger=Cl,br.isLength=Tl,br.isMap=wl,br.isMatch=El,br.isMatchWith=Nl,br.isNaN=Sl,br.isNative=Ol,br.isNil=xl,br.isNull=Dl,br.isNumber=Rl,br.isObject=Al,br.isObjectLike=_l,br.isPlainObject=kl,br.isRegExp=Ll,br.isSafeInteger=jl,br.isSet=Pl,br.isString=Ul,br.isSymbol=zl,br.isTypedArray=Bl,br.isUndefined=Gl,br.isWeakMap=Yl,br.isWeakSet=Hl,br.join=ic,br.kebabCase=Xf,br.last=oc,br.lastIndexOf=ac,br.lowerCase=ed,br.lowerFirst=td,br.lt=Fl,br.lte=$l,br.max=ah,br.maxBy=sh,br.mean=ch,br.meanBy=uh,br.min=lh,br.minBy=fh,br.stubArray=Wd,br.stubFalse=Zd,br.stubObject=Kd,br.stubString=qd,br.stubTrue=Jd,br.multiply=dh,br.nth=sc,br.noConflict=Ud,br.noop=zd,br.now=Nu,br.pad=nd,br.padEnd=rd,br.padStart=id,br.parseInt=od,br.random=Vf,br.reduce=Iu,br.reduceRight=Mu,br.repeat=ad,br.replace=sd,br.result=Rf,br.round=hh,br.runInContext=e,br.sample=Cu,br.size=_u,br.snakeCase=cd,br.some=wu,br.sortedIndex=vc,br.sortedIndexBy=mc,br.sortedIndexOf=yc,br.sortedLastIndex=Ic,br.sortedLastIndexBy=Mc,br.sortedLastIndexOf=bc,br.startCase=ld,br.startsWith=fd,br.subtract=ph,br.sum=gh,br.sumBy=vh,br.template=dd,br.times=Xd,br.toFinite=Ql,br.toInteger=Wl,br.toLength=Zl,br.toLower=hd,br.toNumber=Kl,br.toSafeInteger=Jl,br.toString=Xl,br.toUpper=pd,br.trim=gd,br.trimEnd=vd,br.trimStart=md,br.truncate=yd,br.unescape=Id,br.uniqueId=th,br.upperCase=Md,br.upperFirst=bd,br.each=lu,br.eachRight=fu,br.first=Js,Pd(br,function(){var e={};return Di(br,(function(t,n){ft.call(br.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),br.VERSION=a,Cn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){br[e].placeholder=br})),Cn(["drop","take"],(function(e,t){Er.prototype[e]=function(n){n=n===o?1:Bt(Wl(n),0);var r=this.__filtered__&&!t?new Er(this):this.clone();return r.__filtered__?r.__takeCount__=Gt(n,r.__takeCount__):r.__views__.push({size:Gt(n,B),type:e+(r.__dir__<0?"Right":"")}),r},Er.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Cn(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=n==R||n==L;Er.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Fa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Cn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Er.prototype[e]=function(){return this[n](1).value()[0]}})),Cn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Er.prototype[e]=function(){return this.__filtered__?new Er(this):this[n](1)}})),Er.prototype.compact=function(){return this.filter(Dd)},Er.prototype.find=function(e){return this.filter(e).head()},Er.prototype.findLast=function(e){return this.reverse().find(e)},Er.prototype.invokeMap=bo((function(e,t){return"function"==typeof e?new Er(this):this.map((function(n){return Hi(n,e,t)}))})),Er.prototype.reject=function(e){return this.filter(Gu(Fa(e)))},Er.prototype.slice=function(e,t){e=Wl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Er(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(t=Wl(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Er.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Er.prototype.toArray=function(){return this.take(B)},Di(Er.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=br[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(br.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Er,u=s[0],l=c||cl(t),f=function(e){var t=i.apply(br,Sn([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,g=c&&!h;if(!a&&l){t=g?t:new Er(this);var v=e.apply(t,s);return v.__actions__.push({func:Qc,args:[f],thisArg:o}),new wr(v,d)}return p&&g?e.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Cn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);br.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)}))}})),Di(Er.prototype,(function(e,t){var n=br[t];if(n){var r=n.name+"";ft.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}})),un[Ia(o,M).name]=[{name:"wrapper",func:o}],Er.prototype.clone=Nr,Er.prototype.reverse=Sr,Er.prototype.value=Or,br.prototype.at=Wc,br.prototype.chain=Zc,br.prototype.commit=Kc,br.prototype.next=qc,br.prototype.plant=Xc,br.prototype.reverse=eu,br.prototype.toJSON=br.prototype.valueOf=br.prototype.value=tu,br.prototype.first=br.prototype.head,Et&&(br.prototype[Et]=Jc),br},Ar=Tr();cn._=Ar,i=function(){return Ar}.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";
  37. /**
  38. * vuex v3.1.0
  39. * (c) 2019 Evan You
  40. * @license MIT
  41. */
  42. 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 D}));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 a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(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){a(this._children,e)},u.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},u.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},u.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(u.prototype,l);var f=function(e){this.register([],e,!1)};function d(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;d(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){d([],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&&a(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 h;var p=function(e){var t=this;void 0===e&&(e={}),!h&&"undefined"!==typeof window&&window.Vue&&N(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 h;var i=this,a=this,s=a.dispatch,c=a.commit;this.dispatch=function(e,t){return s.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),y(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:h.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 m(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),y(e,n,t)}function y(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=h.config.silent;h.config.silent=!0,e._vm=new h({data:{$$state:t},computed:o}),h.config.silent=s,e.strict&&_(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function I(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!o&&!i){var s=w(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){h.set(s,c,r.state)}))}var u=r.context=M(e,a,n);r.forEachMutation((function(t,n){var r=a+n;C(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;T(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;A(e,r,t,u)})),r.forEachChild((function(r,o){I(e,t,n.concat(o),r,i)}))}function M(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return b(e,t)}},state:{get:function(){return w(e.state,n)}}}),i}function b(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 T(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 A(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function _(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function w(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function E(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function N(e){h&&e===h||(h=e,r(h))}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=E(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=E(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return c.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,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),y(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=w(t.state,e.slice(0,-1));h.delete(n,e[e.length-1])})),m(this)},p.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,g);var S=L((function(e,t){var n={};return k(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=j(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=L((function(e,t){var n={};return k(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=j(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})),D=L((function(e,t){var n={};return k(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||j(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),x=L((function(e,t){var n={};return k(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=j(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})),R=function(e){return{mapState:S.bind(null,e),mapGetters:D.bind(null,e),mapMutations:O.bind(null,e),mapActions:x.bind(null,e)}};function k(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 L(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function j(e,t,n){var r=e._modulesNamespaceMap[n];return r}var P={Store:p,install:N,version:"3.1.0",mapState:S,mapMutations:O,mapGetters:D,mapActions:x,createNamespacedHelpers:R};t["a"]=P},"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,a=n>>>0;return o-(r>>>0)-((~i&a|~(i^a)&i-a>>>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)}})},"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 a=[];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)),a.push(i(t)+"="+i(e))})))})),o=a.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"),a=n("35e8"),s=n("481b"),c=n("8f60"),u=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,m,y,I,M){c(n,t,m);var b,C,T,A=function(e){if(!d&&e in N)return N[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)}},_=t+" Iterator",w=y==g,E=!1,N=e.prototype,S=N[f]||N[h]||y&&N[y],O=S||A(y),D=y?w?A("entries"):O:void 0,x="Array"==t&&N.entries||S;if(x&&(T=l(x.call(new e)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[f]||a(T,f,v))),w&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!d&&!E&&N[f]||a(N,f,O),s[t]=O,s[_]=v,y)if(b={values:w?O:A(g),keys:I?O:A(p),entries:D},M)for(C in b)C in N||o(N,C,b[C]);else i(i.P+i.F*(d||E),t,b);return b}},"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;
  43. /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  44. * @license MIT */(function(o,a){r=a,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 s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var c=e.render(!s),u=c.querySelector(t.barSelector),l=t.speed,f=t.easing;return c.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(u,i(r,l,f)),1===r?(a(c,{transition:"none",opacity:1}),c.offsetWidth,setTimeout((function(){a(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,s=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),l=document.querySelector(t.parent);return a(s,{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()}}(),a=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 s(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;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=l(e);s(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}))},"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"),a=o((function(){return"𠮷"!=="𠮷".at(0)}));r(r.P+r.F*a,"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),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>s)t[s++]=e;return t}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(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"),a=o.store||(o.store=new(n("10ad"))),s=function(e,t,n){var i=a.get(e);if(!i){if(!n)return;a.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=s(t,n,!1);return void 0!==r&&r.has(e)},u=function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},l=function(e,t,n,r){s(n,r,!0).set(e,t)},f=function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},d=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},h=function(e){i(i.S,"Reflect",e)};e.exports={store:a,map:s,has:c,get:u,set:l,keys:f,key:d,exp:h}},"37b5":function(e,t,n){"use strict";var r=n("5ca1"),i=n("7726"),o=n("8378"),a=n("8079")(),s=n("2b4c")("observable"),c=n("d8e8"),u=n("cb7c"),l=n("f605"),f=n("dcbc"),d=n("32e9"),h=n("4a59"),p=h.RETURN,g=function(e){return null==e?void 0:c(e)},v=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},y=function(e){m(e)||(e._o=void 0,v(e))},I=function(e,t){u(e),this._c=void 0,this._o=e,e=new M(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)}m(this)&&v(this)};I.prototype=f({},{unsubscribe:function(){y(this)}});var M=function(e){this._s=e};M.prototype=f({},{next:function(e){var t=this._s;if(!m(t)){var n=t._o;try{var r=g(n.next);if(r)return r.call(n,e)}catch(i){try{y(t)}finally{throw i}}}},error:function(e){var t=this._s;if(m(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(!m(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 b=function(e){l(this,b,"Observable","_f")._f=c(e)};f(b.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(b,{from:function(e){var t="function"===typeof this?this:b,n=g(u(e)[s]);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 a((function(){if(!n){try{if(h(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:b)((function(e){var t=!1;return a((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),d(b.prototype,s,(function(){return this})),r(r.G,{Observable:b}),n("7a56")("Observable")},"37c8":function(e,t,n){t.f=n("2b4c")},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}function i(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){s=!0,i=c}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}var o=n("06c5");function a(){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 s(e,t){return r(e)||i(e,t)||Object(o["a"])(e,t)||a()}n.d(t,"a",(function(){return s}))},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"),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),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,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 s=r(e),c=String(this),u=s.lastIndex;i(u,0)||(s.lastIndex=0);var l=o(s,c);return i(s.lastIndex,u)||(s.lastIndex=u),null===l?-1:l.index}]}))},"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"),a=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?a: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"),a=n("37c8"),s=n("86cc").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3a9c":function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("d8e8"),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},"3b2b":function(e,t,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),c=n("0bfb"),u=r.RegExp,l=u,f=u.prototype,d=/a/g,h=/a/g,p=new u(d)!==d;if(n("9e1e")&&(!p||n("79e5")((function(){return h[n("2b4c")("match")]=!1,u(d)!=d||u(h)==h||"/a/i"!=u(d,"i")})))){u=function(e,t){var n=this instanceof u,r=s(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=a(l),m=0;v.length>m;)g(v[m++]);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 a(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=a},"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 a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?h(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]=h(e[o],t,n):-1===e.indexOf(t)&&i.push(l(t,n))})),i}function d(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]=h(e[o],t[o],n):i[o]=l(t[o],n)})),i}function h(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:f},a=r===i;if(a){if(r){var s=o.arrayMerge||f;return s(e,t,n)}return d(e,t,n)}return l(t,n)}h.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 h(e,n,t)}))};var p=h;e.exports=p},"3ca5":function(e,t,n){var r=n("7726").parseInt,i=n("aa77").trim,o=n("fdef"),a=/^[-+]?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||(a.test(n)?16:10))}:r},"3eb1":function(e,t,n){"use strict";var r=n("0f7c"),i=n("00ce"),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(d){u=null}e.exports=function(e){var t=s(r,a,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 s(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}},"40b3":function(module,exports,__webpack_require__){(function(e,t){module.exports=t()})(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s="./index.js")}({"./index.js":
  45. /*!******************!*\
  46. !*** ./index.js ***!
  47. \******************/
  48. /*! no static exports found */function(e,t,n){var r=n(/*! ./src/cos */"./src/cos.js");e.exports=r},"./lib/base64.js":
  49. /*!***********************!*\
  50. !*** ./lib/base64.js ***!
  51. \***********************/
  52. /*! no static exports found */function(e,t){var n=function(e){e=e||{};var t,n=e.Base64,r="2.1.9",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(i),a=String.fromCharCode,s=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?a(192|t>>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(c,s)},l=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[i.charAt(n>>>18),i.charAt(n>>>12&63),t>=2?"=":i.charAt(n>>>6&63),t>=1?"=":i.charAt(63&n)];return r.join("")},f=e.btoa?function(t){return e.btoa(t)}:function(e){return e.replace(/[\s\S]{1,3}/g,l)},d=t?function(e){return(e.constructor===t.constructor?e:new t(e)).toString("base64")}:function(e){return f(u(e))},h=function(e,t){return t?d(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):d(String(e))},p=function(e){return h(e,!0)},g=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),v=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return a(55296+(n>>>10))+a(56320+(1023&n));case 3:return a((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},m=function(e){return e.replace(g,v)},y=function(e){var t=e.length,n=t%4,r=(t>0?o[e.charAt(0)]<<18:0)|(t>1?o[e.charAt(1)]<<12:0)|(t>2?o[e.charAt(2)]<<6:0)|(t>3?o[e.charAt(3)]:0),i=[a(r>>>16),a(r>>>8&255),a(255&r)];return i.length-=[0,0,2,1][n],i.join("")},I=e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/[\s\S]{1,4}/g,y)},M=t?function(e){return(e.constructor===t.constructor?e:new t(e,"base64")).toString()}:function(e){return m(I(e))},b=function(e){return M(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},C=function(){var t=e.Base64;return e.Base64=n,t},T={VERSION:r,atob:I,btoa:f,fromBase64:b,toBase64:h,utob:u,encode:h,encodeURI:p,btou:m,decode:b,noConflict:C};return T}();e.exports=n},"./lib/beacon.min.js":
  53. /*!***************************!*\
  54. !*** ./lib/beacon.min.js ***!
  55. \***************************/
  56. /*! no static exports found */function(e,t,n){var r,i,o=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");!function(a,s){"object"==o(t)&&"undefined"!=typeof e?e.exports=s():(r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i))}(0,(function(){"use strict";var e=function(t,n){return e=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])},e(t,n)},t=function(){return t=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},t.apply(this,arguments)};function n(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function r(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}}var i="__BEACON_",o="__BEACON_deviceId",a="last_report_time",s="sending_event_ids",c="beacon_config",u="beacon_config_request_time",l=function(){function e(){var e=this;this.emit=function(t,n){if(e){var r,i=e.__EventsList[t];if(null==i?void 0:i.length){i=i.slice();for(var o=0;o<i.length;o++){r=i[o];try{var a=r.callback.apply(e,[n]);if(1===r.type&&e.remove(t,r.callback),!1===a)break}catch(e){throw e}}}return e}},this.__EventsList={}}return e.prototype.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n].callback===t)return n;return-1},e.prototype.on=function(e,t,n){if(void 0===n&&(n=0),this){var r=this.__EventsList[e];if(r||(r=this.__EventsList[e]=[]),-1===this.indexOf(r,t)){var i={name:e,type:n||0,callback:t};return r.push(i),this}return this}},e.prototype.one=function(e,t){this.on(e,t,1)},e.prototype.remove=function(e,t){if(this){var n=this.__EventsList[e];if(!n)return null;if(!t){try{delete this.__EventsList[e]}catch(e){}return null}if(n.length){var r=this.indexOf(n,t);n.splice(r,1)}return this}},e}();function f(e,t){for(var n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o];if("string"==typeof a)n[d(o)]=d(a);else{if(t)throw new Error("value mast be string !!!!");n[d(String(o))]=d(String(a))}}return n}function d(e){if("string"!=typeof e)return e;try{return e.replace(new RegExp("\\|","g"),"%7C").replace(new RegExp("\\&","g"),"%26").replace(new RegExp("\\=","g"),"%3D").replace(new RegExp("\\+","g"),"%2B")}catch(e){return""}}function h(e){return String(e.A99)+String(e.A100)}var p=function(){},g=function(){function e(e){var n=this;this.lifeCycle=new l,this.uploadJobQueue=[],this.additionalParams={},this.delayTime=0,this._normalLogPipeline=function(e){if(!e||!e.reduce||!e.length)throw new TypeError("createPipeline 方法需要传入至少有一个 pipe 的数组");return 1===e.length?function(t,n){e[0](t,n||p)}:e.reduce((function(e,t){return function(n,r){return void 0===r&&(r=p),e(n,(function(e){return null==t?void 0:t(e,r)}))}}))}([function(e){n.send({url:n.strategy.getUploadUrl(),data:e,method:"post",contentType:"application/json;charset=UTF-8"},(function(){var t=n.config.onReportSuccess;"function"==typeof t&&t(JSON.stringify(e.events))}),(function(){var t=n.config.onReportFail;"function"==typeof t&&t(JSON.stringify(e.events))}))}]),function(e,t){if(!e)throw t instanceof Error?t:new Error(t)}(Boolean(e.appkey),"appkey must be initial"),this.config=t({},e)}return e.prototype.onUserAction=function(e,t){this.preReport(e,t,!1)},e.prototype.onDirectUserAction=function(e,t){this.preReport(e,t,!0)},e.prototype.preReport=function(e,t,n){e?this.strategy.isEventUpOnOff()&&(this.strategy.isBlackEvent(e)||this.strategy.isSampleEvent(e)||this.onReport(e,t,n)):this.errorReport.reportError("602"," no eventCode")},e.prototype.addAdditionalParams=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];this.additionalParams[r]=e[r]}},e.prototype.setChannelId=function(e){this.commonInfo.channelID=String(e)},e.prototype.setOpenId=function(e){this.commonInfo.openid=String(e)},e.prototype.setUnionid=function(e){this.commonInfo.unid=String(e)},e.prototype.getDeviceId=function(){return this.commonInfo.deviceId},e.prototype.getCommonInfo=function(){return this.commonInfo},e.prototype.removeSendingId=function(e){try{var t=JSON.parse(this.storage.getItem(s)),n=t.indexOf(e);-1!=n&&(t.splice(n,1),this.storage.setItem(s,JSON.stringify(t)))}catch(e){}},e}(),v=function(){function e(e,t,n,r){this.requestParams={},this.network=r,this.requestParams.attaid="00400014144",this.requestParams.token="6478159937",this.requestParams.product_id=e.appkey,this.requestParams.platform=n,this.requestParams.uin=t.deviceId,this.requestParams.model="",this.requestParams.os=n,this.requestParams.app_version=e.appVersion,this.requestParams.sdk_version=t.sdkVersion,this.requestParams.error_stack="",this.uploadUrl=e.isOversea?"https://htrace.wetvinfo.com/kv":"https://h.trace.qq.com/kv"}return e.prototype.reportError=function(e,t){this.requestParams._dc=Math.random(),this.requestParams.error_msg=t,this.requestParams.error_code=e,this.network.get(this.uploadUrl,{params:this.requestParams}).catch((function(e){}))},e}(),m=function(){function e(e,t,n,r,i){this.strategy={isEventUpOnOff:!0,httpsUploadUrl:"https://otheve.beacon.qq.com/analytics/v2_upload",requestInterval:30,blacklist:[],samplelist:[]},this.realSample={},this.appkey="",this.needQueryConfig=!0,this.appkey=t.appkey,this.storage=r,this.needQueryConfig=e;try{var o=JSON.parse(this.storage.getItem(c));o&&this.processData(o)}catch(e){}t.isOversea&&(this.strategy.httpsUploadUrl="https://svibeacon.onezapp.com/analytics/v2_upload"),!t.isOversea&&this.needRequestConfig()&&this.requestConfig(t.appVersion,n,i)}return e.prototype.requestConfig=function(e,t,n){var r=this;this.storage.setItem(u,Date.now().toString()),n.post("https://oth.str.beacon.qq.com/trpc.beacon.configserver.BeaconConfigService/QueryConfig",{platformId:"undefined"==typeof wx?"3":"4",mainAppKey:this.appkey,appVersion:e,sdkVersion:t.sdkVersion,osVersion:t.userAgent,model:"",packageName:"",params:{A3:t.deviceId}}).then((function(e){if(0==e.data.ret)try{var t=JSON.parse(e.data.beaconConfig);t&&(r.processData(t),r.storage.setItem(c,e.data.beaconConfig))}catch(e){}else r.processData(null),r.storage.setItem(c,"")})).catch((function(e){}))},e.prototype.processData=function(e){var t,n,r,i,o;this.strategy.isEventUpOnOff=null!==(t=null==e?void 0:e.isEventUpOnOff)&&void 0!==t?t:this.strategy.isEventUpOnOff,this.strategy.httpsUploadUrl=null!==(n=null==e?void 0:e.httpsUploadUrl)&&void 0!==n?n:this.strategy.httpsUploadUrl,this.strategy.requestInterval=null!==(r=null==e?void 0:e.requestInterval)&&void 0!==r?r:this.strategy.requestInterval,this.strategy.blacklist=null!==(i=null==e?void 0:e.blacklist)&&void 0!==i?i:this.strategy.blacklist,this.strategy.samplelist=null!==(o=null==e?void 0:e.samplelist)&&void 0!==o?o:this.strategy.samplelist;for(var a=0,s=this.strategy.samplelist;a<s.length;a++){var c=s[a].split(",");2==c.length&&(this.realSample[c[0]]=c[1])}},e.prototype.needRequestConfig=function(){if(!this.needQueryConfig)return!1;var e=Number(this.storage.getItem(u));return Date.now()-e>60*this.strategy.requestInterval*1e3},e.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},e.prototype.isBlackEvent=function(e){return-1!=this.strategy.blacklist.indexOf(e)},e.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},e.prototype.isSampleEvent=function(e){return!!Object.prototype.hasOwnProperty.call(this.realSample,e)&&this.realSample[e]<Math.floor(Math.random()*Math.floor(1e4))},e}(),y="session_storage_key",I=function(){function e(e,t,n){this.getSessionStackDepth=0,this.beacon=n,this.storage=e,this.duration=t,this.appkey=n.config.appkey}return e.prototype.getSession=function(){this.getSessionStackDepth+=1;var e=this.storage.getItem(y);if(!e)return this.createSession();var t="",n=0;try{var r=JSON.parse(e)||{sessionId:void 0,sessionStart:void 0};if(!r.sessionId||!r.sessionStart)return this.createSession();var i=Number(this.storage.getItem(a));if(Date.now()-i>this.duration)return this.createSession();t=r.sessionId,n=r.sessionStart,this.getSessionStackDepth=0}catch(e){}return{sessionId:t,sessionStart:n}},e.prototype.createSession=function(){var e=Date.now(),t={sessionId:this.appkey+"_"+e.toString(),sessionStart:e};this.storage.setItem(y,JSON.stringify(t)),this.storage.setItem(a,e.toString());var n="is_new_user",r=this.storage.getItem(n);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:r?"N":"Y"}),this.storage.setItem(n,JSON.stringify(!1)),t},e}();function M(){var e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,r=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);var i=parseFloat(RegExp.$1);return 7==i?7:8==i?8:9==i?9:10==i?10:6}return n?-2:r?11:-1}function b(e,t){var n,r;return(n="https://tun-cos-1258344701.file.myqcloud.com/fp.js",void 0===r&&(r=Date.now()+"-"+Math.random()),new Promise((function(e,t){if(document.getElementById(r))e(void 0);else{var i=document.getElementsByTagName("head")[0],o=document.createElement("script");o.onload=function(){return function(){o.onload=null,e(void 0)}},o.onerror=function(e){o.onerror=null,i.removeChild(o),t(e)},o.src=n,o.id=r,i.appendChild(o)}}))).then((function(){(new Fingerprint).getQimei36(e,t)})).catch((function(e){})),""}var C,T=function(){return(T=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}).apply(this,arguments)},A=function(){function e(e,t){void 0===t&&(t={}),this.reportOptions={},this.config=e,this.reportOptions=t}return e.canUseDB=function(){return!!(null===window||void 0===window?void 0:window.indexedDB)},e.prototype.openDB=function(){var t=this;return new Promise((function(n,r){if(!e.canUseDB())return r({message:"当前不支持 indexeddb"});var i=t.config,o=i.name,a=i.version,s=i.stores,c=indexedDB.open(o,a);c.onsuccess=function(){t.db=c.result,n(),T({result:1,func:"open",params:JSON.stringify(t.config)},t.reportOptions)},c.onerror=function(e){var n,i;r(e),T({result:0,func:"open",params:JSON.stringify(t.config),error_msg:null===(i=null===(n=e.target)||void 0===n?void 0:n.error)||void 0===i?void 0:i.message},t.reportOptions)},c.onupgradeneeded=function(){t.db=c.result;try{null==s||s.forEach((function(e){t.createStore(e)}))}catch(e){T({result:0,func:"open",params:JSON.stringify(t.config),error_msg:e.message},t.reportOptions),r(e)}}}))},e.prototype.useStore=function(e){return this.storeName=e,this},e.prototype.deleteDB=function(){var e=this;return this.closeDB(),new Promise((function(t,n){var r=indexedDB.deleteDatabase(e.config.name);r.onsuccess=function(){return t()},r.onerror=n}))},e.prototype.closeDB=function(){var e;null===(e=this.db)||void 0===e||e.close(),this.db=null},e.prototype.getStoreCount=function(){var e=this;return new Promise((function(t,n){var r=e.getStore("readonly").count();r.onsuccess=function(){return t(r.result)},r.onerror=n}))},e.prototype.clearStore=function(){var e=this;return new Promise((function(t,n){var r=e.getStore("readwrite").clear();r.onsuccess=function(){return t()},r.onerror=n}))},e.prototype.add=function(e,t){var n=this;return new Promise((function(r,i){var o=n.getStore("readwrite").add(e,t);o.onsuccess=function(){r(o.result)},o.onerror=i}))},e.prototype.put=function(e,t){var n=this;return new Promise((function(r,i){var o=n.getStore("readwrite").put(e,t);o.onsuccess=function(){r(o.result)},o.onerror=i}))},e.prototype.getStoreAllData=function(){var e=this;return new Promise((function(t,n){var r=e.getStore("readonly").openCursor(),i=[];r.onsuccess=function(){var e;if(null===(e=r.result)||void 0===e?void 0:e.value){var n=r.result.value;i.push(n),r.result.continue()}else t(i)},r.onerror=n}))},e.prototype.getDataRangeByIndex=function(e,t,n,r,i){var o=this;return new Promise((function(a,s){var c=o.getStore().index(e),u=IDBKeyRange.bound(t,n,r,i),l=[],f=c.openCursor(u);f.onsuccess=function(){var e;(null===(e=null==f?void 0:f.result)||void 0===e?void 0:e.value)?(l.push(null==f?void 0:f.result.value),null==f||f.result.continue()):a(l)},f.onerror=s}))},e.prototype.removeDataByIndex=function(e,t,n,r,i){var o=this;return new Promise((function(a,s){var c=o.getStore("readwrite").index(e),u=IDBKeyRange.bound(t,n,r,i),l=c.openCursor(u),f=0;l.onsuccess=function(e){var t=e.target.result;t?(f+=1,t.delete(),t.continue()):a(f)},l.onerror=s}))},e.prototype.createStore=function(e){var t=e.name,n=e.indexes,r=void 0===n?[]:n,i=e.options;if(this.db){this.db.objectStoreNames.contains(t)&&this.db.deleteObjectStore(t);var o=this.db.createObjectStore(t,i);r.forEach((function(e){o.createIndex(e.indexName,e.keyPath,e.options)}))}},e.prototype.getStore=function(e){var t;return void 0===e&&(e="readonly"),null===(t=this.db)||void 0===t?void 0:t.transaction(this.storeName,e).objectStore(this.storeName)},e}(),_="event_table_v3",w="eventId",E=function(){function e(e){this.isReady=!1,this.taskQueue=Promise.resolve(),this.db=new A({name:"Beacon_"+e+"_V3",version:1,stores:[{name:_,options:{keyPath:w},indexes:[{indexName:w,keyPath:w,options:{unique:!0}}]}]}),this.open()}return e.prototype.getCount=function(){var e=this;return this.readyExec((function(){return e.db.getStoreCount()}))},e.prototype.setItem=function(e,t){var n=this;return this.readyExec((function(){return n.db.add({eventId:e,value:t})}))},e.prototype.getItem=function(e){return n(this,void 0,void 0,(function(){var t=this;return r(this,(function(n){return[2,this.readyExec((function(){return t.db.getDataRangeByIndex(w,e,e)}))]}))}))},e.prototype.removeItem=function(e){var t=this;return this.readyExec((function(){return t.db.removeDataByIndex(w,e,e)}))},e.prototype.updateItem=function(e,t){var n=this;return this.readyExec((function(){return n.db.put({eventId:e,value:t})}))},e.prototype.iterate=function(e){var t=this;return this.readyExec((function(){return t.db.getStoreAllData().then((function(t){t.forEach((function(t){e(t.value)}))}))}))},e.prototype.open=function(){return n(this,void 0,void 0,(function(){var e=this;return r(this,(function(t){switch(t.label){case 0:return this.taskQueue=this.taskQueue.then((function(){return e.db.openDB()})),[4,this.taskQueue];case 1:return t.sent(),this.isReady=!0,this.db.useStore(_),[2]}}))}))},e.prototype.readyExec=function(e){return this.isReady?e():(this.taskQueue=this.taskQueue.then((function(){return e()})),this.taskQueue)},e}(),N=function(){function e(e){this.keyObject={},this.storage=e}return e.prototype.getCount=function(){return this.storage.getStoreCount()},e.prototype.removeItem=function(e){this.storage.removeItem(e),delete this.keyObject[e]},e.prototype.setItem=function(e,t){var n=JSON.stringify(t);this.storage.setItem(e,n),this.keyObject[e]=t},e.prototype.iterate=function(e){for(var t=Object.keys(this.keyObject),n=0;n<t.length;n++){var r=this.storage.getItem(t[n]);e(JSON.parse(r))}},e}(),S=function(){function e(e,t){var n=this;this.dbEventCount=0,M()>0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new N(t),this.dbEventCount=this.store.getCount()):(this.store=new E(e),this.getCount().then((function(e){n.dbEventCount=e})).catch((function(e){})))}return e.prototype.getCount=function(){return n(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,e.sent()];case 2:return e.sent(),[2,Promise.reject()];case 3:return[2]}}))}))},e.prototype.insertEvent=function(e,t){return n(this,void 0,void 0,(function(){var n,i;return r(this,(function(r){switch(r.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];n=h(e.mapValue),r.label=1;case 1:return r.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(n,e)];case 2:return[2,r.sent()];case 3:return i=r.sent(),t&&t(i,e),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}}))}))},e.prototype.getEvents=function(){return n(this,void 0,void 0,(function(){var e;return r(this,(function(t){switch(t.label){case 0:e=[],t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.store.iterate((function(t){e.push(t)}))];case 2:return t.sent(),[2,Promise.all(e)];case 3:return t.sent(),[2,Promise.all(e)];case 4:return[2]}}))}))},e.prototype.removeEvent=function(e){return n(this,void 0,void 0,(function(){var t;return r(this,(function(n){switch(n.label){case 0:t=h(e.mapValue),n.label=1;case 1:return n.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(t)];case 2:return[2,n.sent()];case 3:return n.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}}))}))},e}(),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}).apply(this,arguments)};function D(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function x(e,t){var n=[null,void 0,"",NaN].includes(e);if(t.isSkipEmpty&&n)return null;var r=!t.isSkipEmpty&&n?"":e;try{return t.encode?encodeURIComponent(r):r}catch(e){return null}}function R(e,t){void 0===t&&(t={encode:!0,isSkipEmpty:!1});var n=e.url,r=e.query,i=void 0===r?{}:r,o=e.hash,a=n.split("#"),s=a[0],c=a[1],u=void 0===c?"":c,l=s.split("?")[0],f=[],d=x(o||u,t),h=O(O({},function(e){var t=e.split("#"),n=t[0],r=t[1],i=void 0===r?"":r,o=n.split("?"),a=o[0],s=o[1],c=void 0===s?"":s,u=D(i),l=Object.create(null);return c.split("&").forEach((function(e){var t=e.split("="),n=t[0],r=t[1],i=void 0===r?"":r,o=D(n),a=D(i);null===o||null===a||""===o&&""===a||l[o]||(l[o]=a)})),{url:a,query:l,hash:u}}(n).query),i);return Object.keys(h).forEach((function(e){var n=x(e,t),r=x(h[e],t);null!==n&&null!==r&&f.push(n+"="+r)})),l+(f.length?"?"+f.join("&"):"")+(d?"#"+d:"")}function k(e,t){return new Promise((function(n,r){if(t&&document.querySelectorAll("script[data-tag="+t+"]").length)return n();var i=document.createElement("script"),o=O({type:"text/javascript",charset:"utf-8"},e);Object.keys(o).forEach((function(e){return function(e,t,n){if(e)return void 0===n?e.getAttribute(t):e.setAttribute(t,n)}(i,e,o[e])})),t&&(i.dataset.tag=t),i.onload=function(){return n()},i.onreadystatechange=function(){var e=i.readyState;["complete","loaded"].includes(e)&&(i.onreadystatechange=null,n())},i.onerror=r,document.body.appendChild(i)}))}!function(e){e[e.equal=0]="equal",e[e.low=-1]="low",e[e.high=1]="high"}(C||(C={}));var L=function(){return(L=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}).apply(this,arguments)};function j(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function P(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}}var U=function(){function e(){this.interceptors=[]}return e.prototype.use=function(e,t){return this.interceptors.push({resolved:e,rejected:t}),this.interceptors.length-1},e.prototype.traverse=function(e,t){void 0===t&&(t=!1);var n=Promise.resolve(e);return(t?Array.prototype.reduceRight:Array.prototype.reduce).call(this.interceptors,(function(e,t){if(t){var r=t.resolved,i=t.rejected;n=n.then(r,i)}return e}),""),n},e.prototype.eject=function(e){this.interceptors[e]&&(this.interceptors[e]=null)},e}(),z={defaults:{timeout:0,method:"GET",mode:"cors",redirect:"follow",credentials:"same-origin"},headers:{common:{Accept:"application/json, text/plain, */*"},POST:{"Content-Type":"application/x-www-form-urlencoded"},PUT:{"Content-Type":"application/x-www-form-urlencoded"},PATCH:{"Content-Type":"application/x-www-form-urlencoded"}},baseURL:"",polyfillUrl:"https://vm.gtimg.cn/comps/script/fetch.min.js",interceptors:{request:new U,response:new U}},B=/^([a-z][a-z\d+\-.]*:)?\/\//i,G=Object.prototype.toString;function Y(e){return j(this,void 0,void 0,(function(){var t;return P(this,(function(n){switch(n.label){case 0:if(window.fetch)return[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,k({src:e})];case 2:return n.sent(),[3,4];case 3:throw t=n.sent(),new Error("加载 polyfill "+e+" 失败: "+t.message);case 4:return[2]}}))}))}function H(e){return["Accept","Content-Type"].forEach((function(t){return n=t,void((r=e.headers)&&Object.keys(r).forEach((function(e){e!==n&&e.toUpperCase()===n.toUpperCase()&&(r[n]=r[e],delete r[e])})));var n,r})),function(e){if("[object Object]"!==G.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}(e.body)&&(e.body=JSON.stringify(e.body),e.headers&&(e.headers["Content-Type"]="application/json;charset=utf-8")),e}function F(e){return j(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d,h,p,g,v,m;return P(this,(function(y){switch(y.label){case 0:return t=z.baseURL,n=z.defaults,r=z.interceptors,[4,Y(z.polyfillUrl)];case 1:return y.sent(),(i=L(L({},n),e)).headers||(i.headers=function(e){void 0===e&&(e="GET");var t=z.headers[e]||{};return L(L({},z.headers.common),t)}(i.method)),H(i),[4,r.request.traverse(i,!0)];case 2:if((o=y.sent())instanceof Error)throw o;return o.url=function(e,t){return!e||B.test(t)?t:e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}(t,o.url),a=o.url,s=o.timeout,c=o.params,u=o.method,l=["GET","DELETE","OPTIONS","HEAD"].includes(void 0===u?"GET":u)&&!!c,f=l?R({url:a,query:c}):a,d=[],s&&!o.signal&&(g=new Promise((function(e){h=setTimeout((function(){e(new Error("timeout"))}),s)})),d.push(g),p=new AbortController,o.signal=p.signal),d.push(fetch(f,o).catch((function(e){return e}))),[4,Promise.race(d)];case 3:return v=y.sent(),h&&clearTimeout(h),[4,r.response.traverse(v)];case 4:if((m=y.sent())instanceof Error)throw null==p||p.abort(),m;return[2,m]}}))}))}var $=function(){function e(e){z.interceptors.request.use((function(n){var r=n.url,i=n.method,o=n.body,a=o;if(e.onReportBeforeSend){var s=e.onReportBeforeSend({url:r,method:i,data:o?JSON.parse(o):null});a=(null==s?void 0:s.data)?JSON.stringify(s.data):null}return"GET"!=i&&a?t(t({},n),{body:a}):n}))}return e.prototype.get=function(e,i){return n(this,void 0,void 0,(function(){var n,o;return r(this,(function(r){switch(r.label){case 0:return[4,F(t({url:e},i))];case 1:return[4,(n=r.sent()).json()];case 2:return o=r.sent(),[2,Promise.resolve({data:o,status:n.status,statusText:n.statusText,headers:n.headers})]}}))}))},e.prototype.post=function(e,i,o){return n(this,void 0,void 0,(function(){var n,a;return r(this,(function(r){switch(r.label){case 0:return[4,F(t({url:e,body:i,method:"POST"},o))];case 1:return[4,(n=r.sent()).json()];case 2:return a=r.sent(),[2,Promise.resolve({data:a,status:n.status,statusText:n.statusText,headers:n.headers})]}}))}))},e}(),V=function(){function e(e){this.appkey=e}return e.prototype.getItem=function(e){try{return window.localStorage.getItem(this.getStoreKey(e))}catch(e){return""}},e.prototype.removeItem=function(e){try{window.localStorage.removeItem(this.getStoreKey(e))}catch(e){}},e.prototype.setItem=function(e,t){try{window.localStorage.setItem(this.getStoreKey(e),t)}catch(e){}},e.prototype.setSessionItem=function(e,t){try{window.sessionStorage.setItem(this.getStoreKey(e),t)}catch(e){}},e.prototype.getSessionItem=function(e){try{return window.sessionStorage.getItem(this.getStoreKey(e))}catch(e){return""}},e.prototype.getStoreKey=function(e){return i+this.appkey+"_"+e},e.prototype.createDeviceId=function(){try{var e=window.localStorage.getItem(o);return e||(e=function(e){for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789",n="",r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}(32),window.localStorage.setItem(o,e)),e}catch(e){return""}},e.prototype.clear=function(){try{for(var e=window.localStorage.length,t=0;t<e;t++){var n=window.localStorage.key(t);(null==n?void 0:n.substr(0,9))==i&&window.localStorage.removeItem(n)}}catch(e){}},e.prototype.getStoreCount=function(){var e=0;try{e=window.localStorage.length}catch(e){}return e},e}(),Q="logid_start",W="4.5.14-web";return function(n){function r(e){var t=n.call(this,e)||this;t.qimei36="",t.uselessCycleTaskNum=0,t.underWeakNet=!1,t.pauseSearching=!1,t.send=function(e,n,r){t.storage.setItem(a,Date.now().toString()),t.network.post(t.uploadUrl||t.strategy.getUploadUrl(),e.data).then((function(r){var i;100==(null===(i=null==r?void 0:r.data)||void 0===i?void 0:i.result)?t.delayTime=1e3*r.data.delayTime:t.delayTime=0,n&&n(e.data),e.data.events.forEach((function(e){t.store.removeEvent(e).then((function(){t.removeSendingId(h(e.mapValue))}))})),t.doCustomCycleTask()})).catch((function(n){var i=e.data.events;t.errorReport.reportError(n.code?n.code.toString():"600",n.message),r&&r(e.data);var o=JSON.parse(t.storage.getItem(s));i.forEach((function(e){o&&-1!=o.indexOf(h(e))&&t.store.insertEvent(e,(function(e,n){e&&t.errorReport.reportError("604","insertEvent fail!")})),t.removeSendingId(h(e))})),t.monitorUploadFailed()}))};var r,i,o=M();return t.isUnderIE8=o>0&&o<8,t.isUnderIE8||(t.isUnderIE=o>0,e.needInitQimei&&b(e.appkey,(function(e){t.qimei36=e.q36})),t.network=new $(e),t.storage=new V(e.appkey),t.initCommonInfo(e),t.store=new S(e.appkey,t.storage),t.errorReport=new v(t.config,t.commonInfo,"web",t.network),t.strategy=new m(null==e.needQueryConfig||e.needQueryConfig,t.config,t.commonInfo,t.storage,t.network),t.logidStartTime=t.storage.getItem(Q),t.logidStartTime||(t.logidStartTime=Date.now().toString(),t.storage.setItem(Q,t.logidStartTime)),r=t.logidStartTime,i=Date.now()-Number.parseFloat(r),Math.floor(i/864e5)>=365&&t.storage.clear(),t.initSession(e),t.onDirectUserAction("rqd_js_init",{}),setTimeout((function(){return t.lifeCycle.emit("init")}),0),t.initDelayTime=e.delay?e.delay:1e3,t.cycleTask(t.initDelayTime)),t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),r.prototype.initSession=function(e){var t=18e5;e.sessionDuration&&e.sessionDuration>3e4&&(t=e.sessionDuration),this.beaconSession=new I(this.storage,t,this)},r.prototype.initCommonInfo=function(e){var t=Number(this.storage.getItem(a));try{var n=JSON.parse(this.storage.getItem(s));(Date.now()-t>3e4||!n)&&this.storage.setItem(s,JSON.stringify([]))}catch(e){}e.uploadUrl&&(this.uploadUrl=e.uploadUrl+"?appkey="+e.appkey);var r=[window.screen.width,window.screen.height];window.devicePixelRatio&&r.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:r.join("*"),channelID:e.channelID?String(e.channelID):"",openid:e.openid?String(e.openid):"",unid:e.unionid?String(e.unionid):"",sdkVersion:W},this.config.appVersion=e.versionCode?String(e.versionCode):"",this.config.strictMode=e.strictMode},r.prototype.cycleTask=function(e){var t=this;this.intervalID=window.setInterval((function(){t.pauseSearching||t.store.getEvents().then((function(e){0==e.length&&(t.pauseSearching=!0);var n=[],r=JSON.parse(t.storage.getItem(s));r||(r=[]),e&&e.forEach((function(e){var t=h(e.mapValue);-1==r.indexOf(t)&&(n.push(e),r.push(t))})),0!=n.length&&(t.storage.setItem(s,JSON.stringify(r)),t._normalLogPipeline(t.assembleData(n)))})).catch((function(e){}))}),e)},r.prototype.onReport=function(e,t,n){var r=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var i=this.generateData(e,t,n);if(n&&0==this.delayTime&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(i));else{var o=i.shift();o&&this.store.insertEvent(o,(function(e){e&&r.errorReport.reportError("604","insertEvent fail!")})).catch((function(e){r._normalLogPipeline(r.assembleData(i))}))}}},r.prototype.onSendBeacon=function(e,t){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var n=this.assembleData(this.generateData(e,t,!0));"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(n))}},r.prototype.generateData=function(e,n,r){var i=[],o="4.5.14-web_"+(r?"direct_log_id":"normal_log_id"),a=Number(this.storage.getItem(o));return a=a||1,n=t(t({},n),{A99:r?"Y":"N",A100:a.toString(),A72:W,A88:this.logidStartTime}),a++,this.storage.setItem(o,a.toString()),i.push({eventCode:e,eventTime:Date.now().toString(),mapValue:f(n,this.config.strictMode)}),i},r.prototype.assembleData=function(e){var n=this.beaconSession.getSession();return{appVersion:this.config.appVersion?d(this.config.appVersion):"",sdkId:"js",sdkVersion:W,mainAppKey:this.config.appkey,platformId:3,common:f(t(t({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:n.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:e}},r.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},r.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},r}(g)}))},"./lib/crypto.js":
  57. /*!***********************!*\
  58. !*** ./lib/crypto.js ***!
  59. \***********************/
  60. /*! no static exports found */function(e,t,n){(function(e){var t=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),r=r||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this;var t=new i;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i<e;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535<n.length)for(i=0;i<e;i+=4)t[r+i>>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++){var i=t[r>>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r<e;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o);s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0);if(t=s*o,i=e.min(4*t,i),t){for(var c=0;c<t;c+=o)this._doProcessBlock(r,c);c=r.splice(0,t),n.sigBytes-=i}return new a.init(c,i)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}});var d=n.algo={};return n}(Math);(function(){var e=r,t=e.lib,n=t.WordArray,i=t.Hasher,o=[];t=e.algo.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],u=0;80>u;u++){if(16>u)o[u]=0|e[t+u];else{var l=o[u-3]^o[u-8]^o[u-14]^o[u-16];o[u]=l<<1|l>>>31}l=(r<<5|r>>>27)+c+o[u],l=20>u?l+(1518500249+(i&a|~i&s)):40>u?l+(1859775393+(i^a^s)):60>u?l+((i&a|i&s|a&s)-1894007588):l+((i^a^s)-899497514),c=s,s=a,a=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=i._createHelper(t),e.HmacSHA1=i._createHmacHelper(t)})(),function(){var e=r,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,c=a.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=r,t=e.lib,n=t.WordArray,i=e.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,c=t[o+2>>>2]>>>24-(o+2)%4*8&255,u=a<<16|s<<8|c,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(u>>>6*(3-l)&63));var f=r.charAt(64);if(f)while(i.length%4)i.push(f);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=r.charAt(64);if(i){var o=e.indexOf(i);-1!=o&&(t=o)}for(var a=[],s=0,c=0;c<t;c++)if(c%4){var u=r.indexOf(e.charAt(c-1))<<c%4*2,l=r.indexOf(e.charAt(c))>>>6-c%4*2;a[s>>>2]|=(u|l)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),"object"===t(e)?e.exports=r:window.CryptoJS=r}).call(this,n(/*! ./../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./lib/json2xml.js":
  61. /*!*************************!*\
  62. !*** ./lib/json2xml.js ***!
  63. \*************************/
  64. /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i="a-zA-Z_À-ÖØ-öø-ÿͰ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿿、-퟿豈-﷏ﷰ-�",o="-.0-9·̀-ͯ‿⁀",a=new RegExp("^([^"+i+"])|^((x|X)(m|M)(l|L))|([^"+i+o+"])","g"),s=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,c=function(e){var t=[];if(e instanceof Object)for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},u=function(e,t){var n=function(e,n,r,i,o){var s=void 0!==t.indent?t.indent:"\t",c=t.prettyPrint?"\n"+new Array(i).join(s):"";t.removeIllegalNameCharacters&&(e=e.replace(a,"_"));var u=[c,"<",e,r||""];return n&&n.length>0?(u.push(">"),u.push(n),o&&u.push(c),u.push("</"),u.push(e),u.push(">")):u.push("/>"),u.join("")};return function e(i,o,a){var s=r(i);switch((Array.isArray?Array.isArray(i):i instanceof Array)?s="array":i instanceof Date&&(s="date"),s){case"array":var u=[];return i.map((function(t){u.push(e(t,1,a+1))})),t.prettyPrint&&u.push("\n"),u.join("");case"date":return i.toJSON?i.toJSON():i+"";case"object":var l=[];for(var d in i)if(i.hasOwnProperty(d))if(i[d]instanceof Array)for(var h=0;h<i[d].length;h++)i[d].hasOwnProperty(h)&&l.push(n(d,e(i[d][h],0,a+1),null,a+1,c(i[d][h]).length));else l.push(n(d,e(i[d],0,a+1),null,a+1));return t.prettyPrint&&l.length>0&&l.push("\n"),l.join("");case"function":return i();default:return t.escape?f(i):""+i}}(e,0,0)},l=function(e){var t=['<?xml version="1.0" encoding="UTF-8"'];return e&&t.push(' standalone="yes"'),t.push("?>"),t.join("")};function f(e){return(""+e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(s,"")}e.exports=function(e,t){if(t||(t={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),"string"==typeof e)try{e=JSON.parse(e.toString())}catch(a){return!1}var n="",i="";t&&("object"==r(t)?(t.xmlHeader&&(n=l(!!t.xmlHeader.standalone)),"undefined"!=typeof t.docType&&(i="<!DOCTYPE "+t.docType+">")):n=l()),t=t||{};var o=[n,t.prettyPrint&&i?"\n":"",i,u(e,t)];return o.join("").replace(/\n{2,}/g,"\n").replace(/\s+$/g,"")}},"./lib/md5.js":
  65. /*!********************!*\
  66. !*** ./lib/md5.js ***!
  67. \********************/
  68. /*! no static exports found */function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"===("undefined"===typeof window?"undefined":_typeof(window)),root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"===("undefined"===typeof self?"undefined":_typeof(self)),NODE_JS=!root.JS_MD5_NO_NODE_JS&&"object"===("undefined"===typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(/*! !webpack amd options */"./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}!root.JS_MD5_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===_typeof(e)&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e){return function(t,n){return new Md5(!0).update(t,n)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.getCtx=e.create=function(){return new Md5},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"===typeof e)return crypto.createHash("md5").update(e,"utf8").digest("hex");if(null===e||void 0===e)throw ERROR;return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash("md5").update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod};function Md5(e){if(e)blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks,this.buffer8=buffer8;else if(ARRAY_BUFFER){var t=new ArrayBuffer(68);this.buffer8=new Uint8Array(t),this.blocks=new Uint32Array(t)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Md5.prototype.update=function(e,t){if(!this.finalized){var n,r,i=0,o=e.length,a=this.blocks,s=this.buffer8;while(i<o){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),ARRAY_BUFFER)for(r=this.start;i<o&&r<64;++i)n=e.charCodeAt(i),t||n<128?s[r++]=n:n<2048?(s[r++]=192|n>>6,s[r++]=128|63&n):n<55296||n>=57344?(s[r++]=224|n>>12,s[r++]=128|n>>6&63,s[r++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),s[r++]=240|n>>18,s[r++]=128|n>>12&63,s[r++]=128|n>>6&63,s[r++]=128|63&n);else for(r=this.start;i<o&&r<64;++i)n=e.charCodeAt(i),t||n<128?a[r>>2]|=n<<SHIFT[3&r++]:n<2048?(a[r>>2]|=(192|n>>6)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):n<55296||n>=57344?(a[r>>2]|=(224|n>>12)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),a[r>>2]|=(240|n>>18)<<SHIFT[3&r++],a[r>>2]|=(128|n>>12&63)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[t>>2]|=EXTRA[3&t],t>=56&&(this.hashed||this.hash(),e[0]=e[16],e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.bytes<<3,e[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var e,t,n,r,i,o,a=this.blocks;this.first?(e=a[0]-680876937,e=(e<<7|e>>>25)-271733879<<0,r=(-1732584194^2004318071&e)+a[1]-117830708,r=(r<<12|r>>>20)+e<<0,n=(-271733879^r&(-271733879^e))+a[2]-1126478375,n=(n<<17|n>>>15)+r<<0,t=(e^n&(r^e))+a[3]-1316259209,t=(t<<22|t>>>10)+n<<0):(e=this.h0,t=this.h1,n=this.h2,r=this.h3,e+=(r^t&(n^r))+a[0]-680876936,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[1]-389564586,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[2]+606105819,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[3]-1044525330,t=(t<<22|t>>>10)+n<<0),e+=(r^t&(n^r))+a[4]-176418897,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[5]+1200080426,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[6]-1473231341,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[7]-45705983,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[8]+1770035416,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[9]-1958414417,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[10]-42063,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[11]-1990404162,t=(t<<22|t>>>10)+n<<0,e+=(r^t&(n^r))+a[12]+1804603682,e=(e<<7|e>>>25)+t<<0,r+=(n^e&(t^n))+a[13]-40341101,r=(r<<12|r>>>20)+e<<0,n+=(t^r&(e^t))+a[14]-1502002290,n=(n<<17|n>>>15)+r<<0,t+=(e^n&(r^e))+a[15]+1236535329,t=(t<<22|t>>>10)+n<<0,e+=(n^r&(t^n))+a[1]-165796510,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[6]-1069501632,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[11]+643717713,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[0]-373897302,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[5]-701558691,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[10]+38016083,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[15]-660478335,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[4]-405537848,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[9]+568446438,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[14]-1019803690,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[3]-187363961,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[8]+1163531501,t=(t<<20|t>>>12)+n<<0,e+=(n^r&(t^n))+a[13]-1444681467,e=(e<<5|e>>>27)+t<<0,r+=(t^n&(e^t))+a[2]-51403784,r=(r<<9|r>>>23)+e<<0,n+=(e^t&(r^e))+a[7]+1735328473,n=(n<<14|n>>>18)+r<<0,t+=(r^e&(n^r))+a[12]-1926607734,t=(t<<20|t>>>12)+n<<0,i=t^n,e+=(i^r)+a[5]-378558,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[8]-2022574463,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[11]+1839030562,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[14]-35309556,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[1]-1530992060,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[4]+1272893353,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[7]-155497632,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[10]-1094730640,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[13]+681279174,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[0]-358537222,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[3]-722521979,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[6]+76029189,t=(t<<23|t>>>9)+n<<0,i=t^n,e+=(i^r)+a[9]-640364487,e=(e<<4|e>>>28)+t<<0,r+=(i^e)+a[12]-421815835,r=(r<<11|r>>>21)+e<<0,o=r^e,n+=(o^t)+a[15]+530742520,n=(n<<16|n>>>16)+r<<0,t+=(o^n)+a[2]-995338651,t=(t<<23|t>>>9)+n<<0,e+=(n^(t|~r))+a[0]-198630844,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[7]+1126891415,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[14]-1416354905,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[5]-57434055,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[12]+1700485571,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[3]-1894986606,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[10]-1051523,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[1]-2054922799,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[8]+1873313359,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[15]-30611744,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[6]-1560198380,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[13]+1309151649,t=(t<<21|t>>>11)+n<<0,e+=(n^(t|~r))+a[4]-145523070,e=(e<<6|e>>>26)+t<<0,r+=(t^(e|~n))+a[11]-1120210379,r=(r<<10|r>>>22)+e<<0,n+=(e^(r|~t))+a[2]+718787259,n=(n<<15|n>>>17)+r<<0,t+=(r^(n|~e))+a[9]-343485551,t=(t<<21|t>>>11)+n<<0,this.first?(this.h0=e+1732584193<<0,this.h1=t-271733879<<0,this.h2=n-1732584194<<0,this.h3=r+271733878<<0,this.first=!1):(this.h0=this.h0+e<<0,this.h1=this.h1+t<<0,this.h2=this.h2+n<<0,this.h3=this.h3+r<<0)},Md5.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3;return HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(e){if("hex"===e)return this.hex();this.finalize();var t=this.h0,n=this.h1,r=this.h2,i=this.h3,o=[255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,n>>16&255,n>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,255&i,i>>8&255,i>>16&255,i>>24&255];return o},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(16),t=new Uint32Array(e);return t[0]=this.h0,t[1]=this.h1,t[2]=this.h2,t[3]=this.h3,e},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var e,t,n,r="",i=this.array(),o=0;o<15;)e=i[o++],t=i[o++],n=i[o++],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[63&(e<<4|t>>>4)]+BASE64_ENCODE_CHAR[63&(t<<2|n>>>6)]+BASE64_ENCODE_CHAR[63&n];return e=i[o],r+=BASE64_ENCODE_CHAR[e>>>2]+BASE64_ENCODE_CHAR[e<<4&63]+"==",r};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__webpack_require__(/*! ./../node_modules/process/browser.js */"./node_modules/process/browser.js"),__webpack_require__(/*! ./../node_modules/webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"),__webpack_require__(/*! ./../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":
  69. /*!************************!*\
  70. !*** ./lib/request.js ***!
  71. \************************/
  72. /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=function(e){switch(r(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},o=function(e,t,n,o){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===r(e)?Object.keys(e).map((function(r){var o=encodeURIComponent(i(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(i(e))})).join(t):o+encodeURIComponent(i(e[r]))})).filter(Boolean).join(t):o?encodeURIComponent(i(o))+n+encodeURIComponent(i(e)):""},a=function(e,t,n){var r={};return t.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),n=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();r[n]=i}})),{error:e,statusCode:t.status,statusMessage:t.statusText,headers:r,body:n}},s=function(e,t){return t||"text"!==t?e.response:e.responseText},c=function(e,t){var n=(e.method||"GET").toUpperCase(),r=e.url;if(e.qs){var i=o(e.qs);i&&(r+=(-1===r.indexOf("?")?"?":"&")+i)}var c=new XMLHttpRequest;if(c.open(n,r,!0),c.responseType=e.dataType||"text",e.xhrFields)for(var u in e.xhrFields)c[u]=e.xhrFields[u];var l=e.headers;if(l)for(var f in l)l.hasOwnProperty(f)&&"content-length"!==f.toLowerCase()&&"user-agent"!==f.toLowerCase()&&"origin"!==f.toLowerCase()&&"host"!==f.toLowerCase()&&c.setRequestHeader(f,l[f]);return e.onProgress&&c.upload&&(c.upload.onprogress=e.onProgress),e.onDownloadProgress&&(c.onprogress=e.onDownloadProgress),e.timeout&&(c.timeout=e.timeout),c.ontimeout=function(e){var n=new Error("timeout");t(a(n,c))},c.onload=function(){t(a(null,c,s(c,e.dataType)))},c.onerror=function(n){var r=s(c,e.dataType);if(r)t(a(null,c,r));else{var i=c.statusText;i||0!==c.status||(i=new Error("CORS blocked or network error")),t(a(i,c,r))}},c.send(e.body||""),c};e.exports=c},"./lib/xml2json.js":
  73. /*!*************************!*\
  74. !*** ./lib/xml2json.js ***!
  75. \*************************/
  76. /*! no static exports found */function(e,t,n){var r=n(/*! @xmldom/xmldom */"./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,i=function(){this.version="1.3.5";var e={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},t=new RegExp(/(?!xmlns)^.*:/);new RegExp(/^\s+|\s+$/g);return this.grokType=function(e){return/^\s*$/.test(e)?null:/^(?:true|false)$/i.test(e)?"true"===e.toLowerCase():isFinite(e)?parseFloat(e):e},this.parseString=function(e,t){if(e){var n=this.stringToXML(e);return n.getElementsByTagName("parsererror").length?null:this.parseXML(n,t)}return null},this.parseXML=function(n,r){for(var o in r)e[o]=r[o];var a={},s=0,c="",u=n.childNodes.length;if(u)for(var l,f,d,h=0;h<n.childNodes.length;h++)l=n.childNodes.item(h),4===l.nodeType?e.mergeCDATA&&(c+=l.nodeValue):3===l.nodeType?c+=l.nodeValue:1===l.nodeType&&(0===s&&(a={}),f=e.stripElemPrefix?l.nodeName.replace(t,""):l.nodeName,d=i.parseXML(l),a.hasOwnProperty(f)?(a[f].constructor!==Array&&(a[f]=[a[f]]),a[f].push(d)):(a[f]=d,s++));return Object.keys(a).length||(a=c||""),a},this.xmlToString=function(e){try{var t=e.xml?e.xml:(new XMLSerializer).serializeToString(e);return t}catch(n){return null}},this.stringToXML=function(e){try{var t=null;if(window.DOMParser){var n=new r;return t=n.parseFromString(e,"text/xml"),t}return t=new ActiveXObject("Microsoft.XMLDOM"),t.async=!1,t.loadXML(e),t}catch(i){return null}},this}.call({}),o=function(e){return i.parseString(e)};e.exports=o},"./node_modules/@babel/runtime/helpers/classCallCheck.js":
  77. /*!***************************************************************!*\
  78. !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
  79. \***************************************************************/
  80. /*! no static exports found */function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"./node_modules/@babel/runtime/helpers/createClass.js":
  81. /*!************************************************************!*\
  82. !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
  83. \************************************************************/
  84. /*! no static exports found */function(e,t){function n(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,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"./node_modules/@babel/runtime/helpers/typeof.js":
  85. /*!*******************************************************!*\
  86. !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
  87. \*******************************************************/
  88. /*! no static exports found */function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"./node_modules/@xmldom/xmldom/lib/conventions.js":
  89. /*!********************************************************!*\
  90. !*** ./node_modules/@xmldom/xmldom/lib/conventions.js ***!
  91. \********************************************************/
  92. /*! no static exports found */function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function i(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function o(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var a=i({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),s=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===s.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=o,t.find=r,t.freeze=i,t.MIME_TYPE=a,t.NAMESPACE=s},"./node_modules/@xmldom/xmldom/lib/dom-parser.js":
  93. /*!*******************************************************!*\
  94. !*** ./node_modules/@xmldom/xmldom/lib/dom-parser.js ***!
  95. \*******************************************************/
  96. /*! no static exports found */function(e,t,n){var r=n(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js"),i=n(/*! ./dom */"./node_modules/@xmldom/xmldom/lib/dom.js"),o=n(/*! ./entities */"./node_modules/@xmldom/xmldom/lib/entities.js"),a=n(/*! ./sax */"./node_modules/@xmldom/xmldom/lib/sax.js"),s=i.DOMImplementation,c=r.NAMESPACE,u=a.ParseError,l=a.XMLReader;function f(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function d(e){this.options=e||{locator:{}}}function h(e,t,n){if(!e){if(t instanceof p)return t;e=t}var r={},i=e instanceof Function;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+v(n))}||function(){}}return n=n||{},o("warning"),o("error"),o("fatalError"),r}function p(){this.cdata=!1}function g(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function v(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,r=new l,i=n.domBuilder||new p,a=n.errorHandler,s=n.locator,u=n.xmlns||{},d=/\/x?html?$/.test(t),g=d?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=h(a,i,s),r.domBuilder=n.domBuilder||i,d&&(u[""]=c.HTML),u.xml=u.xml||c.XML;var v=n.normalizeLineEndings||f;return e&&"string"===typeof e?r.parse(v(e),u,g):r.errorHandler.error("invalid doc source"),i.doc},p.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,o=i.createElementNS(e,n||t),a=r.length;y(this,o),this.currentElement=o,this.locator&&g(this.locator,o);for(var s=0;s<a;s++){e=r.getURI(s);var c=r.getValue(s),u=(n=r.getQName(s),i.createAttributeNS(e,n));this.locator&&g(r.getLocator(s),u),u.value=u.nodeValue=c,o.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&g(this.locator,n),y(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&g(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&g(this.locator,r),y(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&g(this.locator,i),y(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,v(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,v(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){p.prototype[e]=function(){return null}})),t.__DOMHandler=p,t.normalizeLineEndings=f,t.DOMParser=d},"./node_modules/@xmldom/xmldom/lib/dom.js":
  97. /*!************************************************!*\
  98. !*** ./node_modules/@xmldom/xmldom/lib/dom.js ***!
  99. \************************************************/
  100. /*! no static exports found */function(e,t,n){var r=n(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js"),i=r.find,o=r.NAMESPACE;function a(e){return""!==e}function s(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function c(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function u(e){if(!e)return[];var t=s(e);return Object.keys(t.reduce(c,{}))}function l(e){return function(t){return e&&-1!==e.indexOf(t)}}function f(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function d(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,f(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},p=h.ELEMENT_NODE=1,g=h.ATTRIBUTE_NODE=2,v=h.TEXT_NODE=3,m=h.CDATA_SECTION_NODE=4,y=h.ENTITY_REFERENCE_NODE=5,I=h.ENTITY_NODE=6,M=h.PROCESSING_INSTRUCTION_NODE=7,b=h.COMMENT_NODE=8,C=h.DOCUMENT_NODE=9,T=h.DOCUMENT_TYPE_NODE=10,A=h.DOCUMENT_FRAGMENT_NODE=11,_=h.NOTATION_NODE=12,w={},E={},N=(w.INDEX_SIZE_ERR=(E[1]="Index size error",1),w.DOMSTRING_SIZE_ERR=(E[2]="DOMString size error",2),w.HIERARCHY_REQUEST_ERR=(E[3]="Hierarchy request error",3)),S=(w.WRONG_DOCUMENT_ERR=(E[4]="Wrong document",4),w.INVALID_CHARACTER_ERR=(E[5]="Invalid character",5),w.NO_DATA_ALLOWED_ERR=(E[6]="No data allowed",6),w.NO_MODIFICATION_ALLOWED_ERR=(E[7]="No modification allowed",7),w.NOT_FOUND_ERR=(E[8]="Not found",8)),O=(w.NOT_SUPPORTED_ERR=(E[9]="Not supported",9),w.INUSE_ATTRIBUTE_ERR=(E[10]="Attribute in use",10));w.INVALID_STATE_ERR=(E[11]="Invalid state",11),w.SYNTAX_ERR=(E[12]="Syntax error",12),w.INVALID_MODIFICATION_ERR=(E[13]="Invalid modification",13),w.NAMESPACE_ERR=(E[14]="Invalid namespace",14),w.INVALID_ACCESS_ERR=(E[15]="Invalid access",15);function D(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,D);return n.code=e,t&&(this.message=this.message+": "+t),n}function x(){}function R(e,t){this._node=e,this._refresh=t,k(this)}function k(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);_e(e,"length",n.length),f(n,e),e._inc=t}}function L(){}function j(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[j(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&$(i,e,r),F(i,e,n))}}function U(e,t,n){var r=j(t,n);if(!(r>=0))throw new D(S,new Error(e.tagName+"@"+n));var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&($(o,e,n),n.ownerElement=null)}}function z(){}function B(){}function G(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function Y(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(Y(e,t))return!0}while(e=e.nextSibling)}function H(){this.ownerDocument=this}function F(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===o.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function $(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i===o.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function V(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,o=0;while(i)r[o++]=i,i=i.nextSibling;r.length=o,delete r[r.length]}}}function Q(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function W(e){return e&&(e.nodeType===B.DOCUMENT_NODE||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.ELEMENT_NODE)}function Z(e){return e&&(q(e)||J(e)||K(e)||e.nodeType===B.DOCUMENT_FRAGMENT_NODE||e.nodeType===B.COMMENT_NODE||e.nodeType===B.PROCESSING_INSTRUCTION_NODE)}function K(e){return e&&e.nodeType===B.DOCUMENT_TYPE_NODE}function q(e){return e&&e.nodeType===B.ELEMENT_NODE}function J(e){return e&&e.nodeType===B.TEXT_NODE}function X(e,t){var n=e.childNodes||[];if(i(n,q)||K(t))return!1;var r=i(n,K);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function ee(e,t){var n=e.childNodes||[];function r(e){return q(e)&&e!==t}if(i(n,r))return!1;var o=i(n,K);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function te(e,t,n){if(!W(e))throw new D(N,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new D(S,"child not in parent");if(!Z(t)||K(t)&&e.nodeType!==B.DOCUMENT_NODE)throw new D(N,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ne(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===B.DOCUMENT_FRAGMENT_NODE){var a=o.filter(q);if(a.length>1||i(o,J))throw new D(N,"More than one element or text in fragment");if(1===a.length&&!X(e,n))throw new D(N,"Element in fragment can not be inserted before doctype")}if(q(t)&&!X(e,n))throw new D(N,"Only one element can be added and only after doctype");if(K(t)){if(i(r,K))throw new D(N,"Only one doctype is allowed");var s=i(r,q);if(n&&r.indexOf(s)<r.indexOf(n))throw new D(N,"Doctype can only be inserted before an element");if(!n&&s)throw new D(N,"Doctype can not be appended since element is present")}}function re(e,t,n){var r=e.childNodes||[],o=t.childNodes||[];if(t.nodeType===B.DOCUMENT_FRAGMENT_NODE){var a=o.filter(q);if(a.length>1||i(o,J))throw new D(N,"More than one element or text in fragment");if(1===a.length&&!ee(e,n))throw new D(N,"Element in fragment can not be inserted before doctype")}if(q(t)&&!ee(e,n))throw new D(N,"Only one element can be added and only after doctype");if(K(t)){function s(e){return K(e)&&e!==n}if(i(r,s))throw new D(N,"Only one doctype is allowed");var c=i(r,q);if(n&&r.indexOf(c)<r.indexOf(n))throw new D(N,"Doctype can only be inserted before an element")}}function ie(e,t,n,r){te(e,t,n),e.nodeType===B.DOCUMENT_NODE&&(r||ne)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===A){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var s=n?n.previousSibling:e.lastChild;o.previousSibling=s,a.nextSibling=n,s?s.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==A&&(t.firstChild=t.lastChild=null),t}function oe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}function ae(){this._nsMap={}}function se(){}function ce(){}function ue(){}function le(){}function fe(){}function de(){}function he(){}function pe(){}function ge(){}function ve(){}function me(){}function ye(){}function Ie(e,t){var n=[],r=9==this.nodeType&&this.documentElement||this,i=r.prefix,o=r.namespaceURI;if(o&&null==i){i=r.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return Ce(this,n,e,t,a),n.join("")}function Me(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===r&&i===o.XML||i===o.XMLNS)return!1;var a=n.length;while(a--){var s=n[a];if(s.prefix===r)return s.namespace!==i}return!0}function be(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,G),'"')}function Ce(e,t,n,r,i){if(i||(i=[]),r){if(e=r(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case p:var a=e.attributes,s=a.length,c=e.firstChild,u=e.tagName;n=o.isHTML(e.namespaceURI)||n;var l=u;if(!n&&!e.prefix&&e.namespaceURI){for(var f,d=0;d<a.length;d++)if("xmlns"===a.item(d).name){f=a.item(d).value;break}if(!f)for(var h=i.length-1;h>=0;h--){var I=i[h];if(""===I.prefix&&I.namespace===e.namespaceURI){f=I.namespace;break}}if(f!==e.namespaceURI)for(h=i.length-1;h>=0;h--){I=i[h];if(I.namespace===e.namespaceURI){I.prefix&&(l=I.prefix+":"+u);break}}}t.push("<",l);for(var _=0;_<s;_++){var w=a.item(_);"xmlns"==w.prefix?i.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&i.push({prefix:"",namespace:w.value})}for(_=0;_<s;_++){w=a.item(_);if(Me(w,n,i)){var E=w.prefix||"",N=w.namespaceURI;be(t,E?"xmlns:"+E:"xmlns",N),i.push({prefix:E,namespace:N})}Ce(w,t,n,r,i)}if(u===l&&Me(e,n,i)){E=e.prefix||"",N=e.namespaceURI;be(t,E?"xmlns:"+E:"xmlns",N),i.push({prefix:E,namespace:N})}if(c||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))while(c)c.data?t.push(c.data):Ce(c,t,n,r,i.slice()),c=c.nextSibling;else while(c)Ce(c,t,n,r,i.slice()),c=c.nextSibling;t.push("</",l,">")}else t.push("/>");return;case C:case A:c=e.firstChild;while(c)Ce(c,t,n,r,i.slice()),c=c.nextSibling;return;case g:return be(t,e.name,e.value);case v:return t.push(e.data.replace(/[<&>]/g,G));case m:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("\x3c!--",e.data,"--\x3e");case T:var S=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),S)t.push(" PUBLIC ",S),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var D=e.internalSubset;D&&t.push(" [",D,"]"),t.push(">")}return;case M:return t.push("<?",e.target," ",e.data,"?>");case y:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Te(e,t,n){var r;switch(t.nodeType){case p:r=t.cloneNode(!1),r.ownerDocument=e;case A:break;case g:n=!0;break}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n){var i=t.firstChild;while(i)r.appendChild(Te(e,i,n)),i=i.nextSibling}return r}function Ae(e,t,n){var r=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new x),r.ownerDocument=e,r.nodeType){case p:var a=t.attributes,s=r.attributes=new L,c=a.length;s._ownerElement=r;for(var u=0;u<c;u++)r.setAttributeNode(Ae(e,a.item(u),!0));break;case g:n=!0}if(n){var l=t.firstChild;while(l)r.appendChild(Ae(e,l,n)),l=l.nextSibling}return r}function _e(e,t,n){e[t]=n}D.prototype=Error.prototype,f(w,D),x.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)Ce(this[r],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},R.prototype.item=function(e){return k(this),this[e]},d(R,x),L.prototype={length:0,item:x.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new D(O);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new D(O);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return U(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return U(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},z.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new H;if(r.implementation=this,r.childNodes=new x,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new de;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},B.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ie(this,e,t)},replaceChild:function(e,t){ie(this,e,t,re),t&&this.removeChild(t)},removeChild:function(e){return Q(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ae(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==v&&e.nodeType==v?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==g?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},f(h,B),f(h,B.prototype),H.prototype={nodeName:"#document",nodeType:C,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==A){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ie(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===p&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Q(this,e)},replaceChild:function(e,t){ie(this,e,t,re),e.ownerDocument=this,t&&this.removeChild(t),q(e)&&(this.documentElement=e)},importNode:function(e,t){return Te(this,e,t)},getElementById:function(e){var t=null;return Y(this.documentElement,(function(n){if(n.nodeType==p&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=u(e);return new R(this,(function(n){var r=[];return t.length>0&&Y(n.documentElement,(function(i){if(i!==n&&i.nodeType===p){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=u(o);a=t.every(l(s))}a&&r.push(i)}}})),r}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new x;var n=t.attributes=new L;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new ve;return e.ownerDocument=this,e.childNodes=new x,e},createTextNode:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new le;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new fe;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new me;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ge;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new ae,r=t.split(":"),i=n.attributes=new L;return n.childNodes=new x,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new se,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},d(H,B),ae.prototype={nodeType:p,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===A?this.insertBefore(e,null):oe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new R(this,(function(t){var n=[];return Y(t,(function(r){r===t||r.nodeType!=p||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new R(this,(function(n){var r=[];return Y(n,(function(i){i===n||i.nodeType!==p||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},H.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,d(ae,B),se.prototype.nodeType=g,d(se,B),ce.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(E[N])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},d(ce,B),ue.prototype={nodeName:"#text",nodeType:v,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},d(ue,ce),le.prototype={nodeName:"#comment",nodeType:b},d(le,ce),fe.prototype={nodeName:"#cdata-section",nodeType:m},d(fe,ce),de.prototype.nodeType=T,d(de,B),he.prototype.nodeType=_,d(he,B),pe.prototype.nodeType=I,d(pe,B),ge.prototype.nodeType=y,d(ge,B),ve.prototype.nodeName="#document-fragment",ve.prototype.nodeType=A,d(ve,B),me.prototype.nodeType=M,d(me,B),ye.prototype.serializeToString=function(e,t,n){return Ie.call(e,t,n)},B.prototype.toString=Ie;try{if(Object.defineProperty){function we(e){switch(e.nodeType){case p:case A:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(we(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(R.prototype,"length",{get:function(){return k(this),this.$$length}}),Object.defineProperty(B.prototype,"textContent",{get:function(){return we(this)},set:function(e){switch(this.nodeType){case p:case A:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),_e=function(e,t,n){e["$$"+t]=n}}}catch(Ee){}t.DocumentType=de,t.DOMException=D,t.DOMImplementation=z,t.Element=ae,t.Node=B,t.NodeList=x,t.XMLSerializer=ye},"./node_modules/@xmldom/xmldom/lib/entities.js":
  101. /*!*****************************************************!*\
  102. !*** ./node_modules/@xmldom/xmldom/lib/entities.js ***!
  103. \*****************************************************/
  104. /*! no static exports found */function(e,t,n){var r=n(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":
  105. /*!**************************************************!*\
  106. !*** ./node_modules/@xmldom/xmldom/lib/index.js ***!
  107. \**************************************************/
  108. /*! no static exports found */function(e,t,n){var r=n(/*! ./dom */"./node_modules/@xmldom/xmldom/lib/dom.js");t.DOMImplementation=r.DOMImplementation,t.XMLSerializer=r.XMLSerializer,t.DOMParser=n(/*! ./dom-parser */"./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":
  109. /*!************************************************!*\
  110. !*** ./node_modules/@xmldom/xmldom/lib/sax.js ***!
  111. \************************************************/
  112. /*! no static exports found */function(e,t,n){var r=n(/*! ./conventions */"./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,i=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,o=new RegExp("[\\-\\.0-9"+i.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+i.source+o.source+"*(?::"+i.source+o.source+"*)?$"),s=0,c=1,u=2,l=3,f=4,d=5,h=6,p=7;function g(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,g)}function v(){}function m(e,t,n,i,o){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function s(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function c(t){if(t>m){var n=e.substring(m,t).replace(/&#?\w+;/g,s);h&&u(m),i.characters(n,0,t-m),m=t}}function u(t,n){while(t>=f&&(n=d.exec(e)))l=n.index,f=l+n[0].length,h.lineNumber++;h.columnNumber=t-l+1}var l=0,f=0,d=/.*(?:\r\n?|\n)|.*$/g,h=i.locator,p=[{currentNSMap:t}],v={},m=0;while(1){try{var T=e.indexOf("<",m);if(T<0){if(!e.substr(m).match(/^\s*$/)){var E=i.doc,N=E.createTextNode(e.substr(m));E.appendChild(N),i.currentElement=N}return}switch(T>m&&c(T),e.charAt(T+1)){case"/":var S=e.indexOf(">",T+3),O=e.substring(T+2,S).replace(/[ \t\n\r]+$/g,""),D=p.pop();S<0?(O=e.substring(T+2).replace(/[\s<].*/,""),o.error("end tag name: "+O+" is not complete:"+D.tagName),S=T+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),o.error("end tag name: "+O+" maybe not complete"),S=T+1+O.length);var x=D.localNSMap,R=D.tagName==O,k=R||D.tagName&&D.tagName.toLowerCase()==O.toLowerCase();if(k){if(i.endElement(D.uri,D.localName,O),x)for(var L in x)Object.prototype.hasOwnProperty.call(x,L)&&i.endPrefixMapping(L);R||o.fatalError("end tag name: "+O+" is not match the current start tagName:"+D.tagName)}else p.push(D);S++;break;case"?":h&&u(T),S=_(e,T,i);break;case"!":h&&u(T),S=A(e,T,i,o);break;default:h&&u(T);var j=new w,P=p[p.length-1].currentNSMap,U=(S=I(e,T,j,P,s,o),j.length);if(!j.closed&&C(e,S,j.tagName,v)&&(j.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),h&&U){for(var z=y(h,{}),B=0;B<U;B++){var G=j[B];u(G.offset),G.locator=y(h,{})}i.locator=z,M(j,i,P)&&p.push(j),i.locator=h}else M(j,i,P)&&p.push(j);r.isHTML(j.uri)&&!j.closed?S=b(e,S,j.tagName,s,i):S++}}catch(Y){if(Y instanceof g)throw Y;o.error("element parse error: "+Y),S=-1}S>m?m=S:c(Math.max(T,m)+1)}}function y(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function I(e,t,n,i,o,a){function g(e,t,r){n.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),r)}var v,m=++t,y=s;while(1){var I=e.charAt(m);switch(I){case"=":if(y===c)v=e.slice(t,m),y=l;else{if(y!==u)throw new Error("attribute equal must after attrName");y=l}break;case"'":case'"':if(y===l||y===c){if(y===c&&(a.warning('attribute value must after "="'),v=e.slice(t,m)),t=m+1,m=e.indexOf(I,t),!(m>0))throw new Error("attribute value no end '"+I+"' match");M=e.slice(t,m),g(v,M,t-1),y=d}else{if(y!=f)throw new Error('attribute value must after "="');M=e.slice(t,m),g(v,M,t),a.warning('attribute "'+v+'" missed start quot('+I+")!!"),t=m+1,y=d}break;case"/":switch(y){case s:n.setTagName(e.slice(t,m));case d:case h:case p:y=p,n.closed=!0;case f:case c:case u:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),y==s&&n.setTagName(e.slice(t,m)),m;case">":switch(y){case s:n.setTagName(e.slice(t,m));case d:case h:case p:break;case f:case c:M=e.slice(t,m),"/"===M.slice(-1)&&(n.closed=!0,M=M.slice(0,-1));case u:y===u&&(M=v),y==f?(a.warning('attribute "'+M+'" missed quot(")!'),g(v,M,t)):(r.isHTML(i[""])&&M.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+M+'" missed value!! "'+M+'" instead!!'),g(M,M,t));break;case l:throw new Error("attribute value missed!!")}return m;case"€":I=" ";default:if(I<=" ")switch(y){case s:n.setTagName(e.slice(t,m)),y=h;break;case c:v=e.slice(t,m),y=u;break;case f:var M=e.slice(t,m);a.warning('attribute "'+M+'" missed quot(")!!'),g(v,M,t);case d:y=h;break}else switch(y){case u:n.tagName;r.isHTML(i[""])&&v.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+v+'" missed value!! "'+v+'" instead2!!'),g(v,v,t),t=m,y=c;break;case d:a.warning('attribute space is required"'+v+'"!!');case h:y=c,t=m;break;case l:y=f,t=m;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}m++}}function M(e,t,n){var i=e.tagName,o=null,a=e.length;while(a--){var s=e[a],c=s.qName,u=s.value,l=c.indexOf(":");if(l>0)var f=s.prefix=c.slice(0,l),d=c.slice(l+1),h="xmlns"===f&&d;else d=c,f=null,h="xmlns"===c&&"";s.localName=d,!1!==h&&(null==o&&(o={},T(n,n={})),n[h]=o[h]=u,s.uri=r.XMLNS,t.startPrefixMapping(h,u))}a=e.length;while(a--){s=e[a];f=s.prefix;f&&("xml"===f&&(s.uri=r.XML),"xmlns"!==f&&(s.uri=n[f||""]))}l=i.indexOf(":");l>0?(f=e.prefix=i.slice(0,l),d=e.localName=i.slice(l+1)):(f=null,d=e.localName=i);var p=e.uri=n[f||""];if(t.startElement(p,d,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,d,i),o)for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&t.endPrefixMapping(f)}function b(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function C(e,t,n,r){var i=r[n];return null==i&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function T(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function A(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if("-"===e.charAt(t+3)){var o=e.indexOf("--\x3e",t+4);return o>t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var a=E(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],u=!1,l=!1;s>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],l=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(l=a[3][0]));var f=a[s-1];return n.startDTD(c,u,l),n.endDTD(),f.index+f[0].length}}return-1}function _(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function w(){this.attributeNames={}}function E(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e))if(r.push(n),n[1])return r}g.prototype=new Error,g.prototype.name=g.name,v.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),T(t,t={}),m(e,t,n,r,this.errorHandler),r.endDocument()}},w.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=v,t.ParseError=g},"./node_modules/process/browser.js":
  113. /*!*****************************************!*\
  114. !*** ./node_modules/process/browser.js ***!
  115. \*****************************************/
  116. /*! no static exports found */function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function c(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}})();var u,l=[],f=!1,d=-1;function h(){f&&u&&(f=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!f){var e=s(h);f=!0;var t=l.length;while(t){u=l,l=[];while(++d<t)u&&u[d].run();d=-1,t=l.length}u=null,f=!1,c(e)}}function g(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new g(e,t)),1!==l.length||f||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},"./node_modules/webpack/buildin/amd-options.js":
  117. /*!****************************************!*\
  118. !*** (webpack)/buildin/amd-options.js ***!
  119. \****************************************/
  120. /*! no static exports found */function(e,t){(function(t){e.exports=t}).call(this,{})},"./node_modules/webpack/buildin/global.js":
  121. /*!***********************************!*\
  122. !*** (webpack)/buildin/global.js ***!
  123. \***********************************/
  124. /*! no static exports found */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},"./node_modules/webpack/buildin/module.js":
  125. /*!***********************************!*\
  126. !*** (webpack)/buildin/module.js ***!
  127. \***********************************/
  128. /*! no static exports found */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}},"./package.json":
  129. /*!**********************!*\
  130. !*** ./package.json ***!
  131. \**********************/
  132. /*! exports provided: name, version, description, main, types, scripts, repository, keywords, author, license, bugs, homepage, dependencies, devDependencies, default */function(e){e.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.4.20","description":"JavaScript SDK for [腾讯云对象存储](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js test/test.js server/sts.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"@xmldom/xmldom":"^0.8.6"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":
  133. /*!************************!*\
  134. !*** ./src/advance.js ***!
  135. \************************/
  136. /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=n(/*! ./session */"./src/session.js"),o=n(/*! ./async */"./src/async.js"),a=n(/*! ./event */"./src/event.js").EventProxy,s=n(/*! ./util */"./src/util.js"),c=n(/*! ./tracker */"./src/tracker.js");function u(e,t){var n,r,o=this,c=new a,u=e.TaskId,f=e.Bucket,d=e.Region,p=e.Key,v=e.Body,m=e.ChunkSize||e.SliceSize||o.options.ChunkSize,y=e.AsyncLimit,I=e.StorageClass,M=e.ServerSideEncryption,b=e.onHashProgress,C=e.tracker;C&&C.setParams({chunkSize:m}),c.on("error",(function(n){if(o._isRunningTask(u))return n.UploadId=e.UploadData.UploadId||"",t(n)})),c.on("upload_complete",(function(n){var r=s.extend({UploadId:e.UploadData.UploadId||""},n);t(null,r)})),c.on("upload_slice_complete",(function(t){var a={};s.each(e.Headers,(function(e,t){var n=t.toLowerCase();0!==n.indexOf("x-cos-meta-")&&"pic-operations"!==n||(a[t]=e)})),g.call(o,{Bucket:f,Region:d,Key:p,UploadId:t.UploadId,SliceList:t.SliceList,Headers:a,tracker:C},(function(e,a){if(o._isRunningTask(u)){if(i.removeUsing(t.UploadId),e)return r(null,!0),c.emit("error",e);i.removeUploadId.call(o,t.UploadId),r({loaded:n,total:n},!0),c.emit("upload_complete",a)}}))})),c.on("get_upload_data_finish",(function(t){var a=i.getFileId(v,e.ChunkSize,f,p);a&&i.saveUploadId.call(o,a,t.UploadId,o.options.UploadIdCacheLimit),i.setUsing(t.UploadId),r(null,!0),h.call(o,{TaskId:u,Bucket:f,Region:d,Key:p,Body:v,FileSize:n,SliceSize:m,AsyncLimit:y,ServerSideEncryption:M,UploadData:t,Headers:e.Headers,onProgress:r,tracker:C},(function(e,t){if(o._isRunningTask(u))return e?(r(null,!0),c.emit("error",e)):void c.emit("upload_slice_complete",t)}))})),c.on("get_file_size_finish",(function(){if(r=s.throttleOnProgress.call(o,n,e.onProgress),e.UploadData.UploadId)c.emit("get_upload_data_finish",e.UploadData);else{var t=s.extend({TaskId:u,Bucket:f,Region:d,Key:p,Headers:e.Headers,StorageClass:I,Body:v,FileSize:n,SliceSize:m,onHashProgress:b,tracker:C},e);l.call(o,t,(function(t,n){if(o._isRunningTask(u)){if(t)return c.emit("error",t);e.UploadData.UploadId=n.UploadId,e.UploadData.PartList=n.PartList,c.emit("get_upload_data_finish",e.UploadData)}}))}})),n=e.ContentLength,delete e.ContentLength,!e.Headers&&(e.Headers={}),s.each(e.Headers,(function(t,n){"content-length"===n.toLowerCase()&&delete e.Headers[n]})),function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],r=1048576,i=0;i<t.length;i++)if(r=1024*t[i]*1024,n/r<=o.options.MaxPartNumber)break;e.ChunkSize=e.SliceSize=m=Math.max(m,r)}(),0===n?(e.Body="",e.ContentLength=0,e.SkipTask=!0,o.putObject(e,t)):c.emit("get_file_size_finish")}function l(e,t){var n=e.TaskId,r=e.Bucket,c=e.Region,u=e.Key,l=e.StorageClass,h=this,p={},g=e.FileSize,v=e.SliceSize,m=Math.ceil(g/v),y=0,I=s.throttleOnProgress.call(h,g,e.onHashProgress),M=function(t,n){var r=v*(t-1),i=Math.min(r+v,g),o=i-r;p[t]?n(null,{PartNumber:t,ETag:p[t],Size:o}):s.fileSlice(e.Body,r,i,!1,(function(e){s.getFileMd5(e,(function(e,r){if(e)return n(s.error(e));var i='"'+r+'"';p[t]=i,1,y+=o,I({loaded:y,total:g}),n(null,{PartNumber:t,ETag:i,Size:o})}))}))},b=function(e,t){var n=e.length;if(0===n)return t(null,!0);if(n>m)return t(null,!1);if(n>1){var r=Math.max(e[0].Size,e[1].Size);if(r!==v)return t(null,!1)}var i=function r(i){if(i<n){var o=e[i];M(o.PartNumber,(function(e,n){n&&n.ETag===o.ETag&&n.Size===o.Size?r(i+1):t(null,!1)}))}else t(null,!0)};i(0)},C=new a;C.on("error",(function(e){if(h._isRunningTask(n))return t(e)})),C.on("upload_id_available",(function(e){var n={},r=[];s.each(e.PartList,(function(e){n[e.PartNumber]=e}));for(var i=1;i<=m;i++){var o=n[i];o?(o.PartNumber=i,o.Uploaded=!0):o={PartNumber:i,ETag:null,Uploaded:!1},r.push(o)}e.PartList=r,t(null,e)})),C.on("no_available_upload_id",(function(){if(h._isRunningTask(n)){var i=s.extend({Bucket:r,Region:c,Key:u,Query:s.clone(e.Query),StorageClass:l,Body:e.Body,calledBySdk:"sliceUploadFile",tracker:e.tracker},e),o=s.clone(e.Headers);delete o["x-cos-mime-limit"],i.Headers=o,h.multipartInit(i,(function(e,r){if(h._isRunningTask(n)){if(e)return C.emit("error",e);var i=r.UploadId;if(!i)return t(s.error(new Error("no such upload id")));C.emit("upload_id_available",{UploadId:i,PartList:[]})}}))}})),C.on("has_and_check_upload_id",(function(t){t=t.reverse(),o.eachLimit(t,1,(function(t,o){h._isRunningTask(n)&&(i.using[t]?o():d.call(h,{Bucket:r,Region:c,Key:u,UploadId:t,tracker:e.tracker},(function(e,r){if(h._isRunningTask(n)){if(e)return i.removeUsing(t),C.emit("error",e);var a=r.PartList;a.forEach((function(e){e.PartNumber*=1,e.Size*=1,e.ETag=e.ETag||""})),b(a,(function(e,r){if(h._isRunningTask(n))return e?C.emit("error",e):void(r?o({UploadId:t,PartList:a}):o())}))}})))}),(function(e){h._isRunningTask(n)&&(I(null,!0),e&&e.UploadId?C.emit("upload_id_available",e):C.emit("no_available_upload_id"))}))})),C.on("seek_local_avail_upload_id",(function(t){var o=i.getFileId(e.Body,e.ChunkSize,r,u),a=i.getUploadIdList.call(h,o);if(o&&a){var l=function o(l){if(l>=a.length)C.emit("has_and_check_upload_id",t);else{var f=a[l];if(!s.isInArray(t,f))return i.removeUploadId.call(h,f),void o(l+1);i.using[f]?o(l+1):d.call(h,{Bucket:r,Region:c,Key:u,UploadId:f,tracker:e.tracker},(function(e,t){h._isRunningTask(n)&&(e?(i.removeUploadId.call(h,f),o(l+1)):C.emit("upload_id_available",{UploadId:f,PartList:t.PartList}))}))}};l(0)}else C.emit("has_and_check_upload_id",t)})),C.on("get_remote_upload_id_list",(function(){f.call(h,{Bucket:r,Region:c,Key:u,tracker:e.tracker},(function(t,o){if(h._isRunningTask(n)){if(t)return C.emit("error",t);var a=s.filter(o.UploadList,(function(e){return e.Key===u&&(!l||e.StorageClass.toUpperCase()===l.toUpperCase())})).reverse().map((function(e){return e.UploadId||e.UploadID}));if(a.length)C.emit("seek_local_avail_upload_id",a);else{var c,f=i.getFileId(e.Body,e.ChunkSize,r,u);f&&(c=i.getUploadIdList.call(h,f))&&s.each(c,(function(e){i.removeUploadId.call(h,e)})),C.emit("no_available_upload_id")}}}))})),C.emit("get_remote_upload_id_list")}function f(e,t){var n=this,r=[],i={Bucket:e.Bucket,Region:e.Region,Prefix:e.Key,calledBySdk:e.calledBySdk||"sliceUploadFile",tracker:e.tracker},o=function e(){n.multipartList(i,(function(n,o){if(n)return t(n);r.push.apply(r,o.Upload||[]),"true"===o.IsTruncated?(i.KeyMarker=o.NextKeyMarker,i.UploadIdMarker=o.NextUploadIdMarker,e()):t(null,{UploadList:r})}))};o()}function d(e,t){var n=this,r=[],i={Bucket:e.Bucket,Region:e.Region,Key:e.Key,UploadId:e.UploadId,calledBySdk:"sliceUploadFile",tracker:e.tracker},o=function e(){n.multipartListPart(i,(function(n,o){if(n)return t(n);r.push.apply(r,o.Part||[]),"true"===o.IsTruncated?(i.PartNumberMarker=o.NextPartNumberMarker,e()):t(null,{PartList:r})}))};o()}function h(e,t){var n=this,r=e.TaskId,i=e.Bucket,a=e.Region,c=e.Key,u=e.UploadData,l=e.FileSize,f=e.SliceSize,d=Math.min(e.AsyncLimit||n.options.ChunkParallelLimit||1,256),h=e.Body,g=Math.ceil(l/f),v=0,m=e.ServerSideEncryption,y=e.Headers,I=s.filter(u.PartList,(function(e){return e["Uploaded"]&&(v+=e["PartNumber"]>=g&&l%f||f),!e["Uploaded"]})),M=e.onProgress;o.eachLimit(I,d,(function(t,o){if(n._isRunningTask(r)){var s=t["PartNumber"],d=Math.min(l,t["PartNumber"]*f)-(t["PartNumber"]-1)*f,g=0;p.call(n,{TaskId:r,Bucket:i,Region:a,Key:c,SliceSize:f,FileSize:l,PartNumber:s,ServerSideEncryption:m,Body:h,UploadData:u,Headers:y,onProgress:function(e){v+=e.loaded-g,g=e.loaded,M({loaded:v,total:l})},tracker:e.tracker},(function(e,i){n._isRunningTask(r)&&(e||i.ETag||(e='get ETag error, please add "ETag" to CORS ExposeHeader setting.( 获取ETag失败,请在CORS ExposeHeader设置中添加ETag,请参考文档:https://cloud.tencent.com/document/product/436/13318 )'),e?v-=g:(v+=d-g,t.ETag=i.ETag),M({loaded:v,total:l}),o(e||null,i))}))}}),(function(e){if(n._isRunningTask(r))return e?t(e):void t(null,{UploadId:u.UploadId,SliceList:u.PartList})}))}function p(e,t){var n=this,r=e.TaskId,i=e.Bucket,a=e.Region,c=e.Key,u=e.FileSize,l=e.Body,f=1*e.PartNumber,d=e.SliceSize,h=e.ServerSideEncryption,p=e.UploadData,g=e.Headers||{},v=n.options.ChunkRetryTimes+1,m=d*(f-1),y=d,I=m+d;I>u&&(I=u,y=I-m);var M=["x-cos-traffic-limit","x-cos-mime-limit"],b={};s.each(g,(function(e,t){M.indexOf(t)>-1&&(b[t]=e)}));var C=p.PartList[f-1];o.retry(v,(function(t){n._isRunningTask(r)&&s.fileSlice(l,m,I,!0,(function(o){n.multipartUpload({TaskId:r,Bucket:i,Region:a,Key:c,ContentLength:y,PartNumber:f,UploadId:p.UploadId,ServerSideEncryption:h,Body:o,Headers:b,onProgress:e.onProgress,calledBySdk:"sliceUploadFile",tracker:e.tracker},(function(e,i){if(n._isRunningTask(r))return e?t(e):(C.Uploaded=!0,t(null,i))}))}))}),(function(e,i){if(n._isRunningTask(r))return t(e,i)}))}function g(e,t){var n=e.Bucket,r=e.Region,i=e.Key,a=e.UploadId,s=e.SliceList,c=this,u=this.options.ChunkRetryTimes+1,l=e.Headers,f=s.map((function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(u,(function(t){c.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:a,Parts:f,Headers:l,calledBySdk:"sliceUploadFile",tracker:e.tracker},t)}),(function(e,n){t(e,n)}))}function v(e,t){var n=e.Bucket,r=e.Region,i=e.Key,o=e.UploadId,c=e.Level||"task",u=e.AsyncLimit,l=this,d=new a;if(d.on("error",(function(e){return t(e)})),d.on("get_abort_array",(function(o){m.call(l,{Bucket:n,Region:r,Key:i,Headers:e.Headers,AsyncLimit:u,AbortArray:o},t)})),"bucket"===c)f.call(l,{Bucket:n,Region:r,calledBySdk:"abortUploadTask"},(function(e,n){if(e)return t(e);d.emit("get_abort_array",n.UploadList||[])}));else if("file"===c){if(!i)return t(s.error(new Error("abort_upload_task_no_key")));f.call(l,{Bucket:n,Region:r,Key:i,calledBySdk:"abortUploadTask"},(function(e,n){if(e)return t(e);d.emit("get_abort_array",n.UploadList||[])}))}else{if("task"!==c)return t(s.error(new Error("abort_unknown_level")));if(!o)return t(s.error(new Error("abort_upload_task_no_id")));if(!i)return t(s.error(new Error("abort_upload_task_no_key")));d.emit("get_abort_array",[{Key:i,UploadId:o}])}}function m(e,t){var n=e.Bucket,r=e.Region,i=e.Key,a=e.AbortArray,s=e.AsyncLimit||1,c=this,u=0,l=new Array(a.length);o.eachLimit(a,s,(function(t,o){var a=u;if(i&&i!==t.Key)return l[a]={error:{KeyNotMatch:!0}},void o(null);var s=t.UploadId||t.UploadID;c.multipartAbort({Bucket:n,Region:r,Key:t.Key,Headers:e.Headers,UploadId:s},(function(e){var i={Bucket:n,Region:r,Key:t.Key,UploadId:s};l[a]={error:e,task:i},o(null)})),u++}),(function(e){if(e)return t(e);for(var n=[],r=[],i=0,o=l.length;i<o;i++){var a=l[i];a["task"]&&(a["error"]?r.push(a["task"]):n.push(a["task"]))}return t(null,{successList:n,errorList:r})}))}function y(e,t){var n=this,i=void 0===e.SliceSize?n.options.SliceSize:e.SliceSize,o=[],a=e.Body,u=a.size||a.length||0,l={TaskId:""};if(n.options.EnableTracker){var f=n.options.UseAccelerate||"string"===typeof n.options.Domain&&n.options.Domain.includes("accelerate.");e.tracker=new c({bucket:e.Bucket,region:e.Region,apiName:"uploadFile",fileKey:e.Key,fileSize:u,accelerate:f,deepTracker:n.options.DeepTracker,customId:n.options.CustomId,delay:n.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==r(e)&&"function"!==typeof e&&(l[t]=e)}));var d=e.onTaskReady,h=function(e){l.TaskId=e,d&&d(e)};e.onTaskReady=h;var p=u>i?"sliceUploadFile":"putObject",g=e.onFileFinish,v=function(n,r){e.tracker&&e.tracker.formatResult(n,r),g&&g(n,r,l),t&&t(n,r)};o.push({api:p,params:e,callback:v}),n._addTasks(o)}function I(e,t){var n=this,i=void 0===e.SliceSize?n.options.SliceSize:e.SliceSize,o=0,a=0,u=s.throttleOnProgress.call(n,a,e.onProgress),l=e.files.length,f=e.onFileFinish,d=Array(l),h=function(e,n,r){u(null,!0),f&&f(e,n,r),d[r.Index]={options:r,error:e,data:n},--l<=0&&t&&t(null,{files:d})},p=[];s.each(e.files,(function(e,t){(function(){var l=e.Body,f=l.size||l.length||0,d={Index:t,TaskId:""};if(!n.options.UseRawKey&&e.Key&&"/"===e.Key.substr(0,1)&&(e.Key=e.Key.substr(1)),o+=f,n.options.EnableTracker){var g=n.options.UseAccelerate||"string"===typeof n.options.Domain&&n.options.Domain.includes("accelerate.");e.tracker=new c({bucket:e.Bucket,region:e.Region,apiName:"uploadFiles",fileKey:e.Key,fileSize:f,accelerate:g,deepTracker:n.options.DeepTracker,customId:n.options.CustomId,delay:n.options.TrackerDelay})}s.each(e,(function(e,t){"object"!==r(e)&&"function"!==typeof e&&(d[t]=e)}));var v=e.onTaskReady,m=function(e){d.TaskId=e,v&&v(e)};e.onTaskReady=m;var y=0,I=e.onProgress,M=function(e){a=a-y+e.loaded,y=e.loaded,I&&I(e),u({loaded:a,total:o})};e.onProgress=M;var b=f>i?"sliceUploadFile":"putObject",C=e.onFileFinish,T=function(t,n){e.tracker&&e.tracker.formatResult(t,n),C&&C(t,n),h&&h(t,n,d)};p.push({api:b,params:e,callback:T})})()})),n._addTasks(p)}function M(e,t){var n=new a,r=this,c=e.Bucket,u=e.Region,l=e.Key,f=e.CopySource,h=s.getSourceParams.call(this,f);if(h){var p=h.Bucket,g=h.Region,v=decodeURIComponent(h.Key),m=void 0===e.CopySliceSize?r.options.CopySliceSize:e.CopySliceSize;m=Math.max(0,m);var y,I,M=e.CopyChunkSize||this.options.CopyChunkSize,C=this.options.CopyChunkParallelLimit,T=this.options.ChunkRetryTimes+1,A=0,_=0,w={},E={},N={};n.on("copy_slice_complete",(function(n){var a={};s.each(e.Headers,(function(e,t){0===t.toLowerCase().indexOf("x-cos-meta-")&&(a[t]=e)}));var f=s.map(n.PartList,(function(e){return{PartNumber:e.PartNumber,ETag:e.ETag}}));o.retry(T,(function(e){r.multipartComplete({Bucket:c,Region:u,Key:l,UploadId:n.UploadId,Parts:f,calledBySdk:"sliceCopyFile"},e)}),(function(e,r){if(i.removeUsing(n.UploadId),e)return I(null,!0),t(e);i.removeUploadId(n.UploadId),I({loaded:y,total:y},!0),t(null,r)}))})),n.on("get_copy_data_finish",(function(e){var a=i.getCopyFileId(f,w,M,c,l);a&&i.saveUploadId(a,e.UploadId,r.options.UploadIdCacheLimit),i.setUsing(e.UploadId);var d=s.filter(e.PartList,(function(e){return e["Uploaded"]&&(_+=e["PartNumber"]>=A&&y%M||M),!e["Uploaded"]}));o.eachLimit(d,C,(function(t,n){var i=t.PartNumber,a=t.CopySourceRange,s=t.end-t.start;o.retry(T,(function(t){b.call(r,{Bucket:c,Region:u,Key:l,CopySource:f,UploadId:e.UploadId,PartNumber:i,CopySourceRange:a},t)}),(function(e,r){if(e)return n(e);_+=s,I({loaded:_,total:y}),t.ETag=r.ETag,n(e||null,r)}))}),(function(r){if(r)return i.removeUsing(e.UploadId),I(null,!0),t(r);n.emit("copy_slice_complete",e)}))})),n.on("get_chunk_size_finish",(function(){var o=function(){r.multipartInit({Bucket:c,Region:u,Key:l,Headers:N},(function(r,i){if(r)return t(r);e.UploadId=i.UploadId,n.emit("get_copy_data_finish",{UploadId:e.UploadId,PartList:e.PartList})}))},a=i.getCopyFileId(f,w,M,c,l),h=i.getUploadIdList(a);if(!a||!h)return o();var p=function t(a){if(a>=h.length)return o();var f=h[a];if(i.using[f])return t(a+1);d.call(r,{Bucket:c,Region:u,Key:l,UploadId:f},(function(r,o){if(r)i.removeUploadId(f),t(a+1);else{if(i.using[f])return t(a+1);var c={},u=0;s.each(o.PartList,(function(e){var t=parseInt(e.Size),n=u+t-1;c[e.PartNumber+"|"+u+"|"+n]=e.ETag,u+=t})),s.each(e.PartList,(function(e){var t=c[e.PartNumber+"|"+e.start+"|"+e.end];t&&(e.ETag=t,e.Uploaded=!0)})),n.emit("get_copy_data_finish",{UploadId:f,PartList:e.PartList})}}))};p(0)})),n.on("get_file_size_finish",(function(){if(function(){for(var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,5120],n=1048576,i=0;i<t.length;i++)if(n=1024*t[i]*1024,y/n<=r.options.MaxPartNumber)break;e.ChunkSize=M=Math.max(M,n),A=Math.ceil(y/M);for(var o=[],a=1;a<=A;a++){var s=(a-1)*M,c=a*M<y?a*M-1:y-1,u={PartNumber:a,start:s,end:c,CopySourceRange:"bytes="+s+"-"+c};o.push(u)}e.PartList=o}(),N="Replaced"===e.Headers["x-cos-metadata-directive"]?e.Headers:E,N["x-cos-storage-class"]=e.Headers["x-cos-storage-class"]||E["x-cos-storage-class"],N=s.clearKey(N),"ARCHIVE"===E["x-cos-storage-class"]||"DEEP_ARCHIVE"===E["x-cos-storage-class"]){var i=E["x-cos-restore"];if(!i||'ongoing-request="true"'===i)return void t(s.error(new Error("Unrestored archive object is not allowed to be copied")))}delete N["x-cos-copy-source"],delete N["x-cos-metadata-directive"],delete N["x-cos-copy-source-If-Modified-Since"],delete N["x-cos-copy-source-If-Unmodified-Since"],delete N["x-cos-copy-source-If-Match"],delete N["x-cos-copy-source-If-None-Match"],n.emit("get_chunk_size_finish")})),r.headObject({Bucket:p,Region:g,Key:v},(function(i,o){if(i)i.statusCode&&404===i.statusCode?t(s.error(i,{ErrorStatus:v+" Not Exist"})):t(i);else if(y=e.FileSize=o.headers["content-length"],void 0!==y&&y)if(I=s.throttleOnProgress.call(r,y,e.onProgress),y<=m)e.Headers["x-cos-metadata-directive"]||(e.Headers["x-cos-metadata-directive"]="Copy"),r.putObjectCopy(e,(function(e,n){if(e)return I(null,!0),t(e);I({loaded:y,total:y},!0),t(e,n)}));else{var a=o.headers;w=a,E={"Cache-Control":a["cache-control"],"Content-Disposition":a["content-disposition"],"Content-Encoding":a["content-encoding"],"Content-Type":a["content-type"],Expires:a["expires"],"x-cos-storage-class":a["x-cos-storage-class"]},s.each(a,(function(e,t){var n="x-cos-meta-";0===t.indexOf(n)&&t.length>n.length&&(E[t]=e)})),n.emit("get_file_size_finish")}else t(s.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.( 获取Content-Length失败,请在CORS ExposeHeader设置中添加Content-Length,请参考文档:https://cloud.tencent.com/document/product/436/13318 )')))}))}else t(s.error(new Error("CopySource format error")))}function b(e,t){var n=e.TaskId,r=e.Bucket,i=e.Region,a=e.Key,s=e.CopySource,c=e.UploadId,u=1*e.PartNumber,l=e.CopySourceRange,f=this.options.ChunkRetryTimes+1,d=this;o.retry(f,(function(e){d.uploadPartCopy({TaskId:n,Bucket:r,Region:i,Key:a,CopySource:s,UploadId:c,PartNumber:u,CopySourceRange:l},(function(t,n){e(t||null,n)}))}),(function(e,n){return t(e,n)}))}var C={sliceUploadFile:u,abortUploadTask:v,uploadFile:y,uploadFiles:I,sliceCopyFile:M};e.exports.init=function(e,t){t.transferToTaskMethod(C,"sliceUploadFile"),s.each(C,(function(t,n){e.prototype[n]=s.apiWrapper(n,t)}))}},"./src/async.js":
  137. /*!**********************!*\
  138. !*** ./src/async.js ***!
  139. \**********************/
  140. /*! no static exports found */function(e,t){var n=function(e,t,n,r){if(r=r||function(){},!e.length||t<=0)return r();var i=0,o=0,a=0;(function s(){if(i>=e.length)return r();while(a<t&&o<e.length)o+=1,a+=1,n(e[o-1],(function(t){t?(r(t),r=function(){}):(i+=1,a-=1,i>=e.length?r():s())}))})()},r=function(e,t,n){var r=function r(i){t((function(t,o){t&&i<e?r(i+1):n(t,o)}))};e<1?n():r(1)},i={eachLimit:n,retry:r};e.exports=i},"./src/base.js":
  141. /*!*********************!*\
  142. !*** ./src/base.js ***!
  143. \*********************/
  144. /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=n(/*! ../lib/request */"./lib/request.js"),o=n(/*! ./util */"./src/util.js");function a(e,t){"function"===typeof e&&(t=e,e={});var n=this.options.Protocol||(o.isBrowser&&"object"===("undefined"===typeof location?"undefined":r(location))&&"http:"===location.protocol?"http:":"https:"),i=this.options.ServiceDomain,a=e.AppId||this.options.appId,s=e.Region;i?(i=i.replace(/\{\{AppId\}\}/gi,a||"").replace(/\{\{Region\}\}/gi,s||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(i)||(i=n+"//"+i),"/"===i.slice(-1)&&(i=i.slice(0,-1))):i=s?n+"//cos."+s+".myqcloud.com":n+"//service.cos.myqcloud.com";var c="",u=s?"cos."+s+".myqcloud.com":"service.cos.myqcloud.com",l=i.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");u===l&&(c=u),Re.call(this,{Action:"name/cos:GetService",url:i,method:"GET",headers:e.Headers,SignHost:c},(function(e,n){if(e)return t(e);var r=n&&n.ListAllMyBucketsResult&&n.ListAllMyBucketsResult.Buckets&&n.ListAllMyBucketsResult.Buckets.Bucket||[];r=o.isArray(r)?r:[r];var i=n&&n.ListAllMyBucketsResult&&n.ListAllMyBucketsResult.Owner||{};t(null,{Buckets:r,Owner:i,statusCode:n.statusCode,headers:n.headers})}))}function s(e,t){var n=this,r="";if(e["BucketAZConfig"]){var i={BucketAZConfig:e.BucketAZConfig};r=o.json2xml({CreateBucketConfiguration:i})}Re.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,body:r},(function(r,i){if(r)return t(r);var o=Se({protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,isLocation:!0});t(null,{Location:o,statusCode:i.statusCode,headers:i.headers})}))}function c(e,t){Re.call(this,{Action:"name/cos:HeadBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"HEAD"},t)}function u(e,t){var n={};n["prefix"]=e["Prefix"]||"",n["delimiter"]=e["Delimiter"],n["marker"]=e["Marker"],n["max-keys"]=e["MaxKeys"],n["encoding-type"]=e["EncodingType"],Re.call(this,{Action:"name/cos:GetBucket",ResourceKey:n["prefix"],method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n},(function(e,n){if(e)return t(e);var r=n.ListBucketResult||{},i=r.Contents||[],a=r.CommonPrefixes||[];i=o.isArray(i)?i:[i],a=o.isArray(a)?a:[a];var s=o.clone(r);o.extend(s,{Contents:i,CommonPrefixes:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function l(e,t){Re.call(this,{Action:"name/cos:DeleteBucket",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,method:"DELETE"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function f(e,t){var n=e.Headers,r="";if(e["AccessControlPolicy"]){var i=o.clone(e["AccessControlPolicy"]||{}),a=i.Grants||i.Grant;a=o.isArray(a)?a:[a],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:a},r=o.json2xml({AccessControlPolicy:i}),n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(r))}o.each(n,(function(e,t){0===t.indexOf("x-cos-grant-")&&(n[t]=Ne(n[t]))})),Re.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,headers:n,action:"acl",body:r},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function d(e,t){Re.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"acl"},(function(e,n){if(e)return t(e);var r=n.AccessControlPolicy||{},i=r.Owner||{},a=r.AccessControlList.Grant||[];a=o.isArray(a)?a:[a];var s=Ee(r);n.headers&&n.headers["x-cos-acl"]&&(s.ACL=n.headers["x-cos-acl"]),s=o.extend(s,{Owner:i,Grants:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function h(e,t){var n=e["CORSConfiguration"]||{},r=n["CORSRules"]||e["CORSRules"]||[];r=o.clone(o.isArray(r)?r:[r]),o.each(r,(function(e){o.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var n=t+"s",r=e[n]||e[t]||[];delete e[n],e[t]=o.isArray(r)?r:[r]}))}));var i={CORSRule:r};e.ResponseVary&&(i.ResponseVary=e.ResponseVary);var a=o.json2xml({CORSConfiguration:i}),s=e.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=o.b64(o.md5(a)),Re.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"cors",headers:s},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function p(e,t){Re.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},(function(e,n){if(e)if(404===e.statusCode&&e.error&&"NoSuchCORSConfiguration"===e.error.Code){var r={CORSRules:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=n.CORSConfiguration||{},a=i.CORSRules||i.CORSRule||[];a=o.clone(o.isArray(a)?a:[a]);var s=i.ResponseVary;o.each(a,(function(e){o.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],(function(t){var n=t+"s",r=e[n]||e[t]||[];delete e[t],e[n]=o.isArray(r)?r:[r]}))})),t(null,{CORSRules:a,ResponseVary:s,statusCode:n.statusCode,headers:n.headers})}}))}function g(e,t){Re.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"cors"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})}))}function v(e,t){Re.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"location"},t)}function m(e,t){var n=e["Policy"];try{"string"===typeof n&&(n=JSON.parse(n))}catch(a){}if(!n||"string"===typeof n)return t(o.error(new Error("Policy format error")));var r=JSON.stringify(n);n.version||(n.version="2.0");var i=e.Headers;i["Content-Type"]="application/json",i["Content-MD5"]=o.b64(o.md5(r)),Re.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:e.Bucket,Region:e.Region,action:"policy",body:r,headers:i},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function y(e,t){Re.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy",rawBody:!0},(function(e,n){if(e)return e.statusCode&&403===e.statusCode?t(o.error(e,{ErrorStatus:"Access Denied"})):e.statusCode&&405===e.statusCode?t(o.error(e,{ErrorStatus:"Method Not Allowed"})):e.statusCode&&404===e.statusCode?t(o.error(e,{ErrorStatus:"Policy Not Found"})):t(e);var r={};try{r=JSON.parse(n.body)}catch(i){}t(null,{Policy:r,statusCode:n.statusCode,headers:n.headers})}))}function I(e,t){Re.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"policy"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})}))}function M(e,t){var n=e["Tagging"]||{},r=n.TagSet||n.Tags||e["Tags"]||[];r=o.clone(o.isArray(r)?r:[r]);var i=o.json2xml({Tagging:{TagSet:{Tag:r}}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"tagging",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function b(e,t){Re.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var r={Tags:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else{var i=[];try{i=n.Tagging.TagSet.Tag||[]}catch(a){}i=o.clone(o.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:n.statusCode,headers:n.headers})}}))}function C(e,t){Re.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function T(e,t){var n=e["LifecycleConfiguration"]||{},r=n.Rules||e.Rules||[];r=o.clone(r);var i=o.json2xml({LifecycleConfiguration:{Rule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"lifecycle",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function A(e,t){Re.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},(function(e,n){if(e)if(404===e.statusCode&&e.error&&"NoSuchLifecycleConfiguration"===e.error.Code){var r={Rules:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=[];try{i=n.LifecycleConfiguration.Rule||[]}catch(a){}i=o.clone(o.isArray(i)?i:[i]),t(null,{Rules:i,statusCode:n.statusCode,headers:n.headers})}}))}function _(e,t){Re.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"lifecycle"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function w(e,t){if(e["VersioningConfiguration"]){var n=e["VersioningConfiguration"]||{},r=o.json2xml({VersioningConfiguration:n}),i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=o.b64(o.md5(r)),Re.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"versioning",headers:i},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param VersioningConfiguration")))}function E(e,t){Re.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"versioning"},(function(e,n){e||!n.VersioningConfiguration&&(n.VersioningConfiguration={}),t(e,n)}))}function N(e,t){var n=o.clone(e.ReplicationConfiguration),r=o.json2xml({ReplicationConfiguration:n});r=r.replace(/<(\/?)Rules>/gi,"<$1Rule>"),r=r.replace(/<(\/?)Tags>/gi,"<$1Tag>");var i=e.Headers;i["Content-Type"]="application/xml",i["Content-MD5"]=o.b64(o.md5(r)),Re.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"replication",headers:i},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function S(e,t){Re.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"ReplicationConfigurationnotFoundError"!==e.error.Code)t(e);else{var r={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else!n.ReplicationConfiguration&&(n.ReplicationConfiguration={}),n.ReplicationConfiguration.Rule&&(n.ReplicationConfiguration.Rules=o.makeArray(n.ReplicationConfiguration.Rule),delete n.ReplicationConfiguration.Rule),t(e,n)}))}function O(e,t){Re.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function D(e,t){if(e["WebsiteConfiguration"]){var n=o.clone(e["WebsiteConfiguration"]||{}),r=n["RoutingRules"]||n["RoutingRule"]||[];r=o.isArray(r)?r:[r],delete n.RoutingRule,delete n.RoutingRules,r.length&&(n.RoutingRules={RoutingRule:r});var i=o.json2xml({WebsiteConfiguration:n}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"website",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param WebsiteConfiguration")))}function x(e,t){Re.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchWebsiteConfiguration"===e.error.Code){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=n.WebsiteConfiguration||{};if(i["RoutingRules"]){var a=o.clone(i["RoutingRules"].RoutingRule||[]);a=o.makeArray(a),i.RoutingRules=a}t(null,{WebsiteConfiguration:i,statusCode:n.statusCode,headers:n.headers})}}))}function R(e,t){Re.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function k(e,t){if(e["RefererConfiguration"]){var n=o.clone(e["RefererConfiguration"]||{}),r=n["DomainList"]||{},i=r["Domains"]||r["Domain"]||[];i=o.isArray(i)?i:[i],i.length&&(n.DomainList={Domain:i});var a=o.json2xml({RefererConfiguration:n}),s=e.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=o.b64(o.md5(a)),Re.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:a,action:"referer",headers:s},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param RefererConfiguration")))}function L(e,t){Re.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchRefererConfiguration"===e.error.Code){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=n.RefererConfiguration||{};if(i["DomainList"]){var a=o.makeArray(i["DomainList"].Domain||[]);i.DomainList={Domains:a}}t(null,{RefererConfiguration:i,statusCode:n.statusCode,headers:n.headers})}}))}function j(e,t){var n=e["DomainConfiguration"]||{},r=n.DomainRule||e.DomainRule||[];r=o.clone(r);var i=o.json2xml({DomainConfiguration:{DomainRule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"domain",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function P(e,t){Re.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},(function(e,n){if(e)return t(e);var r=[];try{r=n.DomainConfiguration.DomainRule||[]}catch(i){}r=o.clone(o.isArray(r)?r:[r]),t(null,{DomainRule:r,statusCode:n.statusCode,headers:n.headers})}))}function U(e,t){Re.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function z(e,t){var n=e["OriginConfiguration"]||{},r=n.OriginRule||e.OriginRule||[];r=o.clone(r);var i=o.json2xml({OriginConfiguration:{OriginRule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"origin",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function B(e,t){Re.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},(function(e,n){if(e)return t(e);var r=[];try{r=n.OriginConfiguration.OriginRule||[]}catch(i){}r=o.clone(o.isArray(r)?r:[r]),t(null,{OriginRule:r,statusCode:n.statusCode,headers:n.headers})}))}function G(e,t){Re.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function Y(e,t){var n=o.json2xml({BucketLoggingStatus:e["BucketLoggingStatus"]||""}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=o.b64(o.md5(n)),Re.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"logging",headers:r},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function H(e,t){Re.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},(function(e,n){if(e)return t(e);t(null,{BucketLoggingStatus:n.BucketLoggingStatus,statusCode:n.statusCode,headers:n.headers})}))}function F(e,t,n){var r=o.clone(t["InventoryConfiguration"]);if(r.OptionalFields){var i=r.OptionalFields||[];r.OptionalFields={Field:i}}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var a=r.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSECOS")>-1&&(a["SSE-COS"]=a["SSECOS"],delete a["SSECOS"])}var s=o.json2xml({InventoryConfiguration:r}),c=t.Headers;c["Content-Type"]="application/xml",c["Content-MD5"]=o.b64(o.md5(s));var u="PUT"===e?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";Re.call(this,{Action:u,method:e,Bucket:t.Bucket,Region:t.Region,body:s,action:"inventory",qs:{id:t["Id"]},headers:c},(function(e,t){return e&&204===e.statusCode?n(null,{statusCode:e.statusCode}):e?n(e):void n(null,{statusCode:t.statusCode,headers:t.headers})}))}function $(e,t){return F.call(this,"PUT",e,t)}function V(e,t){return F.call(this,"POST",e,t)}function Q(e,t){Re.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e["Id"]}},(function(e,n){if(e)return t(e);var r=n["InventoryConfiguration"];if(r&&r.OptionalFields&&r.OptionalFields.Field){var i=r.OptionalFields.Field;o.isArray(i)||(i=[i]),r.OptionalFields=i}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var a=r.Destination.COSBucketDestination.Encryption;Object.keys(a).indexOf("SSE-COS")>-1&&(a["SSECOS"]=a["SSE-COS"],delete a["SSE-COS"])}t(null,{InventoryConfiguration:r,statusCode:n.statusCode,headers:n.headers})}))}function W(e,t){Re.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e["ContinuationToken"]}},(function(e,n){if(e)return t(e);var r=n["ListInventoryConfigurationResult"],i=r.InventoryConfiguration||[];i=o.isArray(i)?i:[i],delete r["InventoryConfiguration"],o.each(i,(function(e){if(e&&e.OptionalFields&&e.OptionalFields.Field){var t=e.OptionalFields.Field;o.isArray(t)||(t=[t]),e.OptionalFields=t}if(e.Destination&&e.Destination.COSBucketDestination&&e.Destination.COSBucketDestination.Encryption){var n=e.Destination.COSBucketDestination.Encryption;Object.keys(n).indexOf("SSE-COS")>-1&&(n["SSECOS"]=n["SSE-COS"],delete n["SSE-COS"])}})),r.InventoryConfigurations=i,o.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}function Z(e,t){Re.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e["Id"]}},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function K(e,t){if(e["AccelerateConfiguration"]){var n={AccelerateConfiguration:e.AccelerateConfiguration||{}},r=o.json2xml(n),i={"Content-Type":"application/xml"};i["Content-MD5"]=o.b64(o.md5(r)),Re.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:r,action:"accelerate",headers:i},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}else t(o.error(new Error("missing param AccelerateConfiguration")))}function q(e,t){Re.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},(function(e,n){e||!n.AccelerateConfiguration&&(n.AccelerateConfiguration={}),t(e,n)}))}function J(e,t){var n=e.ServerSideEncryptionConfiguration||{},r=n.Rule||n.Rules||[],i=o.json2xml({ServerSideEncryptionConfiguration:{Rule:r}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:i,action:"encryption",headers:a},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function X(e,t){Re.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},(function(e,n){if(e)if(404===e.statusCode&&"NoSuchEncryptionConfiguration"===e.code){var r={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else t(e);else{var i=o.makeArray(n.EncryptionConfiguration&&n.EncryptionConfiguration.Rule||[]);n.EncryptionConfiguration={Rules:i},t(e,n)}}))}function ee(e,t){Re.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function te(e,t){Re.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},(function(n,r){if(n){var i=n.statusCode;return e.Headers["If-Modified-Since"]&&i&&304===i?t(null,{NotModified:!0,statusCode:i}):t(n)}r.ETag=o.attr(r.headers,"etag",""),t(null,r)}))}function ne(e,t){var n={};n["prefix"]=e["Prefix"]||"",n["delimiter"]=e["Delimiter"],n["key-marker"]=e["KeyMarker"],n["version-id-marker"]=e["VersionIdMarker"],n["max-keys"]=e["MaxKeys"],n["encoding-type"]=e["EncodingType"],Re.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:n["prefix"],method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n,action:"versions"},(function(e,n){if(e)return t(e);var r=n.ListVersionsResult||{},i=r.DeleteMarker||[];i=o.isArray(i)?i:[i];var a=r.Version||[];a=o.isArray(a)?a:[a];var s=o.clone(r);delete s.DeleteMarker,delete s.Version,o.extend(s,{DeleteMarkers:i,Versions:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function re(e,t){var n=e.Query||{},r=e.QueryString||"",i=o.throttleOnProgress.call(this,0,e.onProgress),a=e.tracker;a&&a.setParams({signStartTime:(new Date).getTime()}),n["response-content-type"]=e["ResponseContentType"],n["response-content-language"]=e["ResponseContentLanguage"],n["response-expires"]=e["ResponseExpires"],n["response-cache-control"]=e["ResponseCacheControl"],n["response-content-disposition"]=e["ResponseContentDisposition"],n["response-content-encoding"]=e["ResponseContentEncoding"],Re.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:n,qsStr:r,rawBody:!0,onDownloadProgress:i,tracker:a},(function(n,r){if(i(null,!0),n){var a=n.statusCode;return e.Headers["If-Modified-Since"]&&a&&304===a?t(null,{NotModified:!0}):t(n)}t(null,{Body:r.body,ETag:o.attr(r.headers,"etag",""),statusCode:r.statusCode,headers:r.headers})}))}function ie(e,t){var n=this,r=e.ContentLength,i=o.throttleOnProgress.call(n,r,e.onProgress),a=e.Headers;a["Cache-Control"]||a["cache-control"]||(a["Cache-Control"]=""),a["Content-Type"]||a["content-type"]||(a["Content-Type"]=e.Body&&e.Body.type||"");var s=e.UploadAddMetaMd5||n.options.UploadAddMetaMd5||n.options.UploadCheckContentMd5,c=e.tracker;s&&c&&c.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(s,e.Body,(function(s){s&&(c&&c.setParams({md5EndTime:(new Date).getTime()}),n.options.UploadCheckContentMd5&&(a["Content-MD5"]=o.b64(s)),(e.UploadAddMetaMd5||n.options.UploadAddMetaMd5)&&(a["x-cos-meta-md5"]=s)),void 0!==e.ContentLength&&(a["Content-Length"]=e.ContentLength),i(null,!0),Re.call(n,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:i,tracker:c},(function(a,s){if(a)return i(null,!0),t(a);i({loaded:r,total:r},!0);var c=Se({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:n.options.UseAccelerate?"accelerate":e.Region,object:e.Key});c=c.substr(c.indexOf("://")+3),s.Location=c,s.ETag=o.attr(s.headers,"etag",""),t(null,s)}))}),e.onHashProgress)}function oe(e,t){Re.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},(function(e,n){if(e){var r=e.statusCode;return r&&404===r?t(null,{BucketNotFound:!0,statusCode:r}):t(e)}t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ae(e,t){var n={};e.VersionId&&(n.versionId=e.VersionId),Re.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n,action:"acl"},(function(e,n){if(e)return t(e);var r=n.AccessControlPolicy||{},i=r.Owner||{},a=r.AccessControlList&&r.AccessControlList.Grant||[];a=o.isArray(a)?a:[a];var s=Ee(r);delete s.GrantWrite,n.headers&&n.headers["x-cos-acl"]&&(s.ACL=n.headers["x-cos-acl"]),s=o.extend(s,{Owner:i,Grants:a,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function se(e,t){var n=e.Headers,r="";if(e["AccessControlPolicy"]){var i=o.clone(e["AccessControlPolicy"]||{}),a=i.Grants||i.Grant;a=o.isArray(a)?a:[a],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:a},r=o.json2xml({AccessControlPolicy:i}),n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(r))}o.each(n,(function(e,t){0===t.indexOf("x-cos-grant-")&&(n[t]=Ne(n[t]))})),Re.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:n,body:r},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ce(e,t){var n=e.Headers;n["Origin"]=e["Origin"],n["Access-Control-Request-Method"]=e["AccessControlRequestMethod"],n["Access-Control-Request-Headers"]=e["AccessControlRequestHeaders"],Re.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:n},(function(e,n){if(e)return e.statusCode&&403===e.statusCode?t(null,{OptionsForbidden:!0,statusCode:e.statusCode}):t(e);var r=n.headers||{};t(null,{AccessControlAllowOrigin:r["access-control-allow-origin"],AccessControlAllowMethods:r["access-control-allow-methods"],AccessControlAllowHeaders:r["access-control-allow-headers"],AccessControlExposeHeaders:r["access-control-expose-headers"],AccessControlMaxAge:r["access-control-max-age"],statusCode:n.statusCode,headers:n.headers})}))}function ue(e,t){var n=this,r=e.Headers;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]="");var i=e.CopySource||"",a=o.getSourceParams.call(this,i);if(a){var s=a.Bucket,c=a.Region,u=decodeURIComponent(a.Key);Re.call(this,{Scope:[{action:"name/cos:GetObject",bucket:s,region:c,prefix:u},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},(function(r,i){if(r)return t(r);var a=o.clone(i.CopyObjectResult||{}),s=Se({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});o.extend(a,{Location:s,statusCode:i.statusCode,headers:i.headers}),t(null,a)}))}else t(o.error(new Error("CopySource format error")))}function le(e,t){var n=e.CopySource||"",r=o.getSourceParams.call(this,n);if(r){var i=r.Bucket,a=r.Region,s=decodeURIComponent(r.Key);Re.call(this,{Scope:[{action:"name/cos:GetObject",bucket:i,region:a,prefix:s},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e["PartNumber"],uploadId:e["UploadId"]},headers:e.Headers},(function(e,n){if(e)return t(e);var r=o.clone(n.CopyPartResult||{});o.extend(r,{statusCode:n.statusCode,headers:n.headers}),t(null,r)}))}else t(o.error(new Error("CopySource format error")))}function fe(e,t){var n=e.Objects||[],r=e.Quiet;n=o.isArray(n)?n:[n];var i=o.json2xml({Delete:{Object:n,Quiet:r||!1}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i));var s=o.map(n,(function(t){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:t.Key}}));Re.call(this,{Scope:s,method:"POST",Bucket:e.Bucket,Region:e.Region,body:i,action:"delete",headers:a},(function(e,n){if(e)return t(e);var r=n.DeleteResult||{},i=r.Deleted||[],a=r.Error||[];i=o.isArray(i)?i:[i],a=o.isArray(a)?a:[a];var s=o.clone(r);o.extend(s,{Error:a,Deleted:i,statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function de(e,t){var n=e.Headers;if(e["RestoreRequest"]){var r=e.RestoreRequest||{},i=o.json2xml({RestoreRequest:r});n["Content-Type"]="application/xml",n["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:i,action:"restore",headers:n},t)}else t(o.error(new Error("missing param RestoreRequest")))}function he(e,t){var n=e["Tagging"]||{},r=n.TagSet||n.Tags||e["Tags"]||[];r=o.clone(o.isArray(r)?r:[r]);var i=o.json2xml({Tagging:{TagSet:{Tag:r}}}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:i,action:"tagging",headers:a,VersionId:e.VersionId},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function pe(e,t){Re.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},(function(e,n){if(e)if(404!==e.statusCode||!e.error||"Not Found"!==e.error&&"NoSuchTagSet"!==e.error.Code)t(e);else{var r={Tags:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),t(null,r)}else{var i=[];try{i=n.Tagging.TagSet.Tag||[]}catch(a){}i=o.clone(o.isArray(i)?i:[i]),t(null,{Tags:i,statusCode:n.statusCode,headers:n.headers})}}))}function ge(e,t){Re.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},(function(e,n){return e&&204===e.statusCode?t(null,{statusCode:e.statusCode}):e?t(e):void t(null,{statusCode:n.statusCode,headers:n.headers})}))}function ve(e,t){var n=e["SelectType"];if(!n)return t(o.error(new Error("missing param SelectType")));var r=e["SelectRequest"]||{},i=o.json2xml({SelectRequest:r}),a=e.Headers;a["Content-Type"]="application/xml",a["Content-MD5"]=o.b64(o.md5(i)),Re.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e["SelectType"]},VersionId:e.VersionId,body:i,DataType:"arraybuffer",rawBody:!0},(function(e,n){if(e&&204===e.statusCode)return t(null,{statusCode:e.statusCode});if(e)return t(e);var r=o.parseSelectPayload(n.body);t(null,{statusCode:n.statusCode,headers:n.headers,Body:r.body,Payload:r.payload})}))}function me(e,t){var n=this,r=e.Headers,i=e.tracker;r["Cache-Control"]||r["cache-control"]||(r["Cache-Control"]=""),r["Content-Type"]||r["content-type"]||(r["Content-Type"]=e.Body&&e.Body.type||"");var a=e.Body&&(e.UploadAddMetaMd5||n.options.UploadAddMetaMd5);a&&i&&i.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(a,e.Body,(function(r){r&&(e.Headers["x-cos-meta-md5"]=r),a&&i&&i.setParams({md5EndTime:(new Date).getTime()}),Re.call(n,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:i},(function(e,n){return e?(i&&i.parent&&i.parent.setParams({errorNode:"multipartInit"}),t(e)):(n=o.clone(n||{}),n&&n.InitiateMultipartUploadResult?t(null,o.extend(n.InitiateMultipartUploadResult,{statusCode:n.statusCode,headers:n.headers})):void t(null,n))}))}),e.onHashProgress)}function ye(e,t){var n=this;o.getFileSize("multipartUpload",e,(function(){var r=e.tracker,i=n.options.UploadCheckContentMd5;i&&r&&r.setParams({md5StartTime:(new Date).getTime()}),o.getBodyMd5(i,e.Body,(function(a){a&&(e.Headers["Content-MD5"]=o.b64(a)),i&&r&&r.setParams({md5EndTime:(new Date).getTime()}),r&&r.setParams({partNumber:e.PartNumber}),Re.call(n,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e["PartNumber"],uploadId:e["UploadId"]},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:r},(function(e,n){if(e)return r&&r.parent&&r.parent.setParams({errorNode:"multipartUpload"}),t(e);t(null,{ETag:o.attr(n.headers,"etag",""),statusCode:n.statusCode,headers:n.headers})}))}))}))}function Ie(e,t){for(var n=this,r=e.UploadId,i=e["Parts"],a=e.tracker,s=0,c=i.length;s<c;s++)i[s]["ETag"]&&0===i[s]["ETag"].indexOf('"')||(i[s]["ETag"]='"'+i[s]["ETag"]+'"');var u=o.json2xml({CompleteMultipartUpload:{Part:i}});u=u.replace(/\n\s*/g,"");var l=e.Headers;l["Content-Type"]="application/xml",l["Content-MD5"]=o.b64(o.md5(u)),Re.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{uploadId:r},body:u,headers:l,tracker:a},(function(r,i){if(r)return a&&a.parent&&a.parent.setParams({errorNode:"multipartComplete"}),t(r);var s=Se({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0}),c=i.CompleteMultipartUploadResult||{};c.ProcessResults&&c&&c.ProcessResults&&(c.UploadResult={OriginalInfo:{Key:c.Key,Location:s,ETag:c.ETag,ImageInfo:c.ImageInfo},ProcessResults:c.ProcessResults},delete c.ImageInfo,delete c.ProcessResults);var u=o.extend(c,{Location:s,statusCode:i.statusCode,headers:i.headers});t(null,u)}))}function Me(e,t){var n={};n["delimiter"]=e["Delimiter"],n["encoding-type"]=e["EncodingType"],n["prefix"]=e["Prefix"]||"",n["max-uploads"]=e["MaxUploads"],n["key-marker"]=e["KeyMarker"],n["upload-id-marker"]=e["UploadIdMarker"],n=o.clearKey(n);var r=e.tracker;r&&r.setParams({signStartTime:(new Date).getTime()}),Re.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:n["prefix"],method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:n,action:"uploads",tracker:r},(function(e,n){if(e)return r&&r.parent&&r.parent.setParams({errorNode:"multipartList"}),t(e);if(n&&n.ListMultipartUploadsResult){var i=n.ListMultipartUploadsResult.Upload||[];i=o.isArray(i)?i:[i],n.ListMultipartUploadsResult.Upload=i}var a=o.clone(n.ListMultipartUploadsResult||{});o.extend(a,{statusCode:n.statusCode,headers:n.headers}),t(null,a)}))}function be(e,t){var n={},r=e.tracker;n["uploadId"]=e["UploadId"],n["encoding-type"]=e["EncodingType"],n["max-parts"]=e["MaxParts"],n["part-number-marker"]=e["PartNumberMarker"],Re.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n},(function(e,n){if(e)return r&&r.parent&&r.parent.setParams({errorNode:"multipartListPart"}),t(e);var i=n.ListPartsResult||{},a=i.Part||[];a=o.isArray(a)?a:[a],i.Part=a;var s=o.clone(i);o.extend(s,{statusCode:n.statusCode,headers:n.headers}),t(null,s)}))}function Ce(e,t){var n={};n["uploadId"]=e["UploadId"],Re.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:n},(function(e,n){if(e)return t(e);t(null,{statusCode:n.statusCode,headers:n.headers})}))}function Te(e,t){Re.call(this,{method:e.Method,Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:e.Action,headers:e.Headers,qs:e.Query,body:e.Body,Url:e.Url,rawBody:e.RawBody,DataType:e.DataType},(function(e,n){if(e)return t(e);n&&n.body&&(n.Body=n.body,delete n.body),t(e,n)}))}function Ae(e,t){var n=e.Headers;n["Cache-Control"]||n["cache-control"]||(n["Cache-Control"]=""),n["Content-Type"]||n["content-type"]||(n["Content-Type"]=e.Body&&e.Body.type||""),Re.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:e.Bucket,Region:e.Region,action:"append",Key:e.Key,body:e.Body,qs:{position:e.Position},headers:e.Headers},(function(e,n){if(e)return t(e);t(null,n)}))}function _e(e){var t=this;return o.getAuth({SecretId:e.SecretId||this.options.SecretId||"",SecretKey:e.SecretKey||this.options.SecretKey||"",Bucket:e.Bucket,Region:e.Region,Method:e.Method,Key:e.Key,Query:e.Query,Headers:e.Headers,Expires:e.Expires,UseRawKey:t.options.UseRawKey,SystemClockOffset:t.options.SystemClockOffset})}function we(e,t){var n=this,r=void 0===e.UseAccelerate?n.options.UseAccelerate:e.UseAccelerate,i=Se({ForcePathStyle:n.options.ForcePathStyle,protocol:e.Protocol||n.options.Protocol,domain:e.Domain||n.options.Domain,bucket:e.Bucket,region:r?"accelerate":e.Region,object:e.Key}),a="";e.Query&&(a+=o.obj2str(e.Query)),e.QueryString&&(a+=(a?"&":"")+e.QueryString);var s=i;if(void 0!==e.Sign&&!e.Sign)return a&&(s+="?"+a),t(null,{Url:s}),s;var c=Oe.call(this,{Bucket:e.Bucket,Region:e.Region,UseAccelerate:e.UseAccelerate,Url:i}),u=De.call(this,{Action:"PUT"===(e.Method||"").toUpperCase()?"name/cos:PutObject":"name/cos:GetObject",Bucket:e.Bucket||"",Region:e.Region||"",Method:e.Method||"get",Key:e.Key,Expires:e.Expires,Headers:e.Headers,Query:e.Query,SignHost:c,ForceSignHost:!1!==e.ForceSignHost&&n.options.ForceSignHost},(function(e,n){if(t)if(e)t(e);else{var r=function(e){var t=e.match(/q-url-param-list.*?(?=&)/g)[0],n="q-url-param-list="+encodeURIComponent(t.replace(/q-url-param-list=/,"")).toLowerCase(),r=new RegExp(t,"g"),i=e.replace(r,n);return i},o=i;o+="?"+(n.Authorization.indexOf("q-signature")>-1?r(n.Authorization):"sign="+encodeURIComponent(n.Authorization)),n.SecurityToken&&(o+="&x-cos-security-token="+n.SecurityToken),n.ClientIP&&(o+="&clientIP="+n.ClientIP),n.ClientUA&&(o+="&clientUA="+n.ClientUA),n.Token&&(o+="&token="+n.Token),a&&(o+="&"+a),setTimeout((function(){t(null,{Url:o})}))}}));return u?(s+="?"+u.Authorization+(u.SecurityToken?"&x-cos-security-token="+u.SecurityToken:""),a&&(s+="&"+a)):a&&(s+="?"+a),s}function Ee(e){var t={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},n={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},r=e&&e.AccessControlList||{},i=r.Grant;i&&(i=o.isArray(i)?i:[i]);var a={READ:0,WRITE:0,FULL_CONTROL:0};return i&&i.length&&o.each(i,(function(r){"qcs::cam::anyone:anyone"===r.Grantee.ID||"http://cam.qcloud.com/groups/global/AllUsers"===r.Grantee.URI?a[r.Permission]=1:r.Grantee.ID!==e.Owner.ID&&t[n[r.Permission]].push('id="'+r.Grantee.ID+'"')})),a.FULL_CONTROL||a.WRITE&&a.READ?t.ACL="public-read-write":a.READ?t.ACL="public-read":t.ACL="private",o.each(n,(function(e){t[e]=Ne(t[e].join(","))})),t}function Ne(e){var t,n,r=e.split(","),i={};for(t=0;t<r.length;)n=r[t].trim(),i[n]?r.splice(t,1):(i[n]=!0,r[t]=n,t++);return r.join(",")}function Se(e){var t=e.region||"",n=e.bucket||"",i=n.substr(0,n.lastIndexOf("-")),a=n.substr(n.lastIndexOf("-")+1),s=e.domain,c=e.object;"function"===typeof s&&(s=s({Bucket:n,Region:t})),["http","https"].includes(e.protocol)&&(e.protocol=e.protocol+":");var u=e.protocol||(o.isBrowser&&"object"===("undefined"===typeof location?"undefined":r(location))&&"http:"===location.protocol?"http:":"https:");s||(s=["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(t)>-1?"{Region}.myqcloud.com":"cos.{Region}.myqcloud.com",e.ForcePathStyle||(s="{Bucket}."+s)),s=s.replace(/\{\{AppId\}\}/gi,a).replace(/\{\{Bucket\}\}/gi,i).replace(/\{\{Region\}\}/gi,t).replace(/\{\{.*?\}\}/gi,""),s=s.replace(/\{AppId\}/gi,a).replace(/\{BucketName\}/gi,i).replace(/\{Bucket\}/gi,n).replace(/\{Region\}/gi,t).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(s)||(s=u+"//"+s),"/"===s.slice(-1)&&(s=s.slice(0,-1));var l=s;return e.ForcePathStyle&&(l+="/"+n),l+="/",c&&(l+=o.camSafeUrlEncode(c).replace(/%2F/g,"/")),e.isLocation&&(l=l.replace(/^https?:\/\//,"")),l}var Oe=function(e){if(!e.Bucket||!e.Region)return"";var t=void 0===e.UseAccelerate?this.options.UseAccelerate:e.UseAccelerate,n=e.Url||Se({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:e.Bucket,region:t?"accelerate":e.Region}),r=n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),i=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return i.test(r)?r:""};function De(e,t){var n=o.clone(e.Headers),r="";o.each(n,(function(e,t){(""===e||["content-type","cache-control","expires"].indexOf(t.toLowerCase())>-1)&&delete n[t],"host"===t.toLowerCase()&&(r=e)}));var i=!1!==e.ForceSignHost;!r&&e.SignHost&&i&&(n.Host=e.SignHost);var a=!1,s=function(e,n){a||(a=!0,n&&n.XCosSecurityToken&&!n.SecurityToken&&(n=o.clone(n),n.SecurityToken=n.XCosSecurityToken,delete n.XCosSecurityToken),t&&t(e,n))},c=this,u=e.Bucket||"",l=e.Region||"",f=e.Key||"";c.options.ForcePathStyle&&u&&(f=u+"/"+f);var d="/"+f,h={},p=e.Scope;if(!p){var g=e.Action||"",v=e.ResourceKey||e.Key||"";p=e.Scope||[{action:g,bucket:u,region:l,prefix:v}]}var m=o.md5(JSON.stringify(p));c._StsCache=c._StsCache||[],function(){var e,t;for(e=c._StsCache.length-1;e>=0;e--){t=c._StsCache[e];var n=Math.round(o.getSkewTime(c.options.SystemClockOffset)/1e3)+30;if(t.StartTime&&n<t.StartTime||n>=t.ExpiredTime)c._StsCache.splice(e,1);else if(!t.ScopeLimit||t.ScopeLimit&&t.ScopeKey===m){h=t;break}}}();var y=function(){var t="";h.StartTime&&e.Expires?t=h.StartTime+";"+(h.StartTime+1*e.Expires):h.StartTime&&h.ExpiredTime&&(t=h.StartTime+";"+h.ExpiredTime);var r=o.getAuth({SecretId:h.TmpSecretId,SecretKey:h.TmpSecretKey,Method:e.Method,Pathname:d,Query:e.Query,Headers:n,Expires:e.Expires,UseRawKey:c.options.UseRawKey,SystemClockOffset:c.options.SystemClockOffset,KeyTime:t,ForceSignHost:i}),a={Authorization:r,SecurityToken:h.SecurityToken||h.XCosSecurityToken||"",Token:h.Token||"",ClientIP:h.ClientIP||"",ClientUA:h.ClientUA||""};s(null,a)},I=function(e){if(e.Authorization){var t=!1,n=e.Authorization;if(n)if(n.indexOf(" ")>-1)t=!1;else if(n.indexOf("q-sign-algorithm=")>-1&&n.indexOf("q-ak=")>-1&&n.indexOf("q-sign-time=")>-1&&n.indexOf("q-key-time=")>-1&&n.indexOf("q-url-param-list=")>-1)t=!0;else try{n=atob(n),n.indexOf("a=")>-1&&n.indexOf("k=")>-1&&n.indexOf("t=")>-1&&n.indexOf("r=")>-1&&n.indexOf("b=")>-1&&(t=!0)}catch(r){}if(!t)return o.error(new Error("getAuthorization callback params format error"))}else{if(!e.TmpSecretId)return o.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!e.TmpSecretKey)return o.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!e.SecurityToken&&!e.XCosSecurityToken)return o.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!e.ExpiredTime)return o.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(e.ExpiredTime&&10!==e.ExpiredTime.toString().length)return o.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(e.StartTime&&10!==e.StartTime.toString().length)return o.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(h.ExpiredTime&&h.ExpiredTime-o.getSkewTime(c.options.SystemClockOffset)/1e3>60)y();else if(c.options.getAuthorization)c.options.getAuthorization.call(c,{Bucket:u,Region:l,Method:e.Method,Key:f,Pathname:d,Query:e.Query,Headers:n,Scope:p,SystemClockOffset:c.options.SystemClockOffset,ForceSignHost:i},(function(e){"string"===typeof e&&(e={Authorization:e});var t=I(e);if(t)return s(t);e.Authorization?s(null,e):(h=e||{},h.Scope=p,h.ScopeKey=m,c._StsCache.push(h),y())}));else{if(!c.options.getSTS)return function(){var t=o.getAuth({SecretId:e.SecretId||c.options.SecretId,SecretKey:e.SecretKey||c.options.SecretKey,Method:e.Method,Pathname:d,Query:e.Query,Headers:n,Expires:e.Expires,UseRawKey:c.options.UseRawKey,SystemClockOffset:c.options.SystemClockOffset,ForceSignHost:i}),r={Authorization:t,SecurityToken:c.options.SecurityToken||c.options.XCosSecurityToken};return s(null,r),r}();c.options.getSTS.call(c,{Bucket:u,Region:l},(function(e){h=e||{},h.Scope=p,h.ScopeKey=m,h.TmpSecretId||(h.TmpSecretId=h.SecretId),h.TmpSecretKey||(h.TmpSecretKey=h.SecretKey);var t=I(h);if(t)return s(t);c._StsCache.push(h),y()}))}return""}function xe(e){var t=!1,n=!1,r=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var i=e.error.Code,a=e.error.Message;("RequestTimeTooSkewed"===i||"AccessDenied"===i&&"Request has expired"===a)&&(n=!0)}catch(c){}if(e)if(n&&r){var s=Date.parse(r);this.options.CorrectClockSkew&&Math.abs(o.getSkewTime(this.options.SystemClockOffset)-s)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=s-Date.now(),t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0);return t}function Re(e,t){var n=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=o.clearKey(e.qs),e.headers&&(e.headers=o.clearKey(e.headers)),e.qs&&(e.qs=o.clearKey(e.qs));var r=o.clone(e.qs);e.action&&(r[e.action]="");var i=e.url||e.Url,a=e.SignHost||Oe.call(this,{Bucket:e.Bucket,Region:e.Region,Url:i}),s=e.tracker,c=function i(o){var c=n.options.SystemClockOffset;s&&s.setParams({signStartTime:(new Date).getTime(),retryTimes:o-1}),De.call(n,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:r,Headers:e.headers,SignHost:a,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:n.options.ForceSignHost},(function(r,a){r?t(r):(s&&s.setParams({signEndTime:(new Date).getTime(),httpStartTime:(new Date).getTime()}),e.AuthData=a,ke.call(n,e,(function(r,a){s&&s.setParams({httpEndTime:(new Date).getTime()}),r&&o<2&&(c!==n.options.SystemClockOffset||xe.call(n,r))?(e.headers&&(delete e.headers.Authorization,delete e.headers["token"],delete e.headers["clientIP"],delete e.headers["clientUA"],e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),i(o+1)):t(r,a)})))}))};c(1)}function ke(e,t){var n=this,r=e.TaskId;if(!r||n._isRunningTask(r)){var a=e.Bucket,s=e.Region,c=e.Key,u=e.method||"GET",l=e.Url||e.url,f=e.body,d=e.rawBody;n.options.UseAccelerate&&(s="accelerate"),l=l||Se({ForcePathStyle:n.options.ForcePathStyle,protocol:n.options.Protocol,domain:n.options.Domain,bucket:a,region:s,object:c}),e.action&&(l=l+"?"+(o.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(l=l.indexOf("?")>-1?l+"&"+e.qsStr:l+"?"+e.qsStr);var h={method:u,url:l,headers:e.headers,qs:e.qs,body:f},p="x-cos-security-token";if(o.isCIHost(l)&&(p="x-ci-security-token"),h.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(h.headers["token"]=e.AuthData.Token),e.AuthData.ClientIP&&(h.headers["clientIP"]=e.AuthData.ClientIP),e.AuthData.ClientUA&&(h.headers["clientUA"]=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(h.headers[p]=e.AuthData.SecurityToken),h.headers&&(h.headers=o.clearKey(h.headers)),h=o.clearKey(h),e.onProgress&&"function"===typeof e.onProgress){var g=f&&(f.size||f.length)||0;h.onProgress=function(t){if(!r||n._isRunningTask(r)){var i=t?t.loaded:0;e.onProgress({loaded:i,total:g})}}}e.onDownloadProgress&&(h.onDownloadProgress=e.onDownloadProgress),e.DataType&&(h.dataType=e.DataType),this.options.Timeout&&(h.timeout=this.options.Timeout),n.options.ForcePathStyle&&(h.pathStyle=n.options.ForcePathStyle),n.emit("before-send",h);var v=h.url.includes("accelerate."),m=h.qs?Object.keys(h.qs).map((function(e){return"".concat(e,"=").concat(h.qs[e])})).join("&"):"",y=m?h.url+"?"+m:h.url;e.tracker&&e.tracker.setParams({reqUrl:y,accelerate:v?"Y":"N"}),e.tracker&&e.tracker.parent&&e.tracker.parent.setParams({reqUrl:y,accelerate:v?"Y":"N"});var I=(n.options.Request||i)(h,(function(e){if(!e||"abort"!==e.error){var i={options:h,error:e&&e.error,statusCode:e&&e.statusCode||0,statusMessage:e&&e.statusMessage||"",headers:e&&e.headers||{},body:e&&e.body};n.emit("after-receive",i);var a,s=i.error,c=i.body,u={statusCode:i.statusCode,statusMessage:i.statusMessage,headers:i.headers},l=function(e,i){if(r&&n.off("inner-kill-task",M),!a){a=!0;var s={};u&&u.statusCode&&(s.statusCode=u.statusCode),u&&u.headers&&(s.headers=u.headers),e?(e=o.extend(e||{},s),t(e,null)):(i=o.extend(i||{},s),t(null,i)),I=null}};if(s)return l(o.error(s));var f,p=u.statusCode,g=2===Math.floor(p/100);if(d&&g)return l(null,{body:c});try{f=c&&c.indexOf("<")>-1&&c.indexOf(">")>-1&&o.xml2json(c)||{}}catch(m){f={}}var v=f&&f.Error;g?l(null,f):v?l(o.error(new Error(v.Message),{code:v.Code,error:v})):p?l(o.error(new Error(u.statusMessage),{code:""+p})):p&&l(o.error(new Error("statusCode error")))}})),M=function e(t){t.TaskId===r&&(I&&I.abort&&I.abort(),n.off("inner-kill-task",e))};r&&n.on("inner-kill-task",M)}}var Le={getService:a,putBucket:s,headBucket:c,getBucket:u,deleteBucket:l,putBucketAcl:f,getBucketAcl:d,putBucketCors:h,getBucketCors:p,deleteBucketCors:g,getBucketLocation:v,getBucketPolicy:y,putBucketPolicy:m,deleteBucketPolicy:I,putBucketTagging:M,getBucketTagging:b,deleteBucketTagging:C,putBucketLifecycle:T,getBucketLifecycle:A,deleteBucketLifecycle:_,putBucketVersioning:w,getBucketVersioning:E,putBucketReplication:N,getBucketReplication:S,deleteBucketReplication:O,putBucketWebsite:D,getBucketWebsite:x,deleteBucketWebsite:R,putBucketReferer:k,getBucketReferer:L,putBucketDomain:j,getBucketDomain:P,deleteBucketDomain:U,putBucketOrigin:z,getBucketOrigin:B,deleteBucketOrigin:G,putBucketLogging:Y,getBucketLogging:H,putBucketInventory:$,postBucketInventory:V,getBucketInventory:Q,listBucketInventory:W,deleteBucketInventory:Z,putBucketAccelerate:K,getBucketAccelerate:q,putBucketEncryption:J,getBucketEncryption:X,deleteBucketEncryption:ee,getObject:re,headObject:te,listObjectVersions:ne,putObject:ie,deleteObject:oe,getObjectAcl:ae,putObjectAcl:se,optionsObject:ce,putObjectCopy:ue,deleteMultipleObject:fe,restoreObject:de,putObjectTagging:he,getObjectTagging:pe,deleteObjectTagging:ge,selectObjectContent:ve,appendObject:Ae,uploadPartCopy:le,multipartInit:me,multipartUpload:ye,multipartComplete:Ie,multipartList:Me,multipartListPart:be,multipartAbort:Ce,request:Te,getObjectUrl:we,getAuth:_e};function je(e,t,n){o.each(["Cors","Acl"],(function(r){if(e.slice(-r.length)===r){var i=e.slice(0,-r.length)+r.toUpperCase(),a=o.apiWrapper(e,t),s=!1;n[i]=function(){!s&&console.warn("warning: cos."+i+" has been deprecated. Please Use cos."+e+" instead."),s=!0,a.apply(this,arguments)}}}))}e.exports.init=function(e,t){t.transferToTaskMethod(Le,"putObject"),o.each(Le,(function(t,n){e.prototype[n]=o.apiWrapper(n,t),je(n,t,e.prototype)}))}},"./src/cos.js":
  145. /*!********************!*\
  146. !*** ./src/cos.js ***!
  147. \********************/
  148. /*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./util */"./src/util.js"),i=n(/*! ./event */"./src/event.js"),o=n(/*! ./task */"./src/task.js"),a=n(/*! ./base */"./src/base.js"),s=n(/*! ./advance */"./src/advance.js"),c=n(/*! ../package.json */"./package.json"),u={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1048576,SliceSize:1048576,CopyChunkParallelLimit:20,CopyChunkSize:10485760,CopySliceSize:10485760,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},l=function(e){this.options=r.extend(r.clone(u),e||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1048576,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1048576,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId格式错误,请检查"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey格式错误,请检查"),console.error("error: SecretKey format is incorrect. Please check")),r.isNode()&&(console.warn("warning: cos-js-sdk-v5 不支持 nodejs 环境使用,请改用 cos-nodejs-sdk-v5,参考文档: https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),i.init(this),o.init(this)};a.init(l,o),s.init(l,o),l.util={md5:r.md5,xml2json:r.xml2json,json2xml:r.json2xml,encodeBase64:r.encodeBase64},l.getAuthorization=r.getAuth,l.version=c.version,e.exports=l},"./src/event.js":
  149. /*!**********************!*\
  150. !*** ./src/event.js ***!
  151. \**********************/
  152. /*! no static exports found */function(e,t){var n=function(e){var t={},n=function(e){return!t[e]&&(t[e]=[]),t[e]};e.on=function(e,t){"task-list-update"===e&&console.warn('warning: Event "'+e+'" has been deprecated. Please use "list-update" instead.'),n(e).push(t)},e.off=function(e,t){for(var r=n(e),i=r.length-1;i>=0;i--)t===r[i]&&r.splice(i,1)},e.emit=function(e,t){for(var r=n(e).map((function(e){return e})),i=0;i<r.length;i++)r[i](t)}},r=function(){n(this)};e.exports.init=n,e.exports.EventProxy=r},"./src/session.js":
  153. /*!************************!*\
  154. !*** ./src/session.js ***!
  155. \************************/
  156. /*! no static exports found */function(e,t,n){var r,i,o=n(/*! ./util */"./src/util.js"),a="cos_sdk_upload_cache",s=2592e3,c=function(){try{var e=JSON.parse(localStorage.getItem(a))}catch(t){}e||(e=[]),r=e},u=function(){try{r.length?localStorage.setItem(a,JSON.stringify(r)):localStorage.removeItem(a)}catch(e){}},l=function(){if(!r){c.call(this);for(var e=!1,t=Math.round(Date.now()/1e3),n=r.length-1;n>=0;n--){var i=r[n][2];(!i||i+s<t)&&(r.splice(n,1),e=!0)}e&&u()}},f=function(){i||(i=setTimeout((function(){u(),i=null}),400))},d={using:{},setUsing:function(e){d.using[e]=!0},removeUsing:function(e){delete d.using[e]},getFileId:function(e,t,n,r){return e.name&&e.size&&e.lastModifiedDate&&t?o.md5([e.name,e.size,e.lastModifiedDate,t,n,r].join("::")):null},getCopyFileId:function(e,t,n,r,i){var a=t["content-length"],s=t.etag||"",c=t["last-modified"];return e&&n?o.md5([e,a,s,c,n,r,i].join("::")):null},getUploadIdList:function(e){if(!e)return null;l.call(this);for(var t=[],n=0;n<r.length;n++)r[n][0]===e&&t.push(r[n][1]);return t.length?t:null},saveUploadId:function(e,t,n){if(l.call(this),e){for(var i=r.length-1;i>=0;i--){var o=r[i];o[0]===e&&o[1]===t&&r.splice(i,1)}r.unshift([e,t,Math.round(Date.now()/1e3)]),r.length>n&&r.splice(n),f()}},removeUploadId:function(e){l.call(this),delete d.using[e];for(var t=r.length-1;t>=0;t--)r[t][1]===e&&r.splice(t,1);f()}};e.exports=d},"./src/task.js":
  157. /*!*********************!*\
  158. !*** ./src/task.js ***!
  159. \*********************/
  160. /*! no static exports found */function(e,t,n){var r=n(/*! ./session */"./src/session.js"),i=n(/*! ./util */"./src/util.js"),o={},a=function(e,t){o[t]=e[t],e[t]=function(e,n){e.SkipTask?o[t].call(this,e,n):this._addTask(t,e,n)}},s=function(e){var t=[],n={},a=0,s=0,c=function(e){var t={id:e.id,Bucket:e.Bucket,Region:e.Region,Key:e.Key,FilePath:e.FilePath,state:e.state,loaded:e.loaded,size:e.size,speed:e.speed,percent:e.percent,hashPercent:e.hashPercent,error:e.error};return e.FilePath&&(t.FilePath=e.FilePath),e._custom&&(t._custom=e._custom),t},u=function(){var n,r=function(){n=0,e.emit("task-list-update",{list:i.map(t,c)}),e.emit("list-update",{list:i.map(t,c)})};return function(){n||(n=setTimeout(r))}}(),l=function(){if(!(t.length<=e.options.UploadQueueSize)){for(var r=0;r<s&&r<t.length&&t.length>e.options.UploadQueueSize;){var i="waiting"===t[r].state||"checking"===t[r].state||"uploading"===t[r].state;t[r]&&i?r++:(n[t[r].id]&&delete n[t[r].id],t.splice(r,1),s--)}u()}},f=function n(){if(!(a>=e.options.FileParallelLimit)){while(t[s]&&"waiting"!==t[s].state)s++;if(!(s>=t.length)){var r=t[s];s++,a++,r.state="checking",r.params.onTaskStart&&r.params.onTaskStart(c(r)),!r.params.UploadData&&(r.params.UploadData={});var f=i.formatParams(r.api,r.params);o[r.api].call(e,f,(function(t,i){e._isRunningTask(r.id)&&("checking"!==r.state&&"uploading"!==r.state||(r.state=t?"error":"success",t&&(r.error=t),a--,u(),n(),r.callback&&r.callback(t,i),"success"===r.state&&(r.params&&(delete r.params.UploadData,delete r.params.Body,delete r.params),delete r.callback)),l())})),u(),setTimeout(n)}}},d=function(t,i){var o=n[t];if(o){var s=o&&"waiting"===o.state,c=o&&("checking"===o.state||"uploading"===o.state);if("canceled"===i&&"canceled"!==o.state||"paused"===i&&s||"paused"===i&&c){if("paused"===i&&o.params.Body&&"function"===typeof o.params.Body.pipe)return void console.error("stream not support pause");o.state=i,e.emit("inner-kill-task",{TaskId:t,toState:i});try{var d=o&&o.params&&o.params.UploadData.UploadId}catch(h){}"canceled"===i&&d&&r.removeUsing(d),u(),c&&(a--,f()),"canceled"===i&&(o.params&&(delete o.params.UploadData,delete o.params.Body,delete o.params),delete o.callback)}l()}};e._addTasks=function(t){i.each(t,(function(t){e._addTask(t.api,t.params,t.callback,!0)})),u()};var h=!0;e._addTask=function(r,o,a,s){o=i.formatParams(r,o);var c=i.uuid();o.TaskId=c,o.onTaskReady&&o.onTaskReady(c),o.TaskReady&&(o.TaskReady(c),h&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),h=!1);var d={params:o,callback:a,api:r,index:t.length,id:c,Bucket:o.Bucket,Region:o.Region,Key:o.Key,FilePath:o.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:o._custom},p=o.onHashProgress;o.onHashProgress=function(t){e._isRunningTask(d.id)&&(d.hashPercent=t.percent,p&&p(t),u())};var g=o.onProgress;return o.onProgress=function(t){e._isRunningTask(d.id)&&("checking"===d.state&&(d.state="uploading"),d.loaded=t.loaded,d.speed=t.speed,d.percent=t.percent,g&&g(t),u())},i.getFileSize(r,o,(function(e,r){if(e)return a(i.error(e));n[c]=d,t.push(d),d.size=r,!s&&u(),f(),l()})),c},e._isRunningTask=function(e){var t=n[e];return!(!t||"checking"!==t.state&&"uploading"!==t.state)},e.getTaskList=function(){return i.map(t,c)},e.cancelTask=function(e){d(e,"canceled")},e.pauseTask=function(e){d(e,"paused")},e.restartTask=function(e){var t=n[e];!t||"paused"!==t.state&&"error"!==t.state||(t.state="waiting",u(),s=Math.min(s,t.index),f())},e.isUploadRunning=function(){return a||s<t.length}};e.exports.transferToTaskMethod=a,e.exports.init=s},"./src/tracker.js":
  161. /*!************************!*\
  162. !*** ./src/tracker.js ***!
  163. \************************/
  164. /*! no static exports found */function(e,t,n){var r=n(/*! @babel/runtime/helpers/classCallCheck */"./node_modules/@babel/runtime/helpers/classCallCheck.js"),i=n(/*! @babel/runtime/helpers/createClass */"./node_modules/@babel/runtime/helpers/createClass.js"),o=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),a=n(/*! ../package.json */"./package.json"),s=null,c=function(e){if(!s){var t=n(/*! ../lib/beacon.min */"./lib/beacon.min.js");s=new t({appkey:"0AND0VEVB24UBGDU",versionCode:a.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:e,sessionDuration:6e4})}return s},u={getUid:function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getNetType:function(){if("object"===("undefined"===typeof navigator?"undefined":o(navigator))){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(null===e||void 0===e?void 0:e.type)||(null===e||void 0===e?void 0:e.effectiveType)||"unknown"}return"unknown"},getOsType:function(){if("object"!==("undefined"===typeof navigator?"undefined":o(navigator)))return"unknown os";var e=navigator.userAgent.toLowerCase(),t=/macintosh|mac os x/i.test(navigator.userAgent);return e.indexOf("win32")>=0||e.indexOf("wow32")>=0?"win32":e.indexOf("win64")>=0||e.indexOf("wow64")>=0?"win64":t?"mac":"unknown os"},isMobile:function(){var e=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isAndroid:function(){var e=/(Android|Adr|Linux)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isIOS:function(){var e=/(iPhone|iPod|iPad|iOS)/i;return!("object"!==("undefined"===typeof navigator?"undefined":o(navigator))||!navigator.userAgent.match(e))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if("object"!==("undefined"===typeof navigator?"undefined":o(navigator)))return"unknown device";var e=navigator.userAgent.toLowerCase();if(e.includes("app/tencent_wemeet"))return"tencent_wemeet";if(e.indexOf("maxthon")>=0){var t=e.match(/maxthon\/([\d.]+)/),n=t&&t[1]||"";return"傲游浏览器 ".concat(n).trim()}if(e.indexOf("qqbrowser")>=0){var r=e.match(/qqbrowser\/([\d.]+)/),i=r&&r[1]||"";return"QQ浏览器 ".concat(i).trim()}if(e.indexOf("se 2.x")>=0)return"搜狗浏览器";if(e.indexOf("wxwork")>=0)return"微信内置浏览器";if(e.indexOf("msie")>=0){var a=e.match(/msie ([\d.]+)/),s=a&&a[1]||"";return"IE ".concat(s).trim()}if(e.indexOf("firefox")>=0){var c=e.match(/firefox\/([\d.]+)/),u=c&&c[1]||"";return"Firefox ".concat(u).trim()}if(e.indexOf("chrome")>=0){var l=e.match(/chrome\/([\d.]+)/),f=l&&l[1]||"";return"Chrome ".concat(f).trim()}if(e.indexOf("opera")>=0){var d=e.match(/opera.([\d.]+)/),h=d&&d[1]||"";return"Opera ".concat(h).trim()}if(e.indexOf("safari")>=0){var p=e.match(/version\/([\d.]+)/),g=p&&p[1]||"";return"Safari ".concat(g).trim()}if(e.indexOf("edge")>=0){var v=e.match(/edge\/([\d.]+)/),m=v&&v[1]||"";return"edge ".concat(m).trim()}return e.substr(0,200)}},l={isMobile:u.isMobile(),isBrowser:!u.isMobile(),mobileOsType:u.isAndroid()?"android":u.isIOS?"ios":"other_mobile",pcOsType:u.getOsType()},f={deviceType:l.isMobile?"mobile":l.isBrowser?"browser":"unknown",devicePlatform:l.isMobile?l.mobileOsType:l.pcOsType,deviceName:u.getDeviceName()},d=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],h=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(d),p=["getObject"];function g(e){return h.includes(e)?"cos_upload":p.includes(e)?"cos_download":"base_service"}function v(e){return e.replace(/([A-Z])/g,"_$1").toLowerCase()}function m(e){var t={},n=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],r=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],i="Success"===e.result?r:n;for(var o in e)if(i.includes(o)){var a=v(o);t[a]=e[o]}return t}var y=function(){"use strict";function e(t){r(this,e);var n=t.parent,i=t.traceId,o=t.bucket,s=t.region,l=t.apiName,d=t.fileKey,h=t.fileSize,p=t.accelerate,g=t.customId,v=t.delay,m=t.deepTracker,y=o&&o.substr(o.lastIndexOf("-")+1)||"";this.parent=n,this.deepTracker=m,this.delay=v,this.params={cossdkVersion:a.version,region:s,networkType:"",host:"",accelerate:p?"Y":"N",requestPath:d||"",size:h||-1,httpMd5:0,httpSign:0,httpFull:0,name:l||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:i||u.getUid(),bucket:o,appid:y,partNumber:0,retryTimes:0,reqUrl:"",customId:g||"",deviceType:f.deviceType,devicePlatform:f.devicePlatform,deviceName:f.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:(new Date).getTime(),endTime:0},this.beacon=c(v)}return i(e,[{key:"formatResult",value:function(e,t){var n,r,i,o,a,s,c=(new Date).getTime(),l=c-this.params.startTime,f=u.getNetType(),d=e?(null===e||void 0===e?void 0:e.code)||(null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.code)||(null===e||void 0===e||null===(r=e.error)||void 0===r?void 0:r.Code):"",h=e?(null===e||void 0===e?void 0:e.message)||(null===e||void 0===e||null===(i=e.error)||void 0===i?void 0:i.message)||(null===e||void 0===e||null===(o=e.error)||void 0===o?void 0:o.Message):"",p=e?(null===e||void 0===e?void 0:e.resource)||(null===e||void 0===e||null===(a=e.error)||void 0===a?void 0:a.resource)||(null===e||void 0===e||null===(s=e.error)||void 0===s?void 0:s.Resource):"",g=e?null===e||void 0===e?void 0:e.statusCode:t.statusCode,v=e?(null===e||void 0===e?void 0:e.headers)&&(null===e||void 0===e?void 0:e.headers["x-cos-request-id"]):(null===t||void 0===t?void 0:t.headers)&&(null===t||void 0===t?void 0:t.headers["x-cos-request-id"]),m=e?v?"Server":"Client":"";if(Object.assign(this.params,{tookTime:l,networkType:f,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:e?"Fail":"Success",errorType:m,errorCode:d,errorStatusCode:g,errorMessage:h,errorServiceName:p,errorRequestId:v}),!e||d&&h||(this.params.fullError=e?JSON.stringify(e):""),"getObject"===this.params.name&&(this.params.size=t?t.headers&&t.headers["content-length"]:-1),this.params.reqUrl)try{var y=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=y[2]}catch(I){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(e){Object.assign(this.params,e)}},{key:"sendEvents",value:function(){if(!d.includes(this.params.name)||this.deepTracker){var e=g(this.params.name),t=m(this.params);this.beacon||(this.beacon=c(this.delay||5e3)),0===this.delay?this.beacon&&this.beacon.onDirectUserAction(e,t):this.beacon&&this.beacon.onUserAction(e,t)}}},{key:"generateSubTracker",value:function(t){return Object.assign(t,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new e(t)}}]),e}();e.exports=y},"./src/util.js":
  165. /*!*********************!*\
  166. !*** ./src/util.js ***!
  167. \*********************/
  168. /*! no static exports found */function(e,t,n){"use strict";(function(t){var r=n(/*! @babel/runtime/helpers/typeof */"./node_modules/@babel/runtime/helpers/typeof.js"),i=n(/*! ../lib/md5 */"./lib/md5.js"),o=n(/*! ../lib/crypto */"./lib/crypto.js"),a=n(/*! ../lib/xml2json */"./lib/xml2json.js"),s=n(/*! ../lib/json2xml */"./lib/json2xml.js"),c=n(/*! ../lib/base64 */"./lib/base64.js"),u=n(/*! ./tracker */"./src/tracker.js");function l(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function f(e,t){var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(t?l(r).toLowerCase():r);return n.sort((function(e,t){return e=e.toLowerCase(),t=t.toLowerCase(),e===t?0:e>t?1:-1}))}var d=function(e,t){var n,r,i,o=[],a=f(e);for(n=0;n<a.length;n++)r=a[n],i=void 0===e[r]||null===e[r]?"":""+e[r],r=t?l(r).toLowerCase():l(r),i=l(i)||"",o.push(r+"="+i);return o.join("&")},h=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding"],p=function(e){var t={};for(var n in e){var r=n.toLowerCase();(r.indexOf("x-cos-")>-1||h.indexOf(r)>-1)&&(t[n]=e[n])}return t},g=function(e){e=e||{};var t,n=e.SecretId,r=e.SecretKey,i=e.KeyTime,a=(e.method||e.Method||"get").toLowerCase(),s=N(e.Query||e.params||{}),c=p(N(e.Headers||e.headers||{})),u=e.Key||"";e.UseRawKey?t=e.Pathname||e.pathname||"/"+u:(t=e.Pathname||e.pathname||u,0!==t.indexOf("/")&&(t="/"+t));var l=!1!==e.ForceSignHost;if(!c.Host&&!c.host&&e.Bucket&&e.Region&&l&&(c.Host=e.Bucket+".cos."+e.Region+".myqcloud.com"),!n)throw new Error("missing param SecretId");if(!r)throw new Error("missing param SecretKey");var d=Math.round(F(e.SystemClockOffset)/1e3)-1,h=d,g=e.Expires||e.expires;h+=void 0===g?900:1*g||0;var v="sha1",m=n,y=i||d+";"+h,I=i||d+";"+h,M=f(c,!0).join(";").toLowerCase(),b=f(s,!0).join(";").toLowerCase(),C=o.HmacSHA1(I,r).toString(),T=[a,t,J.obj2str(s,!0),J.obj2str(c,!0),""].join("\n"),A=["sha1",y,o.SHA1(T).toString(),""].join("\n"),_=o.HmacSHA1(A,C).toString(),w=["q-sign-algorithm="+v,"q-ak="+m,"q-sign-time="+y,"q-key-time="+I,"q-header-list="+M,"q-url-param-list="+b,"q-signature="+_].join("&");return w},v=function(e,t,n){var r=t/8,i=e.slice(n,n+r);return new Uint8Array(i).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[t](i)[0]},m=function(e,t,n,r){var i=e.slice(t,n),o="";return new Uint8Array(i).forEach((function(e){o+=String.fromCharCode(e)})),r&&(o=decodeURIComponent(escape(o))),o},y=function(e){var t={},n=m(e),r={records:[]};while(e.byteLength){var i,o=v(e,32,0),a=v(e,32,4),s=o-a-16,c=0;e=e.slice(12);while(c<a){var u=v(e,8,c),l=m(e,c+1,c+1+u),f=v(e,16,c+u+2),d=m(e,c+u+4,c+u+4+f);t[l]=d,c+=u+4+f}if("Records"===t[":event-type"])i=m(e,c,c+s,!0),r.records.push(i);else if("Stats"===t[":event-type"])i=m(e,c,c+s,!0),r.stats=J.xml2json(i).Stats;else if("error"===t[":event-type"]){var h=t[":error-code"],p=t[":error-message"],g=new Error(p);g.message=p,g.name=g.code=h,r.error=g}else["Progress","Continuation","End"].includes(t[":event-type"]);e=e.slice(c+s+4)}return{payload:r.records.join(""),body:n}},I=function(e){var t=this.options.CopySourceParser;if(t)return t(e);var n=e.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return n?{Bucket:n[1],Region:n[3],Key:n[7]}:null},M=function(){},b=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&null!==e[n]&&(t[n]=e[n]);return t},C=function(e,t){var n,r=new FileReader;FileReader.prototype.readAsBinaryString?(n=FileReader.prototype.readAsBinaryString,r.onload=function(){t(this.result)}):FileReader.prototype.readAsArrayBuffer?n=function(e){var n="",r=new FileReader;r.onload=function(e){for(var i=new Uint8Array(r.result),o=i.byteLength,a=0;a<o;a++)n+=String.fromCharCode(i[a]);t(n)},r.readAsArrayBuffer(e)}:console.error("FileReader not support readAsBinaryString"),n.call(r,e)},T=function(){var e=function(e,t){e=e.split("."),t=t.split(".");for(var n=0;n<t.length;n++)if(e[n]!==t[n])return parseInt(e[n])>parseInt(t[n])?1:-1;return 0},t=function(t){if(!t)return!1;var n=(t.match(/Chrome\/([.\d]+)/)||[])[1],r=(t.match(/QBCore\/([.\d]+)/)||[])[1],i=(t.match(/QQBrowser\/([.\d]+)/)||[])[1],o=n&&e(n,"53.0.2785.116")<0&&r&&e(r,"3.53.991.400")<0&&i&&e(i,"9.0.2524.400")<=0||!1;return o};return t("undefined"!==typeof navigator&&navigator.userAgent)}(),A=function(e,t,n,r,i){var o;if(e.slice?o=e.slice(t,n):e.mozSlice?o=e.mozSlice(t,n):e.webkitSlice&&(o=e.webkitSlice(t,n)),r&&T){var a=new FileReader;a.onload=function(e){o=null,i(new Blob([a.result]))},a.readAsArrayBuffer(o)}else i(o)},_=function(e,t,n,r){n=n||M,e?"string"===typeof t?n(J.md5(t,!0)):Blob&&t instanceof Blob?J.getFileMd5(t,(function(e,t){n(t)}),r):n():n()},w=1048576,E=function(e,t,n){var r=e.size,o=0,a=i.getCtx(),s=function i(s){if(s>=r){var c=a.digest("hex");t(null,c)}else{var u=Math.min(r,s+w);J.fileSlice(e,s,u,!1,(function(e){C(e,(function(t){e=null,a=a.update(t,!0),o+=t.length,t=null,n&&n({loaded:o,total:r,percent:Math.round(o/r*1e4)/1e4}),i(s+w)}))}))}};s(0)};function N(e){return L(e,(function(e){return"object"===r(e)&&null!==e?N(e):e}))}function S(e,t,n){return e&&t in e?e[t]:n}function O(e,t){return k(t,(function(n,r){e[r]=t[r]})),e}function D(e){return e instanceof Array}function x(e,t){for(var n=!1,r=0;r<e.length;r++)if(t===e[r]){n=!0;break}return n}function R(e){return D(e)?e:[e]}function k(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function L(e,t){var n=D(e)?[]:{};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r],r));return n}function j(e,t){var n=D(e),r=n?[]:{};for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)&&(n?r.push(e[i]):r[i]=e[i]);return r}var P=function(e){var t,n,r,i="";for(t=0,n=e.length/2;t<n;t++)r=parseInt(e[2*t]+e[2*t+1],16),i+=String.fromCharCode(r);return btoa(i)},U=function(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},z=function(e,t){var n=t.Bucket,r=t.Region,i=t.Key,o=this.options.Domain,a=!o||"string"===typeof o&&o.indexOf("{Bucket}")>-1,s=!o||"string"===typeof o&&o.indexOf("{Region}")>-1;if(e.indexOf("Bucket")>-1||"deleteMultipleObject"===e||"multipartList"===e||"listObjectVersions"===e){if(a&&!n)return"Bucket";if(s&&!r)return"Region"}else if(e.indexOf("Object")>-1||e.indexOf("multipart")>-1||"sliceUploadFile"===e||"abortUploadTask"===e){if(a&&!n)return"Bucket";if(s&&!r)return"Region";if(!i)return"Key"}return!1},B=function(e,t){if(t=O({},t),"getAuth"!==e&&"getV4Auth"!==e&&"getObjectUrl"!==e){var n=t.Headers||{};if(t&&"object"===r(t)){(function(){for(var e in t)t.hasOwnProperty(e)&&e.indexOf("x-cos-")>-1&&(n[e]=t[e])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};J.each(i,(function(e,r){void 0!==t[e]&&(n[r]=t[e])})),t.Headers=b(n)}}return t},G=function(e,t){return function(n,r){var i,o=this;if("function"===typeof n&&(r=n,n={}),n=B(e,n),o.options.EnableTracker)if("sliceUploadFile"===n.calledBySdk)i=n.tracker&&n.tracker.generateSubTracker({apiName:e});else if(["uploadFile","uploadFiles"].includes(e))i=null;else{var a=-1;n.Body&&(a="string"===typeof n.Body?n.Body.length:n.Body.size||n.Body.byteLength||-1),i=new u({bucket:n.Bucket,region:n.Region,apiName:e,fileKey:n.Key,fileSize:a,deepTracker:o.options.DeepTracker,customId:o.options.CustomId,delay:o.options.TrackerDelay})}n.tracker=i;var s=function(e){return e&&e.headers&&(e.headers["x-cos-request-id"]&&(e.RequestId=e.headers["x-cos-request-id"]),e.headers["x-ci-request-id"]&&(e.RequestId=e.headers["x-ci-request-id"]),e.headers["x-cos-version-id"]&&(e.VersionId=e.headers["x-cos-version-id"]),e.headers["x-cos-delete-marker"]&&(e.DeleteMarker=e.headers["x-cos-delete-marker"])),e},c=function(e,t){i&&i.formatResult(e,t),r&&r(s(e),s(t))},l=function(){if("getService"!==e&&"abortUploadTask"!==e){var t=z.call(o,e,n);if(t)return"missing param "+t;if(n.Region){if(o.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(n.Region))return"Region format error."}else{if(n.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(n.Region))return"Region format error."}o.options.CompatibilityMode||-1!==n.Region.indexOf("-")||"yfb"===n.Region||"default"===n.Region||"accelerate"===n.Region||console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(n.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(n.Bucket))if(n.AppId)n.Bucket=n.Bucket+"-"+n.AppId;else{if(!o.options.AppId)return'Bucket should format as "test-1250000000".';n.Bucket=n.Bucket+"-"+o.options.AppId}n.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete n.AppId)}!o.options.UseRawKey&&n.Key&&"/"===n.Key.substr(0,1)&&(n.Key=n.Key.substr(1))}},f=l(),d=["getAuth","getObjectUrl"].includes(e);if("function"===typeof Promise&&!d&&!r)return new Promise((function(e,i){if(r=function(t,n){t?i(t):e(n)},f)return c(J.error(new Error(f)));t.call(o,n,c)}));if(f)return c(J.error(new Error(f)));var h=t.call(o,n,c);return d?h:void 0}},Y=function(e,t){var n,r,i=this,o=0,a=0,s=Date.now();function c(){if(r=0,t&&"function"===typeof t){n=Date.now();var i,c=Math.max(0,Math.round((a-o)/((n-s)/1e3)*100)/100)||0;i=0===a&&0===e?1:Math.floor(a/e*100)/100||0,s=n,o=a;try{t({loaded:a,total:e,speed:c,percent:i})}catch(u){}}}return function(t,n){if(t&&(a=t.loaded,e=t.total),n)clearTimeout(r),c();else{if(r)return;r=setTimeout(c,i.options.ProgressInterval)}}},H=function(e,t,n){var r;"string"===typeof t.Body?t.Body=new Blob([t.Body],{type:"text/plain"}):t.Body instanceof ArrayBuffer&&(t.Body=new Blob([t.Body])),t.Body&&(t.Body instanceof Blob||"[object File]"===t.Body.toString()||"[object Blob]"===t.Body.toString())?(r=t.Body.size,t.ContentLength=r,n(null,r)):n(J.error(new Error("params body format error, Only allow File|Blob|String.")))},F=function(e){return Date.now()+(e||0)},$=function(e,t){var n=e;return e.message=e.message||null,"string"===typeof t?(e.error=t,e.message=t):"object"===r(t)&&null!==t&&(O(e,t),(t.code||t.name)&&(e.code=t.code||t.name),t.message&&(e.message=t.message),t.stack&&(e.stack=t.stack)),"function"===typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=t&&t.name||e.name||e.code||"Error",e.code||(e.code=e.name),e.error||(e.error=N(n)),e},V=function(){return"object"===("undefined"===typeof globalThis?"undefined":r(globalThis))&&("DedicatedWorkerGlobalScope"===globalThis.constructor.name||globalThis.FileReaderSync)},Q=function(){return"object"!==("undefined"===typeof window?"undefined":r(window))&&"object"===("undefined"===typeof t?"undefined":r(t))&&!V()},W=function(e){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(e)},Z=function(){if("object"!==("undefined"===typeof navigator?"undefined":r(navigator)))return!1;var e=navigator.userAgent,t=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return t}(),K=function(){return"object"===("undefined"===typeof navigator?"undefined":r(navigator))&&/\sQQ/i.test(navigator.userAgent)}(),q=function(e,t){var n=c.encode(e);return t&&(n=n.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),n},J={noop:M,formatParams:B,apiWrapper:G,xml2json:a,json2xml:s,md5:i,clearKey:b,fileSlice:A,getBodyMd5:_,getFileMd5:E,b64:P,extend:O,isArray:D,isInArray:x,makeArray:R,each:k,map:L,filter:j,clone:N,attr:S,uuid:U,camSafeUrlEncode:l,throttleOnProgress:Y,getFileSize:H,getSkewTime:F,error:$,obj2str:d,getAuth:g,parseSelectPayload:y,getSourceParams:I,isBrowser:!0,isNode:Q,isCIHost:W,isIOS_QQ:Z&&K,encodeBase64:q};e.exports=J}).call(this,n(/*! ./../node_modules/process/browser.js */"./node_modules/process/browser.js"))}})}))},4127:function(e,t,n){"use strict";var r=n("5402"),i=n("d233"),o=n("b313"),a=Object.prototype.hasOwnProperty,s={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])},d=Date.prototype.toISOString,h=o["default"],p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:h,formatter:o.formatters[h],indices:!1,serializeDate:function(e){return d.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={},m=function e(t,n,o,a,s,l,d,h,m,y,I,M,b,C,T){var A=t,_=T,w=0,E=!1;while(void 0!==(_=_.get(v))&&!E){var N=_.get(t);if(w+=1,"undefined"!==typeof N){if(N===w)throw new RangeError("Cyclic object value");E=!0}"undefined"===typeof _.get(v)&&(w=0)}if("function"===typeof d?A=d(n,A):A instanceof Date?A=y(A):"comma"===o&&c(A)&&(A=i.maybeMap(A,(function(e){return e instanceof Date?y(e):e}))),null===A){if(a)return l&&!b?l(n,p.encoder,C,"key",I):n;A=""}if(g(A)||i.isBuffer(A)){if(l){var S=b?n:l(n,p.encoder,C,"key",I);if("comma"===o&&b){for(var O=u.call(String(A),","),D="",x=0;x<O.length;++x)D+=(0===x?"":",")+M(l(O[x],p.encoder,C,"value",I));return[M(S)+(c(A)&&1===O.length?"[]":"")+"="+D]}return[M(S)+"="+M(l(A,p.encoder,C,"value",I))]}return[M(n)+"="+M(String(A))]}var R,k=[];if("undefined"===typeof A)return k;if("comma"===o&&c(A))R=[{value:A.length>0?A.join(",")||null:void 0}];else if(c(d))R=d;else{var L=Object.keys(A);R=h?L.sort(h):L}for(var j="comma"===o&&c(A)&&1===A.length?n+"[]":n,P=0;P<R.length;++P){var U=R[P],z="object"===typeof U&&"undefined"!==typeof U.value?U.value:A[U];if(!s||null!==z){var B=c(A)?"function"===typeof o?o(j,U):j:j+(m?"."+U:"["+U+"]");T.set(t,w);var G=r();G.set(v,T),f(k,e(z,B,o,a,s,l,d,h,m,y,I,M,b,C,G))}}return k},y=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(!a.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,a=y(t);"function"===typeof a.filter?(i=a.filter,o=i("",o)):c(a.filter)&&(i=a.filter,n=i);var u,l=[];if("object"!==typeof o||null===o)return"";u=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var d=s[u];n||(n=Object.keys(o)),a.sort&&n.sort(a.sort);for(var h=r(),p=0;p<n.length;++p){var g=n[p];a.skipNulls&&null===o[g]||f(l,m(o[g],g,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}var v=l.join(a.delimiter),I=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?I+="utf8=%26%2310003%3B&":I+="utf8=%E2%9C%93&"),v.length>0?I+v:""}},"416c":function(e,t,n){n("28e4")("Map")},"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),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},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,a,s){return s===e&&Array.from(i(i([],r(t)),r(a)).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"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{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}},4276:function(e,t,n){var r=n("5ca1"),i=n("2d95");r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},"42ab":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"014b":function(e,t,n){"use strict";var r=n("e53d"),i=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),c=n("ebfd").KEY,u=n("294c"),l=n("dbdb"),f=n("45f2"),d=n("62a0"),h=n("5168"),p=n("ccb9"),g=n("6718"),v=n("47ee"),m=n("9003"),y=n("e4ae"),I=n("f772"),M=n("241e"),b=n("36c3"),C=n("1bc3"),T=n("aebd"),A=n("a159"),_=n("0395"),w=n("bf0b"),E=n("9aa9"),N=n("d9f6"),S=n("c3a1"),O=w.f,D=N.f,x=_.f,R=r.Symbol,k=r.JSON,L=k&&k.stringify,j="prototype",P=h("_hidden"),U=h("toPrimitive"),z={}.propertyIsEnumerable,B=l("symbol-registry"),G=l("symbols"),Y=l("op-symbols"),H=Object[j],F="function"==typeof R&&!!E.f,$=r.QObject,V=!$||!$[j]||!$[j].findChild,Q=o&&u((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,W=function(e){var t=G[e]=A(R[j]);return t._k=e,t},Z=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(Y,t,n),y(e),t=C(t,!0),y(n),i(G,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),Q(e,t,n)):D(e,t,n)},q=function(e,t){y(e);var n,r=v(t=b(t)),i=0,o=r.length;while(o>i)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?A(e):q(A(e),t)},X=function(e){var t=z.call(this,e=C(e,!0));return!(this===H&&i(G,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(G,e)||i(this,P)&&this[P][e])||t)},ee=function(e,t){if(e=b(e),t=C(t,!0),e!==H||!i(G,t)||i(Y,t)){var n=O(e,t);return!n||!i(G,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},te=function(e){var t,n=x(b(e)),r=[],o=0;while(n.length>o)i(G,t=n[o++])||t==P||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=x(n?Y:b(e)),o=[],a=0;while(r.length>a)!i(G,t=r[a++])||n&&!i(H,t)||o.push(G[t]);return o};F||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(Y,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),Q(this,e,T(1,n))};return o&&V&&Q(H,e,{configurable:!0,set:t}),W(e)},s(R[j],"toString",(function(){return this._k})),w.f=ee,N.f=K,n("6abf").f=_.f=te,n("355d").f=X,E.f=ne,o&&!n("b8e3")&&s(H,"propertyIsEnumerable",X,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!F,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=S(h.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!F,"Object",{create:J,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(M(e))}}),k&&a(a.S+a.F*(!F||u((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(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)&&!Z(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Z(t))return t}),r[1]=t,L.apply(k,r)}}),R[j][U]||n("35e8")(R[j],U,R[j].valueOf),f(R,"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"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,m,y,I,M){c(n,t,m);var b,C,T,A=function(e){if(!d&&e in N)return N[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)}},_=t+" Iterator",w=y==g,E=!1,N=e.prototype,S=N[f]||N[h]||y&&N[y],O=S||A(y),D=y?w?A("entries"):O:void 0,x="Array"==t&&N.entries||S;if(x&&(T=l(x.call(new e)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[f]||a(T,f,v))),w&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!d&&!E&&N[f]||a(N,f,O),s[t]=O,s[_]=v,y)if(b={values:w?O:A(g),keys:I?O:A(p),entries:D},M)for(C in b)C in N||o(N,C,b[C]);else i(i.P+i.F*(d||E),t,b);return b}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"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,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"07fa":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vue-core-video-player-layers{z-index:11;position:absolute;left:0;bottom:0;width:100%;height:100%}",""])},"0b49":function(e,t,n){var r=n("3b4a");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("b8b31476",r,!0,{sourceMap:!1,shadowMode:!1})},"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}},"0d22":function(e,t,n){"use strict";var r=n("3863"),i=n.n(r);i.a},"0d2d":function(e){e.exports=JSON.parse('{"dashboard":{"btn":{"play":"再生","pause":"一時停止","fullscreen":"全画面","exitFullscreen":"全画面をキャンセル","mute":"ミュート","unmute":"ミュートを解除","back":"戻る","pip":"ピクチャインピクチャ"},"settings":{"autoplay":"自動再生","loop":"ループプレイ","speed":"スピード","resolution":"画質"}},"layers":{"error":{"2404":"ソースが見つかりません","2502":"ネットワークエラー","2503":"デコードエラー","2504":"働いていない","title":"(O_O)?  再生エラー!"},"loading":{"msg":"待っている ..."}}}')},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"0e5b":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vcp-controls{z-index:10;position:absolute;left:0;bottom:5px;width:100%;height:50px;text-align:left}.playback-control,.setting-control{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:0;height:100%;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.playback-control{left:0}.setting-control{right:0}",""])},"0ee8":function(e,t,n){var r=n("f31c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("20ebd1d3",r,!0,{sourceMap:!1,shadowMode:!1})},"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)}},1170:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".settings-control .btn-mute{display:none}.settings-control .btn-settings svg{width:24px;margin-top:-2px}.settings-control .btn-control-panel{display:block;right:0;left:auto;min-height:130px;-webkit-transform:translateX(0);transform:translateX(0)}.settings-control .btn-control-panel .current-panel{width:180px}.settings-control .btn-control-panel .resolution-list,.settings-control .btn-control-panel .speed-list{width:80px}.settings-control .btn-control-panel .resolution-list li,.settings-control .btn-control-panel .speed-list li{cursor:pointer}.settings-control .btn-control-panel .resolution-list li:first-child,.settings-control .btn-control-panel .speed-list li:first-child{margin-left:-20px;cursor:pointer}.vcp-m-dashboard .settings-control .btn-control-panel{z-index:20000;position:fixed;left:0;right:0;bottom:0}.vcp-m-dashboard .settings-control .btn-control-panel .current-panel{width:100%}.vcp-m-dashboard .settings-control .btn-control-panel .resolution-list,.vcp-m-dashboard .settings-control .btn-control-panel .speed-list{margin-left:20px}",""])},"11de":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vcp-controls{z-index:10;position:absolute;left:0;bottom:5px;width:100%;height:50px;text-align:left}.playback-control,.setting-control{display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;top:0;height:100%;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.playback-control{left:0}.setting-control{right:0}",""])},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"12ae":function(e,t,n){var r=n("1170");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("280eb641",r,!0,{sourceMap:!1,shadowMode:!1})},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,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"14ab":function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"===typeof t&&(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},"156e":function(e,t,n){"use strict";var r=n("234e"),i=n.n(r);i.a},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})}))},1689:function(e,t,n){var r=n("cfb4");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("169e5806",r,!0,{sourceMap:!1,shadowMode:!1})},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1793:function(e,t,n){"use strict";var r=n("6321"),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;e.exports=function(e){return!!r(e)&&!i.test(o.call(e))}},"18ec":function(e,t,n){"use strict";var r="razdwatrzy";e.exports=function(){return"function"===typeof r.contains&&(!0===r.contains("dwa")&&!1===r.contains("foo"))}},"1a94":function(e,t,n){"use strict";e.exports=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e}},"1b6f":function(e,t,n){"use strict";var r=n("ff1c"),i=n.n(r);i.a},"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")}},"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):{}}},2031:function(e,t,n){"use strict";e.exports=n("14ab")()?Object.assign:n("f60e")},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),c=n("520a"),u=s("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 d=s(e),h=!o((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=h?!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[d](""),!t})):void 0;if(!h||!p||"replace"===e&&!l||"split"===e&&!f){var g=/./[d],v=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===c?h&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"22bf":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vcp-m-dashboard{z-index:11;position:absolute;left:0;bottom:0;width:100%;height:59px;background:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.7)),to(transparent));background:linear-gradient(0deg,rgba(0,0,0,.7),transparent)}.fullscreen .vcp-m-dashboard{bottom:12px}.small .vcp-m-dashboard{height:49px}.settings-open .vcp-m-dashboard{display:block!important}.small .vcp-m-dashboard .vcp-controls{height:40px}",""])},"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):{}}},2316:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".title-layer{z-index:11;text-align:left}.title-layer .video-title{position:absolute;top:0;left:0;right:0;padding:16px 20px;line-height:32px;font-size:14px;background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.7)),to(transparent));background-image:linear-gradient(180deg,rgba(0,0,0,.7),transparent)}.fullscreen .title-layer .video-title{font-size:16px;font-weight:700}",""])},"234e":function(e,t,n){var r=n("743b");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("13d618fe",r,!0,{sourceMap:!1,shadowMode:!1})},2350: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),a=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+n+" */"}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 a=e[i];"number"===typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"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},"263c":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,'.play-pause-layer{z-index:12;background:rgba(0,0,0,.25)}.play-pause-layer .btn-control{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;top:50%;left:50%;width:60px;height:60px;margin-left:-30px;margin-top:-30px;background-color:#fff;border-radius:30px}.play-pause-layer .btn-control:before{content:"";display:block;position:absolute;top:50%;left:50%;width:72px;height:72px;margin-left:-36px;margin-top:-36px;border-radius:36px;background-color:hsla(0,0%,100%,.25)}.play-pause-layer .btn-play svg{margin-left:10px}',""])},2814:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,'.vue-core-video-player-control{display:inline-block;position:relative;width:30px;height:30px}.vue-core-video-player-control svg{width:20px}.volume-control:hover .btn-control-panel{display:block}.volume-control .btn-control-panel{display:none;width:40px;height:150px}.volume-control .btn-control-panel:before{content:"";display:block;position:absolute;bottom:-30px;left:0;width:100%;height:35px}.volume-control .btn-control-panel .progress{position:absolute;width:4px;height:100px;left:50%;top:50%;margin-left:-2px;margin-top:-50px;background-color:hsla(0,0%,100%,.7);cursor:pointer}.volume-control .btn-control-panel .progress .volume-current{position:absolute;bottom:0;left:0;height:0;width:100%;background-color:#ff6060}.volume-control .btn-control-panel .progress .volume-current .thumb-drag{opacity:0;position:absolute;left:50%;top:0;width:10px;height:10px;border-radius:5px;background-color:#fff;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);-webkit-transition:height .05s ease .15s;transition:height .05s ease .15s}.volume-control .btn-control-panel .progress .volume-current .thumb-drag:before{content:"";display:inline-block;position:absolute;top:-2px;left:-2px;width:14px;height:14px;border-radius:7px;background-color:hsla(0,0%,100%,.3)}.volume-control .btn-control-panel .progress:hover .thumb-drag{opacity:1}.volume-control .btn-control-panel .volume-info{position:absolute;top:-30px;left:0;width:40px;height:20px;background-color:rgba(0,0,0,.7);border-radius:4px;font-size:12px;line-height:20px}.settings-open .volume-control:hover .btn-control-panel{display:none}',""])},"28a5":function(e,t,n){"use strict";var r=n("aae3"),i=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,d=[].push,h="split",p="length",g="lastIndex",v=4294967295,m=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[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,a,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,h=void 0===t?v:t>>>0,m=new RegExp(e.source,l+"g");while(o=u.call(m,i)){if(a=m[g],a>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&d.apply(c,o.slice(1)),s=o[0][p],f=a,c[p]>=h))break;m[g]===o.index&&m[g]++}return f===i[p]?!s&&m.test("")||c.push(""):c.push(i.slice(f)),c[p]>h?c.slice(0,h):c}:"0"[h](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):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var u=i(e),d=String(this),h=o(u,RegExp),p=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),I=new h(m?u:"^(?:"+u.source+")",g),M=void 0===t?v:t>>>0;if(0===M)return[];if(0===d.length)return null===c(I,d)?[d]:[];var b=0,C=0,T=[];while(C<d.length){I.lastIndex=m?C:0;var A,_=c(I,m?d:d.slice(C));if(null===_||(A=f(s(I.lastIndex+(m?0:C)),d.length))===b)C=a(d,C,p);else{if(T.push(d.slice(b,C)),T.length===M)return T;for(var w=1;w<=_.length-1;w++)if(T.push(_[w]),T.length===M)return T;C=b=A}}return T.push(d.slice(b)),T}]}))},"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"),a=n("ca5a")("src"),s=n("fa5b"),c="toString",u=(""+s).split(c);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?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[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),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?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2be5":function(e,t,n){var r=n("07fa");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("6fa741d5",r,!0,{sourceMap:!1,shadowMode:!1})},"2c1a":function(e,t,n){"use strict";var r=n("2be5"),i=n.n(r);i.a},"2d00":function(e,t){e.exports=!1},"2d60":function(e,t,n){var r=n("6f66");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("61ad65d7",r,!0,{sourceMap:!1,shadowMode:!1})},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),i=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),c=n("8f60"),u=n("45f2"),l=n("53e2"),f=n("5168")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",p="keys",g="values",v=function(){return this};e.exports=function(e,t,n,m,y,I,M){c(n,t,m);var b,C,T,A=function(e){if(!d&&e in N)return N[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)}},_=t+" Iterator",w=y==g,E=!1,N=e.prototype,S=N[f]||N[h]||y&&N[y],O=S||A(y),D=y?w?A("entries"):O:void 0,x="Array"==t&&N.entries||S;if(x&&(T=l(x.call(new e)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[f]||a(T,f,v))),w&&S&&S.name!==g&&(E=!0,O=function(){return S.call(this)}),r&&!M||!d&&!E&&N[f]||a(N,f,O),s[t]=O,s[_]=v,y)if(b={values:w?O:A(g),keys:I?O:A(p),entries:D},M)for(C in b)C in N||o(N,C,b[C]);else i(i.P+i.F*(d||E),t,b);return b}},"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)}},"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}},"36c3":function(e,t,n){var r=n("335c"),i=n("25eb");e.exports=function(e){return r(i(e))}},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},3863:function(e,t,n){var r=n("f232");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("3b10f201",r,!0,{sourceMap:!1,shadowMode:!1})},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=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?a:null}},"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)}},"3b4a":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vue-core-video-player-control.timespan{line-height:30px;width:140px;font-family:Arial!important}",""])},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"42e9":function(e,t,n){"use strict";var r=n("e9c8"),i=n.n(r);i.a},4447:function(e,t,n){"use strict";var r=n("6412"),i=n.n(r);i.a},"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}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"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 a,s=n(e),c=o.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}return t}},"481b":function(e,t){e.exports={}},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],c=o[2],u=o[3],l={id:e+":"+i,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)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 o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},f=null,d="data-vue-ssr-id",h="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){u=n,f=i||{};var a=r(e,t);return g(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],c=o[s.id];c.refs--,n.push(c)}t?(a=r(e,t),g(a)):a=[];for(i=0;i<n.length;i++){c=n[i];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[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(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function m(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(h){var i=c++;r=s||(s=v()),t=I.bind(null,r,i,!1),n=I.bind(null,r,i,!0)}else r=v(),t=M.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()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function I(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function M(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(d,t.id),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{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4cc6":function(e,t,n){"use strict";var r=n("7c86"),i=n.n(r);i.a},5005:function(e,t,n){var r=n("22bf");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("c17df316",r,!0,{sourceMap:!1,shadowMode:!1})},"504c":function(e,t,n){var r=n("9e1e"),i=n("0d58"),o=n("6821"),a=n("52a7").f;e.exports=function(e){return function(t){var n,s=o(t),c=i(s),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5168:function(e,t,n){var r=n("dbdb")("wks"),i=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"520a":function(e,t,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(a=function(e){var t,n,a,l,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),c&&(t=f[s]),a=i.call(f,e),c&&a&&(f[s]=f.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a}),e.exports=a},5276:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".logo-layer{z-index:11;text-align:left}.logo-layer .logo-wrap{position:absolute;top:15px;right:15px;opacity:.7;text-align:right}.logo-layer .logo-wrap img{max-width:160px;height:48px}",""])},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5311:function(e,t,n){"use strict";var r=n("0b49"),i=n.n(r);i.a},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=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?a:null}},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 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))}},5695:function(e,t,n){var r=n("e9d0");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("1c7c0837",r,!0,{sourceMap:!1,shadowMode:!1})},"56fb":function(e,t,n){"use strict";var r=n("f922"),i=n.n(r);i.a},"584a":function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,h,p=e&u.F,g=e&u.G,v=e&u.S,m=e&u.P,y=e&u.B,I=g?r:v?r[t]||(r[t]={}):(r[t]||{})[c],M=g?i:i[t]||(i[t]={}),b=M[c]||(M[c]={});for(l in g&&(n=t),n)f=!p&&I&&void 0!==I[l],d=(f?I:n)[l],h=y&&f?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,I&&a(I,l,d,e&u.U),M[l]!=d&&o(M,l,h),m&&b[l]!=d&&(b[l]=d)};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},"5d58":function(e,t,n){e.exports=n("d8d6")},"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],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5edd":function(e,t,n){"use strict";var r=n("936a"),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(i,typeof e)}},"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)}},"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))}},"62c4":function(e,t,n){"use strict";var r=n("e76c")();e.exports=function(e){return e!==r&&null!==e}},6321:function(e,t,n){"use strict";var r=n("9013");e.exports=function(e){if("function"!==typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!==typeof e.length)return!1;if("function"!==typeof e.call)return!1;if("function"!==typeof e.apply)return!1}catch(t){return!1}return!r(e)}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),c="prototype",u=function(e,t,n){var l,f,d,h=e&u.F,p=e&u.G,g=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,I=p?i:i[t]||(i[t]={}),M=I[c],b=p?r:g?r[t]:(r[t]||{})[c];for(l in p&&(n=t),n)f=!h&&b&&void 0!==b[l],f&&s(I,l)||(d=f?b[l]:n[l],I[l]=p&&"function"!=typeof b[l]?n[l]:m&&f?o(d,r):y&&b[l]==d?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}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((I.virtual||(I.virtual={}))[l]=d,e&u.R&&M&&!M[l]&&a(M,l,d)))};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},6412:function(e,t,n){var r=n("263c");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("2625ca16",r,!0,{sourceMap:!1,shadowMode:!1})},6718:function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"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))}},"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")}},"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"),a="toString",s=/./[a],c=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")((function(){return"/a/b"!=s.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)})):s.name!=a&&c((function(){return s.call(this)}))},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),i=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="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<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},"6d0c":function(e,t,n){var r=n("6ddc");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("f6023f92",r,!0,{sourceMap:!1,shadowMode:!1})},"6ddc":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".loading-layer{z-index:16;background-color:#333}.loading-layer .loading-wrap{position:absolute;left:50%;top:50%;width:120px;height:80px;margin-top:-40px;margin-left:-60px;text-align:center}.loading-layer .h5-layer-loading{position:relative;width:40px;height:40px;margin:0 auto}.loading-layer .h5-layer-loading .spinner{backface-visibility:hidden;-webkit-backface-visibility:hidden;-webkit-animation:rotator 1.4s linear infinite;animation:rotator 1.4s linear infinite}.loading-layer .h5-layer-loading p{padding-top:20px}@-webkit-keyframes rotator{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}@keyframes rotator{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(270deg);transform:rotate(270deg)}}.loading-layer .h5-layer-loading .path{stroke-dasharray:188.8;stroke-dashoffset:188.8;-webkit-transform-origin:center;transform-origin:center;-webkit-animation:dash 1.4s ease-in-out infinite;animation:dash 1.4s ease-in-out infinite}.loading-layer .h5-layer-loading .dot1{-webkit-animation:dot1a 1.4s ease-in-out infinite;animation:dot1a 1.4s ease-in-out infinite}.loading-layer .h5-layer-loading .dot1,.loading-layer .h5-layer-loading .dot2{stroke-dasharray:188.8;stroke-dashoffset:187.8;-webkit-transform-origin:center;transform-origin:center}.loading-layer .h5-layer-loading .dot2{-webkit-animation:dot2a 1.4s ease-in-out infinite forwards;animation:dot2a 1.4s ease-in-out infinite forwards}@-webkit-keyframes dash{0%{stroke-dashoffset:188.8}50%{stroke-dashoffset:47.2;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@keyframes dash{0%{stroke-dashoffset:188.8}50%{stroke-dashoffset:47.2;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@-webkit-keyframes dot1a{0%{stroke-dashoffset:188.8;-webkit-transform:rotate(0);transform:rotate(0)}50%{stroke-dashoffset:187.8;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@keyframes dot1a{0%{stroke-dashoffset:188.8;-webkit-transform:rotate(0);transform:rotate(0)}50%{stroke-dashoffset:187.8;-webkit-transform:rotate(135deg);transform:rotate(135deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@-webkit-keyframes dot2a{0%{stroke-dashoffset:188.8;-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{stroke-dashoffset:187.8;-webkit-transform:rotate(415deg);transform:rotate(415deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}@keyframes dot2a{0%{stroke-dashoffset:188.8;-webkit-transform:rotate(0deg);transform:rotate(0deg)}50%{stroke-dashoffset:187.8;-webkit-transform:rotate(415deg);transform:rotate(415deg)}to{stroke-dashoffset:188.8;-webkit-transform:rotate(450deg);transform:rotate(450deg)}}",""])},"6f66":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".cover-layer{z-index:11;background-color:#333}.cover-layer img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}",""])},"71c1":function(e,t,n){var r=n("3a38"),i=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},7333:function(e,t,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),a=n("52a7"),s=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=s(e),u=arguments.length,l=1,f=o.f,d=a.f;while(u>l){var h,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,m=0;while(v>m)h=g[m++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},7335:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vue-core-video-player-control .btn-pip svg{width:22px}",""])},7373:function(e,t,n){"use strict";var r=n("62c4"),i=Object.keys;e.exports=function(e){return i(r(e)?Object(e):e)}},"743b":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vue-core-video-player-control .btn-fullscreen svg{width:20px}",""])},"765d":function(e,t,n){n("6718")("observable")},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)},"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)}},"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}))},"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}}},"7bdf":function(e,t,n){"use strict";e.exports=n("ecf9")()?Object.keys:n("7373")},"7c86":function(e,t,n){var r=n("11de");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("8bc865d0",r,!0,{sourceMap:!1,shadowMode:!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,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[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})}},"7fc5":function(e,t,n){"use strict";var r=n("ab5c"),i=n.n(r);i.a},8378:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"84f2":function(e,t){e.exports={}},"850d":function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vue-core-video-player-control .btn-pause{margin-left:20px}.vue-core-video-player-control .btn-pause svg{width:15px}.vue-core-video-player-control .btn-play{margin-left:20px}.vue-core-video-player-control .btn-play svg{width:16px}",""])},"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"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8bbf":function(e,t){e.exports=n("2b0e")},"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"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=a.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&s(l,t,n);return l}})},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9013:function(e,t,n){"use strict";var r=n("5edd");e.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},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)}},"90e0":function(e,t,n){var r=n("2316");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("41493392",r,!0,{sourceMap:!1,shadowMode:!1})},9138:function(e,t,n){e.exports=n("35e8")},"936a":function(e,t,n){"use strict";var r=void 0;e.exports=function(e){return e!==r&&null!==e}},9643:function(e,t,n){var r=n("850d");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("39384dc1",r,!0,{sourceMap:!1,shadowMode:!1})},"96ae":function(e,t,n){"use strict";var r=n("62c4");e.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},9983:function(e,t,n){"use strict";var r=n("2d60"),i=n.n(r);i.a},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"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)}}},"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}},"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}))},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),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?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},a3e9:function(e,t,n){"use strict";var r=n("5005"),i=n.n(r);i.a},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\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),a=void 0==r?void 0:r[t];return void 0!==a?a.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),d=String(this),h="function"===typeof t;h||(t=String(t));var m=f.global;if(m){var y=f.unicode;f.lastIndex=0}var I=[];while(1){var M=c(f,d);if(null===M)break;if(I.push(M),!m)break;var b=String(M[0]);""===b&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var C="",T=0,A=0;A<I.length;A++){M=I[A];for(var _=String(M[0]),w=u(l(a(M.index),d.length),0),E=[],N=1;N<M.length;N++)E.push(p(M[N]));var S=M.groups;if(h){var O=[_].concat(E,w,d);void 0!==S&&O.push(S);var D=String(t.apply(void 0,O))}else D=v(_,d,w,E,S,t);w>=T&&(C+=d.slice(T,w)+D,T=w+_.length)}return C+d.slice(T)}];function v(e,t,r,o,a,s){var c=r+e.length,u=o.length,l=h;return void 0!==a&&(a=i(a),l=d),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var d=f(l/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},aa54:function(e,t,n){"use strict";var r=n("12ae"),i=n.n(r);i.a},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))}},ab5c:function(e,t,n){var r=n("0e5b");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("76a6120a",r,!0,{sourceMap:!1,shadowMode:!1})},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,h={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(h),g=0;g<p.length;g++){var v,m=p[g],y=h[m],I=a[m],M=I&&I.prototype;if(M&&(M[l]||s(M,l,d),M[f]||s(M,f,m),c[m]=d,y))for(v in r)M[v]||o(M,v,r[v],!0)}},add7:function(e,t,n){var r=n("dc03");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("26edf8bf",r,!0,{sourceMap:!1,shadowMode:!1})},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b1ba:function(e,t,n){"use strict";var r=n("6d0c"),i=n.n(r);i.a},b447:function(e,t,n){var r=n("3a38"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},b5de:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vcp-container{position:relative;margin:0 auto}.vcp-container,.vcp-container video{width:100%;height:100%;background-color:#000}",""])},b72f:function(e,t,n){"use strict";var r=n("90e0"),i=n.n(r);i.a},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},bead:function(e,t,n){"use strict";var r=n("f0b7"),i=n.n(r);i.a},bf0b:function(e,t,n){var r=n("355d"),i=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},c207:function(e,t){},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)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"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(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)}},c428:function(e,t,n){"use strict";var r=n("1689"),i=n.n(r);i.a},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}))},c9fc:function(e,t,n){"use strict";var r,i,o,a,s,c,u,l=n("f508"),f=n("1a94"),d=Function.prototype.apply,h=Function.prototype.call,p=Object.create,g=Object.defineProperty,v=Object.defineProperties,m=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var n;return f(t),m.call(this,"__ee__")?n=this.__ee__:(n=y.value=p(null),g(this,"__ee__",y),y.value=null),n[e]?"object"===typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},i=function(e,t){var n,i;return f(t),i=this,r.call(this,e,n=function(){o.call(i,e,n),d.call(t,this,arguments)}),n.__eeOnceListener__=t,this},o=function(e,t){var n,r,i,o;if(f(t),!m.call(this,"__ee__"))return this;if(n=this.__ee__,!n[e])return this;if(r=n[e],"object"===typeof r)for(o=0;i=r[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},a=function(e){var t,n,r,i,o;if(m.call(this,"__ee__")&&(i=this.__ee__[e],i))if("object"===typeof i){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;r=i[t];++t)d.call(r,this,o)}else switch(arguments.length){case 1:h.call(i,this);break;case 2:h.call(i,this,arguments[1]);break;case 3:h.call(i,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];d.call(i,this,o)}},s={on:r,once:i,off:o,emit:a},c={on:l(r),once:l(i),off:l(o),emit:l(a)},u=v({},c),e.exports=t=function(e){return null==e?p(u):v(Object(e),c)},t.methods=s},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"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(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}},cc1d:function(e,t,n){"use strict";var r=n("0ee8"),i=n.n(r);i.a},ccb9:function(e,t,n){t.f=n("5168")},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},cfb4:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,'.vcp-switch{display:inline-block;position:relative;width:40px;height:16px;border-radius:8px;background-color:#fff;cursor:pointer}.vcp-switch:after{content:"";display:inline-block;position:absolute;top:1px;left:2px;width:14px;height:14px;border-radius:7px;background-color:#ff6060;-webkit-transition:left .2s ease-in .05s;transition:left .2s ease-in .05s}.vcp-switch.open:after{left:23px}',""])},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d658:function(e,t,n){"use strict";var r=n("9643"),i=n.n(r);i.a},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}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),i=n("e53d"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dc03:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".animated{-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(20%,0,0);transform:translate3d(20%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;-webkit-transform:translate3d(20%,0,0);transform:translate3d(20%,0,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInRight{-webkit-animation-name:fadeInRight;animation-name:fadeInRight}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-10%,0);transform:translate3d(0,-10%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-10%,0);transform:translate3d(0,-10%,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}.vcp-layer{position:absolute;top:0;bottom:0;right:0;left:0;color:#fff;font-weight:400}.vcp-layer div,.vcp-layer svg{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vcp-icon{display:inline-block}.vue-core-video-player-control{display:inline-block;position:relative;width:30px;height:30px;margin-right:20px;font-size:13px;color:#fff}.vcp-m-dashboard .vue-core-video-player-control{margin-right:10px}.btn-control-panel{position:absolute;left:50%;bottom:54px;padding:20px;min-height:30px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transform:translateX(-50%);transform:translateX(-50%);background-color:rgba(0,0,0,.7);border-radius:4px;font-weight:500}.btn-control-panel li,.btn-control-panel ul{margin:0;padding:0;text-align:center}.btn-control-panel ul li{list-style:none;height:30px;line-height:30px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:left}.btn-control-panel ul li .item-name{-webkit-box-flex:1;-ms-flex:1;flex:1;-ms-flex-item-align:start;align-self:flex-start}.btn-control-panel ul li .item-control{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;line-height:30px;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.btn-control,.btn-control-panel ul li .item-control{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.btn-control{position:relative;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px}.btn-control:focus{background:none;outline-style:none}.btn-control .tips{display:none;position:absolute;min-width:30px;padding:4px;border-radius:2px;bottom:54px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:12px;font-weight:700;color:hsla(0,0%,100%,.7);background-color:rgba(0,0,0,.7);text-align:center;line-height:1.2;word-break:keep-all;word-wrap:no-wrap;white-space:nowrap;opacity:0;-webkit-transition:opacity .15s ease-in;transition:opacity .15s ease-in}.btn-control svg{opacity:.85;-webkit-transition:opacity .1s ease;transition:opacity .1s ease}.btn-control:hover svg{opacity:1}.btn-control:hover .tips{display:block;opacity:1}",""])},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e312:function(e){e.exports=JSON.parse('{"dashboard":{"btn":{"play":"Play","pause":"Pause","fullscreen":"Full Screen","exitFullscreen":"Exit Full Screen","mute":"Mute","unmute":"Unmute","back":"Back","pip":"Picture-in-Picture"},"settings":{"autoplay":"Autoplay","loop":"Loop","speed":"Speed","resolution":"Resolution"}},"layers":{"error":{"2404":"Video Source Not Found","2502":"Media Network Error","2503":"Video Cannot DECODE","2504":"Video Cannot Play!","title":"(O_O)?  Error!"},"loading":{"msg":"Loading ..."}}}')},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}},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)},e6f3:function(e,t,n){var r=n("07e3"),i=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},e76c:function(e,t,n){"use strict";e.exports=function(){}},e9c8:function(e,t,n){var r=n("2814");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("d37f223e",r,!0,{sourceMap:!1,shadowMode:!1})},e9d0:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".error-layer{z-index:12;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wgg2pGpeEVeCCA7b85BO3F9DzxB3cdqvBzWcmzbyMiqhzuYqtHRVG2y4x+KOlnyqla8AoWWpuBoYRxzXrfKuILl6SfiWCbjxoZJUaCBj1CjH7GIaDbc9kqBY3W/Rgjda1iqQcOJu2WW+76pZC9QG7M00dffe9hNnseupFL53r8F7YHSwJWUKP2q+k7RdsxyOB11n0xtOvnW4irMMFNV4H0uqwS5ExsmP9AxbDTc9JwgneAT5vTiUSm1E7BSflSt3bfa1tv8Di3R8n3Af7MNWzs49hmauE2wP+ttrq+AsWpFG2awvsuOqbipWHgtuvuaAE+A1Z/7gC9hesnr+7wqCwG8c5yAg3AL1fm8T9AZtp/bbJGwl1pNrE7RuOX7PeMRUERVaPpEs+yqeoSmuOlokqw49pgomjLeh7icHNlG19yjs6XXOMedYm5xH2YxpV2tc0Ro2jJfxC50ApuxGob7lMsxfTbeUv07TyYxpeLucEH1gNd4IKH2LAg5TdVhlCafZvpskfncCfx8pOhJzd76bJWeYFnFciwcYfubRc12Ip/ppIhA1/mSZ/RxjFDrJC5xifFjJpY2Xl5zXdguFqYyTR1zSp1Y9p+tktDYYSNflcxI0iyO4TPBdlRcpeqjK/piF5bklq77VSEaA+z8qmJTFzIWiitbnzR794USKBUaT0NTEsVjZqLaFVqJoPN9ODG70IPbfBHKK+/q/AWR0tJzYHRULOa4MP+W/HfGadZUbfw177G7j/OGbIs8TahLyynl4X4RinF793Oz+BU0saXtUHrVBFT/DnA3ctNPoGbs4hRIjTok8i+algT1lTHi4SxFvONKNrgQFAq2/gFnWMXgwffgYMJpiKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==);background-color:#333;background-repeat:repeat;text-align:center}.error-layer .error-icon{width:194px;margin:-40px auto 0}.error-layer .error-msg{color:hsla(0,0%,100%,.7)}",""])},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},ebfd:function(e,t,n){var r=n("62a0")("meta"),i=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,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},d=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},ecf9:function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},f0b7:function(e,t,n){var r=n("b5de");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("9172fcae",r,!0,{sourceMap:!1,shadowMode:!1})},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){e.exports=JSON.parse('{"dashboard":{"btn":{"play":"播放","pause":"暂停","fullscreen":"全屏","exitFullscreen":"退出全屏","mute":"静音","unmute":"取消静音","back":"返回","pip":"画中画模式"},"settings":{"autoplay":"自动播放","loop":"循环播放","speed":"播放速度","resolution":"清晰度"}},"layers":{"error":{"2404":"找不到播放视频","2502":"播放网络异常","2503":"视频无法解码","2504":"视频无法正常播放","title":"(O_O)?  播放错误!"},"loading":{"msg":"加载中 ..."}}}')},f232:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,'.vcp-progress-hover{position:absolute;bottom:100%;left:0;height:12px;width:100%;cursor:pointer}.vcp-progress-hover .vcp-progress{position:absolute;bottom:0;left:0;height:4px;width:100%;background-color:hsla(0,0%,100%,.3);-webkit-transition:height .2s ease .05s;transition:height .2s ease .05s}.vcp-progress-hover:hover .vcp-progress{height:6px}.vcp-progress-hover:hover .vcp-progress .thumb-drag{opacity:1}.vcp-progress-loaded,.vcp-progress-played{position:absolute;top:0;left:0;width:0;height:100%;background-color:hsla(0,0%,100%,.7)}.vcp-progress-loaded{-webkit-transition:width .1s cubic-bezier(.4,0,1,1);transition:width .1s cubic-bezier(.4,0,1,1)}.vcp-progress-played{width:0;background-color:#ff6060}.vcp-progress-played .thumb-drag{opacity:0;position:absolute;right:0;top:50%;width:12px;height:12px;border-radius:6px;background-color:#fff;-webkit-transform:translateY(-50%) translateX(50%);transform:translateY(-50%) translateX(50%);-webkit-transition:height .05s ease .15s;transition:height .05s ease .15s}.vcp-progress-played .thumb-drag:before{content:"";display:inline-block;position:absolute;top:-2px;left:-2px;width:16px;height:16px;border-radius:7px;background-color:hsla(0,0%,100%,.3)}.vcp-m-dashboard .vcp-progress-hover{bottom:0}.vcp-m-dashboard .vcp-progress-hover .vcp-progress{height:3px}.vcp-m-dashboard .vcp-progress-hover .vcp-progress-played .thumb-drag{background-color:#ff6060}.vcp-m-dashboard .vcp-progress-hover .vcp-progress-played .thumb-drag:before{background-color:#ff6060;opacity:.25}',""])},f31c:function(e,t,n){t=e.exports=n("2350")(!1),t.push([e.i,".vcp-dashboard{z-index:11;position:absolute;left:0;bottom:0;width:100%;height:59px;background:rgba(0,0,0,.5)}.fullscreen .vcp-dashboard{bottom:60px;width:1182px;left:50%;margin-left:-591px}.small .vcp-dashboard{height:49px}.settings-open .vcp-dashboard{display:block!important}.small .vcp-dashboard .vcp-controls{height:40px}",""])},f3a6:function(e,t,n){"use strict";var r=n("62c4"),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,(function(e){r(e)&&a(Object(e),t)})),t}},f508:function(e,t,n){"use strict";var r=n("936a"),i=n("1793"),o=n("2031"),a=n("f3a6"),s=n("f973"),c=e.exports=function(e,t){var n,i,c,u,l;return arguments.length<2||"string"!==typeof e?(u=t,t=e,e=null):u=arguments[2],r(e)?(n=s.call(e,"c"),i=s.call(e,"e"),c=s.call(e,"w")):(n=c=!0,i=!1),l={value:t,configurable:n,enumerable:i,writable:c},u?o(a(u),l):l};c.gs=function(e,t,n){var c,u,l,f;return"string"!==typeof e?(l=n,n=t,t=e,e=null):l=arguments[3],r(t)?i(t)?r(n)?i(n)||(l=n,n=void 0):n=void 0:(l=t,t=n=void 0):t=void 0,r(e)?(c=s.call(e,"c"),u=s.call(e,"e")):(c=!0,u=!1),f={get:t,set:n,configurable:c,enumerable:u},l?o(a(l),f):f}},f60e:function(e,t,n){"use strict";var r=n("7bdf"),i=n("96ae"),o=Math.max;e.exports=function(e,t){var n,a,s,c=o(arguments.length,2);for(e=Object(i(e)),s=function(r){try{e[r]=t[r]}catch(i){n||(n=i)}},a=1;a<c;++a)t=arguments[a],r(t).forEach(s);if(void 0!==n)throw n;return e}},f64c:function(e,t,n){"use strict";var r=n("5695"),i=n.n(r);i.a},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},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}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},f922:function(e,t,n){var r=n("5276");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("22717135",r,!0,{sourceMap:!1,shadowMode:!1})},f967:function(e,t,n){"use strict";var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1}},f973:function(e,t,n){"use strict";e.exports=n("18ec")()?String.prototype.contains:n("f967")},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=n("5d58"),o=n.n(i),a=n("67bb"),s=n.n(a);function c(e){return c="function"===typeof s.a&&"symbol"===typeof o.a?function(e){return typeof e}:function(e){return e&&"function"===typeof s.a&&e.constructor===s.a&&e!==s.a.prototype?"symbol":typeof e},c(e)}function u(e){return u="function"===typeof s.a&&"symbol"===c(o.a)?function(e){return c(e)}:function(e){return e&&"function"===typeof s.a&&e.constructor===s.a&&e!==s.a.prototype?"symbol":c(e)},u(e)}n("28a5");var l=n("f201"),f=n("e312"),d=n("0d2d"),h={"zh-CN":l,jp:d,en:f},p={t:function(e,t){for(var n=e.split("."),r=n.length,i=p.locale,o=0;o<r;o++)i.hasOwnProperty(n[o])&&(i=i[n[o]]);return i||t},setLocale:function(e){return"object"===u(e)?p.locale=e:p.locale=h[e||"en"],p.locale}},g=p,v=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"vcp-el",staticClass:"vcp-container"},[n("video",{ref:"vcp-video",attrs:{title:e.title,cover:e.cover,loop:e.loop,playsinline:e.playsinline,src:e.source}}),n("Layers"),e.isMobile?e._e():n("Dashboard",{attrs:{controls:e.controls,muted:e.muted}}),e.isMobile?n("MobileDashboard",{attrs:{controls:e.controls,muted:e.muted}}):e._e()],1)},m=[],y=(n("8e6e"),n("456d"),n("cadf"),n("8615"),n("85f2")),I=n.n(y);function M(e,t,n){return t in e?I()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("ac6a"),n("add7");var b=n("8bbf"),C=n.n(b);C.a.directive("t",{bind:function(e,t){e.innerText=g.t(t.expression)}});var T={loop:!1,volume:1,muted:!1,autoplay:!1,preload:"metadata",playList:[],safeBufferTime:2,minPlayBufferTime:1,resolution:"720p",dashboardHideDelay:2500},A=T;function _(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 w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(n,!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E={ERROR_NO_MEDIA:"ERROR_NO_MEDIA",ERROR_AUTO_PLAY:"ERROR_AUTO_PLAY"},N={LIFECYCLE_INITING:"lifecycle_initing",LIFECYCLE_INITED:"lifecycle_inited",LIFECYCLE_PARSED:"lifecycle_parse",LIFECYCLE_STOP:"lifecycle_stop"},S={SOURCE_UPDATED:"SOURCE_UPDATED"},O={UI_DASHBOARD_SHOW:"ui_dashboard_show",UI_DASHBOARD_HIDE:"ui_dashboard_hide",UI_PLAY:"ui_play",UI_PAUSE:"ui_pause"},D=w({},E,{},N,{},S,{},O,{SERVICE_LOADING:"service_loading",SERVICE_ENDED:"service_ended",LOADING_START:"loading_start",LOADING_END:"loading_end",CORE_TO_MP4:"core_to_mp4",PLAY:"play",PAUSE:"pause",LOADEDDATA:"loadeddata",CANPLAY:"canplay",CANPLAYTHROUGH:"canplaythrough",ERROR:"error",DURATIONCHANGE:"durationchange",ENDED:"ended",TIMEUPDATE:"timeupdate",LOADEDMETADATA:"loadedmetadata",WAITING:"waiting",PLAYING:"playing",RETRY:"retry",SEEKED:"seeked",SEEKING:"seeking",VOLUMECHANGE:"volumechange",EXIT:"exit",PROGRESS:"progress",STALLED:"stalled",LOADSTART:"loadstart",RESOLUTION_UPDATE:"resolution_update"}),x=D,R={NO_SOURCE:{code:"2404",msg:"Prop `src` not found"},2502:"Media Network Error",2503:"Video Cannot DECODE",2504:"Video Cannot Play!",2701:"Parse Error",2801:"Not found reason"},k=R,L=["video/webm","video/mp4"];n("6b54"),n("a481");const j=/iPhone/i,P=/iPod/i,U=/iPad/i,z=/\bAndroid(?:.+)Mobile\b/i,B=/Android/i,G=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Y=/Silk/i,H=/Windows Phone/i,F=/\bWindows(?:.+)ARM\b/i,$=/BlackBerry/i,V=/BB10/i,Q=/Opera Mini/i,W=/\b(CriOS|Chrome)(?:.+)Mobile/i,Z=/Mobile(?:.+)Firefox\b/i;function K(e,t){return e.test(t)}function q(e){e=e||("undefined"!==typeof navigator?navigator.userAgent:"");let t=e.split("[FBAN");"undefined"!==typeof t[1]&&(e=t[0]),t=e.split("Twitter"),"undefined"!==typeof t[1]&&(e=t[0]);const n={apple:{phone:K(j,e)&&!K(H,e),ipod:K(P,e),tablet:!K(j,e)&&K(U,e)&&!K(H,e),device:(K(j,e)||K(P,e)||K(U,e))&&!K(H,e)},amazon:{phone:K(G,e),tablet:!K(G,e)&&K(Y,e),device:K(G,e)||K(Y,e)},android:{phone:!K(H,e)&&K(G,e)||!K(H,e)&&K(z,e),tablet:!K(H,e)&&!K(G,e)&&!K(z,e)&&(K(Y,e)||K(B,e)),device:!K(H,e)&&(K(G,e)||K(Y,e)||K(z,e)||K(B,e))||K(/\bokhttp\b/i,e)},windows:{phone:K(H,e),tablet:K(F,e),device:K(H,e)||K(F,e)},other:{blackberry:K($,e),blackberry10:K(V,e),opera:K(Q,e),firefox:K(Z,e),chrome:K(W,e),device:K($,e)||K(V,e)||K(Q,e)||K(Z,e)||K(W,e)},any:!1,phone:!1,tablet:!1};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}function J(e){return"string"===typeof e}var X=navigator.userAgent.toLowerCase();function ee(e){return e<10?"0".concat(e):e}function te(e,t){e=parseInt(e);var n=e%60,r=parseInt(e/3600),i=parseInt(e%3600/60);return"array"===t?[r,i,n]:"m:s"===t?(i=parseInt(e/60),[i,n].map((function(e){return ee(e)})).join(":")):[r,i,n].map((function(e){return ee(e)})).join(":")}function ne(e){var t=0,n=0;do{t+=e.offsetLeft,n+=e.offsetTop}while(e=e.offsetParent);return{left:t,top:n}}function re(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}var ie=function(){return navigator.userAgent.indexOf("Safari")>-1};function oe(e,t){if(0===t.length)return 0;for(var n=0;n<t.length;n++){var r=t.start(n),i=t.end(n);if(e>=r&&e<=i)return t.end(n)}return e}var ae=function(){return"object"!==("undefined"===typeof localStorage?"undefined":u(localStorage))&&"object"!==("undefined"===typeof navigator?"undefined":u(navigator))},se=q(X).any,ce=q(X).android,ue=q(X).apple&&q(X).apple.device,le=(ue&&ie(),/MQQBrowser/i.test(X)),fe=(/ucbrowser/i.test(X),/chrome/i.test(X)),de=(/MicroMessenger/i.test(X),/firefox/i.test(X)),he=function(e){return!!(Array.isArray(e)&&"object"===u(e[0])&&e[0].resolution&&e[0].src)};function pe(e){return he(e)?e.filter((function(e){return e.src&&e.resolution})):"string"===typeof e?[e]:e}function ge(e,t){return ae()?!(!de&&!fe||"video/webm"!==e)||"video/mp4"===e:(t||(t=document.createElement("videos")),t.canPlayType(e))}n("f751");function ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(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 ye(e,t,n){return t&&me(e.prototype,t),n&&me(e,n),e}function Ie(e,t){if(t&&e){var n=t.split(" ");if(e.classList&&1===n.length)e.classList.add(t);else{var r=e.className.split(" ");r.push(t),e.className=r.join(" ")}}}function Me(e,t){if(e.classList)e.classList.remove(t);else{for(var n=e.className.split(" "),r=-1,i=0,o=n.length;i<o;i++)n[i]===t&&(r=i);r>-1&&n.splice(r,1),e.className=n.join(" ")}}function be(e,t){var n=t.parentNode;while(null!=n){if(n===e)return!0;n=n.parentNode}return!1}function Ce(e,t,n){if(t){var r=se?e.changedTouches[0]["clientX"]:e.clientX,i=se?e.changedTouches[0]["clientY"]:e.clientY,o=r-n.x,a=i-n.y;return o<=n.minLeft&&(o=n.minLeft),o>=n.maxLeft&&(o=n.maxLeft),a<=n.minTop&&(a=n.minTop),a>=n.maxTop&&(a=n.maxTop),{left:o,top:a}}}function Te(e){document.addEventListener("fullscreenchange",(function(){e(document.webkitIsFullScreen)}),!1),document.addEventListener("mozfullscreenchange",(function(){e(document.mozFullScreen)}),!1),document.addEventListener("msFullscreenElement",(function(){e(document.mozFullScreen)}),!1),document.addEventListener("webkitfullscreenchange",(function(){e(document.webkitIsFullScreen)}),!1)}var Ae=["play","playing","timeupdate","pause","seeking","waiting","loadedmetadata","loadeddata","loadstart","seeked","ended","durationchange","progress","canplaythrough","volumechange"],_e=["muted","volume","loop","preload"],we=function(){function e(t){ve(this,e),this.config=Object.assign(A,t),this.$video=this.config.videoEl,this.$el=this.config.el,this._eventEmitter=t.eventEmitter,this.state={};var n=this.config.src;this.checkSource(n)&&(this.parse(n),this.init())}return ye(e,[{key:"parse",value:function(e){this.initResolution(e),this.initVideoType()}},{key:"checkSource",value:function(e){if(!e){var t=k.NO_SOURCE.code;return this.emit(x.ERROR,{code:t}),!1}return!!(!Array.isArray(e)||e[0]&&e[0].src)}},{key:"setSource",value:function(e){var t=this;if(this.checkSource(e)){this.parse(e);var n=this.isPlaying();if(n){this.pause();var r=function e(){t.play(),t.$video.removeEventListener(x.DURATIONCHANGE,e)};this.$video.addEventListener(x.DURATIONCHANGE,r)}}}},{key:"init",value:function(){this.checkSource(this.config.src),this._autoRegisterEvents(),this._setVideoAttr(),this.setContainer(),this.setSize(),this.emit(x.LIFECYCLE_INITED),this._autoplay()}},{key:"setContainer",value:function(){se&&Ie(this.$el,"mobile")}},{key:"setSize",value:function(){var e=this.$el.offsetWidth,t="";e<=763&&(t="small"),Ie(this.$el,t)}},{key:"_autoplay",value:function(){var e=this;if(this.config.autoplay&&!se){var t=function(){var t=e.play();e.autoPlayPolicy(t)};t()}}},{key:"setConfig",value:function(e,t){_e.indexOf(e)>=0&&(this.config[e]=t,this.$video[e]=t)}},{key:"initResolution",value:function(e){var t=this,n=this.config.resolution;this.medias=pe(e),this.medias.forEach((function(e){e.resolution===n&&(t.config.src=e.src)})),this.resolution=n,setTimeout((function(){t.emit(x.SOURCE_UPDATED)}),200)}},{key:"initVideoType",value:function(){for(var e=this,t=function(t){for(var n=0;n<e.medias.length;n++)if(e.medias[n].type===t)return e.medias[n]},n=0;n<L.length;n++){var r=t(L[n]);if(ge(L[n],this.$video)&&r)return this.config.src=r.src,this.$video.src=this.config.src,this.resolution="",void(this.medias=[r])}}},{key:"setResolution",value:function(e){var t=this,n=this.medias;if(n&&n.length>1)for(var r=0;r<n.length;r++)n[r].resolution===e&&function(){t.resolution=e;var i=t.isPlaying(),o=t.getCurrentTime();t.$video.src=n[r].src,t.emit(x.SOURCE_UPDATED),t.$video.load(),i&&o<1&&t.$video.play();var a=x.CANPLAYTHROUGH,s=0,c=function e(){ce&&le?(t.play(),1===s&&t.seek(o),s+=1):t.seek(o),ce&&le&&!i&&t.pause(),t.$video.removeEventListener(x.CANPLAYTHROUGH,e),2===s&&(t.$video.removeEventListener(x.DURATIONCHANGE,e),s=0)},u=function e(){i&&t.play(),t.$video.removeEventListener(x.SEEKED,e)},l=function e(){t.start(),t.$video.removeEventListener(x.PLAYING,e)};ce&&le&&(a=x.DURATIONCHANGE,t.play()),t.$video.addEventListener(a,c),t.$video.addEventListener(x.SEEKED,u),t.$video.addEventListener(x.PLAY,l)}()}},{key:"setAudio",value:function(e){}},{key:"_autoRegisterEvents",value:function(){var e=this;Ae.forEach((function(t){e.$video.addEventListener(t,(function(n){var r="on".concat(t);"function"===typeof e[r]&&e[r](n),e.emit(t,{name:t,target:e.$video})}))})),this.$video.addEventListener("error",(function(t){if(t.target.getAttribute("src"))if(t.target.error&&t.target.error.code){var n=Object.assign({},t.target.error,{code:"250"+t.target.error.code});e.emit("error",n)}else"object"!==u(t)&&(t={code:5001,e:t}),e.emit("error",t)})),this.on(x.CORE_TO_MP4,(function(){e.downgradeCore()})),this._bindProgressEvent()}},{key:"_bindProgressEvent",value:function(){var e=this,t=this.config,n=t.minPlayBUfferTime,r=t.safeBufferTime,i=function(){if(e.state.waiting_trigger){var t=e.getBufferTime(),i=e.getCurrentTime(),o=e.getDuration();if(!(i<2)&&!(o-i<n)){var a=t-i;t-i<n?(e.player.pause(),e.state.waiting_pause=!0,e.emit(x.LOADING_START,!0)):e.state.waiting_pause&&a>r&&(e.play(),e.state.waiting_pause=!1)}}};this.on(x.UI_PLAY,(function(){e.state.waiting_pause=!0}));var o=!1;this.on(x.PLAY,(function(){o||(o=!0,e.on(x.PROGRESS,i))})),this.on(x.UI_PAUSE,(function(){e.state.waiting_trigger=!1})),this.on(x.UI_PLAY,(function(){e.state.waiting_trigger=!0}))}},{key:"play",value:function(){return this.$video.play()}},{key:"pause",value:function(){this.$video.pause()}},{key:"isPlaying",value:function(){return!this.$video.paused&&!this.$video.ended}},{key:"replay",value:function(){this.$video.play()}},{key:"seek",value:function(e){this.$video.currentTime=e}},{key:"requestPictureInPicture",value:function(){var e=this.$video;try{e!==document.pictureInPictureElement?e.requestPictureInPicture():document.exitPictureInPicture()}catch(t){console.error(t)}}},{key:"onended",value:function(){var e=this.config.loop;e&&this.player.play()}},{key:"getDuration",value:function(){return this.$video&&this.$video.duration||0}},{key:"getCurrentTime",value:function(){var e=this.$video.currentTime||0;return e}},{key:"getBufferTime",value:function(){var e=this.$video,t=this.getCurrentTime();return oe(t,e.buffered)}},{key:"getProgress",value:function(){return this.getCurrentTime()&&(this.getCurrentTime()/this.getDuration()*100).toFixed(2)||0}},{key:"getVolume",value:function(){return this.$video?this.$video.volume:1}},{key:"getVideoAttr",value:function(e){return this.$video[e]}},{key:"setVideoAttr",value:function(e,t){this.$video[e]=t}},{key:"_setVideoAttr",value:function(){var e=this;se&&(this.$video.setAttribute("x5-video-player-type","h5"),this.$video.setAttribute("x5-video-player-fullscreen",!1)),this.$video.loop=!1,_e.forEach((function(t){e.config[t]&&(e.$video[t]=e.config[t])}))}},{key:"autoPlayPolicy",value:function(e){var t=this;void 0!==e&&e.catch((function(e){t.emit(x.ERROR_AUTO_PLAY,e),t.config.autoplay=!1})).then((function(){}))}},{key:"setVolume",value:function(e){this.$video.volume=e}},{key:"setMuted",value:function(e){this.$video.muted=e,e&&this.emit(x.VOLUMECHANGE,!0)}},{key:"setSpeed",value:function(e){this.$video.playbackRate=e}},{key:"destroy",value:function(){this.pause()}},{key:"getVideoElement",value:function(){return this.$video}},{key:"on",value:function(e,t){this._eventEmitter.on(e,t)}},{key:"off",value:function(e,t){this._eventEmitter.off(e,t)}},{key:"emit",value:function(e,t){this._eventEmitter.emit(e,t)}},{key:"once",value:function(e,t){this._eventEmitter.once(e,t)}}],[{key:"debug",set:function(e){localStorage._vueCorePlayerDebug=!!e||""}}]),e}();window.VCPVideoCore=we;var Ee=we,Ne={};function Se(e){var t=re();e._id=t;var n=e.core||Ee,r=new n(e);return r.id=t,Ne[t]=r,r}var Oe=n("c9fc"),De=n.n(Oe),xe=De()(),Re={data:function(){return{show:!1,fullscreen:!1,isPlaying:!1,_coreID:""}},created:function(){var e=this;this.on(x.LIFECYCLE_INITING,(function(t){e.$player=t,e.$container=e.$player.$el})),this.on(x.PLAY,(function(){e.isPlaying=!0})),this.on(x.PAUSE,(function(){e.isPlaying=!1})),Te((function(t){t?(Ie(e.$container,"fullscreen"),e.emit("fullscreen",!0)):(Me(e.$container,"fullscreen"),e.emit("fullscreen",!1))}))},_events:{},methods:{play:function(){this.$player.play()},pause:function(){this.$player.pause()},enterFullscreen:function(){var e=this.$container;e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.requestFullScreen&&e.requestFullscreen(),this.fullscreen=!0},cancelFullscreen:function(e){document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.cancelFullScreen&&document.cancelFullScreen(),this.fullscreen=!1},getFullscreen:function(){return!document.fullscreenElement&&!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement},on:function(e,t){var n=this;J(e)?(this._events[e]=t,xe.on(e,t)):Array.isArray(e)&&e.forEach((function(e){n._events[e]=t,xe.on(e,t)}))},emit:function(e,t){xe.emit(e,t)},off:function(e,t){xe.off(e,t)},removeAllEvents:function(){for(var e in this._events)xe.off(e,this._events[e])},addClass:function(e){this.$container.classList.remove(e)},removeClass:function(e){this.$container.classList.remove(e)}},beforeDestroy:function(){this.removeAllEvents()}},ke=Re,Le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"dashboard",staticClass:"vcp-dashboard",attrs:{autoplay:""}},[n("Progress"),n("Controls",{attrs:{muted:e.muted}})],1)},je=[],Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"input",staticClass:"vcp-progress-hover",on:{click:e.seek}},[n("div",{ref:"container",staticClass:"vcp-progress"},[n("div",{staticClass:"vcp-progress-loaded",style:{width:e.bufferProgress+"%"}}),n("div",{staticClass:"vcp-progress-played",style:{width:e.progress+"%"}},[n("div",{ref:"thumb",staticClass:"thumb-drag",on:{touchstart:e.startDrag,mousedown:e.startDrag}})])])])},Ue=[],ze={name:"Progress",props:{visible:Boolean},mixins:[ke],data:function(){return{progress:0,bufferProgress:0}},created:function(){var e=this;this.on(x.TIMEUPDATE,(function(){if(!e._dragEl){var t=e.$player.getCurrentTime(),n=e.$player.getDuration();e.progress=(t/n*100).toFixed(2)}})),this.on(x.PROGRESS,(function(){var t=e.$player.getBufferTime(),n=e.$player.getDuration();t>0&&n>0&&(e.bufferProgress=(t/n*100).toFixed(2))})),this.on(x.LOADSTART,(function(){var t=e.$player.getBufferTime(),n=e.$player.getDuration();e.bufferProgress=(t/n*100).toFixed(2)}))},methods:{seek:function(e){var t=ne(e.currentTarget);this.getFullscreen()&&(t.left=0);var n=e.currentTarget.getBoundingClientRect(),r=e.pageX-n.left,i=e.currentTarget.offsetWidth,o=(r/i*100).toFixed(2);this.progress=o;var a=this.$player.getDuration();this.$player.seek(r/i*a)},startDrag:function(e){this.initDrag(e),this.startSeek=!0},initDrag:function(e){e.preventDefault();var t=this;this._dragEl=this.$refs["thumb"];var n=this.$refs["input"].offsetWidth,r=getComputedStyle(this._dragEl,null).marginLeft;r&&(r=parseFloat(r));var i={x:(se?e.touches[0].clientX:e.pageX)-this._dragEl.offsetLeft+r,y:(se?e.touches[0].clientX:e.clientY)-this._dragEl.offsetTop,maxLeft:n};this.getFullscreen()&&(i.x=e.pageX-this._dragEl.offsetLeft);var o=function(e){if(t._dragEl){var r=Ce(e,t._dragEl,i);if(r){var o=r.left,a=(o/n*100).toFixed(2);t.progress=a;var s=t.$player.getDuration();t.$player.seek(o/n*s)}}},a=function e(){if(t._dragEl=null,se)return t.$refs["container"].removeEventListener("touchmove",o,!1),void document.removeEventListener("touchend",e,!1);document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",e,!1)};if(se)return t.$refs["container"].addEventListener("touchmove",o,!1),void document.addEventListener("touchend",a,!1);document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",a,!1)}}},Be=ze;n("0d22");function Ge(e,t,n,r,i,o,a,s){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),a?(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(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,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}}var Ye=Ge(Be,Pe,Ue,!1,null,null,null),He=Ye.exports,Fe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vcp-controls"},[n("div",{staticClass:"playback-control"},[n("play-pause-cntrol"),n("time-span")],1),n("div",{staticClass:"setting-control"},[n("volume-control",{attrs:{muted:e.muted}}),n("picture-in-picture"),n("settings-control"),n("fullscreen-control")],1)])},$e=[],Ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-core-video-player-control"},[e.isPlaying?n("div",{staticClass:"btn-control btn-pause",on:{click:e.pause}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"48",viewBox:"0 0 36 48"}},[n("g",{attrs:{transform:"translate(-950 -398)"}},[n("rect",{attrs:{width:"12",height:"48",transform:"translate(950 398)",fill:"#fff"}}),n("rect",{attrs:{width:"12",height:"48",transform:"translate(974 398)",fill:"#fff"}})])]),n("span",{staticClass:"tips"},[e._v(e._s(e.$t("dashboard.btn.pause")))])]):n("div",{staticClass:"btn-control btn-play",on:{click:e.play}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"41",height:"47",viewBox:"0 0 41 47"}},[n("path",{attrs:{d:"M23.5,0,47,41H0Z",transform:"translate(41) rotate(90)",fill:"#fff"}})]),n("span",{staticClass:"tips"},[e._v(e._s(e.$t("dashboard.btn.play")))])])])},Qe=[],We={name:"PlayPauseControl",mixins:[ke],props:{visible:Boolean}},Ze=We,Ke=(n("d658"),Ge(Ze,Ve,Qe,!1,null,null,null)),qe=Ke.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-core-video-player-control timespan"},[n("span",{staticClass:"time-current"},[e._v(e._s(e.currentTime))]),n("span",{staticClass:"time-split"},[e._v(" / ")]),n("span",{staticClass:"time-duration"},[e._v(e._s(e.duration))])])},Xe=[],et={name:"TimeSpan",props:{visible:Boolean},mixins:[ke],data:function(){return{currentTime:"00:00:00",duration:"--:--:--"}},created:function(){var e=this;this.on(x.TIMEUPDATE,(function(){var t=e.$player.getCurrentTime();if(t){e.currentTime=te(t);var n=e.$player.getDuration();n!==e.duration&&(e.duration=te(n))}})),this.on(x.DURATIONCHANGE,(function(){var t=e.$player.getDuration();e.duration=te(t)}))}},tt=et,nt=(n("5311"),Ge(tt,Je,Xe,!1,null,null,null)),rt=nt.exports,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-core-video-player-control volume-control"},[e.isMuted?e._e():n("div",{staticClass:"btn-control btn-volume",on:{click:e.toggle}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"23.542",height:"23",viewBox:"0 0 23.542 23"}},[n("path",{attrs:{"data-name":"15",fill:"#fff",d:"M0 5.5h7v12H0z"}}),n("path",{attrs:{"data-name":"3",d:"M.5 11.5L12.5 0v23z",fill:"#fff"}}),n("g",{attrs:{"data-name":"12 1",fill:"none",stroke:"#fff","stroke-width":"1.5"}},[n("path",{attrs:{"data-name":"2",d:"M15.787 8.349a2.89 2.89 0 0 1 3.04 3.126 2.763 2.763 0 0 1-3.142 2.833","stroke-width":"1.50021"}}),n("path",{attrs:{"data-name":"3",d:"M16.052 4.807s6.917-.147 6.61 6.796-6.83 6.16-6.83 6.16","stroke-width":"1.50021"}})])])]),e.isMuted?n("div",{staticClass:"btn-control btn-mute",on:{click:e.toggle}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24.485",height:"23",viewBox:"0 0 24.485 23"}},[n("g",{attrs:{fill:"#fff"}},[n("path",{attrs:{"data-name":"矩形 15",d:"M0 5.5h7v12H0z"}}),n("path",{attrs:{"data-name":"多边形 3",d:"M.5 11.5L12.5 0v23z"}}),n("g",{attrs:{"data-name":"组 3"}},[n("path",{attrs:{"data-name":"矩形 39",d:"M23.071 7.257l1.414 1.414-7.07 7.071L16 14.328z"}}),n("path",{attrs:{"data-name":"矩形 40",d:"M16 8.672l1.414-1.414 7.071 7.07-1.414 1.415z"}})])])])]):e._e(),n("div",{staticClass:"btn-control-panel"},[n("div",{staticClass:"progress",on:{click:e.seek}},[n("div",{staticClass:"volume-current",style:{height:e.volume+"%"}},[n("div",{staticClass:"thumb-drag"})])]),n("div",{staticClass:"volume-info"},[e._v(e._s(e.volume)+"%")])])])},ot=[],at={name:"Volume",props:{visible:Boolean,muted:Boolean},mixins:[ke],data:function(){return{panelShow:!1,volume:50,isMuted:this.muted}},methods:{seek:function(e){var t=e.offsetY;"volume-current"===e.target.className&&(t+=e.target.offsetTop);var n=e.currentTarget.offsetHeight,r=1-t/n;this.isMuted&&this.$player.setMuted(!1),this.$player.setVolume(r,!0),this.setRangeValue(r)},setRangeValue:function(e){this.volume=parseInt(100*e)},toggle:function(){this.isMuted=!this.isMuted,this.isMuted?(this.$player.setMuted(!0),this.volume=0):(this.$player.setMuted(!1),this.volume=parseInt(100*this.$player.getVolume()))}}},st=at,ct=(n("42e9"),Ge(st,it,ot,!1,null,null,null)),ut=ct.exports,lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.disable?e._e():n("div",{staticClass:"vue-core-video-player-control"},[e.fullscreen?e._e():n("div",{staticClass:"btn-control btn-fullscreen",on:{click:e.enterFullscreen}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"20",viewBox:"0 0 28 20"}},[n("g",{attrs:{fill:"#fff"}},[n("g",{attrs:{"data-name":"6 7"}},[n("g",{attrs:{"data-name":"4 1"}},[n("path",{attrs:{"data-name":"7",d:"M16 0h10v2H16z"}}),n("path",{attrs:{"data-name":"8",d:"M26 0h2v6h-2z"}})]),n("g",{attrs:{"data-name":"5 1"}},[n("path",{attrs:{"data-name":"9",d:"M18 18h10v2H18z"}}),n("path",{attrs:{"data-name":"10",d:"M26 14h2v6h-2z"}})])]),n("g",{attrs:{"data-name":"6 8"}},[n("g",{attrs:{"data-name":"4 1"}},[n("path",{attrs:{"data-name":"7",d:"M12 20H2v-2h10z"}}),n("path",{attrs:{"data-name":"8",d:"M2 20H0v-6h2z"}})]),n("g",{attrs:{"data-name":"5 1"}},[n("path",{attrs:{"data-name":"9",d:"M10 2H0V0h10z"}}),n("path",{attrs:{"data-name":"10",d:"M2 6H0V0h2z"}})])])])]),n("div",{staticClass:"tips"},[e._v(e._s(e.$t("dashboard.btn.fullscreen")))])]),e.fullscreen?n("div",{staticClass:"btn-control btn-off-fullscreen",on:{click:e.cancelFullscreen}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"18",viewBox:"0 0 25 18"}},[n("g",{attrs:{fill:"#fff"}},[n("g",{attrs:{"data-name":"6 9"}},[n("g",{attrs:{"data-name":"4 1"}},[n("path",{attrs:{"data-name":"7",d:"M15 5h10v2H15z"}}),n("path",{attrs:{"data-name":"8",d:"M15 0h2v6h-2z"}})]),n("g",{attrs:{"data-name":"5 1"}},[n("path",{attrs:{"data-name":"9",d:"M15 12h10v2H15z"}}),n("path",{attrs:{"data-name":"10",d:"M15 12h2v6h-2z"}})])]),n("g",{attrs:{"data-name":"6 10"}},[n("g",{attrs:{"data-name":"4 1"}},[n("path",{attrs:{"data-name":"7",d:"M10 14H0v-2h10z"}}),n("path",{attrs:{"data-name":"8",d:"M10 18H8v-6h2z"}})]),n("g",{attrs:{"data-name":"5 1"}},[n("path",{attrs:{"data-name":"9",d:"M10 6H0V4h10z"}}),n("path",{attrs:{"data-name":"10",d:"M10 6H8V0h2z"}})])])])]),n("span",{staticClass:"tips"},[e._v(e._s(e.$t("dashboard.btn.exitFullscreen")))])]):e._e()])},ft=[],dt={name:"Fullscreen",mixins:[ke],props:{visible:Boolean},data:function(){return{disable:se&&ue}}},ht=dt,pt=(n("156e"),Ge(ht,lt,ft,!1,null,null,null)),gt=pt.exports,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-core-video-player-control settings-control"},[n("div",{staticClass:"btn-control btn-settings",on:{click:e.toggle}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"31.971",height:"31.971",viewBox:"0 0 31.971 31.971"}},[n("g",{attrs:{"data-name":"7",transform:"translate(6.985 6.985)",fill:"none",stroke:"#fff","stroke-width":"5"}},[n("circle",{attrs:{cx:"9",cy:"9",r:"9",stroke:"none"}}),n("circle",{attrs:{cx:"9",cy:"9",r:"6.5"}})]),n("g",{attrs:{"data-name":"15 10",fill:"#fff"}},[n("g",{attrs:{"data-name":"14 1"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M13.985 3.985h4v3h-4z"}}),n("path",{attrs:{"data-name":"4",d:"M15.985 3.985l3 4h-6z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M17.985 27.985h-4v-3h4z"}}),n("path",{attrs:{"data-name":"4",d:"M15.985 27.985l-3-4h6z"}})])]),n("g",{attrs:{"data-name":"14 2"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M23.056 6.085l2.829 2.829-2.122 2.12-2.828-2.828z"}}),n("path",{attrs:{"data-name":"4",d:"M24.47 7.5l-.707 4.95-4.242-4.244z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M8.914 25.884l-2.828-2.828 2.12-2.122 2.83 2.829z"}}),n("path",{attrs:{"data-name":"4",d:"M7.5 24.47l.707-4.95 4.243 4.243z"}})])])]),n("g",{attrs:{"data-name":"15 11",fill:"#fff"}},[n("g",{attrs:{"data-name":"14 1"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M23.056 6.086l2.828 2.828-2.12 2.122-2.83-2.829z"}}),n("path",{attrs:{"data-name":"4",d:"M24.47 7.5l-.707 4.95-4.242-4.243z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M8.914 25.885l-2.828-2.828 2.12-2.122 2.83 2.829z"}}),n("path",{attrs:{"data-name":"4",d:"M7.5 24.47l.707-4.949 4.242 4.243z"}})])]),n("g",{attrs:{"data-name":"14 2"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M27.985 13.985v4h-3v-4z"}}),n("path",{attrs:{"data-name":"4",d:"M27.985 15.985l-4 3v-6z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M3.985 17.985v-4h3v4z"}}),n("path",{attrs:{"data-name":"4",d:"M3.985 15.985l4-3v6z"}})])])]),n("g",{attrs:{"data-name":"15 12",fill:"#fff"}},[n("g",{attrs:{"data-name":"14 1"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M27.985 13.985v4h-3v-4z"}}),n("path",{attrs:{"data-name":"4",d:"M27.985 15.985l-4 3v-6z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M3.985 17.985v-4h3v4z"}}),n("path",{attrs:{"data-name":"4",d:"M3.985 15.985l4-3v6z"}})])]),n("g",{attrs:{"data-name":"14 2"}},[n("g",{attrs:{"data-name":"13 1"}},[n("path",{attrs:{"data-name":"17",d:"M25.885 23.056l-2.829 2.829-2.12-2.122 2.828-2.828z"}}),n("path",{attrs:{"data-name":"4",d:"M24.47 24.47l-4.95-.707 4.244-4.242z"}})]),n("g",{attrs:{"data-name":"13 2"}},[n("path",{attrs:{"data-name":"17",d:"M6.086 8.914l2.828-2.828 2.122 2.12-2.829 2.83z"}}),n("path",{attrs:{"data-name":"4",d:"M7.5 7.5l4.95.707-4.243 4.243z"}})])])])])]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.panelShow,expression:"panelShow"}],staticClass:"btn-control-panel",on:{click:e.preventHide}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.currentPanel,expression:"currentPanel"}],staticClass:"current-panel"},[n("li",[n("span",{staticClass:"item-name"},[e._v("\n "+e._s(e.$t("dashboard.settings.autoplay"))+"\n ")]),n("div",{staticClass:"item-control"},[n("widgets-switch",{ref:"autoplaySwitch",on:{change:e.changeAutoplaySettings}})],1)]),n("li",[n("span",{staticClass:"item-name"},[e._v(e._s(e.$t("dashboard.settings.loop")))]),n("div",{staticClass:"item-control"},[n("widgets-switch",{ref:"loopSwitch",on:{change:e.changeLoopSettings}})],1)]),n("li",[n("span",{staticClass:"item-name"},[e._v(e._s(e.$t("dashboard.settings.speed")))]),n("div",{staticClass:"item-control",on:{click:e.showSpeedPanel}},[n("span",[e._v(e._s(e.speed)+"x")]),n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"5.963",height:"11.568",viewBox:"0 0 5.963 11.568"}},[n("path",{attrs:{"data-name":"4",d:"M.809.616l3.9 5-3.9 5.368",fill:"none",stroke:"#fff","stroke-width":"2"}})])])]),n("li",{directives:[{name:"show",rawName:"v-show",value:e.medias.length>1,expression:"medias.length > 1"}]},[n("span",{staticClass:"item-name"},[e._v(e._s(e.$t("dashboard.settings.resolution")))]),e.resolution?n("div",{staticClass:"item-control",on:{click:e.showResolutionPanel}},[n("span",[e._v(e._s(e.resolution))]),n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"5.963",height:"11.568",viewBox:"0 0 5.963 11.568"}},[n("path",{attrs:{"data-name":"4",d:"M.809.616l3.9 5-3.9 5.368",fill:"none",stroke:"#fff","stroke-width":"2"}})])]):e._e()])]),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.resolutionListPanel,expression:"resolutionListPanel"}],staticClass:"resolution-list animated fadeInRight"},[n("li",{on:{click:e.backCurrentPanel}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"5.963",height:"11.568",viewBox:"0 0 5.963 11.568"}},[n("path",{attrs:{"data-name":"5",d:"M5.154.616l-3.9 5 3.9 5.368",fill:"none",stroke:"#fff","stroke-width":"2"}})]),e._v("\n "+e._s(e.$t("dashboard.btn.back"))+"\n ")]),e._l(e.medias,(function(t,r){return n("li",{key:r,on:{click:function(n){return e.setResolution(t)}}},[e._v(e._s(t.resolution))])}))],2),e.speedListPanel?n("ul",{staticClass:"speed-list animated fadeInRight"},[n("li",{on:{click:e.backCurrentPanel}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"5.963",height:"11.568",viewBox:"0 0 5.963 11.568"}},[n("path",{attrs:{"data-name":"5",d:"M5.154.616l-3.9 5 3.9 5.368",fill:"none",stroke:"#fff","stroke-width":"2"}})]),e._v("\n "+e._s(e.$t("dashboard.btn.back"))+"\n ")]),n("li",{attrs:{"data-val":"0.5"},on:{click:e.setSpeed}},[e._v("0.5x")]),n("li",{attrs:{"data-val":"1"},on:{click:e.setSpeed}},[e._v("1x")]),n("li",{attrs:{"data-val":"1.25"},on:{click:e.setSpeed}},[e._v("1.25x")]),n("li",{attrs:{"data-val":"1.5"},on:{click:e.setSpeed}},[e._v("1.5x")]),n("li",{attrs:{"data-val":"2"},on:{click:e.setSpeed}},[e._v("2x")])]):e._e()])])},mt=[],yt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vcp-switch",class:{open:e.isOpen},on:{click:e.toggle}})},It=[],Mt={name:"setting-switch",props:{openStatus:Boolean},data:function(){return{isOpen:!1}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("change",this.isOpen)},open:function(){this.isOpen=!0}}},bt=Mt,Ct=(n("c428"),Ge(bt,yt,It,!1,null,null,null)),Tt=Ct.exports,At={name:"Settings",props:{visible:Boolean},mixins:[ke],components:{"widgets-switch":Tt},data:function(){return{autoplay:!1,loop:!1,resolution:"",panelShow:!1,currentPanel:!0,resolutionListPanel:!1,speedListPanel:!1,speed:1,medias:[]}},methods:{toggle:function(e){e&&e.stopPropagation(),this.panelShow=!this.panelShow,this.panelShow?this.$container.classList.add("settings-open"):this.$container.classList.remove("settings-open")},preventHide:function(e){e.stopPropagation()},showResolutionPanel:function(e){this.medias.length<=1||(this.currentPanel=!1,this.resolutionListPanel=!0)},showSpeedPanel:function(e){this.currentPanel=!1,this.speedListPanel=!0},backCurrentPanel:function(){this.currentPanel=!0,this.speedListPanel=!1,this.resolutionListPanel=!1},setResolution:function(e){this.resolution!==e.resolution?(this.$player.setResolution(e.resolution),this.backCurrentPanel(),this.toggle()):this.backCurrentPanel()},setSpeed:function(e){var t=+e.target.dataset["val"];this.speed=t,this.$player.setSpeed(t),this.backCurrentPanel()},changeAutoplaySettings:function(e){this.$player.setConfig("autoplay",e)},changeLoopSettings:function(e){this.$player.setConfig("loop",e)}},mounted:function(){var e=this;this.on(x.SOURCE_UPDATED,(function(){e.medias=e.$player.medias,e.resolution=e.$player.resolution})),this.on(x.LIFECYCLE_INITING,(function(){var t=e.$player.config,n=t.autoplay,r=t.loop;n&&e.$refs["autoplaySwitch"].open(),r&&e.$refs["loopSwitch"].open()})),document.addEventListener("click",(function(){e.panelShow&&(e.panelShow=!1,e.speedListPanel=!1,e.resolutionListPanel=!1,e.$container.classList.remove("settings-open"))}))}},_t=At,wt=(n("aa54"),Ge(_t,vt,mt,!1,null,null,null)),Et=wt.exports,Nt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("div",{staticClass:"vue-core-video-player-control",on:{click:e.requestPictureInPicture}},[n("div",{staticClass:"btn-control btn-pip"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"16",viewBox:"0 0 28 16"}},[n("g",{attrs:{"data-name":"6 13"}},[n("g",{attrs:{"data-name":"5 1",fill:"#fff"}},[n("path",{attrs:{"data-name":"9",d:"M18 14h10v2H18z"}}),n("path",{attrs:{"data-name":"10",d:"M26 9h2v6h-2z"}})])]),n("g",{attrs:{"data-name":"6 14",fill:"#fff"}},[n("g",{attrs:{"data-name":"4 1"}},[n("path",{attrs:{"data-name":"7",d:"M12 16H2v-2h10z"}}),n("path",{attrs:{"data-name":"8",d:"M2 16H0V6h2z"}})]),n("path",{attrs:{"data-name":"41",d:"M28 2H0V0h28z"}})])]),n("div",{staticClass:"tips"},[e._v(e._s(e.$t("dashboard.btn.pip")))])])]):e._e()},St=[],Ot=function(){if("pictureInPictureEnabled"in document)return!0;var e=document.createElement("video");return!(!e.requestPictureInPicture||"function"!==typeof e.requestPictureInPicture)},Dt={name:"PictureInPicture",mixins:[ke],props:{visible:Boolean},data:function(){return{show:!1}},created:function(){Ot&&(this.show=!0)},methods:{requestPictureInPicture:function(){this.$player.requestPictureInPicture()}}},xt=Dt,Rt=(n("1b6f"),Ge(xt,Nt,St,!1,null,null,null)),kt=Rt.exports,Lt={name:"Controls",components:{"play-pause-cntrol":qe,"time-span":rt,"volume-control":ut,"fullscreen-control":gt,"settings-control":Et,"picture-in-picture":kt},props:{visible:Boolean,muted:Boolean}},jt=Lt,Pt=(n("7fc5"),Ge(jt,Fe,$e,!1,null,null,null)),Ut=Pt.exports,zt={x:null,y:null},Bt={name:"Dashboard",components:{Progress:He,Controls:Ut},props:{controls:[Boolean,String],muted:Boolean},data:function(){return{show:!0}},mixins:[ke],methods:{showDashboard:function(e){var t=this;window.clearTimeout(this._hideTimeout),this.show=!0,this.emit(x.UI_DASHBOARD_SHOW),0===e||(this._hideTimeout=setTimeout((function(){t.hideDashboard()}),e||A.dashboardHideDelay))},hideDashboard:function(){this.show=!1,this.emit(x.UI_DASHBOARD_HIDE)},_initAutoMode:function(){var e=this.$refs["dashboard"].parentNode;se?e.addEventListener("touchend",this._onTouchend.bind(this),!0):(e.addEventListener("mousemove",this._onMousemove.bind(this)),e.addEventListener("mouseleave",this._onMouseleave.bind(this)),e.addEventListener("mouseover",this._onMouseover.bind(this),!0)),this.showDashboard(4e3)},_onMousemove:function(e){return e.pageX===zt.x&&e.pageY===zt.y?(zt.x=e.pageX,void(zt.y=e.pageY)):(zt.x=e.pageX,zt.y=e.pageY,be(this._el,e.target)?this.showDashboard(0):void this.showDashboard())},_onMouseleave:function(){this.showDashboard()},_onMouseover:function(){this.showDashboard(0)},_onTouchend:function(){this.showDashboard()}},mounted:function(){var e=this.controls;e?"fixed"===e?this.show=!0:this._initAutoMode():this.show=!1}},Gt=Bt,Yt=(n("cc1d"),Ge(Gt,Le,je,!1,null,null,null)),Ht=Yt.exports,Ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"dashboard",staticClass:"vcp-m-dashboard",attrs:{autoplay:""}},[n("MobileControls",{attrs:{muted:e.muted}}),n("Progress")],1)},$t=[],Vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vcp-controls"},[n("div",{staticClass:"playback-control"},[n("time-span")],1),n("div",{staticClass:"setting-control"},[n("picture-in-picture"),n("settings-control"),n("fullscreen-control")],1)])},Qt=[],Wt={name:"Controls",components:{"time-span":rt,"fullscreen-control":gt,"settings-control":Et,"picture-in-picture":kt},props:{visible:Boolean,muted:Boolean}},Zt=Wt,Kt=(n("4cc6"),Ge(Zt,Vt,Qt,!1,null,null,null)),qt=Kt.exports,Jt={x:null,y:null},Xt={name:"MobileDashboard",components:{Progress:He,MobileControls:qt},props:{controls:[Boolean,String],muted:Boolean},data:function(){return{show:!0}},mixins:[ke],methods:{showDashboard:function(e){var t=this;window.clearTimeout(this._hideTimeout),this.show=!0,this.emit(x.UI_DASHBOARD_SHOW),0===e||(this._hideTimeout=setTimeout((function(){t.hideDashboard()}),e||A.dashboardHideDelay))},hideDashboard:function(){this.show=!1,this.emit(x.UI_DASHBOARD_HIDE)},_initAutoMode:function(){var e=this.$refs["dashboard"].parentNode;se?e.addEventListener("touchend",this._onTouchend.bind(this),!0):(e.addEventListener("mousemove",this._onMousemove.bind(this)),e.addEventListener("mouseleave",this._onMouseleave.bind(this)),e.addEventListener("mouseover",this._onMouseover.bind(this),!0)),this.showDashboard(4e3)},_onMousemove:function(e){return e.pageX===Jt.x&&e.pageY===Jt.y?(Jt.x=e.pageX,void(Jt.y=e.pageY)):(Jt.x=e.pageX,Jt.y=e.pageY,be(this._el,e.target)?this.showDashboard(0):void this.showDashboard())},_onMouseleave:function(){this.showDashboard()},_onMouseover:function(){this.showDashboard(0)},_onTouchend:function(){this.showDashboard()}},mounted:function(){var e=this.controls;e?"fixed"===e?this.show=!0:this._initAutoMode():this.show=!1}},en=Xt,tn=(n("a3e9"),Ge(en,Ft,$t,!1,null,null,null)),nn=tn.exports,rn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-core-video-player-layers"},[n("cover-layer"),n("logo-layer"),n("title-layer"),n("play-pause-layer"),n("loading-layer"),n("error-layer")],1)},on=[],an=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show&&e.title.length,expression:"show && title.length"}],staticClass:"vcp-layer title-layer"},[n("div",{staticClass:"video-title"},[e._v(e._s(e.title))])])},sn=[],cn={name:"CoverLayer",mixins:[ke],data:function(){return{title:"",show:!1}},mounted:function(){var e=this;this.on(x.LIFECYCLE_INITING,(function(){var t=e.$player.config.title;t&&(e.title=t)})),this.on(x.UI_DASHBOARD_SHOW,(function(){e.show=!0})),this.on(x.UI_DASHBOARD_HIDE,(function(){e.show=!1}))}},un=cn,ln=(n("b72f"),Ge(un,an,sn,!1,null,null,null)),fn=ln.exports,dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.logo?n("div",{staticClass:"vcp-layer logo-layer"},[n("div",{staticClass:"logo-wrap"},[n("img",{attrs:{alt:"logo",src:e.logo}})])]):e._e()},hn=[],pn={name:"CoverLayer",mixins:[ke],props:{visible:Boolean},data:function(){return{logo:""}},mounted:function(){var e=this;this.on(x.LIFECYCLE_INITING,(function(){var t=e.$player.config.logo;t&&(e.logo=t)}))}},gn=pn,vn=(n("56fb"),Ge(gn,dn,hn,!1,null,null,null)),mn=vn.exports,yn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"vcp-layer play-pause-layer"},[e.isPlaying?e._e():n("a",{staticClass:"btn-control btn-play",attrs:{href:"javascript:;"},on:{click:e.play}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"31",height:"35",viewBox:"0 0 41 47"}},[n("path",{attrs:{d:"M23.5,0,47,41H0Z",transform:"translate(41) rotate(90)",fill:"#ff6060"}})])]),e.isPlaying?n("a",{staticClass:"btn-control btn-pause",attrs:{href:"javascript:;"},on:{click:e.pause}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"36",viewBox:"0 0 36 48"}},[n("g",{attrs:{transform:"translate(-950 -398)"}},[n("rect",{attrs:{width:"12",height:"48",transform:"translate(950 398)",fill:"#ff6060"}}),n("rect",{attrs:{width:"12",height:"48",transform:"translate(974 398)",fill:"#ff6060"}})])])]):e._e()])},In=[],Mn={name:"PlayPauseLayer",mixins:[ke],props:{visible:Boolean},data:function(){return{show:se}},mounted:function(){var e=this;this.on(x.UI_DASHBOARD_SHOW,(function(){e.show=!0})),this.on(x.UI_DASHBOARD_HIDE,(function(){e.show=!1}))}},bn=Mn,Cn=(n("4447"),Ge(bn,yn,In,!1,null,null,null)),Tn=Cn.exports,An=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"vcp-layer cover-layer"},[n("img",{attrs:{alt:"video cover",src:e.cover}})])},_n=[],wn={name:"CoverLayer",mixins:[ke],props:{visible:Boolean},data:function(){return{cover:"data:image/gif;base64,R0lGODlhAgACAIAAADMzMwAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0MzUyLCAyMDIwLzAxLzMwLTE1OjUwOjM4ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjEuMSAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyMEQ4MDk3RDgzRTUxMUVBOEFBNkNFRTA4ODA0RDY3OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyMEQ4MDk3RTgzRTUxMUVBOEFBNkNFRTA4ODA0RDY3OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjIwRDgwOTdCODNFNTExRUE4QUE2Q0VFMDg4MDRENjc4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjIwRDgwOTdDODNFNTExRUE4QUE2Q0VFMDg4MDRENjc4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAAIAAgAAAgKEUQA7",show:!1}},mounted:function(){var e=this;this.on(x.LIFECYCLE_INITING,(function(){var t=e.$player.config.cover;t&&(e.cover=t)})),this.on(x.ERROR_AUTO_PLAY,(function(){e.show=!0})),this.on(x.PLAY,(function(){e.show=!1}))}},En=wn,Nn=(n("9983"),Ge(En,An,_n,!1,null,null,null)),Sn=Nn.exports,On=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"vcp-layer loading-layer"},[n("div",{staticClass:"loading-wrap"},[n("div",{staticClass:"h5-layer-loading"},[n("svg",{staticClass:"spinner",attrs:{width:"100%",height:"100%",viewBox:"0 0 80 80",xmlns:"http://www.w3.org/2000/svg"}},[n("defs",[n("linearGradient",{attrs:{id:"grad",gradientUnits:"objectBoundingBox",gradientTransform:"rotate(135 0.5 0.5)"}},[n("stop",{attrs:{offset:"0%","stop-color":"#ff6060"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fa3b3b"}})],1)],1),n("circle",{staticClass:"path",attrs:{stroke:"url(#grad)","stroke-width":"10",fill:"none","stroke-linecap":"round",cx:"40",cy:"40",r:"30"}})])]),n("p",[e._v(e._s(e.$t("layers.loading.msg")))])])])},Dn=[],xn=600,Rn={name:"LoadingLayer",mixins:[ke],data:function(){return{show:!1}},methods:{showLoading:function(e){var t=this;e?this.show=!0:(window.clearTimeout(this._timeout),this._timeout=setTimeout((function(){t.show=!0}),xn))},hideLoading:function(){window.clearTimeout(this._timeout),this.show=!1}},created:function(){var e=this;this.on([x.CANPLAY,x.CANPLAYTHROUGH,x.PLAY,x.LOADEDMETADATA,x.SEEKED,x.ERROR],(function(){e.hideLoading()})),this.on([x.SEEKING,x.STALLED,x.LOADSTART],(function(t){e.showLoading()})),this.on(["playing"],(function(){e.hideLoading()}))}},kn=Rn,Ln=(n("b1ba"),Ge(kn,On,Dn,!1,null,null,null)),jn=Ln.exports,Pn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],staticClass:"vcp-layer error-layer"},[n("div",{staticClass:"error-icon"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"120",height:"120",viewBox:"0 0 200 200"}},[n("g",{attrs:{transform:"translate(-963 -1663)"}},[n("circle",{attrs:{"data-name":"11",cx:"100",cy:"100",r:"100",transform:"translate(963 1663)",fill:"#ff5e5c"}}),n("g",{attrs:{"data-name":"46",transform:"translate(1006 1727)",fill:"#fff",stroke:"#fff","stroke-width":"3"}},[n("rect",{attrs:{width:"120",height:"73",rx:"2",stroke:"none"}}),n("rect",{attrs:{x:"1.5",y:"1.5",width:"117",height:"70",rx:".5",fill:"none"}})]),n("g",{attrs:{"data-name":"12",transform:"translate(1108 1743)",fill:"#fff",stroke:"#ff5a52","stroke-width":"2"}},[n("circle",{attrs:{cx:"6",cy:"6",r:"6",stroke:"none"}}),n("circle",{attrs:{cx:"6",cy:"6",r:"5",fill:"none"}})]),n("path",{attrs:{"data-name":"1",fill:"none",stroke:"#fff","stroke-width":"3",d:"M1057.5 1728.5l30-22"}}),n("path",{attrs:{"data-name":"2",fill:"none",stroke:"#fff","stroke-width":"3",d:"M1036.5 1697.5l22 30"}}),n("path",{attrs:{"data-name":"48",d:"M1018 1737h80a4 4 0 0 1 4 4v45a5 5 0 0 1-5 5h-78a5 5 0 0 1-5-5v-45a4 4 0 0 1 4-4z",fill:"#2785f2"}}),n("g",{attrs:{"data-name":"4",fill:"#ff584c"}},[n("path",{attrs:{"data-name":"49",d:"M1108 1757h3v2h-3z"}}),n("path",{attrs:{"data-name":"50",d:"M1113 1757h3v2h-3z"}}),n("path",{attrs:{"data-name":"51",d:"M1118 1757h3v2h-3z"}})]),n("g",{attrs:{"data-name":"5",fill:"#ff584c"}},[n("path",{attrs:{"data-name":"49",d:"M1108 1760h3v2h-3z"}}),n("path",{attrs:{"data-name":"50",d:"M1113 1760h3v2h-3z"}}),n("path",{attrs:{"data-name":"51",d:"M1118 1760h3v2h-3z"}})])])])]),n("div",{staticClass:"error-msg-wrap"},[n("h2",[e._v(e._s(e.$t("layers.error.title")))]),n("p",{staticClass:"error-msg"},[e._v(e._s(e.errMsg))])])])},Un=[],zn={name:"CoverLayer",mixins:[ke],props:{dsiable:Boolean},data:function(){return{errMsg:"",show:!1}},mounted:function(){var e=this;this.on(x.ERROR,(function(t){console.log(t),e.show=!0;var n="layers.error."+t.code;e.errMsg=g.t(n,"")}))}},Bn=zn,Gn=(n("f64c"),Ge(Bn,Pn,Un,!1,null,null,null)),Yn=Gn.exports,Hn={name:"Layers",components:{PlayPauseLayer:Tn,CoverLayer:Sn,LogoLayer:mn,TitleLayer:fn,LoadingLayer:jn,ErrorLayer:Yn},props:{visible:Boolean}},Fn=Hn,$n=(n("2c1a"),Ge(Fn,rn,on,!1,null,null,null)),Vn=$n.exports;function Qn(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 Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(n,!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn={name:"VueCoreVideoPlayer",mixins:[ke],components:{Dashboard:Ht,MobileDashboard:nn,Layers:Vn},props:{src:[String,Array],autoplay:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},playsinline:{type:Boolean,default:!0},title:String,cover:String,logo:String,muted:{type:Boolean,default:!1},controls:{type:[String,Boolean],default:!0},lang:{type:[String,Object],default:"en"},core:{type:Function},viewCore:{type:Array,default:function(){return[]}}},data:function(){return{isMobile:se}},computed:{source:function(){var e=this.src;if(!e)return"";var t,n=this.resolution||A.resolution,r=pe(e);return r.forEach((function(e){e.resolution===n&&(t=e.src)})),t||("object"===u(r[0])&&r[0].src?t=r[0].src:"string"===typeof r[0]&&(t=r[0])),this.$player&&this.$player.setSource(e),t}},mounted:function(){var e=this;this.$player=this.videoCore=Se(Wn({},this.$props,{videoEl:this.$refs["vcp-video"],el:this.$refs["vcp-el"],eventEmitter:{on:this.on,emit:this.emit,off:this.off}})),Object.values(x).forEach((function(t){e.$player.on(t,(function(n){"function"===typeof e.$listeners[t]&&e.$listeners[t](n)}))})),this._coreID=this.videoCore.id,this.emit(x.LIFECYCLE_INITING,this.$player);try{this.viewCore.map((function(t){"function"===typeof t&&t(e.$player,e.$player.config)}))}catch(t){console.error(t)}},beforeDestroy:function(){this.$player.destroy()}},Kn=Zn,qn=(n("bead"),Ge(Kn,v,m,!1,null,null,null)),Jn=qn.exports,Xn={install:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};g.setLocale(t.lang),e.prototype.$t=function(e){return g.t(e)},e.component("vue-core-video-player",Jn)}},er=Xn;n.d(t,"BaseVideoCore",(function(){return Ee})),n.d(t,"EVENTS",(function(){return x}));t["default"]=er},ff1c:function(e,t,n){var r=n("7335");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("4cfaecc1",r,!0,{sourceMap:!1,shadowMode:!1})}})},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}},"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"),a=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"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)}},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"),a=[].slice,s=/MSIE .\./.test(o),c=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.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*s,{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 a,s=n(e),c=o.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}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","","")}}))},"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"),a=n("5f1b");n("214f")("match",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 c=r(e),u=String(this);if(!c.global)return a(c,u);var l=c.unicode;c.lastIndex=0;var f,d=[],h=0;while(null!==(f=a(c,u))){var p=String(f[0]);d[h]=p,""===p&&(c.lastIndex=o(u,i(c.lastIndex),l)),h++}return 0===h?null:d}]}))},"4a59":function(e,t,n){var r=n("9b43"),i=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),c=n("27ee"),u={},l={};t=e.exports=function(e,t,n,f,d){var h,p,g,v,m=d?function(){return e}:c(e),y=r(n,f,t?2:1),I=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(h=s(e.length);h>I;I++)if(v=t?y(a(p=e[I])[0],p[1]):y(e[I]),v===u||v===l)return v}else for(g=m.call(e);!(p=g.next()).done;)if(v=i(g,y,p.value,t),v===u||v===l)return v};t.BREAK=u,t.RETURN=l},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4dda":function(e,t,n){n("ec30")("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"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"),a=n("52a7").f;e.exports=function(e){return function(t){var n,s=o(t),c=i(s),u=c.length,l=0,f=[];while(u>l)n=c[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[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,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.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,a=i,s="lastIndex",c=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(a=function(e){var t,n,a,l,f=this;return u&&(n=new RegExp("^"+f.source+"$(?!\\s)",r.call(f))),c&&(t=f[s]),a=i.call(f,e),c&&a&&(f[s]=f.global?a.index+a[0].length:t),u&&a&&a.length>1&&o.call(a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a}),e.exports=a},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),c=n("e683");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.baseURL&&!s(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||a.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){
  169. /*!
  170. * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
  171. *
  172. * Copyright (c) 2015-present, Jon Schlinkert.
  173. * Released under the MIT License.
  174. */
  175. 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 s(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 a(e);case"error":return Object.create(e);default:return e}}function a(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 s(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})},"53ca":function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,"a",(function(){return r}))},"53e2":function(e,t,n){var r=n("07e3"),i=n("241e"),o=n("5559")("IE_PROTO"),a=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?a:null}},5402:function(e,t,n){"use strict";var r=n("00ce"),i=n("545e"),o=n("2714"),a=r("%TypeError%"),s=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),d=i("Map.prototype.get",!0),h=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},m=function(e,t,n){var r=g(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},y=function(e,t){return!!g(e,t)};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a("Side channel does not contain "+o(e))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(e)return u(e,r)}else if(c){if(t)return d(t,r)}else if(n)return v(n,r)},has:function(r){if(s&&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 y(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(e||(e=new s),l(e,r,i)):c?(t||(t=new c),h(t,r,i)):(n||(n={key:{},next:null}),m(n,r,i))}};return r}},"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}},"54a8":function(e,t,n){"use strict";var r=n("5ca1"),i=n("79e5"),o=n("bef9"),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},"551c":function(e,t,n){"use strict";var r,i,o,a,s=n("2d00"),c=n("7726"),u=n("9b43"),l=n("23c6"),f=n("5ca1"),d=n("d3f4"),h=n("d8e8"),p=n("f605"),g=n("4a59"),v=n("ebd6"),m=n("1991").set,y=n("8079")(),I=n("a5b8"),M=n("9c80"),b=n("a25f"),C=n("bcaa"),T="Promise",A=c.TypeError,_=c.process,w=_&&_.versions,E=w&&w.v8||"",N=c[T],S="process"==l(_),O=function(){},D=i=I.f,x=!!function(){try{var e=N.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(O,O)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==E.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(r){}}(),R=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},k=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&P(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(A("Promise-chain cycle")):(o=R(n))?o.call(n,c,u):c(n)):u(r)}catch(f){l&&!a&&l.exit(),u(f)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){m.call(c,(function(){var t,n,r,i=e._v,o=j(e);if(o&&(t=M((function(){S?_.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=S||j(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},j=function(e){return 1!==e._h&&0===(e._a||e._c).length},P=function(e){m.call(c,(function(){var t;S?_.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},U=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()),k(t,!0))},z=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw A("Promise can't be resolved itself");(t=R(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,u(z,r,1),u(U,r,1))}catch(i){U.call(r,i)}})):(n._v=e,n._s=1,k(n,!1))}catch(r){U.call({_w:n,_d:!1},r)}}};x||(N=function(e){p(this,N,T,"_h"),h(e),r.call(this);try{e(u(z,this,1),u(U,this,1))}catch(t){U.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")(N.prototype,{then:function(e,t){var n=D(v(this,N));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(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(U,e,1)},I.f=D=function(e){return e===N||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!x,{Promise:N}),n("7f20")(N,T),n("7a56")(T),a=n("8378")[T],f(f.S+f.F*!x,T,{reject:function(e){var t=D(this),n=t.reject;return n(e),t.promise}}),f(f.S+f.F*(s||!x),T,{resolve:function(e){return C(s&&this===a?N:this,e)}}),f(f.S+f.F*!(x&&n("5cc5")((function(e){N.all(e)["catch"](O)}))),T,{all:function(e){var t=this,n=D(t),r=n.resolve,i=n.reject,o=M((function(){var n=[],o=0,a=1;g(e,!1,(function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=D(t),r=n.reject,i=M((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("ade3");function i(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[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"),a=n("79e5"),s=[].sort,c=[1,2,3];r(r.P+r.F*(a((function(){c.sort(void 0)}))||!a((function(){c.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},5695:function(e,t,n){var r=n("5ca1"),i=n("77f1"),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],r=arguments.length,a=0;while(r>a){if(t=+arguments[a++],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,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n("2f21")(o)),"Array",{indexOf:function(e){return a?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")})},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,c=arguments;function u(){o=Number(new Date),n.apply(a,c)}function l(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?l:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"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",a="hour",s="day",c="week",u="month",l="quarter",f="year",d="date",h="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("_")},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(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,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(n-i)/(o?i-a:a-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:s,D:d,h:a,m:o,s:i,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},I="en",M={};M[I]=v;var b=function(e){return e instanceof _},C=function e(t,n,r){var i;if(!t)return I;if("string"==typeof t){var o=t.toLowerCase();M[o]&&(i=o),n&&(M[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;M[s]=t,i=s}return!r&&i&&(I=i),i||!r&&I},T=function(e,t){if(b(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},A=y;A.l=C,A.i=b,A.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function v(e){this.$L=C(e.locale,null,!0),this.parse(e)}var m=v.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(A.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()},m.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()},m.$utils=function(){return A},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(e,t){var n=T(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return T(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<T(e)},m.$g=function(e,t,n){return A.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!A.u(t)||t,l=A.p(e),h=function(e,t){var i=A.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return A.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,m=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case u:return r?h(1,v):h(0,v+1);case c:var I=this.$locale().weekStart||0,M=(g<I?g+7:g)-I;return h(r?m-M:m+(6-M),v);case s:case d:return p(y+"Hours",0);case a:return p(y+"Minutes",1);case o:return p(y+"Seconds",2);case i:return p(y+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,c=A.p(e),l="set"+(this.$u?"UTC":""),h=(n={},n[s]=l+"Date",n[d]=l+"Date",n[u]=l+"Month",n[f]=l+"FullYear",n[a]=l+"Hours",n[o]=l+"Minutes",n[i]=l+"Seconds",n[r]=l+"Milliseconds",n)[c],p=c===s?this.$D+(t-this.$W):t;if(c===u||c===f){var g=this.clone().set(d,1);g.$d[h](p),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[A.p(e)]()},m.add=function(r,l){var d,h=this;r=Number(r);var p=A.p(l),g=function(e){var t=T(h);return A.w(t.date(t.date()+Math.round(e*r)),h)};if(p===u)return this.set(u,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return g(1);if(p===c)return g(7);var v=(d={},d[o]=t,d[a]=n,d[i]=e,d)[p]||1,m=this.$d.getTime()+r*v;return A.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,s=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 A.s(o%12||12,e,"0")},d=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:s+1,MM:A.s(s+1,2,"0"),MMM:l(n.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:A.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:A.s(o,2,"0"),h:f(1),hh:f(2),a:d(o,a,!0),A:d(o,a,!1),m:String(a),mm:A.s(a,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:i};return r.replace(g,(function(e,t){return t||p[e]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,h){var p,g=A.p(d),v=T(r),m=(v.utcOffset()-this.utcOffset())*t,y=this-v,I=A.m(this,v);return I=(p={},p[f]=I/12,p[u]=I,p[l]=I/3,p[c]=(y-m)/6048e5,p[s]=(y-m)/864e5,p[a]=y/n,p[o]=y/t,p[i]=y/e,p)[g]||y,h?I:A.a(I)},m.daysInMonth=function(){return this.endOf(u).$D},m.$locale=function(){return M[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return A.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},v}(),w=_.prototype;return T.prototype=w,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",u],["$y",f],["$D",d]].forEach((function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||(e(t,_,T),e.$i=!0),T},T.locale=C,T.isDayjs=b,T.unix=function(e){return T(1e3*e)},T.en=M[I],T.Ls=M,T.p={},T}))},"5b4e":function(e,t,n){var r=n("36c3"),i=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,h,p=e&u.F,g=e&u.G,v=e&u.S,m=e&u.P,y=e&u.B,I=g?r:v?r[t]||(r[t]={}):(r[t]||{})[c],M=g?i:i[t]||(i[t]={}),b=M[c]||(M[c]={});for(l in g&&(n=t),n)f=!p&&I&&void 0!==I[l],d=(f?I:n)[l],h=y&&f?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,I&&a(I,l,d,e&u.U),M[l]!=d&&o(M,l,h),m&&b[l]!=d&&(b[l]=d)};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(a){}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(a){}return n}},"5d40":function(e,t,n){n("28e4")("WeakMap")},"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,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.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})}))},"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],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"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)}},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"),a=n("35e8"),s=n("07e3"),c="prototype",u=function(e,t,n){var l,f,d,h=e&u.F,p=e&u.G,g=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,I=p?i:i[t]||(i[t]={}),M=I[c],b=p?r:g?r[t]:(r[t]||{})[c];for(l in p&&(n=t),n)f=!h&&b&&void 0!==b[l],f&&s(I,l)||(d=f?b[l]:n[l],I[l]=p&&"function"!=typeof b[l]?n[l]:m&&f?o(d,r):y&&b[l]==d?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}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((I.virtual||(I.virtual={}))[l]=d,e&u.R&&M&&!M[l]&&a(M,l,d)))};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"),a=n("d3f4"),s=n("f605"),c=n("4a59"),u=n("0a49"),l=n("69a8"),f=n("b39a"),d=u(5),h=u(6),p=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},m=function(e,t){return d(e.a,(function(e){return e[0]===t}))};v.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=h(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){s(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(!a(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(!a(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"),a=n("38fd"),s=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=s(n,r))return t.set}while(n=a(n))}})},6612:function(e,t,n){var r,i;
  176. /*! @preserve
  177. * numeral.js
  178. * version : 2.0.6
  179. * author : Adam Draper
  180. * license : MIT
  181. * http://adamwdraper.github.com/Numeral-js/
  182. */(function(o,a){r=a,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},a={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function s(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(a.zeroFormat&&n===a.zeroFormat)i=0;else if(a.nullFormat&&n===a.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 s(n,i)},e.version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var o,a,s,c,u,l,f,d=i[e.options.currentLocale],h=!1,p=!1,g=0,v="",m=1e12,y=1e9,I=1e6,M=1e3,b="",C=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(h=!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]?"),""),a>=m&&!o||"t"===o?(v+=d.abbreviations.trillion,t/=m):a<m&&a>=y&&!o||"b"===o?(v+=d.abbreviations.billion,t/=y):a<y&&a>=I&&!o||"m"===o?(v+=d.abbreviations.million,t/=I):(a<I&&a>=M&&!o||"k"===o)&&(v+=d.abbreviations.thousand,t/=M)),e._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),s=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("["),b=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):b=e._.toFixed(t,c.length,r),s=b.split(".")[0],b=e._.includes(b,".")?d.delimiters.decimal+b.split(".")[1]:"",p&&0===Number(b.slice(1))&&(b="")):s=e._.toFixed(t,0,r),v&&!o&&Number(s)>=1e3&&v!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion;break}if(e._.includes(s,"-")&&(s=s.slice(1),C=!0),s.length<g)for(var T=g-s.length;T>0;T--)s="0"+s;return l>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+b+(v||""),h?f=(h&&C?"(":"")+f+(h&&C?")":""):u>=0?f=0===u?(C?"-":"+")+f:f+(C?"-":"+"):C&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,o=i[a.currentLocale],s=e,c={thousand:3,million:6,billion:9,trillion:12};if(a.zeroFormat&&e===a.zeroFormat)n=0;else if(a.nullFormat&&e===a.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+")?(?:\\))?)?$"),s.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,a,s,c=e.toString().split("."),u=t-(r||0);return i=2===c.length?Math.min(Math.max(c[1].length,u),t):u,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=a,e.formats=r,e.locales=i,e.locale=function(e){return e&&(a.currentLocale=e.toLowerCase()),a.currentLocale},e.localeData=function(e){if(!e)return i[a.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in o)a[e]=o[e]},e.zeroFormat=function(e){a.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){a.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){a.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,a,s,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,s=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]===s.thousand||l[0]===s.million||l[0]===s.billion||l[0]===s.trillion))&&(c=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&(a=t.split(r),!(a.length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(c):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(c)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(c)&&!!a[1].match(/^\d+$/)))))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,o,s,c=this._value,u=t||a.defaultFormat;if(n=n||Math.round,0===c&&null!==a.zeroFormat)o=a.zeroFormat;else if(null===c&&null!==a.nullFormat)o=a.nullFormat;else{for(i in r)if(u.match(r[i].regexps.format)){s=r[i].format;break}s=s||e._.numberToFormat,o=s(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 a,s,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/,""),s=0;s<=l.suffixes.length;s++)if(c=Math.pow(l.base,s),u=Math.pow(l.base,s+1),null===r||0===r||r>=c&&r<u){f+=l.suffixes[s],c>0&&(r/=c);break}return a=e._.numberToFormat(r,i,o),a+f},unformat:function(r){var i,o,a=e._.stringToNumber(r);if(a){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}}a*=o||1}return a}})}(),function(){e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a,s=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),a=0;a<c.before.length;a++)switch(o=c.before[a],o){case"$":i=e._.insert(i,s.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+s.currency.symbol.length-1);break}for(a=c.after.length-1;a>=0;a--)switch(o=c.after[a],o){case"$":i=a===c.after.length-1?i+s.currency.symbol:e._.insert(i,s.currency.symbol,-(c.after.length-(1+a)));break;case" ":i=a===c.after.length-1?i+" ":e._.insert(i," ",-(c.after.length-(1+a)+s.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(),a=o.split("e");return n=n.replace(/e[\+|\-]{1}0/,""),i=e._.numberToFormat(Number(a[0]),n,r),i+"e"+a[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),a=t*o*(n*o)/(o*o);return a}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],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=o.ordinal(t),i=e._.numberToFormat(t,n,r),i+a}})}(),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}))},6625:function(e,t,n){!function(t,n){e.exports=n()}("undefined"!=typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=40)}([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,n){var r=n(28)("wks"),i=n(29),o=n(0).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(7);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(0),i=n(2),o=n(11),a=n(5),s=n(9),c=function(e,t,n){var u,l,f,d=e&c.F,h=e&c.G,p=e&c.S,g=e&c.P,v=e&c.B,m=e&c.W,y=h?i:i[t]||(i[t]={}),I=y.prototype,M=h?r:p?r[t]:(r[t]||{}).prototype;for(u in h&&(n=t),n)(l=!d&&M&&void 0!==M[u])&&s(y,u)||(f=l?M[u]:n[u],y[u]=h&&"function"!=typeof M[u]?n[u]:v&&l?o(f,r):m&&M[u]==f?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.prototype=e.prototype,t}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((y.virtual||(y.virtual={}))[u]=f,e&c.R&&I&&!I[u]&&a(I,u,f)))};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(13),i=n(31);e.exports=n(6)?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){e.exports=!n(14)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(12);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){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(3),i=n(50),o=n(51),a=Object.defineProperty;t.f=n(6)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(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){var r=n(46),i=n(30);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(26),i=n(16);e.exports=function(e){return r(i(e))}},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,n){var r=n(28)("keys"),i=n(29);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports=!0},function(e,t,n){var r=n(7),i=n(0).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(13).f,i=n(9),o=n(1)("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(12);e.exports.f=function(e){return new function(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)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(43)),i=l(n(32)),o=l(n(79)),a=l(n(86)),s=l(n(87)),c=l(n(88)),u=l(n(89));function l(e){return e&&e.__esModule?e:{default:e}}var f="UN_READY",d="PENDING",h="READY";t.default={name:"VueUeditorWrap",data:function(){return{status:f,defaultConfig:{UEDITOR_HOME_URL:void 0!==e&&e.env.BASE_URL?e.env.BASE_URL+"UEditor/":"/static/UEditor/"}}},props:{mode:{type:String,default:"observer",validator:function(e){return-1!==["observer","listener"].indexOf(e)}},value:{type:String,default:""},config:{type:Object,default:function(){return{}}},init:{type:Function,default:function(){}},destroy:{type:Boolean,default:!0},name:{type:String,default:""},observerDebounceTime:{type:Number,default:50,validator:function(e){return e>=20}},observerOptions:{type:Object,default:function(){return{attributes:!0,attributeFilter:["src","style","type","name"],characterData:!0,childList:!0,subtree:!0}}},forceInit:{type:Boolean,default:!1},editorId:{type:String},editorDependencies:Array,editorDependenciesChecker:Function},computed:{mixedConfig:function(){return(0,o.default)({},this.defaultConfig,this.config)}},methods:{registerButton:function(e){var t=e.name,n=e.icon,r=e.tip,i=e.handler,o=e.index,a=e.UE,s=void 0===a?window.UE:a;s.registerUI(t,(function(e,t){e.registerCommand(t,{execCommand:function(){i(e,t)}});var o=new s.ui.Button({name:t,title:r,cssRules:"background-image: url("+n+") !important;background-size: cover;",onclick:function(){e.execCommand(t)}});return e.addListener("selectionchange",(function(){var n=e.queryCommandState(t);-1===n?(o.setDisabled(!0),o.setChecked(!1)):(o.setDisabled(!1),o.setChecked(n))})),o}),o,this.id)},_initEditor:function(){var e=this;this.$refs.container.id=this.id=this.editorId||"editor_"+(0,u.default)(8),this.init(),this.$emit("before-init",this.id,this.mixedConfig),this.$emit("beforeInit",this.id,this.mixedConfig),this.editor=window.UE.getEditor(this.id,this.mixedConfig),this.editor.addListener("ready",(function(){e.status===h?e.editor.setContent(e.value):(e.status=h,e.$emit("ready",e.editor),e.value&&e.editor.setContent(e.value)),"observer"===e.mode&&window.MutationObserver?e._observerChangeListener():e._normalChangeListener()}))},_loadScript:function(e){return new i.default((function(t,n){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var r=document.createElement("script");r.src=e,r.onload=function(){window.$loadEventBus.emit(e)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadCss:function(e){return new i.default((function(t,n){if(window.$loadEventBus.on(e,t),!1===window.$loadEventBus.listeners[e].requested){window.$loadEventBus.listeners[e].requested=!0;var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,r.onload=function(){window.$loadEventBus.emit(e)},r.onerror=n,document.getElementsByTagName("head")[0].appendChild(r)}}))},_loadEditorDependencies:function(){var e=this;window.$loadEventBus||(window.$loadEventBus=new a.default);var t=["ueditor.config.js","ueditor.all.min.js"];return new i.default((function(n,o){if(e.editorDependencies&&e.editorDependenciesChecker&&e.editorDependenciesChecker())n();else if(!e.editorDependencies&&window.UE&&window.UE.getEditor&&window.UEDITOR_CONFIG&&0!==(0,r.default)(window.UEDITOR_CONFIG).length)n();else{var a=(e.editorDependencies||t).reduce((function(t,n){return/^((https?:)?\/\/)?[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)+\//.test(n)||(n=(e.mixedConfig.UEDITOR_HOME_URL||"")+n),".js"===n.slice(-3)?t.jsLinks.push(n):".css"===n.slice(-4)&&t.cssLinks.push(n),t}),{jsLinks:[],cssLinks:[]}),s=a.jsLinks,u=a.cssLinks;i.default.all([i.default.all(u.map((function(t){return e._loadCss(t)}))),(0,c.default)(s.map((function(t){return function(){return e._loadScript(t)}})))]).then((function(){return n()})).catch(o)}}))},_contentChangeHandler:function(){this.innerValue=this.editor.getContent(),this.$emit("input",this.innerValue)},_normalChangeListener:function(){this.editor.addListener("contentChange",this._contentChangeHandler)},_observerChangeListener:function(){var e=this;this.observer=new MutationObserver((0,s.default)((function(){e.editor.document.getElementById("baidu_pastebin")||(e.innerValue=e.editor.getContent(),e.$emit("input",e.innerValue))}),this.observerDebounceTime)),this.observer.observe(this.editor.body,this.observerOptions)}},deactivated:function(){this.editor&&this.editor.removeListener("contentChange",this._contentChangeHandler),this.observer&&this.observer.disconnect()},beforeDestroy:function(){this.destroy&&this.editor&&this.editor.destroy&&this.editor.destroy(),this.observer&&this.observer.disconnect&&this.observer.disconnect()},watch:{value:{handler:function(e){var t=this;this.status===f?(this.status=d,(this.forceInit||"undefined"!=typeof window)&&this._loadEditorDependencies().then((function(){t.$refs.container?t._initEditor():t.$nextTick((function(){return t._initEditor()}))})).catch((function(){throw new Error("[vue-ueditor-wrap] UEditor 资源加载失败!请检查资源是否存在,UEDITOR_HOME_URL 是否配置正确!")}))):this.status===h&&(e===this.innerValue||this.editor.setContent(e||""))},immediate:!0}}}}).call(t,n(42))},function(e,t,n){var r=n(10);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(19),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},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="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports={default:n(52),__esModule:!0}},function(e,t,n){"use strict";var r=n(21),i=n(4),o=n(56),a=n(5),s=n(8),c=n(57),u=n(23),l=n(60),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,g,v,m){c(n,t,p);var y,I,M,b=function(e){if(!d&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",T="values"==g,A=!1,_=e.prototype,w=_[f]||_["@@iterator"]||g&&_[g],E=w||b(g),N=g?T?b("entries"):E:void 0,S="Array"==t&&_.entries||w;if(S&&(M=l(S.call(new e)))!==Object.prototype&&M.next&&(u(M,C,!0),r||"function"==typeof M[f]||a(M,f,h)),T&&w&&"values"!==w.name&&(A=!0,E=function(){return w.call(this)}),r&&!m||!d&&!A&&_[f]||a(_,f,E),s[t]=E,s[C]=h,g)if(y={values:T?E:b("values"),keys:v?E:b("keys"),entries:N},m)for(I in y)I in _||o(_,I,y[I]);else i(i.P+i.F*(d||A),t,y);return y}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(10),i=n(1)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(3),i=n(12),o=n(1)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(11),s=n(71),c=n(34),u=n(22),l=n(0),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,v=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},I=function(e){y.call(e.data)};d&&h||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},r(v),v},h=function(e){delete m[e]},"process"==n(10)(f)?r=function(e){f.nextTick(a(y,e,1))}:g&&g.now?r=function(e){g.now(a(y,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=I,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",I,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:h}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(3),i=n(7),o=n(24);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(25),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var a=n(90),s=n(41)(i.a,a.a,!1,null,null,null);s.options.__file="src/components/vue-ueditor-wrap.vue",t.default=s.exports},function(e,t){e.exports=function(e,t,n,r,i,o){var a,s=e=e||{},c=typeof e.default;"object"!==c&&"function"!==c||(a=e,s=e.default);var u,l="function"==typeof s?s.options:s;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},l._ssrRegister=u):r&&(u=r),u){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=u,l.render=function(e,t){return u.call(t),d(e,t)}):l.beforeCreate=d?[].concat(d,u):[u]}return{esModule:a,exports:s,options:l}}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){e.exports={default:n(44),__esModule:!0}},function(e,t,n){n(45),e.exports=n(2).Object.keys},function(e,t,n){var r=n(15),i=n(17);n(49)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(9),i=n(18),o=n(47)(!1),a=n(20)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(18),i=n(27),o=n(48);e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)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(19),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(4),i=n(2),o=n(14);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){e.exports=!n(6)&&!n(14)((function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(7);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){n(53),n(54),n(61),n(65),n(77),n(78),e.exports=n(2).Promise},function(e,t){},function(e,t,n){"use strict";var r=n(55)(!0);n(33)(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(19),i=n(16);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";var r=n(58),i=n(31),o=n(23),a={};n(5)(a,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(3),i=n(59),o=n(30),a=n(20)("IE_PROTO"),s=function(){},c=function(){var e,t=n(22)("iframe"),r=o.length;for(t.style.display="none",n(34).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).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?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(13),i=n(3),o=n(17);e.exports=n(6)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(9),i=n(15),o=n(20)("IE_PROTO"),a=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?a:null}},function(e,t,n){n(62);for(var r=n(0),i=n(5),o=n(8),a=n(1)("toStringTag"),s="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<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},function(e,t,n){"use strict";var r=n(63),i=n(64),o=n(8),a=n(18);e.exports=n(33)(Array,"Array",(function(e,t){this._t=a(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){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r,i,o,a,s=n(21),c=n(0),u=n(11),l=n(35),f=n(4),d=n(7),h=n(12),p=n(66),g=n(67),v=n(36),m=n(37).set,y=n(72)(),I=n(24),M=n(38),b=n(73),C=n(39),T=c.TypeError,A=c.process,_=A&&A.versions,w=_&&_.v8||"",E=c.Promise,N="process"==l(A),S=function(){},O=i=I.f,D=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(S,S)};return(N||"function"==typeof PromiseRejectionEvent)&&e.then(S)instanceof t&&0!==w.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(e){}}(),x=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&j(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?u(T("Promise-chain cycle")):(o=x(n))?o.call(n,c,u):c(n)):u(r)}catch(e){l&&!a&&l.exit(),u(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&k(e)}))}},k=function(e){m.call(c,(function(){var t,n,r,i=e._v,o=L(e);if(o&&(t=M((function(){N?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=N||L(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){m.call(c,(function(){var t;N?A.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},U=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw T("Promise can't be resolved itself");(t=x(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,u(U,r,1),u(P,r,1))}catch(e){P.call(r,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};D||(E=function(e){p(this,E,"Promise","_h"),h(e),r.call(this);try{e(u(U,this,1),u(P,this,1))}catch(e){P.call(this,e)}},(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}).prototype=n(74)(E.prototype,{then:function(e,t){var n=O(v(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(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(U,e,1),this.reject=u(P,e,1)},I.f=O=function(e){return e===E||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!D,{Promise:E}),n(23)(E,"Promise"),n(75)("Promise"),a=n(2).Promise,f(f.S+f.F*!D,"Promise",{reject:function(e){var t=O(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!D),"Promise",{resolve:function(e){return C(s&&this===a?E:this,e)}}),f(f.S+f.F*!(D&&n(76)((function(e){E.all(e).catch(S)}))),"Promise",{all:function(e){var t=this,n=O(t),r=n.resolve,i=n.reject,o=M((function(){var n=[],o=0,a=1;g(e,!1,(function(e){var s=o++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=O(t),r=n.reject,i=M((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},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(11),i=n(68),o=n(69),a=n(3),s=n(27),c=n(70),u={},l={};(t=e.exports=function(e,t,n,f,d){var h,p,g,v,m=d?function(){return e}:c(e),y=r(n,f,t?2:1),I=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(h=s(e.length);h>I;I++)if((v=t?y(a(p=e[I])[0],p[1]):y(e[I]))===u||v===l)return v}else for(g=m.call(e);!(p=g.next()).done;)if((v=i(g,y,p.value,t))===u||v===l)return v}).BREAK=u,t.RETURN=l},function(e,t,n){var r=n(3);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(8),i=n(1)("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(35),i=n(1)("iterator"),o=n(8);e.exports=n(2).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},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)}},function(e,t,n){var r=n(0),i=n(37).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(10)(a);e.exports=function(){var e,t,n,u=function(){var r,i;for(c&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var r=n(0).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(5);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}},function(e,t,n){"use strict";var r=n(0),i=n(2),o=n(13),a=n(6),s=n(1)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(1)("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],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(4),i=n(2),o=n(0),a=n(36),s=n(39);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var r=n(4),i=n(24),o=n(38);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}})},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(80),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.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}},function(e,t,n){e.exports={default:n(81),__esModule:!0}},function(e,t,n){n(82),e.exports=n(2).Object.assign},function(e,t,n){var r=n(4);r(r.S+r.F,"Object",{assign:n(83)})},function(e,t,n){"use strict";var r=n(6),i=n(17),o=n(84),a=n(85),s=n(15),c=n(26),u=Object.assign;e.exports=!u||n(14)((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){for(var n=s(e),u=arguments.length,l=1,f=o.f,d=a.f;u>l;)for(var h,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,m=0;v>m;)h=g[m++],r&&!d.call(p,h)||(n[h]=p[h]);return n}:u},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){this.listeners={},this.on=function(e,t){void 0===this.listeners[e]&&(this.listeners[e]={triggered:!1,requested:!1,cbs:[]}),this.listeners[e].triggered&&t(),this.listeners[e].cbs.push(t)},this.emit=function(e){this.listeners[e]&&(this.listeners[e].triggered=!0,this.listeners[e].cbs.forEach((function(e){return e()})))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;return function(){var r=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(32),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){return e.reduce((function(e,t){return e.then(t)}),o.default.resolve())}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",r=0;r<e;r++)n+=t.charAt(Math.floor(Math.random()*t.length));return n}},function(e,t,n){"use strict";var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("div",{ref:"container",attrs:{name:this.name}})])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};t.a=i}]).default}))},"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"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.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"),a=n("86cc").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("79e5")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,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},d=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},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,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},u=Math.max(0,t.length-s.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 d=function(){};d.prototype=t.prototype,n.prototype=new d,d.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}})},"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"),a="toString",s=/./[a],c=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")((function(){return"/a/b"!=s.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)})):s.name!=a&&c((function(){return s.call(this)}))},"6b75":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}))},"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"),a=n("5168")("toStringTag"),s="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<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&i(f,a,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)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function c(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)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=s(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}(),d=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},h=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=A(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 m(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function y(e){var t=e.getBBox();return A(0,0,t.width,t.height)}function I(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=h(e).getComputedStyle(e),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),c=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(c+a)!==n&&(c-=v(r,"top","bottom")+a)),!b(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return A(i.left,i.top,s,c)}var M=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"===typeof e.getBBox}}();function b(e){return e===h(e).document.documentElement}function C(e){return r?M(e)?y(e):I(e):p}function T(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return d(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function A(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=A(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}(),w=function(){function e(e,t){var n=T(t);d(this,{target:e,contentRect:n})}return e}(),E=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 h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(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 h(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 w(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}(),N="undefined"!==typeof WeakMap?new WeakMap:new n,S=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 E(t,n,this);N.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=N.get(this))[e].apply(t,arguments)}}));var O=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:S}();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 a in r={},e)this.match(a)&&(r[a]=e[a]);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,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},"71f1":function(e,t,n){"use strict";var r=n("5ca1"),i=n("c45f"),o=n("4bf8"),a=n("9def"),s=n("4588"),c=n("cd1c");r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),r=c(t,0);return i(r,t,t,n,0,void 0===e?1:s(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"),a=n("52a7"),s=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=s(e),u=arguments.length,l=1,f=o.f,d=a.f;while(u>l){var h,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,m=0;while(v>m)h=g[m++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},"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",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"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])}})},"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),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},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},a=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 s=a(n("6f71")),c=a(n("d540")),u=a(n("c4d8")),l=a(n("419e"));t.unique=l["default"];var f=n("8a52");t.CustomizeRule=f.CustomizeRule;var d=n("3b74");function h(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(d.isUndefined(t)||n.some(d.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(d.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 a=Object.keys(e).find((function(e){return s["default"](e,r)}))||"";if(a)switch(e[a]){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])})),d.isPlainObject(i)?y({currentRule:i,a:t,b:n}):"string"===typeof i?I({currentRule:i,a:t,b:n}):void 0}})}t.merge=h,t["default"]=h,t.mergeWithCustomize=p,t.customizeArray=g,t.mergeWithRules=v;var m=Array.isArray;function y(e){var t=e.currentRule,n=e.a,a=e.b;if(!m(n))return n;var s=[],c=n.map((function(e){if(!d.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=a.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&&s.push(t),n}));return d.isPlainObject(e)?(Object.entries(e).forEach((function(e){var a=i(e,2),s=a[0],c=a[1],h=t;switch(t[s]){case f.CustomizeRule.Match:n[s]=c,Object.entries(h).forEach((function(e){var t=i(e,2),r=t[0],o=t[1];if(o===f.CustomizeRule.Replace&&l.length>0){var a=M(l)[r];"undefined"!==typeof a&&(n[r]=a)}}));break;case f.CustomizeRule.Append:if(!l.length){n[s]=c;break}var p=M(l)[s];if(!m(c)||!m(p))throw new TypeError("Trying to append non-arrays");n[s]=c.concat(p);break;case f.CustomizeRule.Merge:if(!l.length){n[s]=c;break}var g=M(l)[s];if(!d.isPlainObject(c)||!d.isPlainObject(g))throw new TypeError("Trying to merge non-objects");n[s]=r(r({},c),g);break;case f.CustomizeRule.Prepend:if(!l.length){n[s]=c;break}var v=M(l)[s];if(!m(c)||!m(v))throw new TypeError("Trying to prepend non-arrays");n[s]=v.concat(c);break;case f.CustomizeRule.Replace:n[s]=l.length>0?M(l)[s]:c;break;default:var I=u[s],b=l.map((function(e){return e[s]})).reduce((function(e,t){return m(e)&&m(t)?o(o([],i(e)),i(t)):e}),[]);n[s]=y({currentRule:I,a:c,b:b});break}})),n):e}));return c.concat(a.filter((function(e){return!s.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 M(e){return e[e.length-1]}function b(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=b},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)},"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,a=[],s=0;while(n>s)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.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}))},"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"),a=n("2b4c")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{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,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.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"),a=n("9def");e.exports=function(e,t,n,s,c){r(t);var u=i(e),l=o(u),f=a(u.length),d=c?f-1:0,h=c?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=h;break}if(d+=h,c?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;c?d>=0:f>d;d+=h)d in l&&(s=t(s,l[d],d,u));return s}},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
  183. /**
  184. * Checks if an event is supported in the current execution environment.
  185. *
  186. * NOTE: This will not work correctly for non-generic events such as `change`,
  187. * `reset`, `load`, `error`, and `select`.
  188. *
  189. * Borrows from Modernizr.
  190. *
  191. * @param {string} eventNameSuffix Event name, e.g. "click".
  192. * @param {?boolean} capture Check if the capture phase is supported.
  193. * @return {boolean} True if the event is supported.
  194. * @internal
  195. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  196. */
  197. function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[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,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"7c0e":function(e,t,n){"use strict";n("aa77")("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},"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,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(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,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[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,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(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 ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{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,a=r.process,s=r.Promise,c="process"==n("2d95")(a);e.exports=function(){var e,t,n,u=function(){var r,i;c&&(r=a.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(){a.nextTick(u)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(r,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),n=function(){d.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={}},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"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}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",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n("2aba")(r,o,(function(){var e=s.call(this);return e===e?a.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"),a=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=a(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"),a=r.has,s=r.key,c=function(e,t,n){var r=a(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:s(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,a=i&n,s=r>>>16,c=i>>>16,u=(s*a>>>0)+(o*a>>>16);return s*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"),a=n("5ca1"),s=n("2aba"),c=n("67ab").KEY,u=n("79e5"),l=n("5537"),f=n("7f20"),d=n("ca5a"),h=n("2b4c"),p=n("37c8"),g=n("3a72"),v=n("d4c0"),m=n("1169"),y=n("cb7c"),I=n("d3f4"),M=n("4bf8"),b=n("6821"),C=n("6a99"),T=n("4630"),A=n("2aeb"),_=n("7bbc"),w=n("11e9"),E=n("2621"),N=n("86cc"),S=n("0d58"),O=w.f,D=N.f,x=_.f,R=r.Symbol,k=r.JSON,L=k&&k.stringify,j="prototype",P=h("_hidden"),U=h("toPrimitive"),z={}.propertyIsEnumerable,B=l("symbol-registry"),G=l("symbols"),Y=l("op-symbols"),H=Object[j],F="function"==typeof R&&!!E.f,$=r.QObject,V=!$||!$[j]||!$[j].findChild,Q=o&&u((function(){return 7!=A(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=O(H,t);r&&delete H[t],D(e,t,n),r&&e!==H&&D(H,t,r)}:D,W=function(e){var t=G[e]=A(R[j]);return t._k=e,t},Z=F&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},K=function(e,t,n){return e===H&&K(Y,t,n),y(e),t=C(t,!0),y(n),i(G,t)?(n.enumerable?(i(e,P)&&e[P][t]&&(e[P][t]=!1),n=A(n,{enumerable:T(0,!1)})):(i(e,P)||D(e,P,T(1,{})),e[P][t]=!0),Q(e,t,n)):D(e,t,n)},q=function(e,t){y(e);var n,r=v(t=b(t)),i=0,o=r.length;while(o>i)K(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?A(e):q(A(e),t)},X=function(e){var t=z.call(this,e=C(e,!0));return!(this===H&&i(G,e)&&!i(Y,e))&&(!(t||!i(this,e)||!i(G,e)||i(this,P)&&this[P][e])||t)},ee=function(e,t){if(e=b(e),t=C(t,!0),e!==H||!i(G,t)||i(Y,t)){var n=O(e,t);return!n||!i(G,t)||i(e,P)&&e[P][t]||(n.enumerable=!0),n}},te=function(e){var t,n=x(b(e)),r=[],o=0;while(n.length>o)i(G,t=n[o++])||t==P||t==c||r.push(t);return r},ne=function(e){var t,n=e===H,r=x(n?Y:b(e)),o=[],a=0;while(r.length>a)!i(G,t=r[a++])||n&&!i(H,t)||o.push(G[t]);return o};F||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(Y,n),i(this,P)&&i(this[P],e)&&(this[P][e]=!1),Q(this,e,T(1,n))};return o&&V&&Q(H,e,{configurable:!0,set:t}),W(e)},s(R[j],"toString",(function(){return this._k})),w.f=ee,N.f=K,n("9093").f=_.f=te,n("52a7").f=X,E.f=ne,o&&!n("2d00")&&s(H,"propertyIsEnumerable",X,!0),p.f=function(e){return W(h(e))}),a(a.G+a.W+a.F*!F,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=S(h.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!F,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=R(e)},keyFor:function(e){if(!Z(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!F,"Object",{create:J,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){E.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return E.f(M(e))}}),k&&a(a.S+a.F*(!F||u((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(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)&&!Z(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Z(t))return t}),r[1]=t,L.apply(k,r)}}),R[j][U]||n("32e9")(R[j],U,R[j].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},"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";
  198. /*!
  199. * vue-router v3.0.6
  200. * (c) 2019 Evan You
  201. * @license MIT
  202. */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 a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,a=t.data;a.routerView=!0;var c=i.$createElement,u=n.name,l=i.$route,f=i._routerViewCache||(i._routerViewCache={}),d=0,h=!1;while(i&&i._routerRoot!==i){var p=i.$vnode&&i.$vnode.data;p&&(p.routerView&&d++,p.keepAlive&&i._inactive&&(h=!0)),i=i.$parent}if(a.routerViewDepth=d,h)return c(f[u],a,r);var g=l.matched[d];if(!g)return f[u]=null,c();var v=f[u]=g.components[u];a.registerRouteInstance=function(e,t){var n=g.instances[u];(t&&n!==e||!t&&n===e)&&(g.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[u]&&(g.instances[u]=e.componentInstance)};var m=a.props=s(l,g.props&&g.props[u]);if(m){m=a.props=o({},m);var y=a.attrs=a.attrs||{};for(var I in m)v.props&&I in v.props||(y[I]=m[I],delete m[I])}return c(v,a,r)}};function s(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,",")},d=decodeURIComponent;function h(e,t,n){void 0===t&&(t={});var r,i=n||p;try{r=i(e||"")}catch(a){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=d(n.shift()),i=n.length>0?d(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 m(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=y(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?M(e):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function y(e){if(Array.isArray(e))return e.map(y);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=y(e[n]);return t}return e}var I=m(null,{path:"/"});function M(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(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&&T(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&T(e.query,t.query)&&T(e.params,t.params)))}function T(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?T(r,i):String(r)===String(i)}))}function A(e,t){return 0===e.path.replace(v,"/").indexOf(t.path.replace(v,"/"))&&(!t.hash||e.hash===t.hash)&&_(e.query,t.query)}function _(e,t){for(var n in t)if(!(n in e))return!1;return!0}var w,E=[String,Object],N=[String,Array],S={name:"RouterLink",props:{to:{type:E,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:N,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,c=i.href,u={},l=n.options.linkActiveClass,f=n.options.linkExactActiveClass,d=null==l?"router-link-active":l,h=null==f?"router-link-exact-active":f,p=null==this.activeClass?d:this.activeClass,g=null==this.exactActiveClass?h:this.exactActiveClass,v=a.path?m(null,a,null,n):s;u[g]=C(r,v),u[p]=this.exact?u[g]:A(r,v);var y=function(e){O(e)&&(t.replace?n.replace(a):n.push(a))},I={click:O};Array.isArray(this.event)?this.event.forEach((function(e){I[e]=y})):I[this.event]=y;var M={class:u};if("a"===this.tag)M.on=I,M.attrs={href:c};else{var b=D(this.$slots.default);if(b){b.isStatic=!1;var T=b.data=o({},b.data);T.on=I;var _=b.data.attrs=o({},b.data.attrs);_.href=c}else M.on=I}return e(this.tag,M,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 D(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=D(t.children)))return t}}function x(e){if(!x.installed||w!==e){x.installed=!0,w=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",a),e.component("RouterLink",S);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var R="undefined"!==typeof window;function k(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("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function L(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 j(e){return e.replace(/\/\//g,"/")}var P=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},U=re,z=F,B=$,G=W,Y=ne,H=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=H.exec(e))){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(o,l),o=l+c.length,u)a+=u[1];else{var f=e[o],d=n[2],h=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var y=null!=d&&null!=f&&f!==d,I="+"===v||"*"===v,M="?"===v||"*"===v,b=n[2]||s,C=p||g;r.push({name:h||i++,prefix:d||"",delimiter:b,optional:M,repeat:I,partial:y,asterisk:!!m,pattern:C?K(C):m?".*":"[^"+Z(b)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function $(e,t){return W(F(e,t))}function V(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function Q(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function W(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||{},a=r||{},s=a.pretty?V: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(P(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 d=0;d<f.length;d++){if(l=s(f[d]),!t[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===d?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?Q(f):s(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 Z(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function K(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function q(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 q(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 q(o,t)}function te(e,t,n){return ne(F(e,n),t,n)}function ne(e,t,n){P(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=Z(s);else{var c=Z(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",o+=u}}var l=Z(n.delimiter||"/"),f=o.slice(-l.length)===l;return r||(o=(f?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&f?"":"(?="+l+"|$)",q(new RegExp("^"+o,J(n)),t)}function re(e,t,n){return P(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?X(e,t):P(e)?ee(e,t,n):te(e,t,n)}U.parse=z,U.compile=B,U.tokensToFunction=G,U.tokensToRegExp=Y;var ie=Object.create(null);function oe(e,t,n){t=t||{};try{var r=ie[e]||(ie[e]=U.compile(e));return t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function ae(e,t,n,r){var i=t||[],o=n||Object.create(null),a=r||Object.create(null);e.forEach((function(e){se(i,o,a,e)}));for(var s=0,c=i.length;s<c;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),c--,s--);return{pathList:i,pathMap:o,nameMap:a}}function se(e,t,n,r,i,o){var a=r.path,s=r.name;var c=r.pathToRegexpOptions||{},u=ue(a,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:s,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?j(o+"/"+r.path):void 0;se(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 a={path:o,children:r.children};se(e,t,n,a,i,l.path||"/")}))}t[l.path]||(e.push(l.path),t[l.path]=l),s&&(n[s]||(n[s]=l))}function ce(e,t){var n=U(e,[],t);return n}function ue(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:j(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 a=o(o({},t.params),i.params);if(t.name)i.name=t.name,i.params=a;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;i.path=oe(s,a,"path "+t.path)}else 0;return i}var c=L(i.path||""),u=t&&t.path||"/",l=c.path?k(c.path,u,n||i.append):u,f=h(c.query,i.query,r&&r.options.parseQuery),d=i.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:l,query:f,hash:d}}function fe(e,t){var n=ae(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ae(e,r,i,o)}function s(e,n,a){var s=le(e,n,!1,t),c=s.name;if(c){var u=o[c];if(!u)return l(null,s);var f=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&f.indexOf(d)>-1&&(s.params[d]=n.params[d]);if(u)return s.path=oe(u.path,s.params,'named route "'+c+'"'),l(u,s,a)}else if(s.path){s.params={};for(var h=0;h<r.length;h++){var p=r[h],g=i[p];if(de(g.regex,s.path,s.params))return l(g,s,a)}}return l(null,s)}function c(e,n){var r=e.redirect,i="function"===typeof r?r(m(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return l(null,n);var a=i,c=a.name,u=a.path,f=n.query,d=n.hash,h=n.params;if(f=a.hasOwnProperty("query")?a.query:f,d=a.hasOwnProperty("hash")?a.hash:d,h=a.hasOwnProperty("params")?a.params:h,c){o[c];return s({_normalized:!0,name:c,query:f,hash:d,params:h},void 0,n)}if(u){var p=he(u,e),g=oe(p,h,'redirect route with path "'+p+'"');return s({_normalized:!0,path:g,query:f,hash:d},void 0,n)}return l(null,n)}function u(e,t,n){var r=oe(n,t.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,l(a,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):m(e,n,r,t)}return{match:s,addRoutes:a}}function de(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 a=e.keys[i-1],s="string"===typeof r[i]?decodeURIComponent(r[i]):r[i];a&&(n[a.name||"pathMatch"]=s)}return!0}function he(e,t){return k(e,t.parent?t.parent.path:"/",!0)}var pe=Object.create(null);function ge(){window.history.replaceState({key:Se()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",(function(e){me(),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=ye(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){Ae(e,o)})).catch((function(e){0})):Ae(a,o))}))}}function me(){var e=Se();e&&(pe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ye(){var e=Se();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 Me(e){return Te(e.x)||Te(e.y)}function be(e){return{x:Te(e.x)?e.x:window.pageXOffset,y:Te(e.y)?e.y:window.pageYOffset}}function Ce(e){return{x:Te(e.x)?e.x:0,y:Te(e.y)?e.y:0}}function Te(e){return"number"===typeof e}function Ae(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 Me(e)&&(t=be(e))}else n&&Me(e)&&(t=be(e));t&&window.scrollTo(t.x,t.y)}var _e=R&&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)}(),we=R&&window.performance&&window.performance.now?window.performance:Date,Ee=Ne();function Ne(){return we.now().toFixed(3)}function Se(){return Ee}function Oe(e){Ee=e}function De(e,t){me();var n=window.history;try{t?n.replaceState({key:Ee},"",e):(Ee=Ne(),n.pushState({key:Ee},"",e))}catch(r){window.location[t?"replace":"assign"](e)}}function xe(e){De(e,!0)}function Re(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 ke(e){return function(t,n,r){var o=!1,a=0,s=null;Le(e,(function(e,t,n,c){if("function"===typeof e&&void 0===e.cid){o=!0,a++;var u,l=ze((function(t){Ue(t)&&(t=t.default),e.resolved="function"===typeof t?t:w.extend(t),n.components[c]=t,a--,a<=0&&r()})),f=ze((function(e){var t="Failed to resolve async component "+c+": "+e;s||(s=i(e)?e:new Error(t),r(s))}));try{u=e(l,f)}catch(h){f(h)}if(u)if("function"===typeof u.then)u.then(l,f);else{var d=u.component;d&&"function"===typeof d.then&&d.then(l,f)}}})),o||r()}}function Le(e,t){return je(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function je(e){return Array.prototype.concat.apply([],e)}var Pe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ue(e){return e.__esModule||Pe&&"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 Be=function(e,t){this.router=e,this.base=Ge(t),this.current=I,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ge(e){if(!e)if(R){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 Ye(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 He(e,t,n,r){var i=Le(e,(function(e,r,i,o){var a=Fe(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return je(r?i.reverse():i)}function Fe(e,t){return"function"!==typeof e&&(e=w.extend(e)),e.options[t]}function $e(e){return He(e,"beforeRouteLeave",Qe,!0)}function Ve(e){return He(e,"beforeRouteUpdate",Qe)}function Qe(e,t){if(t)return function(){return e.apply(t,arguments)}}function We(e,t,n){return He(e,"beforeRouteEnter",(function(e,r,i,o){return Ze(e,i,o,t,n)}))}function Ze(e,t,n,r,i){return function(o,a,s){return e(o,a,(function(e){s(e),"function"===typeof e&&r.push((function(){Ke(e,t.instances,n,i)}))}))}}function Ke(e,t,n,r){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):r()&&setTimeout((function(){Ke(e,t,n,r)}),16)}Be.prototype.listen=function(e){this.cb=e},Be.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Be.prototype.onError=function(e){this.errorCbs.push(e)},Be.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)})))}))},Be.prototype.confirmTransition=function(e,t,n){var o=this,a=this.current,s=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,a)&&e.matched.length===a.matched.length)return this.ensureURL(),s();var c=Ye(this.current.matched,e.matched),u=c.updated,l=c.deactivated,f=c.activated,d=[].concat($e(l),this.router.beforeHooks,Ve(u),f.map((function(e){return e.beforeEnter})),ke(f));this.pending=e;var h=function(t,n){if(o.pending!==e)return s();try{t(e,a,(function(e){!1===e||i(e)?(o.ensureURL(!0),s(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(s(),"object"===typeof e&&e.replace?o.replace(e):o.push(e)):n(e)}))}catch(r){s(r)}};Re(d,h,(function(){var n=[],r=function(){return o.current===e},i=We(f,n,r),a=i.concat(o.router.resolveHooks);Re(a,h,(function(){if(o.pending!==e)return s();o.pending=null,t(e),o.router.app&&o.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},Be.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 qe=function(e){function t(t,n){var r=this;e.call(this,t,n);var i=t.options.scrollBehavior,o=_e&&i;o&&ge();var a=Je(this.base);window.addEventListener("popstate",(function(e){var n=r.current,i=Je(r.base);r.current===I&&i===a||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){De(j(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){xe(j(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=j(this.base+this.current.fullPath);e?De(t):xe(t)}},t.prototype.getCurrentLocation=function(){return Je(this.base)},t}(Be);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=_e&&n;r&&ge(),window.addEventListener(_e?"popstate":"hashchange",(function(){var t=e.current;tt()&&e.transitionTo(nt(),(function(n){r&&ve(e.router,n,t,!0),_e||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}(Be);function et(e){var t=Je(e);if(!/^\/#/.test(t))return window.location.replace(j(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){_e?De(rt(e)):window.location.hash=e}function ot(e){_e?xe(rt(e)):window.location.replace(rt(e))}var at=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}(Be),st=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&&!_e&&!1!==e.fallback,this.fallback&&(t="hash"),R||(t="abstract"),this.mode=t,t){case"history":this.history=new qe(this,e.base);break;case"hash":this.history=new Xe(this,e.base,this.fallback);break;case"abstract":this.history=new at(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?j(e+"/"+r):r}st.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},ct.currentRoute.get=function(){return this.history&&this.history.current},st.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 qe)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}))}))}},st.prototype.beforeEach=function(e){return ut(this.beforeHooks,e)},st.prototype.beforeResolve=function(e){return ut(this.resolveHooks,e)},st.prototype.afterEach=function(e){return ut(this.afterHooks,e)},st.prototype.onReady=function(e,t){this.history.onReady(e,t)},st.prototype.onError=function(e){this.history.onError(e)},st.prototype.push=function(e,t,n){this.history.push(e,t,n)},st.prototype.replace=function(e,t,n){this.history.replace(e,t,n)},st.prototype.go=function(e){this.history.go(e)},st.prototype.back=function(){this.go(-1)},st.prototype.forward=function(){this.go(1)},st.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]}))}))):[]},st.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,a=this.history.base,s=lt(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},st.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==I&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(st.prototype,ct),st.install=x,st.version="3.0.6",R&&window.Vue&&window.Vue.use(st),t["a"]=st},"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"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),c=a.f,u=i(r),l={},f=0;while(u.length>f)n=c(r,t=u[f++]),void 0!==n&&s(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,a,s,c,u,l,f,d,h,p,g,v,m=!1;function y(){if(!m){m=!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),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(h=/\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),d=!!/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);s=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),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var M=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!M||parseFloat(M[1].replace("_","."))}else c=!1;u=!!y[2],l=!!y[3]}else c=u=l=!1}}var I={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return I.ie()&&d},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return I.webkit()},chrome:function(){return y()||a},windows:function(){return y()||u},osx:function(){return y()||c},linux:function(){return y()||l},iphone:function(){return y()||h},mobile:function(){return y()||h||p||f||v},nativeApp:function(){return y()||g},android:function(){return y()||f},ipad:function(){return y()||p}};e.exports=I},"8ed0":function(e,t,n){"use strict";var r=n("79e5"),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=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)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},"8f60":function(e,t,n){"use strict";var r=n("a159"),i=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{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),a=n(50),s=n(13),c=n(49),u=n(27);t.a={data:function(){return{unwatchFns:[]}},mounted:function(){var e=this;s.b&&s.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 a=o,s=e.convertSignalProp(a,r[a]);return void 0===s||(i&&i[o]&&(a=i[a]),t[a]=s),n}),t)},convertSignalProp:function(e,t){var n="",r="";if(this.amapTagName)try{var a=i()(this.amapTagName).replace(/^El/,"");r=(u.default[a]||"").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 s=o.a[e];return s?s(t):t},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var e in this.events)a.a.addListener(this.$amapComponent,e,this.events[e]);if(this.$options.propsData.onceEvents)for(var t in this.onceEvents)a.a.addListenerOnce(this.$amapComponent,t,this.onceEvents[t])}},unregisterEvents:function(){a.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,a,s){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),a?(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(a)},l._ssrRegister=u):i&&(u=s?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 d=l.beforeCreate;l.beforeCreate=d?[].concat(d,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,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?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 a(e){return new AMap.LngLat(e[0],e[1])}function s(e){if(e)return Array.isArray(e)?e.slice():[e.getLng(),e.getLat()]}function c(e){return new AMap.Bounds(a(e[0]),a(e[1]))}t.e=r,t.c=o,t.d=a,t.b=s,n.d(t,"a",(function(){return u}));var u={position:a,offset:r,bounds:c,LngLat:a,Pixel:r,Size:i,Bounds:c}},function(e,t,n){var r=n(3),i=n(8),o=n(11),a=n(14)("src"),s=Function.toString,c=(""+s).split("toString");n(16).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?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[a]||s.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),a=Object.defineProperty;t.f=n(5)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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 s})),n.d(t,"b",(function(){return a}));var r=n(97),i=n(19),o=n.n(i),a=null,s=function(e){o.a.prototype.$isServer||a||(a||(a=new r.a(e)),a.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),a=n(8),s=n(12),c=n(72),u=n(25),l=n(79),f=n(2)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,g,v,m){c(n,t,p);var y,I,M,b=function(e){if(!d&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",T="values"==g,A=!1,_=e.prototype,w=_[f]||_["@@iterator"]||g&&_[g],E=w||b(g),N=g?T?b("entries"):E:void 0,S="Array"==t&&_.entries||w;if(S&&(M=l(S.call(new e)))!==Object.prototype&&M.next&&(u(M,C,!0),r||"function"==typeof M[f]||a(M,f,h)),T&&w&&"values"!==w.name&&(A=!0,E=function(){return w.call(this)}),r&&!m||!d&&!A&&_[f]||a(_,f,E),s[t]=E,s[C]=h,g)if(y={values:T?E:b("values"),keys:v?E:b("keys"),entries:N},m)for(I in y)I in _||o(_,I,y[I]);else i(i.P+i.F*(d||A),t,y);return y}},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),a=n(100),s=n(106),c=n(107),u=n(111),l=n(113),f=n(115),d=n(116),h=n(118),p=n(120),g=n(122),v=n(124),m=n(126),y=n(128),I=n(130),M=n(131);n.d(t,"AMapManager",(function(){return I.a})),n.d(t,"initAMapApiLoader",(function(){return o.a})),n.d(t,"createCustomComponent",(function(){return M.a})),n.d(t,"lazyAMapApiLoaderInstance",(function(){return o.b}));var b=[a.a,s.a,c.a,u.a,l.a,f.a,h.a,d.a,p.a,g.a,v.a,m.a,y.a],C={initAMapApiLoader:o.a,AMapManager:I.a,install:function(e){C.installed||(e.config.optionMergeStrategies.deferredReady=e.config.optionMergeStrategies.created,b.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}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),i))?n:o?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},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),a=n(7),s=n(17),c=function(e,t,n){var u,l,f,d,h=e&c.F,p=e&c.G,g=e&c.S,v=e&c.P,m=e&c.B,y=p?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,I=p?i:i[t]||(i[t]={}),M=I.prototype||(I.prototype={});for(u in p&&(n=t),n)l=!h&&y&&void 0!==y[u],f=(l?y:n)[u],d=m&&l?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,y&&a(y,u,f,e&c.U),I[u]!=f&&o(I,u,d),v&&M[u]!=f&&(M[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),a=n(24)("IE_PROTO"),s=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?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=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),a=n(10),s=n(37),c=n(88),u={},l={};t=e.exports=function(e,t,n,f,d){var h,p,g,v,m=d?function(){return e}:c(e),y=r(n,f,t?2:1),I=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(h=s(e.length);h>I;I++)if((v=t?y(a(p=e[I])[0],p[1]):y(e[I]))===u||v===l)return v}else for(g=m.call(e);!(p=g.next()).done;)if((v=i(g,y,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),a=n(9).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(15)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,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},d=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},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 a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},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 a=[];for(i=0;i<n.parts.length;i++)a.push(o(n.parts[i]));l[n.id]={id:n.id,refs:1,parts:a}}}}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=h++;r=d||(d=i()),t=a.bind(null,r,o,!1),n=a.bind(null,r,o,!0)}else r=i(),t=s.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 a(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function s(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]),d=null,h=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 a=i[o],s=l[a.id];s.refs--,n.push(s)}t?(i=u(e,t),r(i)):i=[];for(o=0;o<n.length;o++){s=n[o];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete l[s.id]}}}};var m=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),a=n(0),s=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:[a.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=s.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),a=n(19),s=n.n(a),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 s.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 a})),n.d(t,"c",(function(){return s})),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},a=function(e,t){var n=["methods","computed","data","filters"],r={},a=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 s=new i.a(o({},r,a));return s.$mount(),s},s=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),a=n(19),s=n.n(a);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 s.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,a,s=String(i(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-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),a={};n(8)(a,n(2)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{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,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(11),i=n(18),o=n(76)(!1),a=n(24)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,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,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)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"),a=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?a: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),a=n(3),s=n(8),c=n(12),u=n(2),l=u("iterator"),f=u("toStringTag"),d=c.Array,h={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(h),g=0;g<p.length;g++){var v,m=p[g],y=h[m],I=a[m],M=I&&I.prototype;if(M&&(M[l]||s(M,l,d),M[f]||s(M,f,m),c[m]=d,y))for(v in r)M[v]||o(M,v,r[v],!0)}},function(e,t,n){"use strict";var r=n(83),i=n(39),o=n(12),a=n(18);e.exports=n(23)(Array,"Array",(function(e,t){this._t=a(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),a=n(17),s=n(41),c=n(42),u=n(23),l=n(39),f=n(89),d=n(5),h=n(43).fastKey,p=n(44),g=d?"_s":"size",v=function(e,t){var n,r=h(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){s(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=a(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)}}),d&&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=h(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),a=n(2)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(3),i=n(34),o=n(7),a=n(40),s=n(43),c=n(42),u=n(41),l=n(4),f=n(15),d=n(91),h=n(25),p=n(92);e.exports=function(e,t,n,g,v,m){var y=r[e],I=y,M=v?"set":"add",b=I&&I.prototype,C={},T=function(e){var t=b[e];o(b,e,"delete"==e||"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!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&&(m||b.forEach&&!f((function(){(new I).entries().next()})))){var A=new I,_=A[M](m?{}:-0,1)!=A,w=f((function(){A.has(1)})),E=d((function(e){new I(e)})),N=!m&&f((function(){for(var e=new I,t=5;t--;)e[M](t,t);return!e.has(-0)}));E||(I=t((function(t,n){u(t,I,e);var r=p(new y,t,I);return void 0!=n&&c(n,v,r[M],r),r})),I.prototype=b,b.constructor=I),(w||N)&&(T("delete"),T("has"),v&&T("get")),(N||_)&&T(M),m&&b.clear&&delete b.clear}else I=g.getConstructor(t,e,v,M),a(I.prototype,n),s.NEED=!0;return h(I,e),C[e]=I,i(i.G+i.W+i.F*(I!=y),C),m||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],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},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,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.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),a=n(33),s=n(11),c=n(31),u=Object.getOwnPropertyDescriptor;t.f=n(5)?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(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},a={key:null,v:"1.4.4",protocol:"https",hostAndPath:"webapi.amap.com/maps",plugin:[],callback:"amapInitComponent"},s=function(){function e(t){r(this,e),this._config=o({},a,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],a=i[1],s=i[2];if(void 0!==o&&void 0!==a){var c=e._config.protocol+"://webapi.amap.com/ui/"+o+"."+a+"/main-async.js";s&&(c+="?v="+o+"."+a+"."+s),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=s},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 a=null;i&&(a=i.id);var s=o._watchIdMap[r];if(s.id=a,s.stat=1,s.callbackList){var c=s.callbackList;s.callbackList=null;for(var u=0,l=c.length;u<l;u++)c[u].call(o,a)}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),a=n(1),s=r,c=Object(a.a)(i.a,o.a,o.b,!1,s,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],a=o[0],s=o[1],c=o[2],u=o[3],l={id:e+":"+i,css:s,media:c,sourceMap:u};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,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),a=n(1),s=r,c=Object(a.a)(i.a,o.a,o.b,!1,s,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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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),a=Object(o.a)(r.a,i.a,i.b,!1,null,null,null);t.a=a.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,a=e.converters,s=void 0===a?{}:a,c=e.handlers,u=void 0===c?{}:c,l=e.computed,f=e.methods,d=e.name,h=e.render,p=e.contextReady,g=e.template,v=e.mixins,m=void 0===v?[]:v,y=e.props,I=void 0===y?{}:y,M=i({},e,{props:I,data:function(){return i({},o(),{converters:s,handlers:u})},mixins:[r.a].concat(m),computed:l,methods:i({},f,{__initComponent:t,__contextReady:p})});return g||h||(M.render=function(){return null}),M.install=function(e){return e.use(d,M)},M}}])}))},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 la})),n.d(t,"b",(function(){return yt})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return Co})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return q})),n.d(t,"g",(function(){return gt})),n.d(t,"h",(function(){return O})),n.d(t,"i",(function(){return Yi})),n.d(t,"j",(function(){return he})),n.d(t,"k",(function(){return ht})),n.d(t,"l",(function(){return ce})),n.d(t,"m",(function(){return Z})),n.d(t,"n",(function(){return ne})),n.d(t,"o",(function(){return Hi})),n.d(t,"p",(function(){return ae})),n.d(t,"q",(function(){return ie})),n.d(t,"r",(function(){return o})),n.d(t,"s",(function(){return Ie})),n.d(t,"t",(function(){return le})),n.d(t,"u",(function(){return It})),n.d(t,"v",(function(){return bo})),n.d(t,"w",(function(){return _})),n.d(t,"x",(function(){return Et})),n.d(t,"y",(function(){return ke})),n.d(t,"z",(function(){return k})),n.d(t,"A",(function(){return x})),n.d(t,"B",(function(){return Y})),n.d(t,"C",(function(){return R})),n.d(t,"D",(function(){return D})),n.d(t,"E",(function(){return B})),n.d(t,"F",(function(){return F})),n.d(t,"G",(function(){return V})),n.d(t,"H",(function(){return nt})),n.d(t,"I",(function(){return P})),n.d(t,"J",(function(){return j})),n.d(t,"K",(function(){return Bt})),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,a=["https://nav.cn.ronghub.com","https://nav2-cn.ronghub.com"],s=["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,d=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},h=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=d(e);var i=this._rootStorage.get(r)||{};this._cache=new h(((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 m(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 y=function(){return y=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},y.apply(this,arguments)};function I(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function M(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}}function b(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}m(t,e)})(Error);var C,T=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()}))},A=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},_=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},w=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 E,N=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"}(E||(E={}));var S,O=E,D=function(e){return"string"==typeof e},x=function(e){return"boolean"==typeof e},R=function(e){return"number"==typeof e&&!isNaN(e)},k=function(e){return-1!==Object.prototype.toString.call(e).indexOf("Array")},L=function(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)},j=function(e){return D(e)&&e.length>0},P=function(e){return k(e)&&e.length>0},U=function(e){return"[object Object]"===Object.prototype.toString.call(e)},z=function(e){return"[object Function]"===Object.prototype.toString.call(e)},B=function(e){return void 0===e||"[object Undefined]"===Object.prototype.toString.call(e)},G=function(e){return"[object Null]"===Object.prototype.toString.call(e)},Y=function(e){return D(e)&&/https?:\/\//.test(e)},H=function(e){for(var t in e)return!0;return!1},F=function(e){return R(e)&&Object.prototype.hasOwnProperty.call(N,e)},$=function(e){var t=!1;return D(e)&&!/_/g.test(e)&&e.length<=20&&(t=!0),t},V=function(e){return R(e)&&Object.prototype.hasOwnProperty.call(O,e)},Q=function(e){var t=!1,n=!1,r=!1;if(U(e)){var i=Object.keys(e).length;for(var o in t=i>20,e)if(n||(n=D(o)&&!/^[A-Za-z0-9_=+-]+$/.test(o)),!r){var a=e[o];r=o.length>32||a.length>4096}}return{isExceedLimit:t,isIllgalEx:n,isExKeyOrValLengthExceedLimit:r}};!function(e){e[e.SEND=1]="SEND",e[e.RECEIVE=2]="RECEIVE"}(S||(S={}));var W,Z=S;!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"}(W||(W={}));var K,q=W;!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"}(K||(K={}));var J,X=K,ee={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"}(J||(J={}));var te,ne=J;!function(e){e[e.OPEN=1]="OPEN",e[e.CLOSE=2]="CLOSE"}(te||(te={}));var re,ie=te;!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"}(re||(re={}));var oe,ae=re;!function(e){e[e.ALL=1]="ALL",e[e.SINGAL=2]="SINGAL"}(oe||(oe={}));var se,ce=oe;!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 ue,le=se;!function(e){e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(ue||(ue={}));var fe,de,he,pe,ge=ue;!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"}(fe||(fe={})),function(e){e.IM="IM",e.RTC="RTC"}(de||(de={})),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"}(pe||(pe={}));var ve,me=pe;!function(e){e[e.GLOBAL=1]="GLOBAL",e[e.CUSTOM=2]="CUSTOM",e[e.THIRD_PARTY=3]="THIRD_PARTY"}(ve||(ve={}));var ye;!function(e){e[e.typing=0]="typing"}(ye||(ye={}));var Ie,Me,be,Ce,Te,Ae,_e;!function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE"}(Ie||(Ie={})),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"}(Me||(Me={})),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"}(be||(be={})),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"}(Ce||(Ce={})),function(e){e[e.RTC=0]="RTC",e[e.LIVE=2]="LIVE"}(Te||(Te={})),function(e){e[e.AUDIO_AND_VIDEO=0]="AUDIO_AND_VIDEO",e[e.AUDIO=1]="AUDIO"}(Ae||(Ae={})),function(e){e[e.ANCHOR=1]="ANCHOR",e[e.AUDIENCE=2]="AUDIENCE"}(_e||(_e={}));var we,Ee,Ne,Se={"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"}(we||(we={})),function(e){e[e.AnchorToViewer=1]="AnchorToViewer",e[e.ViewerToAnchor=2]="ViewerToAnchor"}(Ee||(Ee={})),function(e){e[e.KICK=0]="KICK",e[e.REFUSE=1]="REFUSE",e[e.COEXIST=2]="COEXIST"}(Ne||(Ne={}));var Oe="RC_Logs";function De(e){var t=e.target.result;if(1===e.oldVersion)try{t.deleteObjectStore(Oe)}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=y({},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,Oe,{indexs:[{indexName:"time",key:"time",unique:!1}],objectStoreParams:{autoIncrement:!0}})}var xe,Re=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,De(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 a=e._db.transaction([t],"readwrite").objectStore(t),s=IDBKeyRange.bound(r,i),c=a.index(n),u=[],l=c.openCursor(s);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}(),ke=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)}))},Le=function(){var e=ke();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},je=Le(),Pe={};function Ue(e){return 4-e}console&&((xe={})[fe.DEBUG]=console.debug.bind(console),xe[fe.INFO]=console.info.bind(console),xe[fe.WARN]=console.warn.bind(console),xe[fe.ERROR]=console.error.bind(console),xe[fe.FATAL]=console.log.bind(console),Pe=xe);var ze=[],Be=function(e){return D(e)||R(e)||B(e)||x(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)?de.RTC:de.IM);var i=Date.now(),o="";try{o=(o=JSON.stringify({message:n,userId:He.userId})).replace(/"/g,'""'),o='"'.concat(o,'"')}catch(e){et(he.G_UPLOAD_LOG_E,{name:e.name,message:e.message,stack:e.stack})}A(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,a="";for(o=0;o<e.length;o++){if(e.charCodeAt(o)>255?i+=r:i++,i>t)return a;a+=e.charAt(o)}return e}(o,1e3));var a=Ue(e),s={sessionId:je,time:i,level:a,content:"".concat(je,",").concat(Date.now(),",").concat(r,",").concat(a,",").concat(t,",").concat(o,"\n"),userId:He.userId};return ze.push(s),s}function Ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];console&&Pe[e]&&Pe[e].apply(Pe,b(["".concat(t,":")],n,!1))}var He={localLogLevel:fe.WARN,userId:""},Fe=-1;Fe>=0&&(clearInterval(Fe),Fe=-1),"undefined"!=typeof window&&window&&window.indexedDB&&(Fe=setInterval((function(){ze.length&&function(e){return I(this,void 0,void 0,(function(){var t,n,r;return M(this,(function(i){switch(i.label){case 0:if(!(t=Re.getInstance()))return[3,6];i.label=1;case 1:return i.trys.push([1,4,,5]),[4,t.addList(Oe,e)];case 2:return n=i.sent(),[4,t.getCount(Oe,"time")];case 3:return i.sent()>1e5&&t.removeFirstData(Oe,"time",2e3),[2,n];case 4:return r=i.sent(),et(he.G_UPLOAD_LOG_E,{name:r.name,message:r.message,stack:r.stack}),[2,!1];case 5:return[3,7];case 6:return Re.init(),[2,!1];case 7:return[2]}}))}))}(ze.slice()).then((function(e){e&&(ze=[])}))}),3e3));var $e=Date.now(),Ve=0;function Qe(){var e=Date.now();return $e!==e&&($e=e,Ve=0),"".concat($e,"-").concat(Ve++)}function We(e){!e.customLogPrint&&delete e.customLogPrint,He=Object.assign(He,e)}function Ze(e,t,n,r){if(void 0===n&&(n={}),void 0===r&&(r={}),e>fe.DEBUG&&(r&&(n=Object.assign(n,r)),Ge(e,t,n,null==r?void 0:r.logSource)),e>=He.localLogLevel){var i="".concat((new Date).toISOString(),"[").concat(t,"][").concat(fe[e],"]"),o="".concat(i," - ").concat(Be(n));He.customLogPrint?He.customLogPrint(e,o):Ye(e,i,Be(n))}}var Ke,qe=Ze.bind(null,fe.DEBUG),Je=Ze.bind(null,fe.INFO),Xe=Ze.bind(null,fe.WARN),et=Ze.bind(null,fe.ERROR),tt=Ze.bind(null,fe.FATAL),nt=Object.freeze({__proto__:null,sessionId:je,logLevelTransformer:Ue,formatLogObj:Be,insertIntoLogCache:Ge,_defaultStdout:Ye,ID:Qe,init:We,log:Ze,debug:qe,info:Je,warn:Xe,error:et,fatal:tt}),rt=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 a=r.match(i[o]);if(a){n=o,t=a[1]||a[2];break}}return{type:n||"UnKonw",version:t||"UnKonw"}},it=function(e){var t="RCDeviceId",n=d(e),r="",i=n.get(t);return i?r=i:(r=Le(),n.set(t,r)),r},ot=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=[],a=[],s=function(){if(a.length>0){var e=a.join("");if(a=[],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)a.push(e.charAt(c++));else if(u.length<4)a.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)a.push(e.substr(c,u.length)),c+=u.length;else{s();var d=String.fromCharCode(t.dataType.Compressed|l.length<<2|f.length);o.push(d+l+f),c+=u.length}}}s();var h=t.numberEncode(e.length),p=String.fromCharCode(t.dataType.Tail|h.length);return o.push(p+h),o.join("")},e.uncompress=function(e){var t=this,n=0,r="";e:do{var i=e.charCodeAt(n++),o=i&t.dataType.Mark,a=15&i,s=void 0;switch(o){case t.dataType.Compressed:var c=a>>2,u=3&a;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((s=t.numberDecode(e.substr(n,a)))!==r.length)throw console.log(r.length),console.log(s),new Error("Data parsing error,at "+n);n+=a;break e;case t.dataType.NormalExt:s=t.numberDecode(e.substr(n,a)),r+=e.substr(n+=a,s),n+=s;break;case t.dataType.Normal:r+=e.substr(n,a),n+=a;break;case t.dataType.Mark:if(a>10)throw new Error("Data parsing error,at "+n);r+=e.substr(n,16+a),n+=16+a;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,a=0,s=i.length;a<s;a++){var c=i[a],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,d=f;d<l&&t.charAt(c+d)===t.charAt(n+d);d++)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}(),at=function(e){return D(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=it(e.runtime),this.logSwitch=e.logSwitch;var t=rt(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,a=e.userId;if(t){var s=t.url,c=t.level,u=t.itv,l=t.times;this.logUrl=s||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=it(r);var f=rt(r);this.deviceInfo="".concat(f.type,"|").concat(f.version,"|").concat(o)}a&&(this.info.userId=a)},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=ot.compress(t.map((function(e){return e.content})).join("")),i=at(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,a,s,c,u,l,f,d=this;return M(this,(function(h){switch(h.label){case 0:return n=t.startTime,r=t.endTime,i=t.platform,o=t.logId,a=t.uri,s=Re.getInstance(),"web"===i.toLowerCase()&&s?n>r?[2]:[4,s.getRangeData(Oe,"time",n,r)]:[2];case 1:return c=(c=h.sent()).filter((function(e){return!e.userId||e.userId===d.info.userId})),u=ot.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=a||d.logUrl,n=at(t)?"":"https://",r="".concat(n).concat(t,"?version=").concat(d.info.version,"&appkey=").concat(d.info.appkey,"&userId=").concat(d.info.userId,"&logId=").concat(o,"&deviceId=").concat(d.deviceId,"&deviceInfo=").concat(d.deviceInfo,"&platform=Web"),i=5e3*(l-1);return l++,new Promise((function(t,n){setTimeout((function(){e.reportSwitch&&d.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}(),ct=[],ut=-1;function lt(e){Ke&&Ke.updateUploadLogAttr(e)}function ft(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:[je,Date.now(),r||de.IM,e,t,i].join()+"\n"};ct.push(o),ct.length>=600&&(ct=ct.slice(-500))}function dt(){if(ut>=0&&(clearTimeout(ut),ut=-1),Ke&&Ke.logSwitch&&st.reportSwitch){var e=Ke.itv*Math.pow(2,st.currentRTTimes-1);st.currentRTTimes<Ke.times&&st.currentRTTimes++,ut=setTimeout((function(){var e=ct.filter((function(e){return e.level<=Ke.level}));0===e.length?dt():Ke.reportRealtimeLog(e).then((function(){ct=[],Je(he.G_UPLOAD_LOG_S,"report real-time log success"),dt()})).catch((function(e){Je(he.G_UPLOAD_LOG_E,"report real-time log error -> "+e),dt()}))}),1e3*e)}}var ht=function(){function e(e,t,n){this.tagId=e,this.logSource=t,this.initiator=n,this._localLogLevel=fe.WARN,this.debug=this.log.bind(this,fe.DEBUG),this.info=this.log.bind(this,fe.INFO),this.warn=this.log.bind(this,fe.WARN),this.error=this.log.bind(this,fe.ERROR),this.fatal=this.log.bind(this,fe.FATAL),this.reportLog=ft}return e.prototype.setLogLevel=function(e){this._localLogLevel="number"!=typeof e?fe.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>fe.DEBUG&&Ge(e,this.tagId,t.map(Be).join(" ")),!(e<this._localLogLevel)){var r="".concat((new Date).toISOString(),"[").concat(this.tagId,"][").concat(fe[e],"]"),i="".concat(r," - ").concat(t.map(Be).join(" "));this._customLogPrint?this._customLogPrint(e,i):this._stdout?this._stdout(e,i):Ye.apply(void 0,b([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}(),pt=new ht("RCEngine"),gt=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],a=o.target,s=o.once,c=o.listener;s&&r.splice(i,1);try{c.call.apply(c,b([a],t,!1))}catch(e){pt.error(e)}}},e.prototype.removeAll=function(e){delete this._map[e]},e.prototype.clear=function(){Object.keys(this._map).forEach(this.removeAll,this)},e}(),vt="undefined"!=typeof window&&window?(window.__RCVersionInfo||(window.__RCVersionInfo={}),window.__RCVersionInfo):{};vt.engine="5.4.3";var mt,yt,It=function(){function e(){}return e.add=function(e,t){vt[e]=t},e.validEngine=function(e){var t=e.match(/\d+\.\d+\.\d+/);if(!t)return pt.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 vt.engine.match(/\d+\.\d+\.\d+/)[0].split(".").map((function(e){return e.padStart(3,"0")})).join("")>=n},e.getInfo=function(){return vt},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 Mt,bt,Ct,Tt,At,_t=((mt={})[yt.STRING]=j,mt[yt.ONLY_STRING]=D,mt[yt.NUMBER]=R,mt[yt.BOOLEAN]=function(e){return"boolean"==typeof e},mt[yt.OBJECT]=U,mt[yt.ARRAY]=k,mt[yt.CALLBACK]=function(e){var t=!0;return U(e)||(t=!1),(e=e||{}).onSuccess&&!z(e.onSuccess)&&(t=!1),e.onError&&!z(e.onError)&&(t=!1),t},mt[yt.CHANNEL_ID]=$,mt[yt.CONVERSATION]=function(e){var t=!0;return U(e)||(t=!1),D(e.targetId)||(t=!1),F(e.conversationType)||(t=!1),B(e.channelId)||$(e.channelId)||(t=!1),t},mt),wt=function(e){function t(t){var n=e.call(this,t)||this;return n.name="RCAssertError",n}return m(t,e),t}(Error),Et=function(e,t,n,r){if(void 0===r&&(r=!1),!Nt(e,t,n,r))throw new wt("'".concat(e,"' is invalid: ").concat(JSON.stringify(t)))},Nt=function(e,t,n,r){void 0===r&&(r=!1),n=_t[n]||n;var i=r&&!n(t)||!r&&!(B(t)||null===t||n(t));return i&&pt.error("'".concat(e,"' is invalid: ").concat(JSON.stringify(t))),!i},St=function(e){if(!U(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)},Ot=function(e,t){var n=Math.floor(1e3*Math.random()%1e4),r=ke(),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(),a="";if(t){var s=t.split(".");a="."+s[s.length-1]}return"".concat(e,"__RC-").concat(i,"_").concat(n,"_").concat(o).concat(r).concat(a)},Dt=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=e.threadId,r=e.apnsCollapseId,i=e.category,o=e.richMediaUri,a=t.channelIdMi,s=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 d={};d.collapse_key=null==l?void 0:l.collapseKey,d.imageUrl=null==l?void 0:l.imageUrl;var h=null==l?void 0:l.priority;h&&!["high","normal"].includes(h)&&(h="normal"),d.priority=h;var p=[{HW:{channelId:s||""}},{MI:{channelId:a||""}},{OPPO:{channelId:c||""}},{VIVO:{classification:u||""}},{APNS:f},{FCM:d}];return JSON.stringify(p)},xt=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,a,s=Object.keys(e);if(0!==s.length){var c=s[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===(a=e[c])||void 0===a?void 0:a.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){pt.error("Wrong format for pushConfigs field! content: "+e)}return{iOSConfig:n,androidConfig:r}},Rt=function(e){var t=/^[A-Za-z0-9_=+-]+$/.test(e),n=e.length;return t&&n<=128&&n>=1},kt=function(e){var t=e.length;return t<=4096&&t>=1},Lt=function(e,t,n){t=t||function(){};var r=(n=n||{}).isReverse;U(e)&&function(){for(var n in e)t(e[n],n,e)}(),(k(e)||D(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)}()},jt=function(e,t){return Lt(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 Lt(e,(function(e,r){t===e&&(n=r)})),n},Ut=function(e,t){var n=[];return Lt(e,(function(e){n.push(e)})),-1!==Pt(n,t)},zt=function(e){return JSON.parse(JSON.stringify(e))},Bt=function(){return"undefined"!=typeof RCCppEngine},Gt=function(e){switch(e){case ee.SERVER_UNAVAILABLE:return q.SERVER_UNAVAILABLE;case ee.TOKEN_INCORRECT:return q.RC_CONN_USER_OR_PASSWD_ERROR;case ee.REDIRECT:return q.RC_CONN_REDIRECTED;case ee.APP_BLOCK_OR_DELETE:return q.RC_CONN_APP_BLOCKED_OR_DELETED;case ee.BLOCK:return q.RC_CONN_USER_BLOCKED;case ee.TOKEN_EXPIRE:return q.RC_CONN_USER_OR_PASSWD_ERROR;case ee.HOSTNAME_ERROR:return q.HOSTNAME_ERROR;case ee.HASOHTERSAMECLIENTONLINE:return q.HAS_OHTER_SAME_CLIENT_ON_LINE;case ee.APP_AUTH_NOT_PASS:return q.RC_APP_AUTH_NOT_PASS;case ee.OTP_USED:return q.RC_OTP_USED;case ee.PLATFORM_ERROR:return q.RC_PLATFORM_ERROR;default:return q.RC_NET_UNAVAILABLE}},Yt=function(e){var t;if("object"==typeof e&&null!==e)if(Array.isArray(e))for(var n in t=[],e)t.push(Yt(e[n]));else for(var n in t={},e)t[n]=Yt(e[n]);else t=e;return t},Ht=function(e){var t;try{t=Yt(e)}catch(o){pt.error("clone err:",o),t=JSON.parse(JSON.stringify(e))}return t},Ft=function(e){var t={},n=JSON.parse(e);return Lt(n,(function(e,n){t[n]=e.v})),t},$t={_delayTime:0,setTime:function(e){var t=(new Date).getTime();$t._delayTime=t-e},getTime:function(){var e=$t._delayTime;return(new Date).getTime()-e}},Vt=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"}(Mt||(Mt={})),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"}(bt||(bt={})),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"}(Ct||(Ct={})),function(e){e.PUB="pub",e.QUERY="qry"}(Tt||(Tt={})),function(e){e[e.V4=4]="V4",e[e.V3=3]="V3"}(At||(At={}));var Qt,Wt=function(){function e(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=Mt.AT_LEAST_ONCE),void 0===r&&(r=!1),this._retain=!1,this.qos=Mt.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}(),Zt=function(){function e(){}return e.writeUTF=function(e,t){var n=[],r=0;if(D(e))for(var i=0,o=e.length;i<o;i++){var a=e.charCodeAt(i);a>=0&&a<=127?(r+=1,n.push(a)):a>=128&&a<=2047?(r+=2,n.push(192|31&a>>6),n.push(128|63&a)):a>=2048&&a<=65535&&(r+=3,n.push(224|15&a>>12),n.push(128|63&a>>6),n.push(128|63&a))}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,a="";++i<o.length;){var s=Number(o[i]);if(s===(127&s)||(240==(240&s)?s=(s=(s=(s^=240)<<6|128^o[++i])<<6|128^o[++i])<<6|128^o[++i]:224==(224&s)?s=(s=(s^=224)<<6|128^o[++i])<<6|128^o[++i]:192==(192&s)&&(s=(s^=192)<<6|128^o[++i])),!isFinite(s)||s<0||s>1114111||Math.floor(s)!==s)throw RangeError("Invalid code point: "+s);s<=65535?r.push(s):(t=(s-=65536)>>10|55296,n=s%1024|56320,r.push(t,n)),(i+1===o.length||r.length>16384)&&(a+=String.fromCharCode.apply(null,r),r.length=0)}return a},e}(),Kt=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 Zt.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=Zt.writeUTF(e);this._pool=this._pool.concat(t),this._writen+=t.length},e.prototype.getBytesArray=function(){return this._pool},e}(),Jt="UpStreamMessage",Xt="PushExtra",en="DownStreamMessage",tn="DownStreamMessages",nn="SessionsAttQryInput",rn="SessionsAttOutput",on="SyncRequestMsg",an="ChrmPullMsg",sn="NotifyMsg",cn="HistoryMsgInput",un="HistoryMsgOuput",ln="RelationQryInput",fn="RelationsOutput",dn="DeleteSessionsInput",hn="SessionInfo",pn="DeleteSessionsOutput",gn="RelationsInput",vn="DeleteMsgInput",mn="CleanHisMsgInput",yn="SessionMsgReadInput",In="ChrmInput",Mn="ChrmOutput",bn="QueryChatRoomInfoInput",Cn="QueryChatRoomInfoOutput",Tn="RtcInput",An="RtcUserListOutput",_n="SetUserStatusInput",wn="RtcSetDataInput",En="RtcUserSetDataInput",Nn="RtcDataInput",Sn="RtcSetOutDataInput",On="MCFollowInput",Dn="RtcTokenOutput",xn="RtcQryOutput",Rn="RtcQryUserOutDataInput",kn="RtcUserOutDataOutput",Ln="RtcQueryListInput",jn="RtcRoomInfoOutput",Pn="RtcValueInfo",Un="RtcKeyDeleteInput",zn="GetQNupTokenInput",Bn="GetQNupTokenOutput",Gn="GetQNdownloadUrlInput",Yn="GetDownloadUrlInput",Hn="GetQNdownloadUrlOutput",Fn="GetDownloadUrlOutput",$n="ChrmKVEntity",Vn="SetChrmKV",Qn="SetChrmKVS",Wn="DeleteChrmKVS",Zn="ChrmKVOutput",Kn="ChrmKVSOutput",qn="ChrmKVSVersionEntity",Jn="ChrmKVSOutputEntity",Xn="QueryChrmKV",er="SetUserSettingInput",tr="SetUserSettingOutput",nr="PullUserSettingInput",rr="PullUserSettingOutput",ir="UserSettingNotification",or="SessionReq",ar="SessionStates",sr="SessionState",cr="SessionStateItem",ur="SessionStateModifyReq",lr="SessionStateModifyResp",fr="GroupUnpushQuery",dr="GroupUnpushSet",hr="GroupUnpushResult",pr="GrpReadReceiptMsg",gr="GrpReadReceiptQryReq",vr="GrpReadReceiptQryResp",mr="GrpMsgReadUser",yr="SessionTagAddInput",Ir="SessionTagItem",Mr="SessionTagDelInput",br="SessionDisTagReq",Cr="ReportSDKInput",Tr="ReportSDKOutput",Ar="UltraGrpPullSes",_r="UltraGrpPullMsg",wr="MsgChangeReq",Er="QueryMsgChange",Nr="MsgChange",Sr="MsgChangeList",Or="MsgQuery",Dr="MessageQueryInfo",xr="MsgQueryAck",Rr="OperateStatus",kr="OperateStatusNotify",Lr="OperateInfo",jr="OperateSummary",Pr="RtcNotifyMsg",Ur="RtcPullKV",zr="RtcKVOutput",Br="RtcQueryUserJoinedInput",Gr="RtcQueryUserJoinedOutput",Yr="RtcViewerJoinedOutput",Hr="RtcInviteInput",Fr="RtcCancelInviteInput",$r="RtcInviteAnswerInput",Vr="RtcEndInviteInput",Qr="SetRtcRoomIdInput",Wr="SetRtcRoomIdOutput",Zr=((Qt={})[Jt]=["sessionId","classname","content","pushText","userId","configFlag","appData","extraContent","pushExt","busChannel"],Qt[tn]=["list","syncTime","finished","broadcastSyncTime"],Qt[en]=["fromUserId","type","groupId","classname","content","dataTime","status","msgId","extraContent","pushContent","configFlag","pushExt","busChannel","extStatus","toUserId","groupUnpush"],Qt[Xt]=["title","templateIdNoUse","pushId","pushConfigs","templateId"],Qt[nn]=["nothing"],Qt[rn]=["inboxTime","sendboxTime","totalUnreadCount"],Qt[on]=["syncTime","ispolling","isweb","isPullSend","isKeeping","sendBoxSyncTime","broadcastSyncTime"],Qt[an]=["syncTime","count"],Qt[sn]=["type","time","chrmId"],Qt[cn]=["targetId","time","count","order","busChannel"],Qt[un]=["list","syncTime","hasMsg"],Qt[ln]=["type","count","startTime","order"],Qt[fn]=["info","isFinished"],Qt[dn]=["sessions"],Qt[hn]=["type","channelId","busChannel"],Qt[pn]=["nothing"],Qt[gn]=["type","msg","count","busChannel","startTime","endTime"],Qt[vn]=["type","conversationId","msgs","busChannel"],Qt[mn]=["targetId","dataTime","conversationType","busChannel"],Qt[yn]=["type","msgTime","channelId","busChannel"],Qt[In]=["nothing"],Qt[Mn]=["nothing","sessionId","joinTime"],Qt[bn]=["count","order"],Qt[Cn]=["userTotalNums","userInfos"],Qt[zn]=["type","key","httpMethod","queryString"],Qt[Gn]=["type","key","fileName"],Qt[Yn]=["type","key","fileName"],Qt[Bn]=["deadline","token","bosToken","bosDate","path","osskeyId","ossPolicy","ossSign","ossBucketName"],Qt[Hn]=["downloadUrl"],Qt[Fn]=["downloadUrl"],Qt[$n]=["key","value","status","timestamp","uid","version"],Qt[Vn]=["entry","bNotify","notification","type"],Qt[Qn]=["entry","bNotify","notification","type"],Qt[Wn]=["entry","bNotify","notification","type"],Qt[Zn]=["entries","bFullUpdate","syncTime"],Qt[Kn]=["timestamp","errorKeys","keysVersion"],Qt[qn]=["version","key"],Qt[Jn]=["key","errorCode"],Qt[Xn]=["timestamp"],Qt[er]=["version","value"],Qt[tr]=["version","reserve"],Qt[nr]=["version","reserve"],Qt[rr]=["items","version"],Qt.UserSettingItem=["targetId","type","key","value","version","status","tags"],Qt[or]=["time"],Qt[ar]=["version","state"],Qt[sr]=["type","channelId","time","stateItem","busChannel"],Qt[cr]=["sessionStateType","value","tags"],Qt[ur]=["version","state"],Qt[lr]=["version"],Qt[dr]=["busChannel","unpushLevel"],Qt[fr]=["busChannel"],Qt[hr]=["groupId","busChannel","unpushLevel"],Qt[pr]=["msgId","busChannel"],Qt[gr]=["msgId","busChannel"],Qt[vr]=["totalMemberNum","list"],Qt[mr]=["readTime","userId"],Qt[yr]=["version","tags"],Qt[Ir]=["tagId","name","createdTime","isTop"],Qt[Mr]=["version","tags"],Qt[br]=["tagId"],Qt[ir]=["version","reserve"],Qt[Cr]=["sdkInfo"],Qt[Tr]=["nothing"],Qt[Ar]=["syncTime","isEraseMsgContent"],Qt[_r]=["syncTime"],Qt[wr]=["fromUserId","targetId","type","busChannel","msgUID","msgTime","content"],Qt[Er]=["syncTime"],Qt[Sr]=["list","syncTime","hasNext"],Qt[Nr]=["targetId","type","time","changeType","msgUID","msgTime","busChannel","isAdmin","isDel","operatorId","subChangeType"],Qt[Or]=["targetId","type","query"],Qt[Dr]=["msgTime","msgUID","busChannel"],Qt[xr]=["list"],Qt[Rr]=["targetId","type","opType","busChannel"],Qt[kr]=["type","notifyType","info","summary"],Qt[Lr]=["targetId","busChannel","userId","opType","optime"],Qt[jr]=["targetId","busChannel","count","opType"],Qt[Tn]=["roomType","broadcastType","extraInnerData","needSysChatroom","identityChangeType","joinType"],Qt[An]=["users","token","sessionId","roomInfo"],Qt[_n]=["status"],Qt[wn]=["interior","target","key","value","objectName","content"],Qt[En]=["valueInfo","objectName","content"],Qt[Nn]=["interior","target","key","objectName","content"],Qt[Sn]=["target","valueInfo","objectName","content"],Qt[On]=["state"],Qt[Dn]=["rtcToken"],Qt[xn]=["outInfo"],Qt[Rn]=["userId"],Qt[kn]=["user"],Qt[Ln]=["order"],Qt[jn]=["roomId","roomData","userCount","list"],Qt[Pn]=["key","value"],Qt[Un]=["key"],Qt[Pr]=["type","time","roomId"],Qt[Ur]=["timestamp","roomId"],Qt[zr]=["entries","bFullUpdate","syncTime"],Qt[Br]=["userId"],Qt[Gr]=["info"],Qt[Hr]=["invitedUserId","timeoutTime","invitedRoomId","inviteInfo","inviteSessionId"],Qt[Fr]=["invitedUserId","invitedRoomId","inviteInfo","inviteSessionId"],Qt[$r]=["inviteUserID","answerCode","inviteRoomId","inviteSessionId","content","key","value"],Qt[Vr]=["inviteRoomId","inviteSessionId","inviteContent","inviteRoomKeys"],Qt[Qr]=["rtcRoomId"],Qt[Wr]=["nothing"],Qt),Kr={},qr=function(e){var t=Zr[e];Kr[e]=function(){for(var e={},n={getArrayData:function(){return e}},r=function(r){var i=t[r],o="set".concat(T(i,0,1));n[o]=function(t){e[i]=t}},i=0;i<t.length;i++)r(i);return n},Kr[e].decode=function(e){var t={};D(e)&&(e=JSON.parse(e));var n=function(n){var r="get".concat(T(n,0,1));t[n]=e[n],t[r]=function(){return e[n]}};for(var r in e)n(r);return t}};for(var Jr in Zr)qr(Jr);Kr.getModule=function(e){return Kr[e]()};var Xr,ei,ti,ni,ri,ii,oi,ai="\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(sn," {\n required int32 type = 1;\n optional int64 time = 2;\n optional string chrmId=3;\n }\n message ").concat(on," {\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(Jt," {\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(Xt," {\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(tn," {\n repeated DownStreamMessage list = 1;\n required int64 syncTime = 2;\n optional bool finished = 3;\n optional int64 broadcastSyncTime = 4;\n }\n message ").concat(en," {\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(zn," {\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(Yn," {\n required FileType type = 1;\n required string key = 2;\n optional string fileName = 3;\n }\n message ").concat(Bn," {\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(Hn," {\n required string downloadUrl = 1;\n }\n message ").concat(Fn," {\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(In," {\n required int32 nothing = 1;\n }\n message ").concat(Mn," {\n required int32 nothing = 1;\n optional string sessionId = 2;\n optional int64 joinTime = 3;\n }\n message ").concat(an," {\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(ln,"\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(gn,"\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(fn,"\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(mn,"\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(bn,"\n {\n required int32 count= 1;\n optional int32 order= 2;\n }\n\n message ").concat(Cn,"\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(On,"\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(cn,"\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(un,"\n {\n repeated DownStreamMessage list=1;\n required int64 syncTime=2;\n required int32 hasMsg=3;\n }\n message ").concat(Ln,"{\n optional int32 order=1;\n }\n\n message ").concat(Un,"{\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(An,"{\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(Tn,"{\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(xn,"{\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(wn,"{\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(En," {\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(Dn,"{\n required string rtcToken=1;\n }\n enum targetType {\n ROOM =1 ;\n PERSON = 2;\n }\n message ").concat(Sn,"{\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(Rn,"{\n repeated string userId = 1;\n }\n message ").concat(kn,"{\n repeated RtcUserInfo user = 1;\n }\n message ").concat(nn,"{\n required int32 nothing = 1;\n }\n message ").concat(rn,"{\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(dn,"\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(pn,"\n {\n optional int32 nothing=1;\n }\n message ").concat(vn,"\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(Vn," {\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(Wn," {\n repeated ChrmKVEntity entry = 1;\n optional bool bNotify = 2;\n optional UpStreamMessage notification = 3;\n optional ChannelType type = 4;\n }\n message ").concat(Zn," {\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(Kn," {\n repeated ChrmKVSOutputEntity errorKeys = 1;\n repeated ChrmKVSVersionEntity keysVersion = 2;\n }\n message ").concat(Jn,"\n {\n optional string key = 1;\n optional int32 errorCode = 2;\n }\n message ").concat(Xn," {\n required int64 timestamp = 1;\n }\n message ").concat(er," {\n required int64 version=1;\n required string value=2;\n }\n message ").concat(tr," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(nr," {\n required int64 version=1;\n optional bool reserve=2;\n }\n message ").concat(rr," {\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(or," {\n required int64 time = 1;\n }\n message ").concat(ar," {\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(cr," {\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(ur," {\n required int64 version=1;\n repeated SessionState state= 2;\n }\n message ").concat(fr," {\n optional string busChannel = 1;\n }\n message ").concat(dr,"{\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(lr," {\n required int64 version=1;\n }\n message ").concat(pr," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(gr," {\n repeated string msgId=1; //已读消息ID\n optional string channelId = 2; // 该消息所属会话的业务标识\n }\n message ").concat(vr," {\n required int32 totalMemberNum = 1;//群内总人数\n repeated GrpMsgReadUser list = 2;//已读用户列表(list复类型)\n }\n message ").concat(mr," {\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(Ir," {\n required string tagId=1;\n optional string name=2;\n optional int64 createdTime=3;\n optional bool isTop=4;\n }\n message ").concat(Mr," {\n required int64 version=1;\n repeated SessionTagItem tags=2;\n }\n message ").concat(br," {\n repeated string tagId=1;\n }\n message ").concat(ir," {\n required int64 version=1;\n required bool reserve=2;\n }\n message ").concat(Cr,' {\n required string sdkInfo=1; // 用户集成的 sdk 信息,json 格式 {"web-rtc": "4.0.3.7"}\n }\n message ').concat(Tr,"\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(Ur,"\n {\n required int64 timestamp = 1;\n required string roomId = 2;\n }\n message ").concat(zr,"\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(Br,"\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(Yr,"\n {\n required string rtcToken=1;\n repeated RtcKVEntity entries = 2;//KV属性对象集合\n optional int64 syncTime = 3;//所有属性的最大时间戳(下次拉取KV时用)。\n }\n message ").concat(Hr,"\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(Fr,"\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($r,"\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(Vr,"\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(Ar,"\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(wr,"\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(Er," //查询入参\n {\n required int64 syncTime = 1;//同步时间戳\n }\n message ").concat(Sr," //应答结果\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(Or," //请求\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(xr," //应答\n {\n repeated DownStreamMessage list = 1;//消息\n }\n message ").concat(Rr," //客户端发送\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(kr," //服务端发送\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(Lr," {\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(jr," {\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(Wr,"\n {\n required int32 nothing = 1; //用于占位\n }\n}\n"),si=(Xr=ai,ei=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=s[e])?r:(n=i(e,e<0?-1:0,!1),o&&(s[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 M}else{if(-d>=e)return b;if(e+1>=d)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,a,s,c,l,f,d;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(a=r(u(n,8)),s=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?(d=r(u(n,l)),s=s.mul(d).add(r(f))):s=(s=s.mul(a)).add(r(f));return s.unsigned=t,s}function a(t){return t instanceof e?t:"number"==typeof t?r(t):"string"==typeof t?o(t):i(t.low,t.high,t.unsigned)}var s,c,u,l,f,d,h,p,g,v,m,y,I,M,b,C;return e.prototype.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=t,s={},c={},e.fromInt=n,e.fromNumber=r,e.fromBits=i,u=Math.pow,e.fromString=o,e.fromValue=a,d=(f=(l=4294967296)*l)/2,h=n(16777216),p=n(0),e.ZERO=p,g=n(0,!0),e.UZERO=g,v=n(1),e.ONE=v,m=n(1,!0),e.UONE=m,y=n(-1),e.NEG_ONE=y,I=i(-1,2147483647,!1),e.MAX_VALUE=I,M=i(-1,-1,!0),e.MAX_UNSIGNED_VALUE=M,b=i(0,-2147483648,!1),e.MIN_VALUE=b,(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,a,s,c,l;if((e=e||10)<2||e>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())return this.eq(b)?(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),a=this,s="";;){if(c=a.div(o),l=(a.sub(c.mul(o)).toInt()>>>0).toString(e),(a=c).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},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(b)?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=a(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=a(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(b)?b:this.not().add(v)},C.neg=C.negate,C.add=function(e){var n,r,o,s,c,u,l,f,d,h,p;return t(e)||(e=a(e)),n=this.high>>>16,r=65535&this.high,o=this.low>>>16,s=65535&this.low,c=e.high>>>16,u=65535&e.high,l=e.low>>>16,f=0,d=0,h=0,p=0,h+=(p+=s+(65535&e.low))>>>16,d+=(h+=o+l)>>>16,f+=(d+=r+u)>>>16,f+=n+c,i((h&=65535)<<16|(p&=65535),(f&=65535)<<16|(d&=65535),this.unsigned)},C.subtract=function(e){return t(e)||(e=a(e)),this.add(e.neg())},C.sub=C.subtract,C.multiply=function(e){var n,o,s,c,u,l,f,d,g,v,m,y;return this.isZero()?p:(t(e)||(e=a(e)),e.isZero()?p:this.eq(b)?e.isOdd()?b:p:e.eq(b)?this.isOdd()?b:p:this.isNegative()?e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg():e.isNegative()?this.mul(e.neg()).neg():this.lt(h)&&e.lt(h)?r(this.toNumber()*e.toNumber(),this.unsigned):(n=this.high>>>16,o=65535&this.high,s=this.low>>>16,c=65535&this.low,u=e.high>>>16,l=65535&e.high,f=e.low>>>16,g=0,v=0,m=0,y=0,m+=(y+=c*(d=65535&e.low))>>>16,v+=(m+=s*d)>>>16,m&=65535,v+=(m+=c*f)>>>16,g+=(v+=o*d)>>>16,v&=65535,g+=(v+=s*f)>>>16,v&=65535,g+=(v+=c*l)>>>16,g+=n*d+o*f+s*l+c*u,i((m&=65535)<<16|(y&=65535),(g&=65535)<<16|(v&=65535),this.unsigned)))},C.mul=C.multiply,C.divide=function(e){var n,i,o,s,c,l,f;if(t(e)||(e=a(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 m;o=g}else{if(this.eq(b))return e.eq(v)||e.eq(y)?b:e.eq(b)?v:(n=this.shr(1).div(e).shl(1)).eq(p)?e.isNegative()?v:y:(i=this.sub(e.mul(n)),o=n.add(i.div(e)));if(e.eq(b))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=(s=Math.ceil(Math.log(n)/Math.LN2))<=48?1:u(2,s-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=a(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=a(e)),i(this.low&e.low,this.high&e.high,this.unsigned)},C.or=function(e){return t(e)||(e=a(e)),i(this.low|e.low,this.high|e.high,this.unsigned)},C.xor=function(e){return t(e)||(e=a(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}(),ti=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("")+s.apply(String,e):(e.length+arguments.length>1024&&(t.push(s.apply(String,e)),e.length=0),void Array.prototype.push.apply(e,arguments))}}function r(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)}function i(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=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?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}var o,a,s,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?a: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}),a=new ArrayBuffer(0),s=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,a,s,c,u;for(("boolean"==typeof t||"string"!=typeof t)&&(r=n,n=t,t=void 0),i=0,a=0,s=e.length;s>a;++a)l.isByteBuffer(e[a])||(e[a]=l.wrap(e[a],t)),(o=e[a].limit-e[a].offset)>0&&(i+=o);if(0===i)return new l(0,n,r);for(u=new l(i,n,r),a=0;s>a;)(o=(c=e[a++]).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,a;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,a=0;a<e.length;++a)i.view[a]=e[a]}return i},o.writeBitSet=function(e,t){var n,r,i,o,a,s,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,a=0,t+=this.writeVarint32(i,t);o--;)n=1&!!e[a++]|(1&!!e[a++])<<1|(1&!!e[a++])<<2|(1&!!e[a++])<<3|(1&!!e[a++])<<4|(1&!!e[a++])<<5|(1&!!e[a++])<<6|(1&!!e[a++])<<7,this.writeByte(n,t++);if(i>a){for(s=0,n=0;i>a;)n|=(1&!!e[a++])<<s++;this.writeByte(n,t++)}return c?(this.offset=t,this):t-r},o.readBitSet=function(e){var t,n,r,i,o,a,s,c=void 0===e;for(c&&(e=this.offset),i=(r=(n=this.readVarint32(e)).value)>>3,o=0,a=[],e+=n.length;i--;)t=this.readByte(e++),a[o++]=!!(1&t),a[o++]=!!(2&t),a[o++]=!!(4&t),a[o++]=!!(8&t),a[o++]=!!(16&t),a[o++]=!!(32&t),a[o++]=!!(64&t),a[o++]=!!(128&t);if(r>o)for(s=0,t=this.readByte(e++);r>o;)a[o++]=!!(1&t>>s++);return c&&(this.offset=e),a},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,a=void 0===n;if(a&&(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),a&&(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,a=void 0===n;if(a&&(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),a&&(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,a,s,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,a=t.shiftRightUnsigned(56).toInt()>>>0,(n+=r)>(s=this.buffer.byteLength)&&this.resize((s*=2)>n?s:n),n-=r,r){case 10:this.view[n+9]=1&a>>>7;case 9:this.view[n+8]=9!==r?128|a:127&a;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,a,s,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,a=0,r=127&(a=this.view[t++]),128&a&&(r|=(127&(a=this.view[t++]))<<7,(128&a||this.noAssert&&void 0===a)&&(r|=(127&(a=this.view[t++]))<<14,(128&a||this.noAssert&&void 0===a)&&(r|=(127&(a=this.view[t++]))<<21,(128&a||this.noAssert&&void 0===a)&&(i=127&(a=this.view[t++]),(128&a||this.noAssert&&void 0===a)&&(i|=(127&(a=this.view[t++]))<<7,(128&a||this.noAssert&&void 0===a)&&(i|=(127&(a=this.view[t++]))<<14,(128&a||this.noAssert&&void 0===a)&&(i|=(127&(a=this.view[t++]))<<21,(128&a||this.noAssert&&void 0===a)&&(o=127&(a=this.view[t++]),(128&a||this.noAssert&&void 0===a)&&(o|=(127&(a=this.view[t++]))<<7,128&a||this.noAssert&&void 0===a))))))))))throw Error("Buffer overrun");return s=e.fromBits(r|i<<28,i>>>4|o<<24,!1),c?(this.offset=t,s):{value:s,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,a=void 0===n;if(a&&(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,a?(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,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(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 a?(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,a=void 0===n;if(a&&(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)),a?(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,a,s,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(a=0,s=r,t===l.METRICS_CHARS){if(o=n(),u.decodeUTF8(function(){return e>a&&r<this.limit?this.view[r++]:null}.bind(this),(function(e){++a,u.UTF8toUTF16(e,o)})),a!==e)throw RangeError("Illegal range: Truncated data, "+a+" == "+e);return i?(this.offset=r,o()):{string:o(),length:r-s}}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-s}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,n){var r,i,o,a,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(o=n,r=u.calculateUTF16asUTF8(t(e),this.noAssert)[1],i=l.calculateVarint32(r),n+=i+r,a=this.buffer.byteLength,n>a&&this.resize((a*=2)>n?a: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 s?(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=a,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,a;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==(a=r-n)?e:(e.ensureCapacity(t+a),e.view.set(this.view.subarray(n,r),t),i&&(this.offset+=a),o&&(e.offset+=a),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,a,s;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?(a=new ArrayBuffer(this.buffer.byteLength+o),(s=new Uint8Array(a)).set(this.view.subarray(n,this.buffer.byteLength),i),this.buffer=a,this.view=s,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?a:(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,a;null!==(r=e());)if(void 0===(o=i[r])&&n(r),null!==(r=e())&&(void 0===(a=i[r])&&n(r),t(o<<2>>>0|(48&a)>>4),null!==(r=e()))){if(void 0===(o=i[r])){if(61===r)break;n(r)}if(t((15&a)<<4>>>0|(60&o)>>2),null!==(r=e())){if(void 0===(a=i[r])){if(61===r)break;n(r)}t((3&o)<<6>>>0|a)}}},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="",a="";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+=" ";a+=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+=" ";a+=i+o+"\n"}return e?a:i},l.fromDebug=function(e,t,n){for(var r,i,o=e.length,a=new l(0|(o+1)/3,t,n),s=0,c=0,u=!1,f=!1,d=!1,h=!1,p=!1;o>s;){switch(r=e.charAt(s++)){case"!":if(!n){if(f||d||h){p=!0;break}f=d=h=!0}a.offset=a.markedOffset=a.limit=c,u=!1;break;case"|":if(!n){if(f||h){p=!0;break}f=h=!0}a.offset=a.limit=c,u=!1;break;case"[":if(!n){if(f||d){p=!0;break}f=d=!0}a.offset=a.markedOffset=c,u=!1;break;case"<":if(!n){if(f){p=!0;break}f=!0}a.offset=c,u=!1;break;case"]":if(!n){if(h||d){p=!0;break}h=d=!0}a.limit=a.markedOffset=c,u=!1;break;case">":if(!n){if(h){p=!0;break}h=!0}a.limit=c,u=!1;break;case"'":if(!n){if(d){p=!0;break}d=!0}a.markedOffset=c,u=!1;break;case" ":u=!1;break;default:if(!n&&u){p=!0;break}if(i=parseInt(r+e.charAt(s++),16),!n&&(isNaN(i)||i<0||i>255))throw TypeError("Illegal str: Not a debug encoded string");a.view[c++]=i,u=!0}if(p)throw TypeError("Illegal str: Invalid symbol at "+s)}if(!n){if(!f||!h)throw TypeError("Illegal str: Missing offset or limit");if(c<a.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+c+" < "+o)}return a},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,a,s;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),a=0,s=0;i>a;a+=2){if(r=parseInt(e.substring(a,a+2),16),!n&&(!isFinite(r)||r<0||r>255))throw TypeError("Illegal str: Contains non-hex characters");o.view[s++]=r}return o.limit=s,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,a=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())&&a([n,r]),t((31&n)<<6|63&r);else if(224==(240&n))(null===(r=e())||null===(i=e()))&&a([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()))&&a([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}(ei),ni=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,a,s={},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+")"},s.Tokenizer=c,o=function(e){this.tn=new c(e),this.proto3=!1},(a=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()},a._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},a._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)},a._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(";")},a._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)}},a._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)},a._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},a._parseMessage=function(e,r){var i=!!r,o=this.tn.next(),a={name:"",fields:[],enums:[],messages:[],options:{},services:[],oneofs:{}};if(!t.NAME.test(o))throw Error("illegal "+(i?"group":"message")+" name: "+o);for(a.name=o,i&&(this.tn.skip("="),r.id=n(this.tn.next()),a.isGroup=!0),"["===(o=this.tn.peek())&&r&&this._parseFieldOptions(r),this.tn.skip("{");"}"!==(o=this.tn.next());)if(t.RULE.test(o))this._parseMessageField(a,o);else if("oneof"===o)this._parseMessageOneOf(a);else if("enum"===o)this._parseEnum(a);else if("message"===o)this._parseMessage(a);else if("option"===o)this._parseOption(a);else if("service"===o)this._parseService(a);else if("extensions"===o)a.extensions=this._parseExtensionRanges();else if("reserved"===o)this._parseIgnored();else if("extend"===o)this._parseExtend(a);else{if(!t.TYPEREF.test(o))throw Error("illegal message token: "+o);if(!this.proto3)throw Error("illegal field rule: "+o);this._parseMessageField(a,"optional",o)}return this.tn.omit(";"),e.messages.push(a),a},a._parseIgnored=function(){for(;";"!==this.tn.peek();)this.tn.next();this.tn.skip(";")},a._parseMessageField=function(e,r,i){var o,a,s;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("<"),a=this.tn.next(),!t.TYPE.test(a)&&!t.TYPEREF.test(a))throw Error("illegal message field type: "+a);if(o.keytype=a,this.tn.skip(","),a=this.tn.next(),!t.TYPE.test(a)&&!t.TYPEREF.test(a))throw Error("illegal message field: "+a);if(o.type=a,this.tn.skip(">"),a=this.tn.next(),!t.NAME.test(a))throw Error("illegal message field name: "+a);o.name=a,this.tn.skip("="),o.id=n(this.tn.next()),"["===(a=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}else if("group"===(i=void 0!==i?i:this.tn.next())){if(s=this._parseMessage(e,o),!/^[A-Z]/.test(s.name))throw Error("illegal group name: "+s.name);o.type=s.name,o.name=s.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,a=this.tn.next(),!t.NAME.test(a))throw Error("illegal message field name: "+a);o.name=a,this.tn.skip("="),o.id=n(this.tn.next()),"["===(a=this.tn.peek())&&this._parseFieldOptions(o),this.tn.skip(";")}return e.fields.push(o),o},a._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},a._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()},a._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)},a._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},a._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},a.toString=function(){return"Parser at line "+this.tn.line},s.Parser=o,s}(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,a=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(a,n);break;case e.WIRE_TYPES.ENDGROUP:if(a===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+a+" ("+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,a,s,c,u,l,f,d,h,p,g,v,m,y,I,M,b={},C=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},T=C.prototype;return T.fqn=function(){for(var e=this.name,t=this;null!=(t=t.parent);)e=t.name+"."+e;return e},T.toString=function(e){return(e?this.className+" ":"")+this.fqn()},T.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},b.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"},(a=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},a.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)},a.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},a.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 b.Namespace)){i=null;break}if(!((n=i.getChild(r[o]))&&n instanceof b.T&&(!t||n instanceof b.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},a.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 b.Namespace))return n.join(".");return e.fqn()},a.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},a.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},a.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},b.Namespace=o,s=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=s.prototype,s.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,a,s=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)&&s(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)&&s(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){s(typeof r,t.message)}else s(typeof r,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return n(r,!0)}catch(t){s(typeof r,t.message)}else s(typeof r,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof r&&s(typeof r,"not a boolean"),r;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof r&&s(typeof r,"not a number"),r;case e.TYPES.string:return"string"==typeof r||r&&r instanceof String||s(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),a=0;a<i.length;a++){if(i[a].name==r)return i[a].id;if(i[a].id==r)return i[a].id}if("proto3"===this.syntax)return("number"!=typeof r||r==r&&r%1!=0)&&s(typeof r,"not an integer"),(r>4294967295||r<0)&&s(typeof r,"not in range for uint32"),r;s(r,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(r&&"object"==typeof r||s(typeof r,"object expected"),r instanceof this.resolvedType.clazz)return r;if(r instanceof e.Builder.Message){for(a in o={},r)r.hasOwnProperty(a)&&(o[a]=r[a]);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,a;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:a=(new r).LE(),this.resolvedType.encode(n,a),i.writeVarint32(a.offset),i.append(a.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()},b.Element=s,u=function(e,t,n,r,i,a){o.call(this,e,t,n,r,a),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,a,s;if(this.clazz&&!n)return this.clazz;for(i=function(e,n){function i(t,n,o,a){var s,c,u,l,f,d,h;if(null===t||"object"!=typeof t)return a&&a instanceof e.Reflect.Enum&&null!==(s=e.Reflect.Enum.getName(a.object,t))?s: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,a)})),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(h in f=t.$type,d=void 0,t)t.hasOwnProperty(h)&&(c[h]=f&&(d=f.getChild(h))?i(t[h],n,o,d.resolvedType):i(t[h],n,o));return c}var o,a,s=n.getChildren(e.Reflect.Message.Field),c=n.getChildren(e.Reflect.Message.OneOf),u=function(t){var i,o,a,l;for(e.Builder.Message.call(this),i=0,o=c.length;o>i;++i)this[c[i].name]=null;for(i=0,o=s.length;o>i;++i)this[(a=s[i]).name]=a.repeated?[]:a.map?new e.Map(a):null,!a.required&&"proto3"!==n.syntax||null===a.defaultValue||(this[a.name]=a.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(s[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,a,s;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(a=n._fieldsByName[t],i)this[t]=r;else{if(!a)throw Error(this+"#"+t+" is not a field: undefined");if(!(a instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+a.toString(!0));this[a.name]=r=a.verifyValue(r)}return a&&a.oneof&&(s=this[a.oneof.name],null!==r?(null!==s&&s!==a.name&&(this[s]=null),this[a.oneof.name]=a.name):s===t&&(this[a.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<s.length;o++)(a=s[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)}(a);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,a;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 a=n.decode(e.slice(e.offset,e.offset+o).LE()),e.offset+=o,a}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={},a=0,s=this.children.length;s>a;a++)if((o=this.children[a])instanceof g||o instanceof u||o instanceof y){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 m))throw Error("Illegal reflect child of "+this.toString(!0)+": "+this.children[a].toString(!0));return this.clazz=i},l.encode=function(e,t,n){var r,i,o,a,s,c=null;for(o=0,a=this._fields.length;a>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(s=Error("Missing at least one required field for "+this.toString(!0)+": "+c)).encoded=t,s;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,a,s,c,u,l,f,d,h,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(s=(o=t.readVarint32())>>>3,(a=7&o)===e.WIRE_TYPES.ENDGROUP){if(s!==r)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+s+" ("+(r?r+" expected":"not a group")+")");break}if(c=this._fieldsById[s])c.repeated&&!c.options.packed?l[c.name].push(c.decode(a,t)):c.map?(d=c.decode(a,t),l[c.name].set(d[0],d[1])):(l[c.name]=c.decode(a,t),c.oneof&&(null!==(h=l[c.oneof.name])&&h!==c.name&&(l[h]=null),l[c.oneof.name]=c.name));else switch(a){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(s,t););break;default:throw Error("Illegal wire type for unknown field "+s+" in "+this.toString(!0)+"#decode: "+a)}}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},b.Message=u,f=function(t,n,r,i,o,a,s,c,l,f){C.call(this,t,n,a),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=s,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))},(d=f.prototype=Object.create(C.prototype)).build=function(){this.element=new s(this.type,this.resolvedType,!1,this.syntax),this.map&&(this.keyElement=new s(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=s.defaultFieldValue(this.type)},d.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))},d.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}},d.encode=function(t,n,i){var o,a,s,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),a=n.offset,o=0;o<t.length;o++)this.element.encodeValue(this.id,t[o],n);s=n.offset-a,(c=r.calculateVarint32(s))>1&&(u=n.slice(a,n.offset),a+=c-1,n.offset=a,n.append(u)),n.writeVarint32(s,a-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},d.calculate=function(t,n){var i,o,a;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),a=0,o=0;o<t.length;o++)a+=this.element.calculateLength(this.id,t[o]);i+=r.calculateVarint32(a),i+=a}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},d.decode=function(t,n,r){var i,o,a,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,a=[];n.offset<o;)a.push(this.decode(this.type.wireType,n,!0));return a}if(this.map){if(c=s.defaultFieldValue(this.keyType),i=s.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)},b.Message.Field=f,h=function(e,t,n,r,i,o,a){f.call(this,e,t,n,null,r,i,o,a),this.extension},h.prototype=Object.create(f.prototype),b.Message.ExtensionField=h,p=function(e,t,n){C.call(this,e,t,n),this.fields=[]},b.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},b.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),b.Enum.Value=v,m=function(e,t,n,r){C.call(this,e,t,n),this.field=r},m.prototype=Object.create(C.prototype),b.Extension=m,y=function(e,t,n,r){o.call(this,e,t,n,r),this.className="Service",this.clazz=null},(y.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),a=t.getChildren(e.Reflect.Service.RPCMethod);for(n=0;n<a.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}))}(a[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)},b.Service=y,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=a.buildOpt,b.Service.Method=I,M=function(e,t,n,r,i,o,a,s){I.call(this,e,t,n,s),this.className="Service.RPCMethod",this.requestName=r,this.responseName=i,this.requestStream=o,this.responseStream=a,this.resolvedRequestType=null,this.resolvedResponseType=null},M.prototype=Object.create(I.prototype),b.Service.RPCMethod=M,b}(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,a,s,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(a=new n.Message(this,this.ptr,o.name,o.options,o.isGroup,o.syntax),s={},o.oneofs&&Object.keys(o.oneofs).forEach((function(e){a.addChild(s[e]=new n.Message.OneOf(this,a,e))}),this),o.fields&&o.fields.forEach((function(e){if(null!==a.getChild(0|e.id))throw Error("duplicate or invalid field id in "+a.name+": "+e.id);if(e.options&&"object"!=typeof e.options)throw Error("illegal field options in "+a.name+"#"+e.name);var t=null;if("string"==typeof e.oneof&&!(t=s[e.oneof]))throw Error("illegal oneof in "+a.name+"#"+e.name+": "+e.oneof);e=new n.Message.Field(this,a,e.rule,e.keytype,e.type,e.name,e.id,e.options,t,o.syntax),t&&t.fields.push(e),a.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&&(a.extensions="number"==typeof o.extensions[0]?[o.extensions]:o.extensions),this.ptr.addChild(a),c.length>0){r.push(t),t=c,c=null,this.ptr=a,a=null;continue}c=null}else if(i.isEnum(o))a=new n.Enum(this,this.ptr,o.name,o.options,o.syntax),o.values.forEach((function(e){a.addChild(new n.Enum.Value(this,a,e.name,e.id))}),this),this.ptr.addChild(a);else if(i.isService(o))a=new n.Service(this,this.ptr,o.name,o.options),Object.keys(o.rpc).forEach((function(e){var t=o.rpc[e];a.addChild(new n.Service.RPCMethod(this,a,e,t.request,t.response,!!t.request_stream,!!t.response_stream,t.options))}),this),this.ptr.addChild(a);else{if(!i.isExtend(o))throw Error("not a valid definition: "+JSON.stringify(o));if(a=this.ptr.resolve(o.ref,!0))o.fields.forEach((function(t){var r,i,o,s;if(null!==a.getChild(0|t.id))throw Error("duplicate extended field id in "+a.name+": "+t.id);if(a.extensions&&(r=!1,a.extensions.forEach((function(e){t.id>=e[0]&&t.id<=e[1]&&(r=!0)})),!r))throw Error("illegal extended field id in "+a.name+": "+t.id+" (not within valid ranges)");i=t.name,this.options.convertFieldsToCamelCase&&(i=e.Util.toCamelCase(i)),o=new n.Message.ExtensionField(this,a,t.rule,t.type,this.ptr.fqn()+"."+i,t.id,t.options),s=new n.Extension(this,this.ptr,t.name,o),o.extension=s,this.ptr.addChild(s),a.addChild(o)}),this);else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("extended message "+o.ref+" is not defined")}o=null,a=null}t=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(t,n){var i,o,a,s,c,u,l,f,d="/";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)&&(d="\\"),o=i+d+n.file,!0===this.files[o])return this.reset();this.files[o]=!0}if(t.imports&&t.imports.length>0){for(s=!1,"object"==typeof n?(this.importRoot=n.root,s=!0,a=this.importRoot,n=n.file,(a.indexOf("\\")>=0||n.indexOf("\\")>=0)&&(d="\\")):"string"==typeof n?this.importRoot?a=this.importRoot:n.indexOf("/")>=0?""===(a=n.replace(/\/[^\/]*$/,""))&&(a="/"):n.indexOf("\\")>=0?(a=n.replace(/\\[^\\]*$/,""),d="\\"):a=".":a=null,c=0;c<t.imports.length;c++)if("string"==typeof t.imports[c]){if(!a)throw Error("cannot determine import root");if("google/protobuf/descriptor.proto"===(u=t.imports[c]))continue;if(u=a+d+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]);s&&(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,a;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]),a=this.valueElem.verifyValue(n[r[i]]),this.map[this.keyElem.valueToString(o)]={key:o,value:a}},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=Xr,o.loadProto(i,void 0,"").build("Modules").probuf}(ti,ei),ni);si.getModule=function(e){var t=new si[e];return t.getArrayData=function(){var e=t.toArrayBuffer();return L(e)?[].slice.call(new Int8Array(e)):e},t};var ci,ui,li="pgMsgP",fi="chatMsg",di="pcMsgP",hi={PRIVATE:"ppMsgS",GROUP:"pgMsgS",CHATROOM:"chatMsgS"},pi="delMsg",gi="joinChrm",vi="joinChrmR",mi="exitChrm",yi="setKV",Ii="delKV",Mi="setKVS",bi="delKVS",Ci="qryRelationR",Ti="delRelation",Ai="setSeAtt",_i={PRIVATE:"cleanPMsg",GROUP:"cleanGMsg",ULTRA_GROUP:"cleanGMsg",CUSTOMER_SERVICE:"cleanCMsg",SYSTEM:"cleanSMsg"},wi="qryPMsg",Ei="qryGMsg",Ni="qryCHMsg",Si="qryCMsg",Oi="qrySMsg",Di=((ri={})["ppMsgP"]=N.PRIVATE,ri[li]=N.GROUP,ri[fi]=N.CHATROOM,ri[di]=N.CUSTOMER_SERVICE,ri),xi=((ii={})[N.PRIVATE]=wi,ii[N.GROUP]=Ei,ii[N.CHATROOM]=Ni,ii[N.CUSTOMER_SERVICE]=Si,ii[N.SYSTEM]=Oi,ii),Ri=((oi={})[N.PRIVATE]=_i.PRIVATE,oi[N.GROUP]=_i.GROUP,oi[N.ULTRA_GROUP]=_i.ULTRA_GROUP,oi[N.CUSTOMER_SERVICE]=_i.CUSTOMER_SERVICE,oi[N.SYSTEM]=_i.SYSTEM,oi),ki="1",Li="0",ji=1,Pi=2,Ui=3,zi=function(){function e(e){this._codec="websocket"===e?si:Kr,this._connectType=e}return e.prototype.decodeByPBName=function(e,t,n){var r,i=this,o=e,a=((r={})[tn]=i._formatSyncMessages,r[en]=i._formatReceivedMessage,r[Jt]=i._formatSentMessage,r[un]=i._formatHistoryMessages,r[fn]=i._formatConversationList,r[Cn]=i._formatChatRoomInfos,r[An]=i._formatRTCUserList,r[xn]=i._formatRTCData,r[Zn]=i._formatChatRoomKVList,r[rr]=i._formatUserSetting,r[ar]=i._formatConversationStatus,r[vr]=i._formatGrpReadReceiptQryResp,r[tr]=i._formatSetUserSettingOutput,r[ir]=i._formatUserSettingNotification,r[Sr]=i._formatUltraMsgChangeList,r[kr]=i._formatUltraOperateStatusNotifyList,r[xr]=i._formatUltraMsgList,r[Mn]=i._formatChrmKVVersion,r[zr]=i._formatRTCRoomKVList,r[Dn]=i._formatRTCAuidenceJoinRoomData,r[Gr]=i._formatRTCJoinedUserInfo,r)[t];try{o=e.length>0&&i._codec[t].decode(e),U(o)&&(o=function(e){for(var t in e)U(e[t])&&(e[t]=St(e[t]));return e}(o)),z(a)&&(o=a.call(this,o,n))}catch(n){pt.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=L(n)?new Uint8Array(n):n;return Zt.readUTF(i.subarray(t,r))}catch(e){pt.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){pt.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(B(o)||null===o)&&(e.finished=!0),e.syncTime=St(i),e.list=jt(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,a=e.fromUserId,s=e.type,c=e.groupId,u=e.status,l=e.dataTime,f=e.classname,d=e.msgId,h=e.extraContent,p=e.pushContent,g=e.pushExt,v=e.configFlag,m=e.extStatus;e.toUserId,e.groupUnpush;var I=(e.direction||Z.RECEIVE)===Z.SEND,M=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),b=M.isPersited,C=M.isCounted,T=M.isMentioned,A=M.disableNotification,_=M.receivedStatus,w=M.canIncludeExpansion,E=!!(2&(m||0)),S=!!(4&(m||0)),O=8&(m||0)?Ie.PRIVATE:Ie.PUBLIC,D=[N.GROUP,N.CHATROOM,N.RTC_ROOM,N.ULTRA_GROUP].indexOf(s)>-1?c:a,x=I?n:a,R=St(l),k=R<r,L=s===N.CHATROOM,j=this._formatBytes(i),P={};if(g&&(P=xt(g.pushConfigs,g.pushId)),j.user){var U=j.user,z=U.portrait,B=U.portraitUri,G=z||B;G&&(j.user.portrait=j.user.portraitUri=G)}var Y,H=y(y({},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}),F=I?Z.SEND:Z.RECEIVE;L&&a===n&&(F=Z.SEND),h&&(Y={},Y=Ft(h));var $={conversationType:s,targetId:D,senderUserId:x,messageType:f,messageUId:d,isPersited:b,isCounted:C,isMentioned:T,sentTime:R,messageDirection:F,receivedTime:$t.getTime(),disableNotification:A,receivedStatus:_,canIncludeExpansion:w,content:j,expansion:Y,configFlag:v,pushConfig:H,channelId:e.busChannel||"",isInterrupt:E,isModifyMessage:S};return s!==N.ULTRA_GROUP&&($.isOffLineMessage=k),s===N.ULTRA_GROUP&&($.channelType=O),$},e.prototype._formatSentMessage=function(e,t){var n,r=e.content,i=e.classname,o=e.sessionId,a=e.msgId,s=e.extraContent,c=e.pushExt,u=e.pushContent,l=e.configFlag,f=e.extStatus,d=t.signal,h=t.currentUserId,p=d.date,g=d.topic,v=d.targetId,m=!!(2&(f||0)),I=function(e){return{isPersited:!!(1&e),isCounted:!!(2&e),disableNotification:!!(32&e),canIncludeExpansion:!!(64&e)}}(o),M=I.isPersited,b=I.isCounted,C=I.disableNotification,T=I.canIncludeExpansion,A=Di[g]||N.PRIVATE,_=Ut(hi,g),w=this._formatBytes(r),E=v;i===ne.RECALL&&(A=w.conversationType||A,E=w.targetId||v),s&&(n={},n=Ft(s));var S={};c&&(S=xt(c.pushConfigs,c.pushId));var O=y(y({},S),{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:A,targetId:E,messageType:i,messageUId:a,isPersited:M,isCounted:b,isStatusMessage:_,senderUserId:h,content:this._formatBytes(r),sentTime:1e3*p,receivedTime:$t.getTime(),messageDirection:Z.SEND,isOffLineMessage:!1,disableNotification:C,canIncludeExpansion:T,expansion:n,pushConfig:O,channelId:e.busChannel||"",isInterrupt:m}},e.prototype._formatHistoryMessages=function(e,t){var n=this,r=t.conversation||{},i=e.list,o=e.hasMsg,a=r.targetId,s=St(e.syncTime),c=[];return Lt(i,(function(e){var i=n._formatReceivedMessage(e,t);r.conversationType===N.ULTRA_GROUP?i.targetId=e.groupId||r.targetId:i.targetId=a,c.push(i)}),{isReverse:!0}),{syncTime:s,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,a=e.msgTime,s=e.busChannel,c=e.isAdmin,u=e.isDel,l=e.operatorId,f=e.subChangeType;return{targetId:t,conversationType:n,changeType:i,messageUId:o,changeTime:St(r),sendTime:St(a),channelId:s,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=[],a=[],s=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,a=e.optime,s=St(a);o.push({targetId:t,channelId:n,userId:r,operationType:i,operationTime:s})})),s&&Array.isArray(i)&&i.forEach((function(e){var t=e.targetId,n=e.busChannel,r=e.count,i=e.opType;a.push({targetId:t,channelId:n,count:r,operationType:i})})),{conversationType:t,info:o,summary:a,hasInfo:c,hasSummary:s}},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=jt(r,(function(e){var r=e.msg,o=e.userId,a=e.type,s=e.unreadCount,c=e.busChannel,u=e.versionTime,l=e.remindCount,f=e.busChannelType,d=null;r&&((d=n._formatReceivedMessage(r,t)).targetId=o);var h={targetId:o,conversationType:a,unreadMessageCount:St(s)||0,latestMessage:d||{},channelId:c||""};return a===N.ULTRA_GROUP&&(h.versionTime=St(u)||0,h.unreadMentionedCount=St(l)||0,h.channelType=f||Ie.PUBLIC),i(h)||h})))||[]};return((null==t?void 0:t.conversationType)||N.NONE)===N.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:jt(n,(function(e){var t=e.id,n=e.time;return{id:t,time:St(n)}}))}},e.prototype._formatChatRoomKVList=function(e){var t=e.entries,n=e.bFullUpdate,r=e.syncTime;return t=jt(t=t||[],(function(e){var t=e.key,n=e.value,r=e.status,i=e.timestamp,o=e.uid,a=e.version,s=function(e){return{isAutoDelete:!!(1&e),isOverwrite:!!(2&e),type:4&e?ge.DELETE:ge.UPDATE}}(r);return{key:t,value:n,isAutoDelete:s.isAutoDelete,isOverwrite:s.isOverwrite,type:s.type,userId:o,timestamp:St(i),version:St(a)}})),{kvEntries:t,isFullUpdate:n,syncTime:r}},e.prototype._formatUserSetting=function(e){var t=this,n=e.items,r=e.version,i={};return Lt(n||[],(function(e){var n=e.key,r=e.version,o=e.value;e.version=St(r),e.value=t._readBytes(o),"Tag"===n&&e.tags.forEach((function(e){e.createdTime=St(e.createdTime),e.tagName=e.name})),i[n]=e})),{settings:i,version:r}},e.prototype._formatConversationStatus=function(e){var t=e.state,n=[];return Lt(t,(function(e){var t=e.type,r=e.channelId,i=e.time,o=e.stateItem,a=e.busChannel,s=ie.CLOSE,c=ae.NOT_SET,u=!1,l=[];Lt(o,(function(e){var t=e.sessionStateType,n=e.value,r=e.tags;switch(t){case ji:s=n===ki?ie.OPEN:ie.CLOSE,c=Number(n)||ae.NOT_SET;break;case Pi:u=n===ki;break;case Ui:l=r}})),n.push({conversationType:t,type:t,targetId:r,notificationStatus:s,notificationLevel:c,isTop:u,updatedTime:St(i),tags:l,channelId:a||""})})),n},e.prototype._formatRTCUserList=function(e){var t=e.users,n=e.token,r=e.sessionId,i=e.roomInfo,o=e.entries,a=e.offlineKickTime,s={};return Lt(t,(function(e){var t=e.userId,n=e.userData,r={};Lt(n,(function(e){var t=e.key,n=e.value;r[t]=n})),s[t]=r})),{users:s,token:n,sessionId:r,roomInfo:i,kvEntries:o,offlineKickTime:a}},e.prototype._formatRTCData=function(e){var t=e.outInfo,n={};return Lt(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 Lt(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=St(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:St(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:St(e.joinTime)}}))},e.prototype.encodeServerConfParams=function(){var e=this._codec.getModule(nn);return e.setNothing(1),e.getArrayData()},e.prototype._getUpMsgModule=function(e,t){var n,r,i,o="comet"===this._connectType,a=e.conversationType,s=t.messageType,c=t.isMentioned,u=t.mentionedType,l=t.mentionedUserIdList,f=t.content,d=t.pushContent,h=t.pushData,p=t.directionalUserIdList,g=t.isFilerWhiteBlacklist,v=t.isVoipPush,m=t.canIncludeExpansion,y=t.expansion,I=t.pushConfig,M=t.channelId;[N.GROUP,N.ULTRA_GROUP].includes(a);var b=this._codec.getModule(Jt),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),T=I||{},A=T.pushTitle,_=T.pushContent,w=T.pushData,E=T.iOSConfig,S=T.androidConfig,O=T.templateId,D=T.disablePushTitle,x=T.forceShowDetailContent,R=0;b.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||ce.ALL,mentionedContent:(null===(i=f.mentionedInfo)||void 0===i?void 0:i.mentionedContent)||""});var k=_||d||"",L=w||h||"";if(k&&b.setPushText(k),L&&b.setAppData(L),p&&b.setUserId(p),R|=v?1:0,R|=g?2:0,R|=D?4:0,R|=x?8:0,b.setConfigFlag(R),b.setClassname(s),f.user&&f.user.portraitUri&&(f.user.portrait=f.user.portraitUri),b.setContent(JSON.stringify(f)),m&&y){var j={};Lt(y,(function(e,t){j[t]={v:e}})),b.setExtraContent(JSON.stringify(j))}if(I){var P=this._codec.getModule(Xt);if(A&&P.setTitle(A),E&&S){var U=Dt(E,S);P.setPushConfigs(U)}(null==S?void 0:S.notificationId)&&P.setPushId(null==S?void 0:S.notificationId),P.setTemplateId(O||""),b.setPushExt(o?P.getArrayData():P)}return B(M)||b.setBusChannel(M),b},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(on);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(an);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,a=this._codec.getModule(cn);return a.setTargetId(e),a.setTime(i),a.setCount(n),a.setOrder(r),a.setBusChannel(o||""),a.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(ln);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(ln);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(gn);return r.setType(t),n&&r.setBusChannel([n]),r.getArrayData()},e.prototype.encodeRemoveConversationList=function(e){var t=this,n=this._codec.getModule(dn),r=[];return Lt(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(vn),o=[];return Lt(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(mn);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,a=this._codec.getModule(yn);return o=o||+new Date,a.setType(n),a.setChannelId(r),a.setMsgTime(o),a.setBusChannel(i),a.getArrayData()},e.prototype.encodeExpandUltraMessage=function(e,t){var n=e.targetId,r=e.conversationType,i=e.channelId,o=e.messageUId,a=e.sendTime,s=e.keys,c={mid:o,put:e.expansion,del:s,clear:e.removeAll?1:0},u=this._codec.getModule(wr);return u.setFromUserId(t),u.setTargetId(n),u.setType(r),u.setBusChannel(i||""),u.setMsgUID(o),u.setMsgTime(a),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,a=e.sendTime,s=e.content,c=this._codec.getModule(wr);return c.setFromUserId(t),c.setTargetId(n),c.setType(r),c.setBusChannel(i||""),c.setMsgUID(o),c.setMsgTime(a),c.setContent(JSON.stringify(s)),c.getArrayData()},e.prototype.encodeQueryMsgChange=function(e){var t=this._codec.getModule(Er);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(Or),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(Rr);return i.setTargetId(e),i.setType(t),i.setBusChannel(n),i.setOpType(r),i.getArrayData()},e.prototype.encodeJoinOrQuitChatRoom=function(){var e=this._codec.getModule(In);return e.setNothing(1),e.getArrayData()},e.prototype.encodeGetChatRoomInfo=function(e,t){var n=this._codec.getModule(bn);return n.setCount(e),n.setOrder(t),n.getArrayData()},e.prototype.encodeSetUltraGroupDefaultNotificationLevel=function(e,t){var n=this._codec.getModule(dr);return n.setUnpushLevel(e),n.setBusChannel(t),n.getArrayData()},e.prototype.encodeGetUltraGroupDefaultNotificationLevel=function(e){var t=this._codec.getModule(fr);return t.setBusChannel(e),t.getArrayData()},e.prototype.encodeGetFileToken=function(e,t,n,r){var i=this._codec.getModule(zn);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(Vn),o=t.key,a=t.value,s=t.notificationExtra,c=t.isSendNotification,u=t.type,l=t.timestamp,f=u||ge.UPDATE,d=Vt(t,f),h={key:o,value:a||"",uid:n,version:l};if(B(d)||(h.status=d),i.setEntry(h),c){var p={conversationType:N.CHATROOM,targetId:e},g={key:o,value:a,extra:s,type:f},v=this._getUpMsgModule(p,{messageType:ne.CHRM_KV_NOTIFY,content:g,isPersited:!1,isCounted:!1});r?i.setNotification(v.getArrayData()):i.setNotification(v),i.setBNotify(!0),i.setType(N.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||ge.UPDATE,a=Vt(t,o),s=[];return i.forEach((function(e){var t={key:e.key,value:e.value||"",uid:n,version:e.timestamp};B(a)||(t.status=a),s.push(t)})),r.setEntry(s),r.getArrayData()},e.prototype.encodePullChatRoomKV=function(e){var t=this._codec.getModule(Xn);return t.setTimestamp(e),t.getArrayData()},e.prototype.encodePullUserSetting=function(e){var t=this._codec.getModule(nr);return t.setVersion(e),t.getArrayData()},e.prototype.encodeGetConversationStatus=function(e){var t=this._codec.getModule(or);return t.setTime(e),t.getArrayData()},e.prototype.encodeSetConversationStatus=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(ur),o=$t.getTime(),a=[];return Lt(e,(function(e){var t=n._codec.getModule(sr),i=e.conversationType,s=e.targetId,c=e.notificationStatus,u=e.isTop,l=e.channelId,f=e.notificationLevel,d=[];t.setType(i),t.setChannelId(s),t.setTime(o),t.setBusChannel(l);var h=c===ie.OPEN,p={};B(c)||(p[ji]=h),B(f)||(p[ji]=f),B(u)||(p[Pi]=u),Lt(p,(function(e,t){if(!B(e)){var i=n._codec.getModule(cr);e=e?ki:Li,B(f)||Number(t)!==ji||(e=String(f)),i.setSessionStateType(Number(t)),i.setValue(e);var o=r?i.getArrayData():i;d.push(o)}})),t.setStateItem(d);var g=r?t.getArrayData():t;a.push(g)})),i.setVersion(t||o),i.setState(a),i.getArrayData()},e.prototype.encodeReadReceipt=function(e,t){var n=this._codec.getModule(pr);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(Ir);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(pr);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(Mr),o=[];return e.forEach((function(e){var t=n._codec.getModule(Ir);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(br);return t.setTagId(e),t.getArrayData()},e.prototype.encodeUpdateConversationTag=function(e,t){var n=this,r="comet"===this._connectType,i=this._codec.getModule(ur),o=[];return t.forEach((function(t){var i=n._codec.getModule(sr),a=n._codec.getModule(cr),s=[];e.forEach((function(e){var t=n._codec.getModule(Ir);t.setTagId(e.tagId),B(e.isTop)||t.setIsTop(e.isTop),s.push(r?t.getArrayData():t)})),a.setSessionStateType(Ui),a.setValue(JSON.stringify(s)),a.setTags(s),i.setType(t.conversationType),i.setChannelId(t.targetId),i.setTime(Date.now()),i.setStateItem([r?a.getArrayData():a]),o.push(r?i.getArrayData():i)})),i.setState(o),i.setVersion($t.getTime()),i.getArrayData()},e.prototype.encodeReportSDKInfo=function(e){var t=this._codec.getModule(Cr);return t.setSdkInfo(e),t.getArrayData()},e.prototype.encodeUltraGroup=function(e,t){var n=this._codec.getModule(Ar);return n.setSyncTime(e),n.setIsEraseMsgContent(t),n.getArrayData()},e.prototype.encodeJoinRTCRoom=function(e,t,n,r,i){var o=this,a="comet"===this._connectType,s=this._codec.getModule(Tn);if(e=e||0,s.setRoomType(e),B(t)||s.setBroadcastType(t),B(n)||s.setJoinType(n),r){var c=[],u=this._codec.getModule(Pn);for(var l in r)u.setKey(l),u.setValue(r[l]),a?c.push(u.getArrayData()):c.push(u);s.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]),a?f.push(t.getArrayData()):f.push(t)})),s.setOuterDatas(f)}return s.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(wn);if(o.setInterior(n),o.setTarget(r),o.setKey(e),o.setValue(t),i){i.name&&o.setObjectName(i.name);var a=i.content;a&&(U(a)&&(a=JSON.stringify(a)),o.setContent(a))}return o.getArrayData()},e.prototype.encodeUserSetRTCData=function(e,t,n,r){var i=this,o="comet"===this._connectType,a=this._codec.getModule(En);a.setObjectName(n);var s=this._codec.getModule(Pn);s.setKey(e.name),s.setValue(e.content),o?a.setContent(s.getArrayData()):a.setContent(s);var c=[];return["uris","mcu_uris"].forEach((function(e){var n=i._codec.getModule(Pn);n.setKey(e);var a="uris"===e?t:r;n.setValue(a),o?c.push(n.getArrayData()):c.push(n)})),a.setValueInfo(c),a.getArrayData()},e.prototype.encodeUserSetRTCCDNUris=function(e,t){this._connectType;var n=this._codec.getModule(En);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,a=r.content;return!B(o)&&i.setObjectName(o),B(a)||(U(a)&&(a=JSON.stringify(a)),i.setContent(a)),i.getArrayData()},e.prototype.encodeSetRTCOutData=function(e,t,n){var r=this._codec.getModule(Sn);r.setTarget(t),k(e)||(e=[e]),Lt(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!B(i)&&r.setObjectName(i),B(o)||(U(o)&&(o=JSON.stringify(o)),r.setContent(o)),r.getArrayData()},e.prototype.ecnodeGetRTCOutData=function(e){var t=this._codec.getModule(Rn);return t.setUserId(e),t.getArrayData()},e.prototype.encodeSetRTCState=function(e){var t=this._codec.getModule(On);return t.setState(e),t.getArrayData()},e.prototype.encodeGetRTCRoomInfo=function(){var e=this._codec.getModule(Ln);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(Un);return t.setKey(e),t.getArrayData()},e.prototype.encodeIdentityChangeInfo=function(e,t,n){void 0===n&&(n=!1);var r=this._codec.getModule(Tn);return r.setRoomType(Te.LIVE),t&&r.setBroadcastType(t),r.setIdentityChangeType(e),r.setNeedSysChatroom(n),r.getArrayData()},e.prototype.encodePullRTCRoomKV=function(e,t){var n=this._codec.getModule(Ur);return n.setTimestamp(t),n.setRoomId(e),n.getArrayData()},e.prototype.encodeQueryUserJoinedInfo=function(e){var t=this._codec.getModule(Br);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,a=this._codec.getModule(Hr);return a.setInvitedRoomId(t),a.setInvitedUserId(n),a.setInviteSessionId(r),a.setTimeoutTime(i),a.setInviteInfo(o),a.getArrayData()},e.prototype.encodeCancelRoomPK=function(e){var t=e.invitedRoomId,n=e.invitedUserId,r=e.inviteSessionId,i=e.inviteInfo,o=this._codec.getModule(Fr);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,a=e.value,s=e.agree?1:0,c=this._codec.getModule($r);return c.setInviteUserId(t),c.setInviteRoomId(n),c.setInviteSessionId(r),c.setContent(i),c.setKey(o),c.setValue(a),c.setAnswerCode(s),c.getArrayData()},e.prototype.encodeEndRoomPK=function(e){var t=e.endRoomId,n=e.sessionId,r=e.content,i=e.keys,o=this._codec.getModule(Vr);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}(),Bi=function(e,t){this._watcher=t,this.codec=new zi(e)};function Gi(e,t,n){if(e&&Ke){var r=Ge(Ue(fe.STATISTICS),e,t,n);return Ke.reportRealtimeLog([r]).then((function(){Je(he.G_UPLOAD_LOG_S,"big data realtime report success")})).catch((function(e){Je(he.G_UPLOAD_LOG_E,"big data realtime report error -> "+e)}))}}!function(e){e[e.PRIVATE=1]="PRIVATE",e[e.OPEN=0]="OPEN"}(ci||(ci={})),function(e){e[e.NAVI=1]="NAVI",e[e.TCP=2]="TCP",e[e.WS=3]="WS"}(ui||(ui={}));var Yi,Hi,Fi={},$i={sdkPrivate:ci.OPEN,serverPrivate:ci.OPEN,bundleId:"lib-next"};function Vi(e){$i.sdkPrivate=e.sdkPrivate===ci.PRIVATE?ci.PRIVATE:ci.OPEN,$i.serverPrivate=e.serverPrivate===ci.PRIVATE?ci.PRIVATE:ci.OPEN,e.bundleId&&($i.bundleId=e.bundleId)}function Qi(){return $i}function Wi(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1),U(t)&&e&&(Fi[e]&&!n||(Fi[e]={}),Fi[e]=y(y({},Fi[e]),t))}function Zi(e){return Fi[e]||{}}!function(e){e.GET="GET",e.POST="POST"}(Yi||(Yi={})),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"}(Hi||(Hi={}));var Ki,qi=function(e,t){return e&&t?t+"_"+e:e||Date.now()},Ji=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}(),Xi=function(){function e(e){this.lengthSize=0,this.messageId=0,this.topic="",this.targetId="",this.identifier="",this._header=new Wt(e,!1,Mt.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}(),eo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Ct.CONN_ACK,t.status=null,t.userId=null,t.timestamp=0,t}return m(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===At.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();pt.debug("server sessionId -> "+o),this.timestamp=e.readLong()}return{stream:e,length:n}},t.MESSAGE_LENGTH=2,t}(Ji),to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Ct.DISCONNECT,t.status=0,t}return m(t,e),t.prototype.readMessage=function(e,t){return e.readByte(),this.status=+e.readByte(),{stream:e,length:t}},t.MESSAGE_LENGTH=2,t}(Ji),no=function(e){function t(){var t=e.call(this,bt.PING_REQ)||this;return t._name=Ct.PING_REQ,t}return m(t,e),t.prototype.writeMessage=function(e){},t}(Xi),ro=function(e){function t(t){var n=e.call(this,t)||this;return n._name=Ct.PING_RESP,n}return m(t,e),t}(Ji),io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return m(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}(Ji),oo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageId=0,t}return m(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}(Xi),ao=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Ct.PUBLISH,t.topic="",t.targetId="",t.syncMsg=!1,t.identifier=Tt.PUB,t}return m(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}(io),so=function(e){function t(t,n,r){var i=e.call(this,bt.PUBLISH)||this;return i._name=Ct.PUBLISH,i.syncMsg=!1,i.identifier=Tt.PUB,i.topic=t,i.data=D(n)?Zt.writeUTF(n):n,i.targetId=r,i}return m(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}(oo),co=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Ct.PUB_ACK,t.status=0,t.date=0,t.millisecond=0,t.messageUId="",t.timestamp=0,t.identifier=Tt.PUB,t.topic="",t.targetId="",t}return m(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}(io),uo=function(e){function t(t){var n=e.call(this,bt.PUB_ACK)||this;return n._name=Ct.PUB_ACK,n.status=0,n.date=0,n.millisecond=0,n.messageUId="",n.timestamp=0,n.messageId=t,n}return m(t,e),t.prototype.writeMessage=function(t){e.prototype.writeMessage.call(this,t)},t}(oo),lo=function(e){function t(t,n,r){var i=e.call(this,bt.QUERY)||this;return i.name=Ct.QUERY,i.identifier=Tt.QUERY,i.topic=t,i.data=D(n)?Zt.writeUTF(n):n,i.targetId=r,i}return m(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}(oo),fo=function(e){function t(t){var n=e.call(this,bt.QUERY_CONFIRM)||this;return n._name=Ct.QUERY_CON,n.messageId=t,n}return m(t,e),t}(oo),ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._name=Ct.QUERY_ACK,t.status=0,t.identifier=Tt.QUERY,t.topic="",t.targetId="",t}return m(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}(io),po=function(e){var t,n=e.type;switch(n){case bt.CONN_ACK:t=new eo(e);break;case bt.PUBLISH:(t=new ao(e)).syncMsg=e.syncMsg;break;case bt.PUB_ACK:t=new co(e);break;case bt.QUERY_ACK:t=new ho(e);break;case bt.SUB_ACK:case bt.UNSUB_ACK:case bt.PING_RESP:t=new ro(e);break;case bt.DISCONNECT:t=new to(e);break;default:t=new Ji(e),pt.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"}(Ki||(Ki={}));var go,vo,mo=Ki,yo=function(e,t,n,r,i,o,a,s){return"".concat(e,"://").concat(t,"/websocket?appId=").concat(n,"&token=").concat(encodeURIComponent(r),"&sdkVer=").concat(o,"&pid=").concat(a,"&apiVer=").concat(i.isFromUniapp?"uniapp":"normal").concat(i.connectPlatform?"&platform="+i.connectPlatform:"").concat(s?"&protocolVer="+s:"")},Io=function(e){return[mo.ppMsgS,mo.pgMsgS,mo.chatMsgS].map((function(e){return mo[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"}(go||(go={})),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"}(vo||(vo={}));var Mo=function(e,t){pt.info("websocket send -> messageId: ".concat(e.messageId," topic: ").concat(e.topic));var n=e.getBufferData();t.send(n.buffer)},bo=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 m(t,e),t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var a=this;return M(this,(function(s){return[2,new Promise((function(s){var c=n.slice(),u=!1,l=function(){return I(a,void 0,void 0,(function(){var n,a,f;return M(this,(function(d){switch(d.label){case 0:return 0===c.length||u?[2]:(u=!0,n=c.shift(),Wi(vo.IM_WEBSOCKET,{startTime:(new Date).getTime(),host:n,protocol:ui.WS}),[4,this._connect(e,t,n,r,i,o)]);case 1:if(a=d.sent(),f=a===q.SUCCESS||a===ee.REDIRECT?a:Gt(a),Wi(vo.IM_WEBSOCKET,{endTime:(new Date).getTime(),code:f}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d,h,p;return M(this,(function(g){switch(g.label){case 0:t=vo.IM_WEBSOCKET,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,a=Zi(t),s=a.protocol,c=a.startTime,u=a.endTime,l=a.code,f=a.host,d=Hi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return d=g.sent(),[3,4];case 3:return h=g.sent(),pt.info(h.message),[3,4];case 4:return p=0,R(c)&&R(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:s,dur:p,cod:l,hos:f,net:d}),[2]}}))}))}(this._runtime),a===q.SUCCESS)this._checkAlive(),s(a);else if(a===ee.REDIRECT)s(a);else{if(0===c.length)return s(Gt(a)),[2];u=!1,l()}return[2]}}))}))};i=w(i),a._watcher.status(X.CONNECTING),l()}))]}))}))},t.prototype._connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var a,s,c,u,l,f=this;return M(this,(function(d){switch(d.label){case 0:return a=r.replace("http","ws"),s=yo(a,n,e,t,this._runtime,i,"",o),pt.info("conenct start -> ".concat(s)),this.sendConnectTime=Date.now(),c=this._runtime.createWebSocket(s),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 Kt(n),i=r.readByte(),o=new Wt(i),a=po(o);return a.read(r,n.length-1,t),a}(t,o);if(n instanceof ro&&f._pingResolve)return f._pingResolve(q.SUCCESS),void(f._pingResolve=void 0);if(n instanceof eo)return pt.info("recv connect ack -> ".concat(n.status)),n.status!==ee.ACCEPTED?(pt.warn("connect failed: ".concat(n.status)),void e(n.status)):(pt.info("connect success -> ".concat(s)),f.connectedTime=n.timestamp,f.userId=n.userId||"",f._idCount=n.messageId,void e(q.SUCCESS));if(n instanceof to){var r=n.status;switch(pt.warn("recv disconnect signal -> status: ".concat(r)),r){case go.BLOCK_NEW:case go.BLOCK:f._watcher.status(X.BLOCKED);break;case go.OTHER_DEVICE_LOGIN:f._watcher.status(X.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case go.REDIRECT_NEW:case go.REDIRECT:f._watcher.status(X.REDIRECT);break;default:f._watcher.status(X.DISCONNECT_BY_SERVER)}}else f._onReceiveSignal(n)}else pt.error("Socket received invalid data:",t)})),c.onClose((function(t,n){for(var r in pt.warn("websocket closed! code:",t,"reason:",n),u(X.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 pt.error("websocket error!",null==t?void 0:t.stack),u(X.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 pt.info("websocket open =>",s)})),setTimeout((function(){e(q.TIMEOUT)}),5e3)}))];case 1:return(l=d.sent())===q.SUCCESS?this._socket=c:(pt.warn("connect result -> code: ".concat(l,", url: ").concat(s)),c.close()),[2,l]}}))}))},t.prototype._checkAlive=function(){var e;return I(this,void 0,void 0,(function(){var t,n,r=this;return M(this,(function(i){switch(i.label){case 0:return this._socket?(pt.info("send ping ->"),this.sendOnly(new no),t=Qe(),Je(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?Je:Xe)(he.L_CHECK_ALIVE_IM_R,{isSuccess:n===q.SUCCESS},{traceId:t}),n!==q.SUCCESS?(this._failedCount+=1,pt.warn("ping failed count: ".concat(this._failedCount,", code: ").concat(n)),this._failedCount>=this.ALLOW_FAILED_TIMES?(this._failedCount=0,pt.warn("ping timeout, close current websocket to reconnect!"),null===(e=this._socket)||void 0===e||e.close(),this._socket=null,this._watcher.status(X.NETWORK_UNAVAILABLE)):this._checkAlive(),[2]):(pt.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,a,s=this;return M(this,(function(c){switch(c.label){case 0:return t=e.messageId,e.header&&e.header.qos!==Mt.AT_MOST_ONCE&&(e instanceof ao&&!e.syncMsg&&(pt.info("send pubAck -> ".concat(t," ").concat(e.topic)),this.sendOnly(new uo(t))),e instanceof ho&&(pt.info("send queryCon -> ".concat(t," ").concat(e.topic)),this.sendOnly(new fo(t)))),t>0&&(e instanceof co||e instanceof ho)&&(pt.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 ao?(i=e.syncMsg,o=e.topic,pt.info("recv PublishReader -> messageId: ".concat(t," ").concat(o)),o===mo[mo.userSetData]?[2]:!i||Io(o)?(this._watcher.signal(e),[2]):[4,new Promise((function(e){s._syncMessageIds[t]=e}))]):[3,2];case 1:a=c.sent(),delete this._syncMessageIds[t],this._watcher.signal(e,a),c.label=2;case 2:return[2]}}))}))},t.prototype.sendOnly=function(e){this._socket&&((e instanceof so||e instanceof lo)&&(e.messageId=this._generateMessageId()),Mo(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,a,s,c=this;return M(this,(function(u){switch(u.label){case 0:return this._socket?(i=this._generateMessageId(),e.messageId=i,Mo(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 ho||o instanceof co?(a=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,s=a?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?(pt.warn("send failed -> message: ".concat(i,", respPBName: ").concat(t,", status: ").concat(o.status)),[2,{code:o.status,data:t&&o.data?s:null}]):[2,{code:q.SUCCESS,data:s}]):[2,{code:o}]:(pt.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(X.DISCONNECTED))},t}(Bi),Co=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 m(t,e),t.prototype.handleCometRes=function(e){var t=this;if(200!==e.status&&202!==e.status)return!1;var n=D(e.data)?JSON.parse(e.data):e.data;return n?!k(n)||(Lt(n,(function(e){return I(t,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d=this;return M(this,(function(h){switch(h.label){case 0:if((t=e.sessionid)&&(this._sessionid=t),n=function(e){var t=e.headerCode,n=new Wt(t),r=po(n);for(var i in e)r[i]=e[i];return r}(e),r=n.messageId,i=n._header,o=n.status,a=i&&i.qos!==Mt.AT_MOST_ONCE,r&&n.getIdentifier&&((s=this._messageIds[r])&&s(n),this._syncMessageIds[r]&&this._syncMessageIds[r](n)),a&&(n instanceof ao&&!n.syncMsg&&(c=new uo(r),this.sendOnly(c)),n instanceof ho&&(c=new fo(r),this.sendOnly(c))),n instanceof to){switch(o){case go.OTHER_DEVICE_LOGIN:this._watcher.status(X.KICKED_OFFLINE_BY_OTHER_CLIENT);break;case go.BLOCK:case go.BLOCK_NEW:this._watcher.status(X.BLOCKED);break;case go.REDIRECT_NEW:case go.REDIRECT:this._watcher.status(X.REDIRECT);break;default:this._watcher.status(X.DISCONNECT_BY_SERVER)}return[2]}return n instanceof ao?(u=n.syncMsg,l=n.topic,!u||Io(l)?(this._watcher.signal(n),[2,!1]):[4,new Promise((function(e){d._syncMessageIds[r]=e}))]):[3,2];case 1:f=h.sent(),delete this._syncMessageIds[r],this._watcher.signal(n,f),h.label=2;case 2:return[2]}}))}))})),!0):(pt.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 M(this,(function(a){switch(a.label){case 0:return t=(new Date).getTime(),n="".concat(e,"://").concat(this._domain,"/pullmsg.js?sessionid=").concat(this._sessionid,"&timestrap=").concat(t,"&pid=").concat(this._pid),r=Qe(),Je(he.L_CHECK_ALIVE_IM_T,{},{traceId:r}),[4,this._runtime.httpReq({url:n,body:{pid:this._pid},timeout:45e3})];case 1:return i=a.sent(),o=this.handleCometRes(i),(o?Je:Xe)(he.L_CHECK_ALIVE_IM_R,{isSuccess:o},{traceId:r}),this._isDisconnected||(o?this._startPullSignal(e):(this._isDisconnected=!0,this._watcher.status(X.NETWORK_UNAVAILABLE))),[2]}}))}))},t.prototype.connect=function(e,t,n,r,i,o){return I(this,void 0,void 0,(function(){var o,a,s=this;return M(this,(function(c){return i=w(i),this._protocol=r,this._isDisconnected=!1,this._watcher.status(X.CONNECTING),o=n.slice(),a=!1,[2,new Promise((function(n){var c=function(){return I(s,void 0,void 0,(function(){var s,u,l;return M(this,(function(f){switch(f.label){case 0:return 0===o.length||a?[2]:(a=!0,s=o.shift(),Wi(vo.IM_COMET,{startTime:(new Date).getTime(),host:s,protocol:ui.NAVI}),[4,this._connect(e,t,s,r,i)]);case 1:if(u=f.sent(),l=u===q.SUCCESS||u===ee.REDIRECT?u:Gt(u),Wi(vo.IM_COMET,{endTime:(new Date).getTime(),code:l}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d,h,p;return M(this,(function(g){switch(g.label){case 0:t=vo.IM_COMET,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,a=Zi(t),s=a.protocol,c=a.startTime,u=a.endTime,l=a.code,f=a.host,d=Hi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return d=g.sent(),[3,4];case 3:return h=g.sent(),pt.info(h.message),[3,4];case 4:return p=0,R(c)&&R(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:s,dur:p,cod:l,hos:f,net:d}),[2]}}))}))}(this._runtime),u===q.SUCCESS)this._startPullSignal(r),n(u);else if(u===ee.REDIRECT)n(u);else{if(0===o.length)return n(Gt(u)),[2];a=!1,c()}return[2]}}))}))};s._watcher.status(X.CONNECTING),c()}))]}))}))},t.prototype._connect=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,a,s,c;return M(this,(function(u){switch(u.label){case 0:return o=function(e){return 200!==e.status&&202!==e.status?(pt.error("handle comet res -> res: ".concat(JSON.stringify(e||{}))),!1):!!e.data&&(function(e){if(U(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)?U(e.data)?e.data:JSON.parse(e.data):(pt.error("received data is not a validJson",e.data),!1))},a=yo(r,n,e,t,this._runtime,i,this._pid),this.sendConnectTime=Date.now(),pt.info("conenct start -> ".concat(a)),[4,this._runtime.httpReq({url:a,body:{pid:this._pid},timeout:5e3})];case 1:return s=u.sent(),c=o(s),this._domain=n,c&&0===c.status?(this._sessionid=c.sessionid,this.userId=c.userId,this.connectedTime=c.timestamp,Je("connect success -> userId: ".concat(c.userId,", url: ").concat(a))):pt.warn("connect result -> code: ".concat(null==c?void 0:c.status,", url: ").concat(a)),[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,a,s,c,u,l;return M(this,(function(f){switch(f.label){case 0:return n=(t=this)._domain,r=t._sessionid,i=t._pid,o=e.messageId,a=e.topic,s=e.targetId,c=e.getHeaderFlag(),u=a?"".concat(this._protocol,"://").concat(n,"/websocket?messageid=").concat(o,"&header=").concat(c,"&sessionid=").concat(r,"&topic=").concat(a,"&targetid=").concat(s,"&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:Yi.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,a,s,c=this;return M(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())?(a=t&&o.data&&[q.SUCCESS,q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS].indexOf(o.status)>=0,s=a?this.codec.decodeByPBName(o.data,t,n):o,0!==o.status?[2,{code:o.status,data:t&&o.data?s:null}]:[2,{code:q.SUCCESS,data:s}]):[2,{code:q.TIMEOUT}]}}))}))},t.prototype.close=function(){this._isDisconnected=!0,this._watcher.status(X.DISCONNECTED)},t}(Bi),To=function(e){return["navi",e].join("_")};function Ao(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d,h,p;return M(this,(function(g){switch(g.label){case 0:t=vo.IM_NAVI,n=Qi(),r=n.sdkPrivate,i=n.serverPrivate,o=n.bundleId,a=Zi(t),s=a.protocol,c=a.startTime,u=a.endTime,l=a.code,f=a.host,d=Hi.UNKONWN,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return d=g.sent(),[3,4];case 3:return h=g.sent(),pt.debug(h.message),[3,4];case 4:return p=0,R(c)&&R(u)&&u>c&&c&&(p=u-c),Gi(t,{spr:r,pr:i,bid:o,ptc:s,dur:p,cod:l,hos:f,net:d}),[2]}}))}))}var _o=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=w(this._options.apiVersion)}return e.prototype.getNaviInfo=function(e,t,n,r){return I(this,void 0,void 0,(function(){var r,i;return M(this,(function(o){switch(o.label){case 0:return n&&this._clear(e),r=function(e,t,n){var r,i,o=To(e);try{var a=n.getItem(o);i=a?JSON.parse(a):[]}catch(e){i=[]}var s=Date.now();return i.length>0&&(i=i.filter((function(e){return s-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=To(e);try{var a=r.getItem(o);i=a?JSON.parse(a):[]}catch(e){i=[]}var s=Date.now();i.length>0&&(i=i.filter((function(e){return s-e.timestamp<72e5&&t!==e.token}))),i.push({timestamp:s,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=To(e);try{var o=n.getItem(i);r=o?JSON.parse(o):[]}catch(e){r=[]}var a=Date.now();r.length>0&&(r=r.filter((function(e){return a-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}(),wo=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}(),Eo=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=Eo("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=Eo("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||B(e))){n.broadcastSyncTime=e;var r=Eo("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=Eo("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=Eo("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=Eo("outbox",this._appkey,e);t.outboxTime=parseInt(this._runtime.localStorage.getItem(n))||0}return t.outboxTime},e}(),So={_caches:{},set:function(e,t){this._caches[e]=t},get:function(e){return this._caches[e]||0},clear:function(e){this._caches[e]=0}},Oo=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,a=this._getSetUserId(n),s=r===ge.DELETE,c=a===o,u=!this._isExisted(n),l=s?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)})),pt.debug("end setEntries")},e.prototype.clear=function(){this._kvCaches={}},e}(),Do=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,a;return M(this,(function(s){switch(s.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=So.get(t))>n?(this._isPulling=!1,this._startPull(),[2]):[4,this._engine.pullChatroomEntry(t,r)]);case 1:return i=s.sent(),o=i.code,a=i.data,this._isPulling=!1,o===q.SUCCESS?(So.set(t,a.syncTime||0),this._startPull()):this._startPull(),[2]}}))}))},e.prototype.reset=function(e){So.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];H(r)||(r=new Oo(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}(),xo=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){pt.error("parse rejoined chrm infos error -> ".concat(t)),e={}}return e},e.prototype.remove=function(e){delete this._joinedChrmsInfo[e],H(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}(),Ro="converStatusChanged",ko=function(){function e(e,t,n){this._eventEmitter=new gt,this._pullQueue=[],this._isPulling=!1,this._storage=d(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(!B(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(Ro,{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 M(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(Ro,(function(t){e(t)}))},e.prototype.unwatch=function(){this._eventEmitter.off(Ro,(function(e){}))},e}(),Lo={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}},jo={};for(var Po in Lo){var Uo=Lo[Po].keyName;jo[Uo]=Po}var zo,Bo=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:N.PRIVATE,targetId:"",channelId:""}},e.prototype.updateMentionedData=function(e){var t=this,n=e.conversationType,r=e.targetId,i=e.messageType,o=e.isMentioned,a=e.content,s=e.senderUserId,c=e.channelId,u=this._getStoreKey(n,r,c),l=this._localStore.get(u)||{},f=jo.mentionedInfo,d=jo.hasMentioned,h=l[f]||{},p=h.userIdList||[],g=a.mentionedInfo;if(g){if(o&&n===N.GROUP&&((g.userIdList||[]).forEach((function(e){e===t._currentUserId&&p.indexOf(s)<0&&p.push(s)})),g.type===ce.ALL&&p.indexOf(s)<0&&p.push(s)),i===ne.RECALL&&n===N.GROUP){var v=p.indexOf(s);v>=0&&p.splice(v,1)}g={userIdList:p,type:(null==g?void 0:g.type)||h.type},0!==p.length?(l[f]=g,l[d]=!0):(delete l[f],delete l[d]),H(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 a in n){var s=jo[a],c=n[a];if(!B(s)&&!B(c)&&"hasMentioned"!==a&&"MentionedInfo"!==a){if(c===Lo[s].defaultVal||"tags"===a&&!H(c))delete o[s];else if("tags"===a){var u=c;for(var l in u)u[l].isTop||delete u[l].isTop;o[s]=c}else o[s]=c;o.c||(delete o.t,delete o.hm,delete o.m,delete o.mc)}}H(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 a in Lo){var s=Lo[a],c=s.keyName,u=s.defaultVal;o[c]=i[a]||zt(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},a=t[r];for(var s in a)if(Lo[s]){var c=Lo[s],u=c.keyName,l=c.defaultVal;o[u]=a[s]||zt(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,a={},s=e[n];for(var c in s){var u=Lo[c],l=u.keyName,f=u.defaultVal;a[l]=s[c]||zt(f)}for(var d in a.tags){B(t[d])&&(t[d]=[]);var h=Object.assign({},a,{conversationType:i,targetId:o});delete h.tags,t[d].push(h)}}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){pt.error("adaptOldStore error: ".concat(e.message))}},e}(),Go=[N.PRIVATE,N.GROUP,N.SYSTEM,N.PUBLIC_SERVICE,N.APP_PUBLIC_SERVICE],Yo="conversationChanged",Ho="conTagStatusChanged",Fo=function(){function e(e,t,n,r,i){var o=this;this._updatedConversations={},this._conTagStatusChanged=!1,this._eventEmitter=new gt,this._draftMap={},this._recallMsgTimeMap={},this._appkey=t,this._loginUserId=n,this._store=new Bo(e.runtime,t,n),this._statusManager=new ko(e,t,n),this._statusManager.watch((function(e){var t=e.statusItem,n=e.isLastPull;o.addStatus(t,n)})),this._eventEmitter.on(Yo,(function(e){r(e)})),this._eventEmitter.on(Ho,(function(){i()}))}return e.prototype._calcUnreadCount=function(e,t){var n=e.content,r=e.messageType,i=e.sentTime,o=e.isCounted,a=e.messageDirection,s=e.senderUserId,c=a===Z.SEND&&s===this._loginUserId,u=r===ne.RECALL,l=U(n),f=!1,d={},h=t.lastUnreadTime||0,p=t.lastReadTime||0,g=t.unreadMessageCount||0;if(h>i||c)return{hasChanged:f,localConversation:t,updateItems:d};if(o&&(t.unreadMessageCount=g+1,t.lastUnreadTime=i,f=!0),u&&l){var v="".concat(e.conversationType,"_").concat(e.channelId,"_").concat(e.targetId),m=!this._recallMsgTimeMap[v]||this._recallMsgTimeMap[v]&&!this._recallMsgTimeMap[v].find((function(e){return e===n.sentTime})),y=h>=n.sentTime;p&&(y=p<n.sentTime),y&&g&&m&&(!this._recallMsgTimeMap[v]&&(this._recallMsgTimeMap[v]=[]),this._recallMsgTimeMap[v].push(n.sentTime),t.unreadMessageCount=g-1,f=!0)}return f&&(d.unreadMessageCount={val:t.unreadMessageCount,time:i}),{hasChanged:f,localConversation:t,updateItems:d}},e.prototype._calcMentionedInfo=function(e,t){var n=e.content,r=(e.messageDirection,e.isMentioned),i=e.sentTime;Z.SEND;var o=U(n),a=!1,s={};return r&&o&&n.mentionedInfo&&(t.hasMentioned=!0,a=!0,s.hasMentioned={val:!0,time:i},s.mentionedInfo={val:n.mentionedInfo,time:i}),{hasChanged:a,localConversation:t,updateItems:s}},e.prototype._calcMentionedCount=function(e,t){var n=e.content,r=e.messageDirection,i=!1;if(e.isMentioned&&r===Z.RECEIVE&&(null==n?void 0:n.mentionedInfo)){var o=n.mentionedInfo,a=o.type,s=o.userIdList;if(a===ce.ALL||(s||[]).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(U(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,a=e.notificationLevel,s=e.isTop,c=e.tags,u=e.channelId,l={},f={};n!==N.ULTRA_GROUP&&(B(o)||(f.notificationStatus={time:i,val:o}),B(a)||(f.notificationLevel={time:i,val:a}),B(s)||(f.isTop={time:i,val:s}),B(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:a,isTop:s,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(Yo,e),this._updatedConversations={},this._conTagStatusChanged&&(this._eventEmitter.emit(Ho),this._conTagStatusChanged=!1))},e.prototype.setConversationCacheByMessage=function(e,t){var n=this,r=e.conversationType,i=e.isPersited,o=e.targetId,a=e.channelId;if(Go.indexOf(r)>=0){var s=!1,c=this._store.get(r,o,a),u={};if([this._calcUnreadCount,this._calcMentionedInfo,this._calcMentionedCount].forEach((function(t){var r=t.call(n,e,c),i=r.hasChanged,o=r.localConversation,a=r.updateItems;s=s||i,u=y(y({},u),a),c=zt(o)})),s&&this._store.set(r,o,c,a),this._store.updateMentionedData(e),i){var l=this._store.get(r,o,a);l.updatedItems=y({latestMessage:{time:e.sentTime,val:e}},u),l.latestMessage=e;var f=Object.assign(l,{conversationType:r,targetId:o,channelId:a});this._setUpdatedConversation(f)}(s||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,a=e.notificationLevel,s=e.conversationType;r=r||0,(n||1!==o||a===ae.NOT_SET||a===ae.ALL_MESSAGE)&&(t.length>0?t.includes(Number(s))&&(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,a=i.hasMentioned,s={};if(o&&(i.unreadMessageCount=0,s.unreadMessageCount={val:0,time:Date.now()}),a&&(i.hasMentioned=!1,i.unreadMentionedCount=0,i.mentionedInfo=void 0,s.hasMentioned={val:!1,time:Date.now()},s.mentionedInfo={val:void 0,time:Date.now()}),this._store.set(e,t,i,n),r&&0!==Object.keys(s).length){var c=Object.assign(i,{conversationType:e,targetId:t,channelId:n,updatedItems:s});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===ie.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}(),$o=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=d(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,a,s;return M(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||B(r)?(this._isPulling=!1,this._startPull()):(o=(i=r).settings,a=i.version,s=o.Tag,B(s)||this._updateTag(s),this._storage.set(this._storagePullTimeKey,a),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}(),Vo=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,a;return M(this,(function(s){switch(s.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=s.sent(),o=i.code,a=i.data,o===q.SUCCESS?(this._isPulling=!1,this._pullTime=a.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("_")},Wo=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}();(zo={})[N.PRIVATE]=mo.qryPMsg,zo[N.GROUP]=mo.qryGMsg,zo[N.CHATROOM]=mo.qryCHMsg,zo[N.CUSTOMER_SERVICE]=mo.qryCMsg,zo[N.SYSTEM]=mo.qrySMsg;var Zo=[mo[mo.recallMsg],mo[mo.ppMsgS],mo[mo.pgMsgS],mo[mo.ppMsgP],mo[mo.pgMsgP],mo[mo.chatMsg],mo[mo.pcMsgP],mo[mo.prMsgS],mo[mo.updUgRTime]],Ko=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 a in n){var s=Jo[a],c=n[a];B(s)||B(c)||(c===qo[s].defaultVal?delete o[s]:o[s]=c)}H(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 a in qo){var s=qo[a],c=s.keyName,u=s.defaultVal;o[c]=i[a]||zt(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}},Jo={};for(var Xo in qo){var ea=qo[Xo].keyName;Jo[ea]=Xo}var ta=function(){function e(e,t,n){this._store=new Ko(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===N.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}(),na=function(e,t,n,r,i,a,s){return{conversationType:e,targetId:t,senderUserId:a,messageDirection:Z.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:s||0}},ra=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}))},ia=0,oa=function(){return++ia},aa=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=X.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 Wo(t,r.appkey),i._chrmEntryHandler=new Do(i),i._connectType=r.connectionType,i}return m(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 M(this,(function(a){return this.runtime.useNavi||(o=void 0,o=this.runtime.isSupportSocket()&&"websocket"===this._connectType?s.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,a,s,c,u,l,f,d,h;return M(this,(function(p){switch(p.label){case 0:r="getServerEndpoint",i=0,o=e.length,p.label=1;case 1:return i<o?(a=this._formatJSONPUrl(e[i],n,t,r),qe("req navi => ".concat(a)),[4,this.runtime.httpReq({url:a,timeout:1e4,dataType:"text"})]):[3,4];case 2:if(s=p.sent(),c=(new Date).getTime(),Wi(vo.IM_NAVI,{endTime:c}),200!==s.status)return u=void 0,403===s.status?(u=q.RC_CONN_USER_OR_PASSWD_ERROR,et("request navi error: "+u)):401===s.status&&(u=q.RC_CONN_APP_BLOCKED_OR_DELETED,et("request navi error: "+u)),Wi(vo.IM_NAVI,{code:u}),Ao(this.runtime),[3,3];try{return l=s.data.match(/{[\d\D]+}/),0===(f=l&&l[0]?l[0]:"").indexOf('{\\"code\\":')&&(f=JSON.parse('"'+f+'"')),h=JSON.parse(f),d=/^https/.test(a)?"https":"http",h.protocol=d,this.runtime.useNavi||(h.server="",h.backupServer=this._miniConnectUrl,h.logSwitch=0),Vi({serverPrivate:h.type===ci.PRIVATE?ci.PRIVATE:ci.OPEN}),Wi(vo.IM_NAVI,{code:q.SUCCESS}),h.userId&&(lt({userId:h.userId}),We({userId:h.userId})),Ao(this.runtime),[2,h]}catch(e){et("parse navi err =>",e)}p.label=3;case 3:return i+=1,[3,1];case 4:return this.runtime.useNavi?[2,null]:(h={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},Wi(vo.IM_NAVI,{code:h.code,startTime:0,endTime:0,host:""}),Ao(this.runtime),[2,h])}}))}))},t.prototype.getNaviInfoFromCache=function(){return this.naviInfo?y({},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,a,s=this;return M(this,(function(c){switch(c.label){case 0:return n=[],this.naviInfo=t,t.server?n.push(t.server):pt.warn("navi.server is invalid"),(r=t.backupServer)&&r.split(",").forEach((function(e){n.indexOf(e)<0&&n.push(e)})),0===n.length?(pt.error("navi invaild.",n),[2,q.UNKNOWN]):(i=this.runtime.createDataChannel({status:function(r){s._connectionStatusHandler(r,e,n,t.protocol)},signal:this._signalHandler.bind(this)},this._options.connectionType),o=At.V3,1===t.openAnti&&(o=At.V4),[4,i.connect(this._appkey,e,n,t.protocol,this._apiVer,o)]);case 1:return(a=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(X.CONNECTED),this._status=X.CONNECTED,this._pullOfflineFinished=!1,this._conversationManager=new Fo(this,this._appkey,this.currentUserId,this._watcher.conversation,this._watcher.conversationTag),this._ultraGroupManager=new ta(this,this._appkey,this.currentUserId),this._conversationManager.startPullConversationStatus(0),this._userSettingManager=new $o(this,this._appkey,this.currentUserId,this._watcher.tag),this._userSettingManager.pullUserSettings(0),this._sendMessageStore.init(this.currentUserId),this._conversationManager.adaptOldStore(),this._rtcKVManager=new Vo(this),this._joinedChrmManager=new xo(this.runtime,this._appkey,this.currentUserId,t.joinMChrm),this._startSyncInterval(),1===t.ugMsg&&this._startUltraSyncInterval()):i.close(),[2,a]}}))}))},t.prototype._connectionStatusHandler=function(e,t,n,r){if(pt.warn("connection status changed:",e),this._status=e,e!==X.CONNECTING)if(e!==X.CONNECTED){if(this._channel&&e!==X.DISCONNECTED)return e===X.BLOCKED||e===X.KICKED_OFFLINE_BY_OTHER_CLIENT||e===X.DISCONNECT_BY_SERVER?(this.disconnect(),void this._watcher.status(e)):void(e!==X.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,a=this;return M(this,(function(s){switch(s.label){case 0:return this._channel?(o=At.V3,1===(null===(r=this.naviInfo)||void 0===r?void 0:r.openAnti)&&(o=At.V4),[4,this._channel.connect(this._appkey,e,t,n,this._apiVer,o)]):[2];case 1:return s.sent()===q.SUCCESS?(this._pullOfflineFinished=!1,this._startSyncInterval(),this._watcher.status(X.CONNECTED),this._status=X.CONNECTED,1===(null===(i=this.naviInfo)||void 0===i?void 0:i.ugMsg)&&this._startUltraSyncInterval(),this._rejoinChrm(),[2]):(this._watcher.status(X.WEBSOCKET_UNAVAILABLE),this._status=X.WEBSOCKET_UNAVAILABLE,this._reconnectTimer=setTimeout((function(){a._reconnectTimer=-1,a._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=mo[r];if(i)switch(i){case mo.s_ntf:pt.info("recv s_ntf -> signal.messageId: ".concat(e.messageId)),this._pullMsg(e);break;case mo.s_msg:this._receiveMsg(e);break;case mo.s_cmd:this._receiveStateNotify(e);break;case mo.s_us:this._receiveSettingNotify(e);break;case mo.rtc_ntf:this._receiveRtcKv(e);break;case mo.s_opNtf:this._pullOperateStatusNotify(e)}else pt.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,ir)).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(Zo.includes(e.topic)){if(e.topic===mo[mo.updUgRTime]){var i=null===(n=this._channel)||void 0===n?void 0:n.codec.decodeByPBName(e.data,yn),o=i.channelId,a=i.busChannel,s=this._ultraGroupMap[a+"_"+o];return s&&(s.unreadMessageCount=0,s.unreadMentionedCount=0,s.lastReadTime=t.timestamp,this._watcher.conversation(Ht([s]))),void(t&&(this._ultraMsgMap[t.messageUId]=t.timestamp))}var c=null===(r=this._channel)||void 0===r?void 0:r.codec.decodeByPBName(e.data,Jt,{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!==ne.EXPANSION_NOTIFY?(c.messageType===ne.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(pt.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,a,s,c,u,l,f,d,h,p,g,v,m,y,I=this;return M(this,(function(M){switch(M.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),pt.info("pullMsg -> sendboxTime: ".concat(e,", inboxTime: ").concat(t,", broadcastSyncTime: ").concat(n)),r=this._channel.codec.encodeSyncMsg({sendboxTime:e,inboxTime:t,broadcastSyncTime:n}),i=new lo(mo[mo.pullMsg],r,this.currentUserId),o=Qe(),Je(he.L_PULL_MSG_T,{outboxTime:e,inboxTime:t,broadcastSyncTime:n},{traceId:o}),[4,this._channel.send(i,tn,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):(this._pullingMsg=!1,[2]);case 1:return a=M.sent(),s=a.code,c=a.data,this._latestSyncTimestamp=Date.now(),s!==q.SUCCESS||!c||B(c.finished)||B(c.list)||B(c.syncTime)?(pt.warn("pullMsg failed -> code:",s,", data: ",c),Xe(he.L_PULL_MSG_R,{code:s,timestamp:this._latestSyncTimestamp},{traceId:o}),this._pullingMsg=!1,[2]):(u=c.list,l=c.finished,f=c.syncTime,d=c.broadcastSyncTime,h=void 0===d?1:d,pt.info("pullMsg success -> syncTime: ".concat(f,", finished: ").concat(l)),p=0,g=[],v=[],u.forEach((function(e){if(g.push(e.messageUId),e.messageDirection===Z.SEND&&(p=Math.max(e.sentTime,p),I._sendMessageStore.getSendMessageMap()[e.messageUId]))I._sendMessageStore.removeByUID(e.messageUId);else if(e.messageType!==ne.EXPANSION_NOTIFY){if(e.messageType===ne.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(h,this.currentUserId),this._sendMessageStore.removeByTimestamp(p),this._pullingMsg=!1,m=this._pullQueue.filter((function(e){return e>f})),this._pullQueue.length=0,(y=this._pullQueue).push.apply(y,m),l&&!this._pullOfflineFinished&&(this._pullOfflineFinished=!0,this._watcher.pullFinished()),Je(he.L_PULL_MSG_R,{code:s,messageUIds:g.join(","),timestamp:this._latestSyncTimestamp,hasmore:!l},{traceId:o}),(!l||m.length>0)&&this._syncMsg(),[2])}}))}))},t.prototype._receiveMsg=function(e){if(this._channel){var t=this._channel.codec.decodeByPBName(e.data,en,{currentUserId:this.currentUserId,connectedTime:this._channel.connectedTime});if((t=this._handleMsgProperties(t)).conversationType!==N.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!==ne.EXPANSION_NOTIFY?t.messageType===ne.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,a=e.isStatusMessage,s=r in u,c=r in this._customMessageType;if(n=s?y(y({},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&&!B(a)&&(e.isStatusMessage=a),!t){var f=e.content.user;if(f){var d=f.portrait,h=f.portraitUri,p=d||h;p&&(f.portrait=f.portraitUri=p)}}return e},t.prototype.getHistoryMessage=function(e,t,n,r,i,o,a,s){return void 0===o&&(o=""),I(this,void 0,void 0,(function(){var a,c,u,l,f,d,h,p,g,v;return M(this,(function(m){switch(m.label){case 0:return c=(a=this).currentUserId,u=a._channel,l=xi[e]||wi,f=1===r&&0===n,u?(d=u.codec.encodeGetHistoryMsg(t,{timestamp:n,count:f?2:r,order:i,channelId:o}),Je(he.L_GET_HISTORY_MSG_T,{targetId:t,conversationType:e,channelId:o,timestamp:n,count:r,order:i},{traceId:s}),[4,u.send(new lo(l,d,c),un,{currentUserId:c,connectedTime:u.connectedTime,conversation:{targetId:t}})]):[3,2];case 1:return h=m.sent(),(p=h.code)===q.SUCCESS&&d?(g=h.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)})),Je(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:v.join(",")},{traceId:s}),[2,{code:p,data:{list:g.list,hasMore:g.hasMore}}]):(Xe(he.L_GET_HISTORY_MSG_R,{code:p,messageUIds:""},{traceId:s}),[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){pt.info("reportSDKInfo ->",e);var r=n.codec.encodeReportSDKInfo(JSON.stringify(e)),i=new lo(mo[mo.reportsdk],r,t);n.send(i).then((function(e){var t=e.code;t!==q.SUCCESS&&pt.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,a,s,c,u,l;return M(this,(function(f){switch(f.label){case 0:return o=(i=this).currentUserId,(a=i._channel)?(s=a.codec.encodeDeleteMessages(e,t,n,r),c=new lo(pi,s,o),[4,a.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,a,s,c,u,l,f;return M(this,(function(d){switch(d.label){case 0:return o=(i=this).currentUserId,(a=i._channel)?(s=a.codec.encodeClearMessages(t,n,r,e),c=Ri[e],u=new lo(c,s,o),[4,a.send(u)]):[3,2];case 1:return l=d.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,a,s,c,u,l,f,d=this;return M(this,(function(h){switch(h.label){case 0:return o=(i=this).currentUserId,a=i._channel,t=t||N.PRIVATE,a?(s=a.codec.encodeOldConversationList({count:e,type:t,startTime:n,order:r}),c=new lo(Ci,s,o),[4,a.send(c,fn,{currentUserId:o,connectedTime:a.connectedTime,afterDecode:function(e){var t=e.conversationType,n=e.targetId,r=e.channelId,i=d._conversationManager.get(t,n,r);return Object.assign(e,i),e}})]):[3,2];case 1:return u=h.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,a,s;return M(this,(function(c){switch(c.label){case 0:return(r=this._channel)?(i=r.codec.encodeRemoveOldConversationList({conversationType:e,channelId:n,targetId:t}),o=new lo(Ti,i,t),[4,r.send(o)]):[3,2];case 1:return a=c.sent(),pt.info("RemoveConversation =>",a),s=a.code,q.SUCCESS,[2,s];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,a,s,c;return M(this,(function(u){switch(u.label){case 0:return e!==N.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(),a=o.code,s=o.data,a!==q.SUCCESS)return[2,{code:q.CONVER_GET_ERROR}];c=(null==s?void 0:s.list[0])||null,r={conversationType:e,targetId:t,channelId:n,unreadMessageCount:i.unreadMessageCount||0,latestMessage:c,notificationStatus:i.notificationStatus||ie.CLOSE,notificationLevel:i.notificationLevel||ae.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===N.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,a,s,c,u,l=this;return M(this,(function(f){switch(f.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeGetConversationStatus(e),o=new lo(mo[mo.pullSeAtts],i,r),[4,n.send(o,ar)]):[3,2];case 1:return a=f.sent(),s=a.code,c=a.data,Je(he.L_PULL_CONVERSATION_S,{timestamp:e,userId:r}),s!==q.SUCCESS?[2,{code:s}]:(u=[],Array.isArray(c)&&c.forEach((function(e){var t=e.conversationType,n=e.targetId,r=e.notificationStatus,i=e.channelId,o=e.isTop,a=e.notificationLevel,s=l._ultraGroupMap[i+"_"+n];t===N.ULTRA_GROUP?s&&(void 0!==r&&(s.notificationStatus=r),void 0!==a&&(s.notificationLevel=a),void 0===a&&void 0===r||l._ultraGroupManager.addUltraGroupStatus(e),"boolean"==typeof o&&(s.isTop=o)):u.push(e)})),[2,{code:s,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,a,s,c,u,l,f,d=this;return M(this,(function(h){switch(h.label){case 0:return n=(t=this).currentUserId,(r=t._channel)?(i=r.codec.encodeSetConversationStatus(e,this._conversationUpdatedTime),o=new lo(Ai,i,n),[4,r.send(o,lr)]):[3,2];case 1:return a=h.sent(),s=a.code,c=a.data,s===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,a=e.isTop;if(t===N.ULTRA_GROUP){var s=d._ultraGroupMap[o+"_"+n];s&&(void 0!==r&&(s.notificationStatus=r),void 0!==i&&(s.notificationLevel=i),void 0===i&&void 0===r||d._ultraGroupManager.addUltraGroupStatus(s),void 0!==a&&(s.isTop=a),l.push(s))}else d._conversationManager.addStatus(y(y({},e),{updatedTime:u.version}),!0)})),l.length>0&&(f=Ht(l),f=ra(f),this._watcher.conversation(f)),[2,s]):[2,s];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,a,s,c,u,l,f;return M(this,(function(d){switch(d.label){case 0:return(i=this._channel)?(o=i.codec.encodeJoinOrQuitChatRoom(),s=new lo(a=n?vi:gi,o,e),Je(he.L_JOIN_CHATROOM_T,{chatroomId:e,count:t,topic:a},{traceId:r}),[4,i.send(s,Mn)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return c=d.sent(),u=c.code,l=c.data,(u===q.SUCCESS?Je:Xe)(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,a;return M(this,(function(s){switch(s.label){case 0:for(n in e=this._joinedChrmManager.get(),t=[],e)t.push(n);r=0,s.label=1;case 1:return r<t.length?(i=t[r],Je(he.L_REJOIN_CHATROOM_T,{chatroomId:i,count:e[i]||10,topic:vi}),o=Qe(),[4,this._joinChrm(i,e[i]||10,!0,o)]):[3,4];case 2:a=s.sent(),(a===q.SUCCESS?Je:Xe)(he.L_REJOIN_CHATROOM_R,{code:a,timestamp:(new Date).getTime()},{traceId:o}),a===q.SUCCESS?this._watcher.chatroom({rejoinedRoom:{chatroomId:i,count:e[i]}}):this._watcher.chatroom({rejoinedRoom:{chatroomId:i,errorCode:a}}),s.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,a,s,c,u,l,f,d,h,p,g;return M(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,a=this._channel.codec.encodeChrmSyncMsg(o,t),s=new lo(mo[mo.chrmPull],a,e),Je(he.L_PULL_CHATROOM_MSG_T,{chatroomId:e,timestamp:o}),[4,this._channel.send(s,tn,{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,d=l.syncTime,h=l.finished,r.timestamp=n?Math.max(d,n):d,r.queue=r.queue.filter((function(e){return e>d})),p=[],g=[],f.forEach((function(e){e.sentTime<o||(p.push(e.messageUId),g.push(e))})),this._watcher.batchMessage(g),Je(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:p.join(",")}),(!h||r.queue.length>0)&&this._pullChrmMsg(e),[2]):(Xe(he.L_PULL_CHATROOM_MSG_R,{code:u,timestamp:o,messageUIds:""}),pt.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 M(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 M(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 M(this,(function(a){switch(a.label){case 0:return(t=this._channel)?(n=t.codec.encodeJoinOrQuitChatRoom(),r=new lo(mi,n,e),[4,t.send(r)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return i=a.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,a,s,c;return M(this,(function(u){switch(u.label){case 0:return(r=this._channel)?(i=r.codec.encodeGetChatRoomInfo(t,n),o=new lo(mo[mo.queryChrmI],i,e),[4,r.send(o,Cn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=u.sent(),s=a.code,c=a.data,s!==q.SUCCESS?[2,{code:s}]:[2,{code:s,data:c}]}}))}))},t.prototype.getChatroomHistoryMessages=function(e,t,n,r){return I(this,void 0,void 0,(function(){var i,o,a,s,c,u;return M(this,(function(l){switch(l.label){case 0:return(i=this._channel)?(o=i.codec.encodeGetHistoryMsg(e,{timestamp:t,count:n,order:r}),a=new lo(Ni,o,e),[4,i.send(a,un,{conversation:{targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=l.sent(),c=s.code,u=s.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,a,s,c,u,l;return M(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,a=r.codec.encodeModifyChatRoomKV(e,t,i),s=t.type===ge.UPDATE?yi:Ii,c=new lo(s,a,e),[4,r.send(c,Mn)]):[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,a,s,c,u,l,f,d,h,p=this;return M(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),a=t.type===ge.UPDATE?Mi:bi,s=new lo(a,o,e),[4,r.send(s,Kn)]):[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(d=Object.assign({},t)).entries,t.entries.forEach((function(e){f.push(Object.assign({},e,d))})),u===q.CHATROOM_KV_STORE_NOT_ALL_SUCCESS&&(h=c.data,pt.warn("设置失败的属性:",h.errorKeys),l=h.errorKeys,h&&Array.isArray(h.errorKeys)&&h.errorKeys.forEach((function(e){var t=f.findIndex((function(t){return e.key===t.key}));-1!==t&&f.splice(t,1)}))),pt.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 M(this,(function(n){return t.type=ge.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 M(this,(function(n){return t.type=ge.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 M(this,(function(n){return t.type=ge.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 M(this,(function(n){return t.type=ge.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 M(this,(function(n){return t.type=ge.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 M(this,(function(n){return t.type=ge.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,a,s,c;return M(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 lo(mo[mo.pullKV],i,e),[4,r.send(o,Zn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return a=u.sent(),(s=a.data||{})&&s.kvEntries&&s.kvEntries.length&&(c=s.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,a,s;return M(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 lo(mo[mo.pullKV],i,e),[4,n.send(o,Zn)]):[2,Promise.reject({code:q.RC_NET_CHANNEL_INVALID})];case 2:return a=c.sent(),(s=a.data||{})&&s.kvEntries&&s.kvEntries.length&&s.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,a,s,c,u,l,f,d,h;return M(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),a=new lo(mo[mo.pullKV],o,e),Je(he.L_PULL_CHATROOM_KV_T,{chatroomId:e,timestamp:t}),[4,r.send(a,Zn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=p.sent(),c=s.code,u=s.data,(c===q.SUCCESS?Je:Xe)(he.L_PULL_CHATROOM_KV_R,{code:c,timestamp:t}),c===q.SUCCESS?(pt.info("Pull success ChrmKV, "+JSON.stringify(s)),this._chrmEntryHandler.setLocal(e,u,i),pt.info("Save into cache success!"),f=(l=u).kvEntries,d=l.syncTime,this._pullChatroomEntryTimestamp=d||0,h=[],f.length>0&&(f.forEach((function(t){var n=t.key,r=t.value,i=t.type,o=t.timestamp;h.push({key:n,value:r,type:i,timestamp:o,chatroomId:e})})),this._watcher.chatroom({updatedEntries:h})),[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,a,s,c,u,l,f,d,h,p,g;return M(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=!![N.PRIVATE,N.GROUP].includes(e)&&n.isStatusMessage,a=o?function(e){var t;return(t={},t[N.PRIVATE]=mo.ppMsgS,t[N.GROUP]=mo.pgMsgS,t)[e]}(e):function(e){var t;return(t={},t[N.PRIVATE]=mo.ppMsgP,t[N.GROUP]=mo.pgMsgP,t[N.CHATROOM]=mo.chatMsg,t[N.CUSTOMER_SERVICE]=mo.pcMsgP,t[N.RTC_ROOM]=mo.prMsgS,t)[e]}(e)||mo.ppMsgP,o&&(n.isPersited=!1,n.isCounted=!1),s=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},n),(c=new so(mo[a],s,t)).setHeaderQos(Mt.AT_LEAST_ONCE),u=n.isPersited?oa():0,o?(this._channel.sendOnly(c),[2,{code:q.SUCCESS,data:na(e,t,y({},n),"",0,this.currentUserId,u)}]):(l=Date.now()-this._localConnectedTime+this._connectedTime,f=na(e,t,y({},n),"",l,this.currentUserId,u),r&&r(u),Je(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 d=v.sent(),h=d.code,p=d.data,h!==q.SUCCESS?(Xe(he.L_SEND_MSG_R,{code:h,messageUId:f.messageUId,messageId:f.messageId},{traceId:i}),[2,{code:h,data:f}]):(Je(he.L_SEND_MSG_R,{code:h,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 a,s,c,u,l,f,d,h,p,g,v,m,I;return M(this,(function(M){switch(M.label){case 0:return this._channel?(a=i.user,s=i.extra,c=i.isDelete,u={conversationType:e,targetId:t,messageUId:n,sentTime:r,channelId:i.channelId||"",isDelete:c||!1},a&&(u.user=a),s&&(u.extra=s),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=mo[mo.recallMsg],d=this._channel.codec.encodeUpMsg({conversationType:e,targetId:t},l),(h=new so(f,d,this.currentUserId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(h)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return p=M.sent(),g=p.code,v=p.data,e===N.ULTRA_GROUP&&qe(he.L_RECALL_ULTRA_MSG_S,{code:g,conversationType:e,targetId:t,channelId:i.channelId}),g!==q.SUCCESS?[2,{code:g}]:(m=v,e===N.ULTRA_GROUP?(this._ultraMsgMap[m.messageUId]=m.timestamp,this._updateUltraGroupWhenRecallMsg(t,i.channelId||"",n),[2,{code:q.SUCCESS}]):(this._sendMessageStore.setMessage(m.messageUId,m.timestamp),I=na(e,t,y(y({},l),{isPersited:!0}),m.messageUId,m.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 M(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeReadReceipt(t,n),i=new lo(mo[mo.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 M(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeMessageReader(t,n),i=new lo(mo[mo.rrList],r,e),[4,this._channel.send(i,vr)]):[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 M(this,(function(r){return this._channel?(t=this._channel.codec.encodePullUserSetting(e),n=new lo(mo[mo.pullUS],t,this.currentUserId),[2,this._channel.send(n,rr)]):[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,a,s,c,u;return M(this,(function(l){switch(l.label){case 0:return this._channel?(i=r&&"uploads"!==r?t||"":Ot(e,t),o=this._channel.codec.encodeGetFileToken(e,i,n||"",r||""),a=new lo(mo[mo.qnTkn],o,this.currentUserId),[4,this._channel.send(a,Bn)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return s=l.sent(),c=s.code,u=s.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,a,s,c,u,l,f,d;return M(this,(function(h){switch(h.label){case 0:return this._channel?(i="",o="",a="",t===le.QINIU?(o=Gn,a=Hn):(o=Yn,a=Fn),i=t===le.QINIU?mo[mo.qnUrl]:t===le.AWS?mo[mo.s3Url]:t===le.STC?mo[mo.stcUrl]:mo[mo.aliUrl],s=this._channel.codec.encodeGetFileUrl(o,e,n,r),c=new lo(i,s,this.currentUserId),[4,this._channel.send(c,a)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return u=h.sent(),l=u.code,f=u.data,d=f,l===q.SUCCESS?[2,{code:l,data:d}]:[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,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new lo(mo[mo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,tr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,a=i.data,o!==q.SUCCESS?[2,{code:o}]:(s=a.version,this._userSettingManager.addTag([y(y({},e),{createdTime:s})],s),[2,{code:q.SUCCESS,data:a}])}}))}))},t.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeRemoveTag([e],t),r=new lo(mo[mo.delSeTag],n,this.currentUserId),[4,this._channel.send(r,tr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,a=i.data,o!==q.SUCCESS?[2,{code:o}]:(s=a.version,this._userSettingManager.deleteTag([e],s),[2,{code:q.SUCCESS}])}}))}))},t.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?(t=this._userSettingManager.getVersion(),n=this._channel.codec.encodeCreateTag([e],t),r=new lo(mo[mo.addSeTag],n,this.currentUserId),[4,this._channel.send(r,tr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,a=i.data,o!==q.SUCCESS?[2,{code:o}]:(s=a.version,this._userSettingManager.addTag([e],s),[2,{code:q.SUCCESS,data:a}])}}))}))},t.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){var e,t;return M(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,a=this;return M(this,(function(s){switch(s.label){case 0:return this._channel?this._userSettingManager.getTagById(e)?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new lo(mo[mo.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=s.sent().code)!==q.SUCCESS?[2,{code:i}]:((o={})[e]={},t.forEach((function(e){a._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 M(this,(function(a){switch(a.label){case 0:return this._channel?(n=this._channel.codec.encodeUpdateConversationTag([{tagId:e}],t),r=new lo(mo[mo.delTag],n,this.currentUserId),[4,this._channel.send(r)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(i=a.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,a,s,c;return M(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}})),a=this._channel.codec.encodeUpdateConversationTag(o,[e]),s=new lo(mo[mo.delTag],a,this.currentUserId),[4,this._channel.send(s)]):[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,a,s,c,u,l,f;return M(this,(function(d){switch(d.label){case 0:return i=(r=this).currentUserId,(o=r._channel)?(a=o.codec.encodeOldConversationList({count:n,type:N.PRIVATE,startTime:t}),s=new lo(Ci,a,i),[4,o.send(s,fn,{currentUserId:i,connectedTime:o.connectedTime})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return c=d.sent(),u=c.code,l=c.data,f=this._conversationHasTagFilter(e,null==l?void 0:l.list),pt.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,a=t.targetId,s=t.channelId,c=n._conversationManager.get(o,a,s),u=c.hasMentioned,l=c.mentionedInfo,f=c.lastUnreadTime,d=c.notificationStatus,h=c.isTop,p=c.tags,g=c.unreadMessageCount,v=p&&p[e];if(v){var m=y(y({},t),{hasMentioned:u,mentionedInfo:l,lastUnreadTime:f,notificationStatus:d,isTop:h,unreadMessageCount:g});v.isTop?r.push(y(y({},m),{isTopInTag:!0})):i.push(y(y({},m),{isTopInTag:!1}))}})),b(b([],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 M(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,a,s,c,u,l,f,d;return M(this,(function(h){switch(h.label){case 0:return this._channel?(r=t.targetId,i=t.conversationType,o=t.channelId,a=n.isTop,s=[{tagId:e,isTop:a}],(c=this._conversationManager.get(i,r,o)).tags&&Object.hasOwnProperty.call(c.tags,e)?(u=this._channel.codec.encodeUpdateConversationTag(s,[t]),l=new lo(mo[mo.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=h.sent().code)!==q.SUCCESS?[2,{code:f}]:((d={})[e]={},a&&(d[e].isTop=!0),this._conversationManager.addTagStatus(i,r,d,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 M(this,(function(a){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===N.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===N.ULTRA_GROUP)return Promise.resolve({code:q.METHOD_NOT_AVAILABLE});var r;if(!(r=e===N.ULTRA_GROUP?this._ultraGroupManager.get(N.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n)))return Promise.resolve({code:q.SUCCESS,data:ae.NOT_SET});var i=r.notificationLevel;return B(r.notificationLevel)&&!B(r.notificationStatus)&&(i=ie.OPEN===r.notificationStatus?1:0),Promise.resolve({code:q.SUCCESS,data:i})},t.prototype.getConversationNotificationStatus=function(e,t,n){var r;return(r=e===N.ULTRA_GROUP?this._ultraGroupManager.get(N.ULTRA_GROUP,t,n):this._conversationManager.get(e,t,n))?Promise.resolve({code:q.SUCCESS,data:r.notificationStatus}):Promise.resolve({code:q.SUCCESS,data:ie.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 M(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&&R(n))})),r=ra(r),i=Ht(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===ie.OPEN&&t.push({conversationType:N.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:N.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,a;return M(this,(function(s){switch(s.label){case 0:return this._isUltraGroupListExist?this._channel?this._status!==X.CONNECTED?[2,q.RC_NET_UNAVAILABLE]:(n=Date.now(),r=this._channel.codec.encodeClearUnreadCount({conversationType:N.ULTRA_GROUP,targetId:e,channelId:t},{timestamp:n}),(i=new so(mo[mo.updUgRTime],r,this.currentUserId)).setHeaderQos(Mt.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=s.sent().code)===q.SUCCESS&&(a=this._ultraGroupMap[t+"_"+e])&&(a.unreadMessageCount=0,a.unreadMentionedCount=0,a.lastReadTime=n),[2,o]}}))}))},t.prototype._getUltraGroupList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f,d,h,p=this;return M(this,(function(g){switch(g.label){case 0:return this._channel&&this._status===X.CONNECTED?(t=this._channel.codec.encodeUltraGroup(e,!1),n=new lo(mo[mo.pullUgSes],t,this.currentUserId),[4,this._channel.send(n,fn,{currentUserId:this.currentUserId,conversationType:N.ULTRA_GROUP})]):[2];case 1:return r=g.sent(),i=r.code,o=r.data,i===q.SUCCESS&&o?(s=(null==o?void 0:o.list)||[],c=null==o?void 0:o.isFinished,s.forEach((function(e){e.notificationStatus=ie.CLOSE,e.notificationLevel=ae.NOT_SET,e.isTop=!1,p._ultraGroupMap[e.channelId+"_"+e.targetId]=e,p._ultraGroupManager.addUltraGroupStatus(e)})),!1!==c?[3,2]:(u=s.length>0&&s[s.length-1].versionTime||0,this._getUltraGroupList(u),[3,4])):(pt.warn("pull super conversation failed, code:",i,", data:",o,"retrying..."),a=setTimeout((function(){p._firstPullUltraGroupTime=e,p._getUltraGroupList(e),clearTimeout(a)}),3e3),[2]);case 2:return[4,this.pullConversationStatus(this._firstPullUltraGroupTime)];case 3:l=g.sent(),f=l.code,d=l.data,f!==q.SUCCESS&&pt.warn("pullConversationStatus fail code: ".concat(f,", data: ").concat(d)),h=Object.values(this._ultraGroupMap),h=ra(h),this._isUltraGroupListExist=!0,this._watcher.ultraGroupEnable(Ht(h)),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,a,s,c,u,l,f,d,h,p,g,v=this;return M(this,(function(m){switch(m.label){case 0:return this._channel&&this._status===X.CONNECTED?this._isUltraPulling?[2]:(pt.info("start pull ultra msg, time: ".concat(e)),this._isUltraPulling=!0,n=this._channel.codec.encodeSuperSyncMsg(e),r=new lo(mo[mo.pullUgMsg],n,this.currentUserId),i=Qe(),Je(he.L_PULL_ULTRA_MSG_T,{timestamp:e},{traceId:i}),[4,this._channel.send(r,tn,{currentUserId:this.currentUserId,conversation:{conversationType:N.ULTRA_GROUP}})]):[2];case 1:if(o=m.sent(),a=o.code,s=o.data,pt.info("end pull ultra msg, code: ".concat(a,", syncTime: ").concat(null==s?void 0:s.syncTime,", count: ").concat(null===(t=null==s?void 0:s.list)||void 0===t?void 0:t.length)),this._lastSyncUltraMsgLocalTimeStamp=Date.now(),a!==q.SUCCESS||!s)return Xe(he.L_PULL_ULTRA_MSG_R,{code:a,messageUIds:"",timestamp:e},{traceId:i}),pt.warn("sync super message failed, code:",a,", data:",s),this._isUltraPulling=!1,[2];if(this._isUltraPulling=!1,c=s.list,u=s.syncTime,l=s.finished,!this._isUltraGroupListExist)return pt.info("init getUltraGroupList"),this._firstPullUltraGroupTime=0,this._getUltraGroupList(0),this._lastSyncUltraMsgTimeStamp=u,[2];for(g in f=[],d={},h=[],c.forEach((function(e){var t,n,r,i=e.targetId,o=e.content,a=e.messageType,s=e.messageUId,c=e.channelId,l=e.isCounted,p=e.channelType;if(f.push(s),v._ultraMsgMap[s])delete v._ultraMsgMap[s];else{var g=0;((null===(t=null==o?void 0:o.mentionedInfo)||void 0===t?void 0:t.type)===ce.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 m=v._ultraGroupMap[c+"_"+i];if(m)l&&(a===ne.RECALL?m.unreadMessageCount>0&&(m.unreadMessageCount-=1):(m.unreadMessageCount+=1,m.unreadMentionedCount+=g)),m.versionTime=u,m.latestMessage=e,m.channelType=p,d[c+"_"+i]=m,v._ultraGroupManager.addUltraGroupStatus(m);else{var y={conversationType:N.ULTRA_GROUP,targetId:i,channelId:c,unreadMessageCount:l?1:0,unreadMentionedCount:l?g:0,versionTime:u,latestMessage:e,notificationStatus:ie.CLOSE,notificationLevel:ae.NOT_SET,isTop:!1,channelType:p};v._ultraGroupMap[c+"_"+i]=y,d[c+"_"+i]=y,v._ultraGroupManager.addUltraGroupStatus(y)}h.push(e)}})),Object.keys(d).length>0&&(pt.info("notice ultragroups"),p=Object.values(d),p=ra(p),this._watcher.conversation(Ht(p))),Je(he.L_PULL_ULTRA_MSG_R,{code:a,messageUIds:f.join(","),timestamp:u},{traceId:i}),pt.info("notice ultragroup message"),this._watcher.batchMessage(h),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,a,s,c,u,l,f,d,h,p;return M(this,(function(g){switch(g.label){case 0:return this._channel?this._status!==X.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:("RC:SRSMsg"===t.messageType&&pt.warn("ultra group -> direction message convert to message"),t=this._handleMsgProperties(t,!0),i=this._channel.codec.encodeUpMsg({conversationType:N.ULTRA_GROUP,targetId:e},t),(o=new so(mo[mo.ugMsg],i,e)).setHeaderQos(Mt.AT_LEAST_ONCE),a=Date.now()-this._localConnectedTime+this._connectedTime,s=t.isPersited?oa():0,c=na(N.ULTRA_GROUP,e,y({},t),"",a,this.currentUserId,s),n&&n(s),Je(he.L_SEND_MSG_T,{messageType:t.messageType,conversationType:N.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?(Xe(he.L_SEND_MSG_R,{code:l,messageUId:c.messageUId,messageId:c.messageId},{traceId:r}),[2,{code:l,data:c}]):(Je(he.L_SEND_MSG_R,{code:l,messageUId:null==f?void 0:f.messageUId,messageId:null==f?void 0:f.messageId},{traceId:r}),d=f,c.sentTime=d.timestamp,c.messageUId=d.messageUId,this._ultraMsgMap[d.messageUId]=d.timestamp,h=t.channelId||"",(p=this._ultraGroupMap[h+"_"+e])?(p.latestMessage=c,R(p.channelType)&&(c.channelType=p.channelType)):(p={conversationType:N.ULTRA_GROUP,targetId:e,channelId:h,unreadMessageCount:0,unreadMentionedCount:0,versionTime:c.sentTime,latestMessage:c,notificationStatus:ie.CLOSE,notificationLevel:ae.NOT_SET,isTop:!1},this._ultraGroupMap[h+"_"+e]=p,this._ultraGroupManager.addUltraGroupStatus(p)),this._watcher.conversation(Ht([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,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==X.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),(a=new so(mo[mo.operate],o,i)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(a)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return(s=c.sent().code)!==q.SUCCESS?[2,{code:s,msg:q[s]}]:[2,{code:s}]}}))}))},t.prototype.getUltraGroupMessageListByMessageUId=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?this._status!==X.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 lo(mo[mo.qryMsg],n,this.currentUserId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(r,xr,{connectedTime:this._channel.connectedTime,currentUserId:this.currentUserId})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return i=c.sent(),o=i.code,a=i.data,o!==q.SUCCESS?[2,{code:o,msg:q[o]}]:(s=(a||{}).list,Array.isArray(s)&&s.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,kr),n=t.conversationType,r=t.info,i=t.summary;pt.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,a;return M(this,(function(s){switch(s.label){case 0:return this._channel?this._status!==X.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeExpandUltraMessage(e,this.currentUserId),(n=new so(mo[mo.upMsgEx],t,e.targetId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(a=o,this._ultraMsgMap[a.messageUId]=a.timestamp,[2,{code:i}])}}))}))},t.prototype.modifyMessage=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a;return M(this,(function(s){switch(s.label){case 0:return this._channel?this._status!==X.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodemodifyMessage(e,this.currentUserId),(n=new so(mo[mo.modifyMsg],t,e.targetId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(n)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=s.sent(),i=r.code,o=r.data,i!==q.SUCCESS?[2,{code:i,msg:q[i]}]:(a=o,this._ultraMsgMap[a.messageUId]=a.timestamp,[2,{code:i}])}}))}))},t.prototype._pullUltraChangeMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u,l,f;return M(this,(function(d){switch(d.label){case 0:return this._channel?this._status!==X.CONNECTED||this._isPullingUltraChangeMessage?[2]:(this._isPullingUltraChangeMessage=!0,t=this._channel.codec.encodeQueryMsgChange(e),(n=new lo(mo[mo.qryMsgChange],t,this.currentUserId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(n,Sr)]):[2];case 1:if(r=d.sent(),i=r.code,o=r.data,this._isPullingUltraChangeMessage=!1,i!==q.SUCCESS||!o)return[2];for(l in a=o.hasNext,s=o.list,c=(null==o?void 0:o.syncTime)||0,this._ultraChannelTypeChangeNotice(s),this._ultraChannelUserKickedNotice(s),this._ultraChannelDeleteNotice(s),this._ultraRecalledNotice(s),this._ultraMsgUpdateNotice(be.MSG_EXPANSION,s),this._ultraMsgUpdateNotice(be.MSG_MODIFY,s),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 a?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,a=e.channelId,s=void 0===a?"":a;if(i===be.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(s,"_").concat(r)]){var c=Ce.PUBLIC_TO_PRIVATE,u=Ce.PRIVATE_TO_PUBLIC,l=Ce.PUBLIC_TO_PRIVATE_USER_NOT_IN;o===u&&(t._ultraGroupMap["".concat(s,"_").concat(r)].channelType=Ie.PUBLIC),o===c&&(t._ultraGroupMap["".concat(s,"_").concat(r)].channelType=Ie.PRIVATE);var f=t._ultraGroupMap["".concat(s,"_").concat(r)].channelType,d=void 0===f?Ie.PUBLIC:f;[c,u,l].includes(o)&&n.push({targetId:r,channelId:s,changeType:o,channelType:d}),o===l&&delete t._ultraGroupMap["".concat(s,"_").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,a=e.subChangeType,s=e.channelId,c=void 0===s?"":s;if(o===be.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]){var u=t._ultraGroupMap["".concat(c,"_").concat(r)].channelType,l=void 0===u?Ie.PUBLIC:u;a===Ce.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,a=e.subChangeType,s=e.channelId,c=void 0===s?"":s;i===be.CHANNEL_CHANGE&&t._ultraGroupMap["".concat(c,"_").concat(r)]&&(a===Ce.CHANNEL_USER_KICKED&&n.push({targetId:r,channelId:c,userId:o,channelType:Ie.PRIVATE}),o===t.currentUserId&&a===Ce.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,a=e.messageUId,s=e.changeType,c=e.operatorId,u=e.channelId,l=void 0===u?"":u;s===be.MSG_RECALL&&(t._updateUltraGroupWhenRecallMsg(r,l,a),n.push({targetId:r,conversationType:i,sendTime:o,messageUId:a,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,a=t.sendTime,s=t.messageUId,c=t.changeType,u=t.channelId,l=o+"_"+i,f=s+"_"+(void 0===u?"":u)+"_"+a,d=r[l];if(d)d.add(f);else{var h=new Set([f]);r[l]=h}c===e&&(n._ultraMsgChangeMap[s]=c)}));var i=function(e){var t=e.split("_"),n=t.shift(),i=t.join("_"),a=r[e],s=[];a.forEach((function(e){var t=e.split("_"),n=t[0],r=t[1],i=t[2];s.push({sendTime:Number(i),messageUId:n,channelId:r})}));var c={targetId:i,conversationType:Number(n),messages:s};o._pullUltraMessageList(c)},o=this;for(var a in r)i(a)},t.prototype._pullUltraMessageList=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u=this;return M(this,(function(l){switch(l.label){case 0:return this._channel?this._status!==X.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(t=this._channel.codec.encodeMsgQuery(e),(n=new lo(mo[mo.qryMsg],t,this.currentUserId)).setHeaderQos(Mt.AT_LEAST_ONCE),[4,this._channel.send(n,xr,{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]}]:(a=(o||{}).list,s=[],c=[],Array.isArray(a)&&a.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===be.MSG_EXPANSION?s.push(e):o===be.MSG_MODIFY&&c.push(e)})),s.length>0&&this._watcher.ultraGroupMessageExpansionUpdated(s||[]),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,a,s,c;return M(this,(function(u){switch(u.label){case 0:return this._channel?this._status!==X.CONNECTED?[2,{code:q.RC_NET_UNAVAILABLE}]:(r=this._channel.codec.encodeGetHistoryMsg(e,t),i=new lo(mo[mo.qryUgMsg],r,this.currentUserId),Je(he.L_GET_HISTORY_MSG_T,{targetId:e,conversationType:N.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,un,{currentUserId:this.currentUserId,conversation:{conversationType:N.ULTRA_GROUP,targetId:e}})]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=u.sent(),a=o.code,s=o.data,a===q.SUCCESS&&s?(c=[],s.list&&s.list.forEach((function(e){e&&c.push(e.messageUId)})),Je(he.L_GET_HISTORY_MSG_R,{code:a,messageUIds:c.join(",")},{traceId:n}),[2,{code:a,data:s}]):(Xe(he.L_GET_HISTORY_MSG_R,{code:a,messageUIds:""},{traceId:n}),pt.warn("get super history message failed, code:",a,", data:",s),[2,{code:a}])}}))}))},t.prototype.searchUltraGroupMessages=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(e){return this._channel?this._status!==X.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,a,s;return M(this,(function(c){switch(c.label){case 0:return this._isUltraGroupListExist?(r=this._channel)?(i=r.codec.encodeSetUltraGroupDefaultNotificationLevel(t,n),o=new lo(mo[mo.ugUnpushSet],i,e),[4,r.send(o)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return a=c.sent(),s=a.code,q.SUCCESS,[2,{code:s}];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,a,s,c;return M(this,(function(u){switch(u.label){case 0:return this._isUltraGroupListExist?(n=this._channel)?(r=n.codec.encodeGetUltraGroupDefaultNotificationLevel(t),i=new lo(mo[mo.ugUnpushQuery],r,e),[4,n.send(i,hr)]):[3,2]:[2,Promise.resolve({code:q.METHOD_NOT_AVAILABLE})];case 1:return o=u.sent(),a=o.code,s=o.data,a===q.SUCCESS&&s?(c=s.unpushLevel,[2,{code:a,data:c}]):[2,{code:a}];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 a,s;return M(this,(function(c){return this._channel?(a=this._channel.codec.encodeJoinRTCRoom(t,n,r,i,o),s=new lo(mo[mo.rtcRJoin_data],a,e),[2,this._channel.send(s,An)]):[2,{code:q.RC_NET_CHANNEL_INVALID}]}))}))},t.prototype.quitRTCRoom=function(e){return I(this,void 0,void 0,(function(){var t,n;return M(this,(function(r){switch(r.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new lo(mo[mo.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 M(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new lo(mo[mo.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 M(this,(function(r){return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new lo(mo[mo.rtcRInfo],t,e),[2,this._channel.send(n,jn)]):[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 M(this,(function(a){switch(a.label){case 0:return this._channel?(t=this._channel.codec.encodeGetRTCRoomInfo(),n=new lo(mo[mo.rtcUData],t,e),[4,this._channel.send(n,An)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return r=a.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 M(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeSetRTCUserInfo(t,n),i=new lo(mo[mo.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 M(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeRemoveRTCUserInfo(t),r=new so(mo[mo.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 a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?(a=this._channel.codec.encodeSetRTCData(t,n,r,i,o),s=new so(mo[mo.rtcSetData],a,e),[4,this._channel.send(s)]):[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,a;return M(this,(function(s){switch(s.label){case 0:return this._channel?(o=this._channel.codec.encodeUserSetRTCData(t,n,r,i),a=new lo(mo[mo.userSetData],o,e),[4,this._channel.send(a)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,s.sent().code]}}))}))},t.prototype.setRTCCDNUris=function(e,t,n){return I(this,void 0,void 0,(function(){var r,i;return M(this,(function(o){switch(o.label){case 0:return this._channel?(r=this._channel.codec.encodeUserSetRTCCDNUris(t,n),i=new lo(mo[mo.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 lo(mo[mo.rtcQryData],i,e);return this._channel.send(o,xn)},t.prototype.removeRTCData=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){var o,a;return M(this,(function(s){switch(s.label){case 0:return this._channel?(o=this._channel.codec.encodeRemoveRTCData(t,n,r,i),a=new so(mo[mo.rtcDelData],o,e),[4,this._channel.send(a)]):[2,q.RC_NET_CHANNEL_INVALID];case 1:return[2,s.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 M(this,(function(o){return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new lo(mo[mo.rtcToken],r,e),[2,this._channel.send(i,Dn)]):[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 M(this,(function(i){switch(i.label){case 0:return this._channel?(n=this._channel.codec.encodeSetRTCState(t),r=new lo(mo[mo.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 M(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 lo(mo[mo.rtcUList],t,e);return this._channel.send(n,An)},t.prototype.joinLivingRoomAsAudience=function(e,t,n){return void 0===t&&(t=Te.LIVE),I(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l;return M(this,(function(f){switch(f.label){case 0:return this._channel?(r=this._channel.codec.encodeJoinRTCRoom(t,n),i=new lo(mo[mo.viewerJoinR],r,e),[4,this._channel.send(i,Yr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=f.sent(),a=o.code,s=o.data,a!==q.SUCCESS?[2,{code:a}]:(u=(c=s).rtcToken,l=c.entries,[2,{code:a,data:{token:u,kvEntries:l}}])}}))}))},t.prototype.quitLivingRoomAsAudience=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return M(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeQuitRTCRoom(),n=new lo(mo[mo.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,a,s;return M(this,(function(c){switch(c.label){case 0:return this._channel?(r=this._channel.codec.encodeIdentityChangeInfo(t,n),i=new lo(mo[mo.rtcIdentityChange],r,e),[4,this._channel.send(i,An)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return o=c.sent(),a=o.code,s=o.data,a!==q.SUCCESS?[2,{code:a}]:[2,{code:a,data:s}]}}))}))},t.prototype.pullRTCRoomEntry=function(e,t){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u;return M(this,(function(l){switch(l.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(pt.info("audience in room start pull KV"),i=n.codec.encodePullRTCRoomKV(e,0),o=new lo(mo[mo.rtcPullKv],i,r),[4,n.send(o,zr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=l.sent(),s=a.code,c=a.data,pt.info("audience in room end pull KV, code: ".concat(s,", data: ").concat(JSON.stringify(c||{}))),s===q.SUCCESS?(u=c.kvEntries,this._watcher.onRTCDataChange(u,e),[2,{code:s,data:c}]):[2,{code:s}]}}))}))},t.prototype.getRTCJoinedUserInfo=function(e){return I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c;return M(this,(function(u){switch(u.label){case 0:return n=(t=this)._channel,r=t.currentUserId,n?(i=n.codec.encodeQueryUserJoinedInfo(e),o=new lo(mo[mo.rtcQueryJoined],i,r),[4,n.send(o,Gr)]):[2,{code:q.RC_NET_CHANNEL_INVALID}];case 1:return a=u.sent(),s=a.code,c=a.data,s===q.SUCCESS?[2,{code:s,data:c}]:[2,{code:s}]}}))}))},t.prototype.getDeviceId=function(){return it(this.runtime)},t.prototype.requestRoomPK=function(e){return I(this,void 0,void 0,(function(){var t,n,r;return M(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeRequestRoomPK(e),n=new lo(mo[mo.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 M(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeCancelRoomPK(e),n=new lo(mo[mo.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 M(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeResponseRoomPK(e),n=new lo(mo[mo.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 M(this,(function(i){switch(i.label){case 0:return this._channel?(t=this._channel.codec.encodeEndRoomPK(e),n=new lo(mo[mo.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 M(this,(function(o){switch(o.label){case 0:return this._channel?(t=e.chatRoomId,n=this._channel.codec.encodebindRTCRoomForChatroom(e),r=new lo(mo[mo.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,a){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,a){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}(_o),sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(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}(wo);function ca(e){return Object.assign({},e)}var ua,la=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=X.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,a),Vi({bundleId:this.apiPKGName}),function(e){Ke=st.init(y(y({},e),{sessionId:je})),dt()}({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=Bt()?new RCCppEngine(e,r,this._options):new aa(e,r,this._options)}return e.init=function(t,n){return We({customLogPrint:n.logStdout,localLogLevel:n.logLevel}),pt.setLogLevel(n.logLevel),pt.setLogStdout(n.logStdout),Je(he.L_INIT_O,{appkey:n.appkey,navigators:n.navigators,connectionType:n.connectionType,logLevel:n.logLevel,typingExpireTime:n.typingExpireTime}),!1===n.indexDBSwitch&&(Re.indexDBSwitch=!1),Je(he.L_IMSDK_VER_O,{commitId:"b3936f05590d2beb491dee0dbb7071eeb648e941",version:"5.4.3"}),pt.debug("APIContext.init =>",n.appkey,n.navigators),this._context?(pt.error("Repeat initialize!"),this._context):(pt.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 pt.warn("Repeat install plugin: ".concat(e.tag)),this._pluginInstanseMap[e.tag];var n="RCRTC"===e.tag?new sa(this):new wo(this),r=null;try{if(!e.verify(this._runtime))return null;r=e.setup(n,this._runtime,t)}catch(e){pt.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 M(this,(function(n){switch(n.label){case 0:return pt.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 M(this,(function(n){return Je(he.L_CONNECT_S,{status:e}),[X.REDIRECT,X.BLOCKED,X.KICKED_OFFLINE_BY_OTHER_CLIENT,X.DISCONNECT_BY_SERVER,X.DISCONNECTED,X.NETWORK_UNAVAILABLE].includes(e)&&(Wi(vo.IM_CONNECTION_DURATION,{endTime:(new Date).getTime(),code:e}),function(e){I(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,c,u;return M(this,(function(l){switch(l.label){case 0:t=vo.IM_CONNECTION_DURATION,n=Qi().bundleId,r=Zi(t),i=r.startTime,o=r.endTime,a=r.code,s=Hi.UNKONWN,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,e.getNetworkType()];case 2:return s=l.sent(),[3,4];case 3:return c=l.sent(),pt.debug(c.message),[3,4];case 4:return u=0,R(i)&&R(o)&&o>i&&i&&(u=o-i),Gi(t,{bid:n,cod:a,dur:u,net:s}),[2]}}))}))}(this._runtime)),this._connectionStatus=e,e===X.REDIRECT?(this._canRedirectConnect=!0,this._handleSuspend(e),this._handleRedirect()):e===X.BLOCKED||e===X.KICKED_OFFLINE_BY_OTHER_CLIENT||e===X.DISCONNECT_BY_SERVER?(this._canRedirectConnect=!1,this._handleDisconnect(e)):e===X.CONNECTING?this._handleConnecting():e===X.CONNECTED?this._handleConnected():e===X.DISCONNECTED?this._handleDisconnect(e):e===X.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===N.RTC_ROOM||Object.prototype.hasOwnProperty.call(Se,e.messageType))&&this._watcher.rtcInnerWatcher&&this._watcher.rtcInnerWatcher.message)this._watcher.rtcInnerWatcher.message(ca(e));else if(-1===["RC:ChrmJoinNtf","RC:ChrmQuitNtf"].indexOf(e.messageType)||"function"!=typeof this._watcher.chatroomState){if("RC:ChrmMemChange"!==e.messageType){if(e.messageType!==ne.TYPING_STATUS||(this._addTypingInfo(ca(e)),!this._watcher.typingState))if(e.messageType!==ne.LOG_COMMAND||"rongcloudsystem"!==e.senderUserId)if(e.messageType!==ne.INTERCEPT){if(!this._pluginContextQueue.some((function(t){if(!t.onmessage)return!1;try{return t.onmessage(ca(e))}catch(e){return pt.error("plugin error =>",e),!1}})))if(this._watcher.message&&this._watcher.message(ca(e),t,n),"RC:ReadNtf"!==e.messageType)if("RC:RRReqMsg"!==e.messageType){if("RC:RRRspMsg"!==e.messageType)return e;var a=null===(o=e.content)||void 0===o?void 0:o.receiptMessageDic,s=this._engine.getCurrentUserId();a&&Array.isArray(a[s])&&"function"==typeof this._watcher.messageReceiptResponse&&this._watcher.messageReceiptResponse({conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},e.senderUserId,a[s])}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,d=c.logId,h=c.uri,p=c.packageName,g={startTime:parseInt(u),endTime:parseInt(l),platform:f,logId:d,uri:h,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?me.QUIT:me.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]=z(r)||U(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,a=i.typingContentType,s=o||"",c="".concat(n,"#").concat(r,"#").concat(s);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===a?this._typingInfo[c][u].timestamp=Date.now():(u>=0&&this._typingInfo[c].splice(u,1),this._typingInfo[c].push({userId:t,messageType:a,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,a,s,c,u,l;return M(this,(function(f){switch(f.label){case 0:return this._connectionStatus===X.CONNECTED?[2,{code:q.SUCCESS,userId:this._engine.getCurrentUserId()}]:this._connectionStatus===X.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],a=o?o.split(";").map((function(e){return/^https?:/.test(e)?e:"https://".concat(e)})):[],Je(he.L_GET_NAVI_T,{token:e,uris:a},{traceId:r}),[4,this._engine.getNaviInfo(this._getTokenWithoutNavi(),a,t,this._options.checkCA)]);case 1:return(s=f.sent())?(Je(he.L_GET_NAVI_R,{code:q.SUCCESS,naviInfo:s},{traceId:r}),Je(he.L_ENV_S,{isEnterprise:1===(null==s?void 0:s.type)},{traceId:r}),1===(null==s?void 0:s.type)?[2,{code:q.PACKAGE_ENVIRONMENT_ERROR}]:(c=It.getInfo(),Je(he.L_CONNECT_T,{token:e,refreshNavi:t,reconnectKickEnable:n},{traceId:r}),[4,this._engine.connect(this._getTokenWithoutNavi(),s,n,r)])):(Xe(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?Je:Xe)(he.L_CONNECT_R,{code:u,userId:this._engine.getCurrentUserId()},{traceId:r}),u!==ee.REDIRECT?[3,4]:(this._connectionStatus=X.REDIRECT,[4,this.connect(e,!0)]);case 3:return[2,f.sent()];case 4:return l=this._engine.getCurrentUserId(),u===q.SUCCESS&&(Wi(vo.IM_CONNECTION_DURATION,{startTime:(new Date).getTime()},!0),pt.info("connect success, userId: ".concat(l)),1!==(null==s?void 0:s.type)&&this._engine.reportSDKInfo&&this._engine.reportSDKInfo(c),lt({runtime:this._runtime,logSwitch:(null==s?void 0:s.logSwitch)||0,logPolicy:JSON.parse((null==s?void 0:s.logPolicy)||"{}"),appkey:this.appkey,version:this.apiVersion,userId:l}),We({userId:l}),this._isInternalConnected=!0),u!==q.SUCCESS||Bt()||1===s.openUS&&this._pullUserSettings(),u!==q.SUCCESS&&(this._connectionStatus=X.CONNECTION_CLOSED),[2,{code:u,userId:l}]}}))}))},e.prototype._pullUserSettings=function(){return I(this,void 0,void 0,(function(){return M(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(),We({userId:""}),this._engine.disconnect(),this._pluginContextQueue.forEach((function(e){if(e.ondisconnect)try{e.ondisconnect()}catch(e){pt.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!==N.ULTRA_GROUP){var o=this.getInfoFromCache();if(1===((null==o?void 0:o.grpRRVer)||0)&&n.messageType===ne.READ_RECEIPT_RESPONSE)return Promise.resolve({code:q.READ_RECEIPT_ERROR})}var a=n.canIncludeExpansion,s=void 0!==a&&a,c=n.expansion;if(s){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 d=JSON.stringify(n.content);return A(d)>131072?Promise.resolve({code:q.RC_MSG_CONTENT_EXCEED_LIMIT}):e===N.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,a,s,c,u,l,f;return M(this,(function(d){switch(d.label){case 0:return t=e.channelId,n=e.conversationType,r=e.targetId,i=e.messageUId,o=e.keys,a=e.expansion,s=e.removeAll,e.canIncludeExpansion?(c=Q(a),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},a&&(f.put=a),o&&(f.del=o),s&&(f.removeAll=1),[4,this._engine.sendMessage(n,r,{content:f,messageType:ne.EXPANSION_NOTIFY,channelId:t})])):[2,{code:q.MESSAGE_KV_NOT_SUPPORT}];case 1:return[2,{code:d.sent().code}]}}))}))},e.prototype.sendReadReceiptMessage=function(e,t,n){return I(this,void 0,void 0,(function(){var r;return M(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 M(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){pt.error("plugin error =>",e)}})),this._pluginContextQueue.length=0,this._pluginInstanseMap={},null===(e=st.getInstance())||void 0===e||e.distroy(),We({userId:""})},e.prototype.getHistoryMessage=function(e,t,n,r,i,o,a,s){if(void 0===n&&(n=0),void 0===r&&(r=20),void 0===i&&(i=0),void 0===o&&(o=""),void 0===a&&(a=""),e===N.ULTRA_GROUP){var c={timestamp:n,count:r,order:i,channelId:o};return this._engine.getUltraHistoryMsg(t,c,s)}return this._engine.getHistoryMessage(e,t,n,r,i,o,a||"",s)},e.prototype.getHistoryMessagesByObjectNames=function(e,t,n,r,i,o,a){return this._engine.getHistoryMessagesByObjectNames(e,t,n,r,i,o,a)},e.prototype.getConversationList=function(e,t,n,r,i){if(void 0===e&&(e=300),void 0===i&&(i=""),t===N.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===N.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===N.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(N.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:[N.PRIVATE,N.GROUP,N.SYSTEM,N.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 M(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===N.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===N.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 Rt(n)&&kt(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(!Rt(i)||!kt(o))return Promise.resolve({code:q.BIZ_ERROR_INVALID_PARAMETER})}var a=y(y({},t),{isOverwrite:t.isForce});return this._engine.setChatroomEntries(e,a)},e.prototype.forceSetChatroomEntry=function(e,t){var n=t.key,r=t.value;return Rt(n)&&kt(r)?this._engine.forceSetChatroomEntry(e,t):Promise.resolve(q.BIZ_ERROR_INVALID_PARAMETER)},e.prototype.removeChatroomEntry=function(e,t){var n=t.key;return Rt(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(!Rt(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 Rt(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,a,s,c,u,l;return M(this,(function(f){switch(f.label){case 0:return i=this.getInfoFromCache(),o=(null==i?void 0:i.bosAddr)||"",a=(null==i?void 0:i.uploadServer)||"",s=(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:a,ossConfig:s}))]:[2,Promise.reject(u)]}}))}))},e.prototype.getFileUrl=function(e,t,n,r,i){return void 0===i&&(i=le.QINIU),I(this,void 0,void 0,(function(){var o,a,s;return M(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(),a=o.code,s=o.data,a===q.SUCCESS?[2,Promise.resolve(s)]:[2,Promise.reject(a)]}}))}))},e.prototype.createTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.createTag(e)]}))}))},e.prototype.removeTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.removeTag(e)]}))}))},e.prototype.updateTag=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.updateTag(e)]}))}))},e.prototype.getTagList=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,this._engine.getTagList()]}))}))},e.prototype.addTagForConversations=function(e,t){return I(this,void 0,void 0,(function(){return M(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 M(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 M(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 M(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 M(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 M(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 M(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!==N.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,a,s;return M(this,(function(c){switch(c.label){case 0:return t=e.conversationType,n=e.expansion,r=e.canIncludeExpansion,t!==N.ULTRA_GROUP?[2,{code:i=q.METHOD_ONLY_SUPPORT_ULTRA_GROUP,msg:q[i]}]:r?(o=Q(n),a=o.isIllgalEx,s=o.isExKeyOrValLengthExceedLimit,o.isExceedLimit||s?[2,{code:q.EXPANSION_LIMIT_EXCEET}]:a?[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 M(this,(function(n){switch(n.label){case 0:return e.conversationType!==N.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,b([e],n,!1))},e.prototype.clearConversations=function(e,t){return I(this,void 0,void 0,(function(){return M(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){pt.error(e)}}))},e.prototype.addToBlacklist=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.addToBlacklist(e)]}))}))},e.prototype.removeFromBlacklist=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.removeFromBlacklist(e)]}))}))},e.prototype.getBlacklist=function(){return I(this,void 0,void 0,(function(){return M(this,(function(e){return[2,this._engine.getBlacklist()]}))}))},e.prototype.getBlacklistStatus=function(e){return I(this,void 0,void 0,(function(){return M(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 M(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 M(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 M(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 M(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 M(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 M(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 M(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 M(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 M(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 M(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 M(this,(function(t){return[2,this._engine.setUserStatus(e)]}))}))},e.prototype.subscribeUserStatus=function(e){return I(this,void 0,void 0,(function(){return M(this,(function(t){return[2,this._engine.subscribeUserStatus(e)]}))}))},e.prototype.getUserStatus=function(e){return I(this,void 0,void 0,(function(){return M(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 M(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 M(this,(function(r){return[2,this._engine.searchConversationByContentWithAllChannel(e,t,n)]}))}))},e.prototype.searchMessageByContent=function(e,t,n,r,i,o,a){return void 0===a&&(a=""),I(this,void 0,void 0,(function(){return M(this,(function(s){return[2,this._engine.searchMessageByContent(e,t,n,r,i,o,a)]}))}))},e.prototype.searchMessageByContentWithAllChannel=function(e,t,n,r,i){return I(this,void 0,void 0,(function(){return M(this,(function(o){return[2,this._engine.searchMessageByContentWithAllChannel(e,t,n,r,i)]}))}))},e.prototype.searchMessageByContentInTimeRangeWithAllChannel=function(e,t,n,r,i,o,a){return I(this,void 0,void 0,(function(){return M(this,(function(s){return[2,this._engine.searchMessageByContentInTimeRangeWithAllChannel(e,t,n,r,i,o,a)]}))}))},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 M(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"}(ua||(ua={}))}).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){
  203. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  204. t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=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?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*g}},"91ca":function(e,t,n){var r=n("96fb"),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),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/a)*c*a:(t=(1+a/o)*i,n=t-(t-i),n>s||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 a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/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,d,h,p,g=e[l].replace(s,"%20"),v=g.indexOf(n);v>=0?(f=g.substr(0,v),d=g.substr(v+1)):(f=g,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),r(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};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"),a=n("69a8"),s=n("5ca1"),c=n("4630"),u=n("cb7c"),l=n("d3f4");function f(e,t,n){var s,d,h=arguments.length<4?e:arguments[3],p=i.f(u(e),t);if(!p){if(l(d=o(e)))return f(d,t,n,h);p=c(0)}if(a(p,"value")){if(!1===p.writable||!l(h))return!1;if(s=i.f(h,t)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,r.f(h,t,s)}else r.f(h,t,c(0,n));return!0}return void 0!==p.set&&(p.set.call(h,n),!0)}s(s.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,a,s,c;for(a in t)if(i=e[a],o=t[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(c=i,e[a]=i={},i[c]=!0),"string"===typeof o&&(c=o,t[a]=o={},o[c]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))e[a]=i.concat(o);else if(Array.isArray(o))e[a]=[i].concat(o);else for(s in o)i[s]=o[s];else e[a]=t[a];return e}),{})}},9306:function(e,t,n){"use strict";var r=n("8e60"),i=n("c3a1"),o=n("9aa9"),a=n("355d"),s=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=s(e),u=arguments.length,l=1,f=o.f,d=a.f;while(u>l){var h,p=c(arguments[l++]),g=f?i(p).concat(f(p)):i(p),v=g.length,m=0;while(v>m)h=g[m++],r&&!d.call(p,h)||(n[h]=p[h])}return n}:u},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 a(e,t){switch(i(e)){case"object":return s(e,t);case"array":return c(e,t);default:return r(e)}}function s(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]=a(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]=a(e[r],t);return n}e.exports=a},"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",a=i.asyncIterator||"@@asyncIterator",s=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(x){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),a=new S(r||[]);return o._invoke=_(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(x){return{type:"throw",arg:x}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function y(){}var I={};c(I,o,(function(){return this}));var M=Object.getPrototypeOf,b=M&&M(M(O([])));b&&b!==n&&r.call(b,o)&&(I=b);var C=y.prototype=v.prototype=Object.create(I);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(i,o,a,s){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,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(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 _(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return D()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===g)continue;return s}}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=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function w(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,w(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 E(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,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,a=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 a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return m.prototype=y,c(C,"constructor",y),c(y,"constructor",m),m.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},T(A.prototype),c(A.prototype,a,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new A(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(C),c(C,s,"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,S.prototype={constructor:S,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(N),!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 s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.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 a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),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),N(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;N(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"),a=n("9def"),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(c||!n("2f21")(s)),"Array",{lastIndexOf:function(e){if(c)return s.apply(this,arguments)||0;var t=i(this),n=a(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"),a=n("aae3"),s=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),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):s.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"),a=n("7726").Reflect;e.exports=a&&a.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,a=n>>>0;return o+(r>>>0)+((i&a|(i|a)&~(i+a>>>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","","")}}))},"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,a={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},s=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={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,h),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 m,y,I=p[n],M=I.indexOf("]="),b=-1===M?I.indexOf("="):M+1;-1===b?(m=t.decoder(I,a.decoder,v,"key"),y=t.strictNullHandling?null:""):(m=t.decoder(I.slice(0,b),a.decoder,v,"key"),y=r.maybeMap(c(I.slice(b+1),t),(function(e){return t.decoder(e,a.decoder,v,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===v&&(y=s(y)),I.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(f,m)?f[m]=r.combine(f[m],y):f[m]=y}return f},d=function(e,t,n,r){for(var i=r?t:c(t,n),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(u,10);n.parseArrays||""!==u?!isNaN(l)&&s!==u&&String(l)===u&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[],a[l]=i):"__proto__"!==u&&(a[u]=i):a={0:i}}i=a}return i},h=function(e,t,n,r){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&a.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=s.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)+"]"),d(l,t,n,r)}},p=function(e){if(!e)return a;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?a.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:a.comma,decoder:"function"===typeof e.decoder?e.decoder:a.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:a.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):{},a=Object.keys(i),s=0;s<a.length;++s){var c=a[s],u=h(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)},a159:function(e,t,n){var r=n("e4ae"),i=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("1ec9")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),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?(s[c]=r(e),n=new s,s[c]=null,n[a]=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"),a=n.n(o),s=/%[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 a=String(i).replace(s,(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])a+=" "+c;return a}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 d(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e),i++,i===o&&n(r)}e.forEach((function(e){t(e,a)}))}function h(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],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 h(i,n,r)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,c=0,u=[],l=function(e){u.push.apply(u,e),c++,c===s&&r(u)};a.forEach((function(t){var r=e[t];-1!==o.indexOf(t)?h(r,n,l):d(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 m(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(e[n])?e[n]=i()({},e[n],r):e[n]=r}return e}function y(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=y;function M(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(u(i.messages.whitespace,e.fullField))}var b=M,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},T={integer:function(e){return T.number(e)&&parseInt(e,10)===e},float:function(e){return T.number(e)&&!T.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":a()(e))&&!T.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 A(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"],s=e.type;o.indexOf(s)>-1?T[s](t)||r.push(u(i.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&r.push(u(i.messages.types[s],e.fullField,e.type))}}var _=A;function w(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,f=null,d="number"===typeof t,h="string"===typeof t,p=Array.isArray(t);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(l=t.length),h&&(l=t.replace(c,"_").length),o?l!==e.len&&r.push(u(i.messages[f].len,e.fullField,e.len)):a&&!s&&l<e.min?r.push(u(i.messages[f].min,e.fullField,e.min)):s&&!a&&l>e.max?r.push(u(i.messages[f].max,e.fullField,e.max)):a&&s&&(l<e.min||l>e.max)&&r.push(u(i.messages[f].range,e.fullField,e.min,e.max))}var E=w,N="enum";function S(e,t,n,r,i){e[N]=Array.isArray(e[N])?e[N]:[],-1===e[N].indexOf(t)&&r.push(u(i.messages[N],e.fullField,e[N].join(", ")))}var O=S;function D(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 x=D,R={required:I,whitespace:b,type:_,range:E,enum:O,pattern:x};function k(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();R.required(e,t,r,o,i,"string"),f(t,"string")||(R.type(e,t,r,o,i),R.range(e,t,r,o,i),R.pattern(e,t,r,o,i),!0===e.whitespace&&R.whitespace(e,t,r,o,i))}n(o)}var L=k;function j(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var P=j;function U(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var z=U;function B(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var G=B;function Y(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),f(t)||R.type(e,t,r,o,i)}n(o)}var H=Y;function F(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var $=F;function V(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var Q=V;function W(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"array")&&!e.required)return n();R.required(e,t,r,o,i,"array"),f(t,"array")||(R.type(e,t,r,o,i),R.range(e,t,r,o,i))}n(o)}var Z=W;function K(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),void 0!==t&&R.type(e,t,r,o,i)}n(o)}var q=K,J="enum";function X(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();R.required(e,t,r,o,i),t&&R[J](e,t,r,o,i)}n(o)}var ee=X;function te(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t,"string")&&!e.required)return n();R.required(e,t,r,o,i),f(t,"string")||R.pattern(e,t,r,o,i)}n(o)}var ne=te;function re(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(f(t)&&!e.required)return n();if(R.required(e,t,r,o,i),!f(t)){var s=void 0;s="number"===typeof t?new Date(t):t,R.type(e,s,r,o,i),s&&R.range(e,s.getTime(),r,o,i)}}n(o)}var ie=re;function oe(e,t,n,r,i){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);R.required(e,t,r,o,i,s),n(o)}var ae=oe;function se(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(f(t,o)&&!e.required)return n();R.required(e,t,r,a,i,o),f(t,o)||R.type(e,t,r,a,i)}n(a)}var ce=se,ue={string:L,method:P,number:z,boolean:G,regexp:H,integer:$,float:Q,array:Z,object:q,enum:ee,pattern:ne,date:ie,url:ce,hex:ce,email:ce,required:ae};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 de(e){this.rules=null,this._messages=fe,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=m(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":a()(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,s=n,l=r;if("function"===typeof s&&(l=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var f=this.messages();f===fe&&(f=le()),m(f,s.messages),s.messages=f}else s.messages=this.messages();var d=void 0,h=void 0,p={},y=s.keys||Object.keys(this.rules);y.forEach((function(n){d=t.rules[n],h=o[n],d.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===e&&(o=i()({},o)),h=o[n]=a.transform(h)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:h,source:o,field:n}))}))}));var I={};g(p,s,(function(e,t){var n=e.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return i()({},t,{fullField:n.fullField+"."+e})}function l(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],l=a;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)),s.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)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],t(l);var f={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(f[d]=n.defaultField);for(var h in f=i()({},f,e.rule.fields),f)if(f.hasOwnProperty(h)){var p=Array.isArray(f[h])?f[h]:[f[h]];f[h]=p.map(o.bind(null,h))}var g=new de(f);g.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),g.validate(e.value,e.rule.options||s,(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,s);f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){M(e)}))}else l&&l();function M(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}},de.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},de.messages=fe;t["default"]=de},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}}})},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},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),c=n("5f1b"),u=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\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),a=void 0==r?void 0:r[t];return void 0!==a?a.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),d=String(this),h="function"===typeof t;h||(t=String(t));var m=f.global;if(m){var y=f.unicode;f.lastIndex=0}var I=[];while(1){var M=c(f,d);if(null===M)break;if(I.push(M),!m)break;var b=String(M[0]);""===b&&(f.lastIndex=s(d,o(f.lastIndex),y))}for(var C="",T=0,A=0;A<I.length;A++){M=I[A];for(var _=String(M[0]),w=u(l(a(M.index),d.length),0),E=[],N=1;N<M.length;N++)E.push(p(M[N]));var S=M.groups;if(h){var O=[_].concat(E,w,d);void 0!==S&&O.push(S);var D=String(t.apply(void 0,O))}else D=v(_,d,w,E,S,t);w>=T&&(C+=d.slice(T,w)+D,T=w+_.length)}return C+d.slice(T)}];function v(e,t,r,o,a,s){var c=r+e.length,u=o.length,l=h;return void 0!==a&&(a=i(a),l=d),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(c);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>u){var d=f(l/10);return 0===d?n:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},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}})},a753:function(e,t,n){},a78e:function(e,t,n){var r,i;
  205. /*!
  206. * JavaScript Cookie v2.2.0
  207. * https://github.com/js-cookie/js-cookie
  208. *
  209. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  210. * Released under the MIT license
  211. */(function(o){var a=!1;if(r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i),a=!0,e.exports=o(),a=!0,!a){var s=window.Cookies,c=window.Cookies=o();c.noConflict=function(){return window.Cookies=s,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 a;if("undefined"!==typeof document){if(arguments.length>1){if(o=e({path:"/"},r.defaults,o),"number"===typeof o.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}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||(a={});for(var l=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,d=0;d<l.length;d++){var h=l[d].split("="),p=h.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var g=h[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){a=p;break}t||(a[g]=p)}catch(v){}}return a}}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";
  212. /*!
  213. * isobject <https://github.com/jonschlinkert/isobject>
  214. *
  215. * Copyright (c) 2014-2017, Jon Schlinkert.
  216. * Released under the MIT License.
  217. */e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},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}})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o((function(){return!!a[e]()||c[e]()!=c})),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=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))}},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"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,h={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(h),g=0;g<p.length;g++){var v,m=p[g],y=h[m],I=a[m],M=I&&I.prototype;if(M&&(M[l]||s(M,l,d),M[f]||s(M,f,m),c[m]=d,y))for(v in r)M[v]||o(M,v,r[v],!0)}},ade3:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},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"),a="endsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{endsWith:function(e){var t=o(this,e,a),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 s?s.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)}}))},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},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,a=i&n,s=r>>16,c=i>>16,u=(s*a>>>0)+(o*a>>>16);return s*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"),a=n("c345"),s=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 d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",p=e.auth.password||"";f.Authorization="Basic "+btoa(h+":"+p)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};i(t,u,o),d=null}},d.onerror=function(){u(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(c("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n("7aac"),v=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;v&&(f[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){"undefined"===typeof l&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(m){if("json"!==e.responseType)throw m}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),d=null)})),void 0===l&&(l=null),d.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){
  218. /*!
  219. * The buffer module from node.js, for the browser.
  220. *
  221. * @author Feross Aboukhadijeh <http://feross.org>
  222. * @license MIT
  223. */
  224. var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){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 s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()<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 h(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):m(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 d(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 h(e,t){if(f(t),e=c(e,t<0?0:0|y(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|M(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|y(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 m(e,t){if(u.isBuffer(t)){var n=0|y(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 y(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function I(e){return+e!=e&&(e=0),u.alloc(+e)}function M(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 K(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 K(e).length;t=(""+t).toLowerCase(),r=!0}}function b(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 P(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(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 T(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:A(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):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){var o,a=1,s=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;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function _(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 a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return ee(K(t,e.length-n),e,n,r)}function E(e,t,n,r){return ee(q(t),e,n,r)}function N(e,t,n,r){return E(e,t,n,r)}function S(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 D(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var o,a,s,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],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,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 k(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:a(),t.kMaxLength=s(),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 d(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(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 a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=M,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?x(this,0,e):b.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,a=n-t,s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<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 T(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return T(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 _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return N(this,e,t,n);case"base64":return S(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 R=4096;function k(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}function L(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 j(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 P(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+=Z(e[o]);return i}function U(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 B(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 G(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 Y(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 H(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 F(e,t,n,r,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function $(e,t,n,r,o){return o||H(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;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=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;B(this,e,t,n,i,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(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||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(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):Y(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(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):Y(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);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&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);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(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||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):G(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):G(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(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):Y(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(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):Y(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return $(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return $(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 a=u.isBuffer(e)?e:K(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function Q(e){if(e=W(e).replace(V,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function W(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Z(e){return e<16?"0"+e.toString(16):e.toString(16)}function K(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+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 q(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=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function X(e){return r.toByteArray(Q(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})},b80b:function(e,t,n){var r=n("4f7f"),i=n("4379"),o=n("37a7"),a=n("cb7c"),s=n("38fd"),c=o.keys,u=o.key,l=function(e,t){var n=c(e,t),o=s(e);if(null===o)return n;var a=l(o,t);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:u(arguments[1]))}})},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("06c5");function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(r["a"])(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},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,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(c)throw a}}}}},b8e3:function(e,t){e.exports=!0},b9a1:function(e,t,n){"use strict";var r=n("5ca1"),i=n("4bf8"),o=n("6a99"),a=n("38fd"),s=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=s(n,r))return t.get}while(n=a(n))}})},ba10:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},u.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,r),!0;case 5:return l.fn.call(l.context,t,n,r,o),!0;case 6:return l.fn.call(l.context,t,n,r,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},u.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},u.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,u=[],l=a.length;s<l;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&u.push(a[s]);u.length?this._events[o]=1===u.length?u[0]:u:c(this,o)}return this},u.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=i,u.EventEmitter=u,e.exports=u},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]}})},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),a=o(n.length),s=i(e,a),c=i(t,a),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?a:i(u,a))-c,a-s),f=1;c<s&&s<c+l&&(f=-1,c+=l-1,s+=l-1);while(l-- >0)c in n?n[s]=n[c]:delete n[s],s+=f,c+=f;return n}},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),a=n.resolve;return a(t),n.promise}},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}},bee2:function(e,t,n){"use strict";function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,"a",(function(){return i}))},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"),a=n("1bc3"),s=n("07e3"),c=n("794b"),u=Object.getOwnPropertyDescriptor;t.f=n("8e60")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(n){}if(s(e,t))return i(!r.f.call(e,t),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")},c207:function(e,t){},c26b:function(e,t,n){"use strict";var r=n("86cc").f,i=n("2aeb"),o=n("dcbc"),a=n("9b43"),s=n("f605"),c=n("4a59"),u=n("01f9"),l=n("d53b"),f=n("7a56"),d=n("9e1e"),h=n("67ab").fastKey,p=n("b39a"),g=d?"_s":"size",v=function(e,t){var n,r=h(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){s(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=a(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)}}),d&&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=h(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)}}},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,a={};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(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)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"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(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"),a=n("9b43"),s=n("2b4c")("isConcatSpreadable");function c(e,t,n,u,l,f,d,h){var p,g,v=l,m=0,y=!!d&&a(d,h,3);while(m<u){if(m in n){if(p=y?y(n[m],m,t):n[m],g=!1,i(p)&&(g=p[s],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++}m++}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),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},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 a=o(n("9675")),s=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,d,h){var p=f?f+"."+h:h;if(c.isFunction(t)&&c.isFunction(d))return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e(t.apply(void 0,i([],r(n))),d.apply(void 0,i([],r(n))),h)};if(u(t)&&u(d)){var g=n&&n(t,d,p);return g||i(i([],r(t)),r(d))}if(c.isRegex(d))return d;if(c.isPlainObject(t)&&c.isPlainObject(d)){g=o&&o(t,d,p);return g||s["default"]([t,d],l({customizeArray:n,customizeObject:o,key:p}))}return c.isPlainObject(d)?a["default"](d):u(d)?i([],r(d)):d}}t["default"]=l},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=n("044b"),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(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 d(e){return"undefined"===typeof e}function h(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 m(e){return"[object Function]"===o.call(e)}function y(e){return h(e)&&m(e.pipe)}function I(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function M(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){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]),a(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 T(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=T(e[n],t):e[n]=t}for(var n=0,r=arguments.length;n<r;n++)C(arguments[n],t);return e}function A(e,t,n){return C(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}e.exports={isArray:a,isArrayBuffer:s,isBuffer:i,isFormData:c,isArrayBufferView:u,isString:l,isNumber:f,isObject:h,isUndefined:d,isDate:p,isFile:g,isBlob:v,isFunction:m,isStream:y,isURLSearchParams:I,isStandardBrowserEnv:b,forEach:C,merge:T,extend:A,trim:M}},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"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,h="Number",p=r[h],g=p,v=p.prototype,m=o(n("2aeb")(v))==h,y="trim"in String.prototype,I=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():d(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 a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>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&&(m?c((function(){v.valueOf.call(n)})):o(n)!=h)?a(new g(I(t)),n,p):I(t)};for(var M,b=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;b.length>C;C++)i(g,M=b[C])&&!i(p,M)&&f(p,M,l(g,M));p.prototype=v,v.constructor=p,n("2aba")(r,h,p)}},c66f:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0f88"),o=n("ed0b"),a=n("cb7c"),s=n("77f1"),c=n("9def"),u=n("d3f4"),l=n("7726").ArrayBuffer,f=n("ebd6"),d=o.ArrayBuffer,h=o.DataView,p=i.ABV&&l.isView,g=d.prototype.slice,v=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,m,{isView:function(e){return p&&p(e)||u(e)&&v in e}}),r(r.P+r.U+r.F*n("79e5")((function(){return!new d(2).slice(1,void 0).byteLength})),m,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(a(this),e);var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(c(i-r)),u=new h(this),l=new h(o),p=0;while(r<i)l.setUint8(p++,u.getUint8(r++));return o}}),n("7a56")(m)},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,a=0,s=arguments.length,c=0;while(a<s)n=i(arguments[a++]),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")},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("53ca");function i(){
  225. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
  226. i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(N){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new _(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 E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}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=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=l;var d={};function h(){}function p(){}function g(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(w([])));y&&y!==t&&n.call(y,a)&&(v=y);var I=g.prototype=h.prototype=Object.create(v);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function i(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==Object(r["a"])(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,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 C(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,C(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=f(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;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,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function T(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function w(e){if(e){var t=e[a];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:E}}function E(){return{value:void 0,done:!0}}return p.prototype=g,u(I,"constructor",g),u(g,"constructor",p),p.displayName=u(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,c,"GeneratorFunction")),e.prototype=Object.create(I),e},e.awrap=function(e){return{__await:e}},M(b.prototype),u(b.prototype,s,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(I),u(I,c,"Generator"),u(I,a,(function(){return this})),u(I,"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=w,_.prototype={constructor:_,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(A),!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 a.type="throw",a.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],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){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 a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},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),A(n),d}},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;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},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__",a=1,s=2,c=1/0,u=9007199254740991,l="[object Arguments]",f="[object Array]",d="[object Boolean]",h="[object Date]",p="[object Error]",g="[object Function]",v="[object GeneratorFunction]",m="[object Map]",y="[object Number]",I="[object Object]",M="[object Promise]",b="[object RegExp]",C="[object Set]",T="[object String]",A="[object Symbol]",_="[object WeakMap]",w="[object ArrayBuffer]",E="[object DataView]",N="[object Float32Array]",S="[object Float64Array]",O="[object Int8Array]",D="[object Int16Array]",x="[object Int32Array]",R="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",j="[object Uint32Array]",P=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,z=/^\./,B=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,Y=/\\(\\)?/g,H=/^\[object .+?Constructor\]$/,F=/^(?:0|[1-9]\d*)$/,$={};$[N]=$[S]=$[O]=$[D]=$[x]=$[R]=$[k]=$[L]=$[j]=!0,$[l]=$[f]=$[w]=$[d]=$[E]=$[h]=$[p]=$[g]=$[m]=$[y]=$[I]=$[b]=$[C]=$[T]=$[_]=!1;var V="object"==typeof e&&e&&e.Object===Object&&e,Q="object"==typeof self&&self&&self.Object===Object&&self,W=V||Q||Function("return this")(),Z=t&&!t.nodeType&&t,K=Z&&"object"==typeof n&&n&&!n.nodeType&&n,q=K&&K.exports===Z,J=q&&V.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 ae(e,t){return null==e?void 0:e[t]}function se(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,de=Function.prototype,he=Object.prototype,pe=W["__core-js_shared__"],ge=function(){var e=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ve=de.toString,me=he.hasOwnProperty,ye=he.toString,Ie=RegExp("^"+ve.call(me).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=W.Symbol,be=W.Uint8Array,Ce=ue(Object.getPrototypeOf,Object),Te=Object.create,Ae=he.propertyIsEnumerable,_e=fe.splice,we=ue(Object.keys,Object),Ee=Bt(W,"DataView"),Ne=Bt(W,"Map"),Se=Bt(W,"Promise"),Oe=Bt(W,"Set"),De=Bt(W,"WeakMap"),xe=Bt(Object,"create"),Re=Jt(Ee),ke=Jt(Ne),Le=Jt(Se),je=Jt(Oe),Pe=Jt(De),Ue=Me?Me.prototype:void 0,ze=Ue?Ue.valueOf:void 0,Be=Ue?Ue.toString:void 0;function Ge(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 Ye(){this.__data__=xe?xe(null):{}}function He(e){return this.has(e)&&delete this.__data__[e]}function Fe(e){var t=this.__data__;if(xe){var n=t[e];return n===o?void 0:n}return me.call(t,e)?t[e]:void 0}function $e(e){var t=this.__data__;return xe?void 0!==t[e]:me.call(t,e)}function Ve(e,t){var n=this.__data__;return n[e]=xe&&void 0===t?o:t,this}function Qe(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 We(){this.__data__=[]}function Ze(e){var t=this.__data__,n=gt(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_e.call(t,n,1),!0}function Ke(e){var t=this.__data__,n=gt(t,e);return n<0?void 0:t[n][1]}function qe(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 Ge,map:new(Ne||Qe),string:new Ge}}function tt(e){return Ut(this,e)["delete"](e)}function nt(e){return Ut(this,e).get(e)}function rt(e){return Ut(this,e).has(e)}function it(e,t){return Ut(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 at(e){return this.__data__.set(e,o),this}function st(e){return this.__data__.has(e)}function ct(e){this.__data__=new Qe(e)}function ut(){this.__data__=new Qe}function lt(e){return this.__data__["delete"](e)}function ft(e){return this.__data__.get(e)}function dt(e){return this.__data__.has(e)}function ht(e,t){var n=this.__data__;if(n instanceof Qe){var i=n.__data__;if(!Ne||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&&!me.call(e,o)||i&&("length"==o||Ht(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)?Te(e):{}}Ge.prototype.clear=Ye,Ge.prototype["delete"]=He,Ge.prototype.get=Fe,Ge.prototype.has=$e,Ge.prototype.set=Ve,Qe.prototype.clear=We,Qe.prototype["delete"]=Ze,Qe.prototype.get=Ke,Qe.prototype.has=qe,Qe.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=at,ot.prototype.has=st,ct.prototype.clear=ut,ct.prototype["delete"]=lt,ct.prototype.get=ft,ct.prototype.has=dt,ct.prototype.set=ht;var mt=kt();function yt(e,t){return e&&mt(e,t,gn)}function It(e,t){t=Ft(t,e)?[t]:Rt(t);var n=0,r=t.length;while(null!=e&&n<r)e=e[qt(t[n++])];return n&&n==r?e:void 0}function Mt(e){return ye.call(e)}function bt(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:Tt(e,t,Ct,n,r,i))}function Tt(e,t,n,r,i,o){var a=nn(e),c=nn(t),u=f,d=f;a||(u=Gt(e),u=u==l?I:u),c||(d=Gt(t),d=d==l?I:d);var h=u==I&&!se(e),p=d==I&&!se(t),g=u==d;if(g&&!h)return o||(o=new ct),a||fn(e)?Lt(e,t,n,r,i,o):jt(e,t,u,n,r,i,o);if(!(i&s)){var v=h&&me.call(e,"__wrapped__"),m=p&&me.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,M=m?t.value():t;return o||(o=new ct),n(y,M,r,i,o)}}return!!g&&(o||(o=new ct),Pt(e,t,n,r,i,o))}function At(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],d=u[1];if(c&&u[2]){if(void 0===f&&!(l in e))return!1}else{var h=new ct;if(r)var p=r(f,d,l,e,t,h);if(!(void 0===p?Ct(d,f,r,a|s,h):p))return!1}}return!0}function _t(e){if(!cn(e)||Vt(e))return!1;var t=an(e)||se(e)?Ie:H;return t.test(Jt(e))}function wt(e){return un(e)&&sn(e.length)&&!!$[ye.call(e)]}function Et(e){return"function"==typeof e?e:null==e?mn:"object"==typeof e?nn(e)?Ot(e[0],e[1]):St(e):yn(e)}function Nt(e){if(!Qt(e))return we(e);var t=[];for(var n in Object(e))me.call(e,n)&&"constructor"!=n&&t.push(n);return t}function St(e){var t=zt(e);return 1==t.length&&t[0][2]?Zt(t[0][0],t[0][1]):function(n){return n===e||At(n,e,t)}}function Ot(e,t){return Ft(e)&&Wt(t)?Zt(qt(e),t):function(n){var r=hn(n,e);return void 0===r&&r===t?pn(n,e):Ct(t,r,void 0,a|s)}}function Dt(e){return function(t){return It(t,e)}}function xt(e){if("string"==typeof e)return e;if(ln(e))return Be?Be.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Rt(e){return nn(e)?e:Kt(e)}function kt(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function Lt(e,t,n,r,i,o){var c=i&s,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 d=-1,h=!0,p=i&a?new ot:void 0;o.set(e,t),o.set(t,e);while(++d<u){var g=e[d],v=t[d];if(r)var m=c?r(v,g,d,t,e,o):r(g,v,d,e,t,o);if(void 0!==m){if(m)continue;h=!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)}))){h=!1;break}}else if(g!==v&&!n(g,v,r,i,o)){h=!1;break}}return o["delete"](e),o["delete"](t),h}function jt(e,t,n,r,i,o,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new be(e),new be(t)));case d:case h:case y:return en(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case T:return e==t+"";case m:var u=ce;case C:var l=o&s;if(u||(u=le),e.size!=t.size&&!l)return!1;var f=c.get(e);if(f)return f==t;o|=a,c.set(e,t);var g=Lt(u(e),u(t),r,i,o,c);return c["delete"](e),g;case A:if(ze)return ze.call(e)==ze.call(t)}return!1}function Pt(e,t,n,r,i,o){var a=i&s,c=gn(e),u=c.length,l=gn(t),f=l.length;if(u!=f&&!a)return!1;var d=u;while(d--){var h=c[d];if(!(a?h in t:me.call(t,h)))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=a;while(++d<u){h=c[d];var m=e[h],y=t[h];if(r)var I=a?r(y,m,h,t,e,o):r(m,y,h,e,t,o);if(!(void 0===I?m===y||n(m,y,r,i,o):I)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var M=e.constructor,b=t.constructor;M==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof M&&M instanceof M&&"function"==typeof b&&b instanceof b||(g=!1)}return o["delete"](e),o["delete"](t),g}function Ut(e,t){var n=e.__data__;return $t(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,Wt(i)]}return t}function Bt(e,t){var n=ae(e,t);return _t(n)?n:void 0}var Gt=Mt;function Yt(e,t,n){t=Ft(t,e)?[t]:Rt(t);var r,i=-1,o=t.length;while(++i<o){var a=qt(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;o=e?e.length:0;return!!o&&sn(o)&&Ht(a,o)&&(nn(e)||tn(e))}function Ht(e,t){return t=null==t?u:t,!!t&&("number"==typeof e||F.test(e))&&e>-1&&e%1==0&&e<t}function Ft(e,t){if(nn(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ln(e))||(U.test(e)||!P.test(e)||null!=t&&e in Object(t))}function $t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Vt(e){return!!ge&&ge in e}function Qt(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||he;return e===n}function Wt(e){return e===e&&!cn(e)}function Zt(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(Ee&&Gt(new Ee(new ArrayBuffer(1)))!=E||Ne&&Gt(new Ne)!=m||Se&&Gt(Se.resolve())!=M||Oe&&Gt(new Oe)!=C||De&&Gt(new De)!=_)&&(Gt=function(e){var t=ye.call(e),n=t==I?e.constructor:void 0,r=n?Jt(n):void 0;if(r)switch(r){case Re:return E;case ke:return m;case Le:return M;case je:return C;case Pe:return _}return t});var Kt=Xt((function(e){e=dn(e);var t=[];return z.test(e)&&t.push(""),e.replace(B,(function(e,n,r,i){t.push(r?i.replace(Y,"$1"):n||e)})),t}));function qt(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 a=e.apply(this,r);return n.cache=o.set(i,a),a};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)&&me.call(e,"callee")&&(!Ae.call(e,"callee")||ye.call(e)==l)}Xt.Cache=Xe;var nn=Array.isArray;function rn(e){return null!=e&&sn(e.length)&&!an(e)}function on(e){return un(e)&&rn(e)}function an(e){var t=cn(e)?ye.call(e):"";return t==g||t==v}function sn(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)&&ye.call(e)==A}var fn=ee?oe(ee):wt;function dn(e){return null==e?"":xt(e)}function hn(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&&Yt(e,t,bt)}function gn(e){return rn(e)?pt(e):Nt(e)}function vn(e,t,n){var r=nn(e)||fn(e);if(t=Et(t,4),null==n)if(r||cn(e)){var i=e.constructor;n=r?nn(e)?new i:[]:an(i)?vt(Ce(e)):{}}else n={};return(r?te:yt)(e,(function(e,r,i){return t(n,e,r,i)})),n}function mn(e){return e}function yn(e){return Ft(e)?re(qt(e)):Dt(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"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(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}},ccb5:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},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)}},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,a=Object.prototype,s=o.toString,c=a.hasOwnProperty,u=s.call(Object),l=a.toString,f=i(Object.getPrototypeOf,Object);function d(e){return!!e&&"object"==typeof e}function h(e){if(!d(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&&s.call(i)==u}e.exports=h},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},ceaf:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r["delete"](e))return!1;if(r.size)return!0;var c=s.get(t);return c["delete"](n),!!c.size||s["delete"](t)}})},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("2444");function s(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=s(a);c.Axios=o,c.create=function(e){return s(r.merge(a,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"),a=n("5ca1"),s=n("d3f4"),c=n("cb7c");function u(e,t){var n,a,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:s(a=i(e))?u(a,t,l):void 0}a(a.S,"Reflect",{get:u})},d233:function(e,t,n){"use strict";var r=n("b313"),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=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 a=t;return o(t)&&!o(n)&&(a=c(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)},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}},d=function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"===typeof e?s=Symbol.prototype.toString.call(e):"string"!==typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<s.length;++u){var l=s.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+=s.charAt(u):l<128?c+=a[l]:l<2048?c+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?c+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(u)),c+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return c},h=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],a=Object.keys(o),c=0;c<a.length;++c){var u=a[c],l=o[u];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:u}),n.push(l))}return s(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)},m=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:h,decode:f,encode:d,isBuffer:g,isRegExp:p,maybeMap:m,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","","")}}))},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))}},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,a=40,s=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*=a,i*=a):(r*=s,i*=s)),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 a,s=n(e),c=o.f,u=0;while(s.length>u)c.call(e,a=s[u++])&&t.push(a)}return t}},d4ec: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}))},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),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a};function i(e,t){var n=r(e),i=n[0],a=n.slice(1),s=i;return a.forEach((function(e){s=o(s,e,t)})),s}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)}}}))},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"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},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"))},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__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},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"),a=(n("7726").Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n("79e5")((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),c=o(n);return a?a(r,t,c):s.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 a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.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),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(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("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),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,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+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"))},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 a=t.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):e(r)?a[s]=o(t[s],r,i):-1===t.indexOf(r)&&a.push(n(r,i))})),a}function i(t,r,i){var a={};return e(t)&&Object.keys(t).forEach((function(e){a[e]=n(t[e],i)})),Object.keys(r).forEach((function(s){e(r[s])&&t[s]?a[s]=o(t[s],r[s],i):a[s]=n(r[s],i)})),a}function o(e,t,o){var a=Array.isArray(t),s=o||{arrayMerge:r},c=s.arrayMerge||r;return a?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})),a=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,"&quot;");return t+'="'+n+'"'})).join(" ")},s=o.svg,c=o.xlink,u={};u[s.name]=s.uri,u[c.name]=c.uri;var l=function(e,t){void 0===e&&(e="");var n=i(u,t||{}),r=a(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,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+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 a=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"),a=n("dcbc"),s=n("67ab"),c=n("4a59"),u=n("f605"),l=n("d3f4"),f=n("79e5"),d=n("5cc5"),h=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,g,v,m){var y=r[e],I=y,M=v?"set":"add",b=I&&I.prototype,C={},T=function(e){var t=b[e];o(b,e,"delete"==e||"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!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&&(m||b.forEach&&!f((function(){(new I).entries().next()})))){var A=new I,_=A[M](m?{}:-0,1)!=A,w=f((function(){A.has(1)})),E=d((function(e){new I(e)})),N=!m&&f((function(){var e=new I,t=5;while(t--)e[M](t,t);return!e.has(-0)}));E||(I=t((function(t,n){u(t,I,e);var r=p(new y,t,I);return void 0!=n&&c(n,v,r[M],r),r})),I.prototype=b,b.constructor=I),(w||N)&&(T("delete"),T("has"),v&&T("get")),(N||_)&&T(M),m&&b.clear&&delete b.clear}else I=g.getConstructor(t,e,v,M),a(I.prototype,n),s.NEED=!0;return h(I,e),C[e]=I,i(i.G+i.W+i.F*(I!=y),C),m||g.setStrong(I,e,v),I}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e394:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=n("38fd"),a=r.has,s=r.get,c=r.key,u=function(e,t,n){var r=a(e,t,n);if(r)return s(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,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(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:a=[],emptyArrays:s=!0,emptyObjects:c=!0,emptyStrings:u=!0,NaNValues:l=!1,nullValues:f=!0,undefinedValues:d=!0}={}){return o(t,(t,o,h)=>{if(!n.includes(h)&&((Array.isArray(o)||i(o))&&(o=e(o,{NaNValues:l,cleanKeys:n,cleanValues:a,emptyArrays:s,emptyObjects:c,emptyStrings:u,nullValues:f,undefinedValues:d})),!a.includes(o)&&!(c&&i(o)&&r(o))&&(!s||!Array.isArray(o)||o.length)&&(!u||""!==o)&&(!l||!Number.isNaN(o))&&(!f||null!==o)&&(!d||void 0!==o)))return Array.isArray(t)?t.push(o):void(t[h]=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),a=n(t),s="("===(i=i||"()")[0],c=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(c?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(c?this.isAfter(a,r):!this.isBefore(a,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)},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),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,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,a,s,c,u=0,l=!1,f=!1,d=!1,h=!1,p=null,g=0,v=!1;const m="undefined"!==typeof window?window:{},y=(r.cssVarShim&&m.CSS,m.document||{head:{}}),I=(m.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)}),M=!r.shadowDomShim||!r.shadowDom||(()=>(y.head.attachShadow+"").indexOf("[native")>-1)(),b=(()=>{let e=!1;try{y.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),C=e=>Promise.resolve(e),T=!!r.constructableCSS&&(()=>{try{return new CSSStyleSheet,"function"===typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),A=(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 a=r.hostListenerTarget?w(e,n):e,s=_(t,o),c=E(n);I.ael(a,i,s,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>I.rel(a,i,s,c))}))},_=(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)}},w=(e,t)=>r.hostListenerTargetDocument&&4&t?y:r.hostListenerTargetWindow&&8&t?m:r.hostListenerTargetBody&&16&t?y.body:r.hostListenerTargetParent&&32&t?e.parentElement:e,E=e=>b?{passive:0!==(1&e),capture:0!==(2&e)}:0!==(2&e),N="r",S="o",O="s",D="t",x="s-id",R="sty-id",k="c-id",L="http://www.w3.org/1999/xlink",j=(e,t="")=>{if(r.profile&&performance.mark){const n=`st:${e}:${t}:${u++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},P=(e,t)=>r.profile&&performance.mark?(0===performance.getEntriesByName(e).length&&performance.mark(e),()=>{0===performance.getEntriesByName(t).length&&performance.measure(t,e)}):()=>{},U=new WeakMap,z=(e,t,n)=>{let r=ft.get(e);T&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,ft.set(e,r)},B=(e,t,n,i)=>{let o=Y(t,n),a=ft.get(o);if(!r.attachStyles)return o;if(e=11===e.nodeType?e:y,a)if("string"===typeof a){e=e.head||e;let n,s=U.get(e);if(s||U.set(e,s=new Set),!s.has(o)){if(r.hydrateClientSide&&e.host&&(n=e.querySelector(`[${R}="${o}"]`)))n.innerHTML=a;else{if(r.cssVarShim&&I.$cssShim$){n=I.$cssShim$.createHostStyle(i,o,a,!!(10&t.$flags$));const e=n["s-sc"];e&&(o=e,s=null)}else n=y.createElement("style"),n.innerHTML=a;(r.hydrateServerSide||r.hotModuleReplacement)&&n.setAttribute(R,o),e.insertBefore(n,e.querySelector("link"))}s&&s.add(o)}}else r.constructableCSS&&!e.adoptedStyleSheets.includes(a)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return o},G=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,i=t.$flags$,o=j("attachStyles",t.$tagName$),a=B(r.shadowDom&&M&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(r.shadowDom||r.scoped)&&r.cssAnnotations&&10&i&&(n["s-sc"]=a,n.classList.add(a+"-h"),r.scoped&&2&i&&n.classList.add(a+"-s")),o()},Y=(e,t)=>"sc-"+(r.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),H=e=>dt.map(t=>t(e)).find(e=>!!e),F={},$="http://www.w3.org/2000/svg",V="http://www.w3.org/1999/xhtml",Q=e=>null!=e,W=e=>(e=typeof e,"object"===e||"function"===e),Z=(e,t,...n)=>{let i=null,o=null,a=null,s=!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&&((s="function"!==typeof e&&!W(i))?i=String(i):r.isDev&&"function"!==typeof e&&void 0===i.$flags$&&st("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."),s&&c?u[u.length-1].$text$+=i:u.push(s?K(null,i):i),c=s)};if(l(n),t&&(r.isDev&&"input"===e&&ne(t),r.vdomKey&&t.key&&(o=t.key),r.slotRelocation&&t.name&&(a=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)&&st("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=K(e,null);return f.$attrs$=t,u.length>0&&(f.$children$=u),r.vdomKey&&(f.$key$=o),r.slotRelocation&&(f.$name$=a),f},K=(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},q={},J=e=>e&&e.$tag$===q,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),Z(e.vtag,t,...e.vchildren||[])}const t=K(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"),a=t.indexOf("value");-1!==a&&(a<n||a<r||a<i||a<o)&&ct('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},re=(e,t,n,i,o,a)=>{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=W(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(s){}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(L,t):e.removeAttribute(t)):(!c||4&a||o)&&!l&&(i=!0===i?"":i,r.vdomXlink&&f?e.setAttributeNS(L,t,i):e.setAttribute(t,i))}}else t="-"===t[2]?t.slice(3):it(m,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):[],ae=(e,t,n,i)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||F,s=t.$attrs$||F;if(r.updatable)for(i in a)i in s||re(o,i,a[i],void 0,n,t.$flags$);for(i in s)re(o,i,a[i],s[i],n,t.$flags$)},se=(e,t,n,i)=>{let c,u,f,p=t.$children$[n],g=0;if(r.slotRelocation&&!l&&(d=!0,"slot"===p.$tag$&&(o&&i.classList.add(o+"-s"),p.$flags$|=p.$children$?2:1)),r.isDev&&p.$elm$&&st(`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$=y.createTextNode(p.$text$);else if(r.slotRelocation&&1&p.$flags$)c=p.$elm$=r.isDebug||r.hydrateServerSide?Ce(p):y.createTextNode("");else{if(r.svg&&!h&&(h="svg"===p.$tag$),c=p.$elm$=r.svg?y.createElementNS(h?$:V,r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$):y.createElement(r.slotRelocation&&2&p.$flags$?"slot-fb":p.$tag$),r.svg&&h&&"foreignObject"===p.$tag$&&(h=!1),r.vdomAttribute&&ae(null,p,h),(r.shadowDom||r.scoped)&&Q(o)&&c["s-si"]!==o&&c.classList.add(c["s-si"]=o),p.$children$)for(g=0;g<p.$children$.length;++g)u=se(e,p,g,c),u&&c.appendChild(u);r.svg&&("svg"===p.$tag$?h=!1:"foreignObject"===c.tagName&&(h=!0))}return r.slotRelocation&&(c["s-hn"]=s,3&p.$flags$&&(c["s-sr"]=!0,c["s-cr"]=a,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"]!==s&&e["s-ol"]&&(pe(e).insertBefore(e,he(e)),e["s-ol"].remove(),e["s-ol"]=void 0,d=!0),t&&ce(e,t)}I.$flags$&=-2},ue=(e,t,n,i,o,a)=>{let c,u=r.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowDom&&u.shadowRoot&&u.tagName===s&&(u=u.shadowRoot);o<=a;++o)i[o]&&(c=se(null,n,o,e),c&&(i[o].$elm$=c,u.insertBefore(c,r.slotRelocation?he(t):t)))},le=(e,t,n,i,o)=>{for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,Me(i),r.slotRelocation&&(f=!0,o["s-ol"]?o["s-ol"].remove():ce(o,!0)),o.remove())},fe=(e,t,n,i)=>{let o,a,s=0,c=0,u=0,l=0,f=t.length-1,d=t[0],h=t[f],p=i.length-1,g=i[0],v=i[p];while(s<=f&&c<=p)if(null==d)d=t[++s];else if(null==h)h=t[--f];else if(null==g)g=i[++c];else if(null==v)v=i[--p];else if(de(d,g))ge(d,g),d=t[++s],g=i[++c];else if(de(h,v))ge(h,v),h=t[--f],v=i[--p];else if(de(d,v))!r.slotRelocation||"slot"!==d.$tag$&&"slot"!==v.$tag$||ce(d.$elm$.parentNode,!1),ge(d,v),e.insertBefore(d.$elm$,h.$elm$.nextSibling),d=t[++s],v=i[--p];else if(de(h,g))!r.slotRelocation||"slot"!==d.$tag$&&"slot"!==v.$tag$||ce(h.$elm$.parentNode,!1),ge(h,g),e.insertBefore(h.$elm$,d.$elm$),h=t[--f],g=i[++c];else{if(u=-1,r.vdomKey)for(l=s;l<=f;++l)if(t[l]&&null!==t[l].$key$&&t[l].$key$===g.$key$){u=l;break}r.vdomKey&&u>=0?(a=t[u],a.$tag$!==g.$tag$?o=se(t&&t[c],n,u,e):(ge(a,g),t[u]=void 0,o=a.$elm$),g=i[++c]):(o=se(t&&t[c],n,c,e),g=i[++c]),o&&(r.slotRelocation?pe(d.$elm$).insertBefore(o,he(d.$elm$)):d.$elm$.parentNode.insertBefore(o,d.$elm$))}s>f?ue(e,null==i[p+1]?null:i[p+1].$elm$,n,i,c,p):r.updatable&&c>p&&le(t,s,f)},de=(e,t)=>e.$tag$===t.$tag$&&(r.slotRelocation&&"slot"===e.$tag$?e.$name$===t.$name$:!r.vdomKey||e.$key$===t.$key$),he=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$,a=t.$tag$,s=t.$text$;let c;r.vdomText&&null!==s?r.vdomText&&r.slotRelocation&&(c=n["s-cr"])?c.parentNode.textContent=s:r.vdomText&&e.$text$!==s&&(n.data=s):(r.svg&&(h="svg"===a||"foreignObject"!==a&&h),(r.vdomAttribute||r.reflect)&&(r.slot&&"slot"===a||ae(e,t,h)),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&&h&&"svg"===a&&(h=!1))},ve=e=>{let t,n,r,i,o,a,s=e.childNodes;for(n=0,r=s.length;n<r;n++)if(t=s[n],1===t.nodeType){if(t["s-sr"])for(o=t["s-sn"],t.hidden=!1,i=0;i<r;i++)if(a=s[i].nodeType,s[i]["s-hn"]!==t["s-hn"]||""!==o){if(1===a&&o===s[i].getAttribute("slot")){t.hidden=!0;break}}else if(1===a||3===a&&""!==s[i].textContent.trim()){t.hidden=!0;break}ve(t)}},me=[],ye=e=>{let t,n,r,i,o,a,s=0,c=e.childNodes,u=c.length;for(;s<u;s++){if(t=c[s],t["s-sr"]&&(n=t["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,i=t["s-sn"],a=r.length-1;a>=0;a--)n=r[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(Ie(n,i)?(o=me.find(e=>e.$nodeToRelocate$===n),f=!0,n["s-sn"]=n["s-sn"]||i,o?o.$slotRefNode$=t:me.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&me.map(e=>{Ie(e.$nodeToRelocate$,n["s-sn"])&&(o=me.find(e=>e.$nodeToRelocate$===n),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})):me.some(e=>e.$nodeToRelocate$===n)||me.push({$nodeToRelocate$:n}));1===t.nodeType&&ye(t)}},Ie=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,Me=e=>{r.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Me))},be=(e,t)=>{const n=e.$hostElement$,i=e.$cmpMeta$,c=e.$vnode$||K(null,null),u=J(t)?t:Z(null,null,t);if(s=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 "${s.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&&(a=n["s-cr"],l=M&&0!==(1&i.$flags$),f=!1),ge(c,u),r.slotRelocation){if(I.$flags$|=1,d){let e,t,n,i,o,a;ye(u.$elm$);let s=0;for(;s<me.length;s++)e=me[s],t=e.$nodeToRelocate$,t["s-ol"]||(n=r.isDebug||r.hydrateServerSide?Te(t):y.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(s=0;s<me.length;s++)if(e=me[s],t=e.$nodeToRelocate$,e.$slotRefNode$){i=e.$slotRefNode$.parentNode,o=e.$slotRefNode$.nextSibling,n=t["s-ol"];while(n=n.previousSibling)if(a=n["s-nr"],a&&a["s-sn"]===t["s-sn"]&&i===a.parentNode&&(a=a.nextSibling,!a||!a["s-nr"])){o=a;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,me.length=0}},Ce=e=>y.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${s.toLowerCase()})`),Te=e=>y.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),Ae=e=>r.lazyLoad?nt(e).$hostElement$:e,_e=(e,t,n)=>{const i=Ae(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.`),we(i,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},we=(e,t,n)=>{const r=I.ce(t,n);return e.dispatchEvent(r),r},Ee=(e,t)=>{r.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},Ne=(e,t)=>{if(r.taskQueue&&r.updatable&&(e.$flags$|=16),r.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);Ee(e,e.$ancestorComponent$);const n=()=>Se(e,t);return r.taskQueue?bt(n):n()},Se=(e,t)=>{const n=e.$hostElement$,i=j("scheduleUpdate",e.$cmpMeta$.$tagName$),o=r.lazyLoad?e.$lazyInstance$:n;let a;return t?(r.lazyLoad&&r.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ke(o,e,t)),e.$queuedListeners$=null)),je(n,"componentWillLoad"),r.cmpWillLoad&&(a=ke(o,"componentWillLoad"))):(je(n,"componentWillUpdate"),r.cmpWillUpdate&&(a=ke(o,"componentWillUpdate"))),je(n,"componentWillRender"),r.cmpWillRender&&(a=Le(a,()=>ke(o,"componentWillRender"))),i(),Le(a,()=>Oe(e,o,t))},Oe=async(e,t,n)=>{const i=e.$hostElement$,o=j("update",e.$cmpMeta$.$tagName$),a=i["s-rc"];r.style&&n&&G(e);const s=j("render",e.$cmpMeta$.$tagName$);if(r.isDev&&(e.$flags$|=1024),r.hydrateServerSide?await De(e,t,i):De(e,t,i),r.cssVarShim&&I.$cssShim$&&I.$cssShim$.updateHost(i),r.isDev&&(e.$renderCount$++,e.$flags$&=-1025),r.hydrateServerSide)try{Ue(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&&a&&(a.map(e=>e()),i["s-rc"]=void 0),s(),o(),r.asyncLoading){const t=i["s-p"],n=()=>xe(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else xe(e)},De=(e,t,n)=>{const i=!!r.allRenderFn,o=!!r.lazyLoad,a=!!r.taskQueue,s=!!r.updatable;try{if(p=t,t=(i||t.render)&&t.render(),s&&a&&(e.$flags$&=-17),(s||o)&&(e.$flags$|=2),r.hasRenderFn||r.reflect)if(r.vdomRender||r.reflect){if(r.hydrateServerSide)return Promise.resolve(t).then(t=>be(e,t));be(e,t)}else n.textContent=t}catch(c){ot(c,e.$hostElement$)}return p=null,null},xe=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,i=j("postUpdate",t),o=r.lazyLoad?e.$lazyInstance$:n,a=e.$ancestorComponent$;r.cmpDidRender&&(r.isDev&&(e.$flags$|=1024),ke(o,"componentDidRender"),r.isDev&&(e.$flags$&=-1025)),je(n,"componentDidRender"),64&e.$flags$?(r.cmpDidUpdate&&(r.isDev&&(e.$flags$|=1024),ke(o,"componentDidUpdate"),r.isDev&&(e.$flags$&=-1025)),je(n,"componentDidUpdate"),i()):(e.$flags$|=64,r.asyncLoading&&r.cssAnnotations&&Pe(n),r.cmpDidLoad&&(r.isDev&&(e.$flags$|=2048),ke(o,"componentDidLoad"),r.isDev&&(e.$flags$&=-2049)),je(n,"componentDidLoad"),i(),r.asyncLoading&&(e.$onReadyResolve$(n),a||Re(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$&&Mt(()=>Ne(e,!1)),e.$flags$&=-517)},Re=e=>{r.cssAnnotations&&Pe(y.documentElement),r.asyncQueue&&(I.$flags$|=2),Mt(()=>we(m,"appload",{detail:{namespace:i}})),r.profile&&performance.measure&&performance.measure(`[Stencil] ${i} initial load (by ${e})`,"st:app:start")},ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){ot(r)}},Le=(e,t)=>e&&e.then?e.then(t):t(),je=(e,t)=>{r.lifecycleDOMEvents&&we(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:i}})},Pe=e=>r.hydratedClass?e.classList.add("hydrated"):r.hydratedAttribute?e.setAttribute("hydrated",""):void 0,Ue=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(),Ue(e)}},ze=(e,t,n,i)=>{const o=j("hydrateClient",t),a=e.shadowRoot,s=[],c=[],u=r.shadowDom&&a?[]:null,l=i.$vnode$=K(t,null);I.$orgLocNodes$||Ge(y.body,I.$orgLocNodes$=new Map),e[x]=n,e.removeAttribute(x),Be(l,s,c,u,e,e,n),s.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=I.$orgLocNodes$.get(n),i=e.$elm$;r&&M&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),a||(i["s-hn"]=t,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),I.$orgLocNodes$.delete(n)}),r.shadowDom&&a&&u.map(e=>{e&&a.appendChild(e)}),o()},Be=(e,t,n,i,o,a,s)=>{let c,u,l,f;if(1===a.nodeType){for(c=a.getAttribute(k),c&&(u=c.split("."),u[0]!==s&&"0"!==u[0]||(l={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:a.tagName.toLowerCase(),$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(l),a.removeAttribute(k),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,e=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))),f=a.childNodes.length-1;f>=0;f--)Be(e,t,n,i,o,a.childNodes[f],s);if(a.shadowRoot)for(f=a.shadowRoot.childNodes.length-1;f>=0;f--)Be(e,t,n,i,o,a.shadowRoot.childNodes[f],s)}else if(8===a.nodeType)u=a.nodeValue.split("."),u[1]!==s&&"0"!==u[1]||(c=u[0],l={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:a,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},c===D?(l.$elm$=a.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,t.push(l),a.remove(),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l,i&&"0"===l.$depth$&&(i[l.$index$]=l.$elm$))):l.$hostId$===s&&(c===O?(l.$tag$="slot",u[5]?a["s-sn"]=l.$name$=u[5]:a["s-sn"]="",a["s-sr"]=!0,r.shadowDom&&i&&(l.$elm$=y.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),a.parentNode.insertBefore(l.$elm$,a),a.remove(),"0"===l.$depth$&&(i[l.$index$]=l.$elm$)),n.push(l),e.$children$||(e.$children$=[]),e.$children$[l.$index$]=l):c===N&&(r.shadowDom&&i?a.remove():r.slotRelocation&&(o["s-cr"]=a,a["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=K(null,a.textContent);t.$elm$=a,t.$index$="0",e.$children$=[t]}},Ge=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)Ge(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)Ge(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");n[0]===S&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},Ye=(e,t)=>null==e||W(e)?e:r.propBoolean&&4&t?"false"!==e&&(""===e||!!e):r.propNumber&&2&t?parseFloat(e):r.propString&&1&t?String(e):e,He=(e,t)=>nt(e).$instanceValues$.get(t),Fe=(e,t,n,i)=>{const o=nt(e),a=r.lazyLoad?o.$hostElement$:e,s=o.$instanceValues$.get(t),c=o.$flags$,u=r.lazyLoad?o.$lazyInstance$:a;if(n=Ye(n,i.$members$[t][0]),(!r.lazyLoad||!(8&c)||void 0===s)&&n!==s&&(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",a,"\nNew value",n,"\nOld value",s):2048&o.$flags$&&ct(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",a,"\nNew value",n,"\nOld value",s)),!r.lazyLoad||u)){if(r.watchCallback&&i.$watchers$&&128&c){const e=i.$watchers$[t];e&&e.map(e=>{try{u[e](n,s,t)}catch(r){ot(r,a)}})}if(r.updatable&&2===(18&c)){if(r.cmpShouldUpdate&&u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,s,t))return;Ne(o,!1)}}},$e=(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 He(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`)}Fe(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},Ve=async(e,t,i,o,a)=>{if((r.lazyLoad||r.hydrateServerSide||r.style)&&0===(32&t.$flags$)){if(r.lazyLoad||r.hydrateClientSide){if(t.$flags$|=32,a=lt(i,t,o),a.then){const e=P(`st:load:${i.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${i.$tagName$}>`);a=await a,e()}if((r.isDev||r.isDebug)&&!a)throw new Error(`Constructor for "${i.$tagName$}#${t.$modeName$}" was not found`);r.member&&!a.isProxied&&(r.watchCallback&&(i.$watchers$=a.watchers),$e(a,i,2),a.isProxied=!0);const e=j("createInstance",i.$tagName$);r.member&&(t.$flags$|=8);try{new a(t)}catch(u){ot(u)}r.member&&(t.$flags$&=-9),r.watchCallback&&(t.$flags$|=128),e(),Qe(t.$lazyInstance$)}else a=e.constructor,t.$flags$|=32,customElements.whenDefined(i.$tagName$).then(()=>t.$flags$|=128);if(r.style&&a.style){let o=a.style;r.mode&&"string"!==typeof o&&(o=o[t.$modeName$=H(e)],r.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Y(i,t.$modeName$);if(!ft.has(s)){const e=j("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,s,!1))),z(s,o,!!(1&i.$flags$)),e()}}}const s=t.$ancestorComponent$,c=()=>Ne(t,!0);r.asyncLoading&&s&&s["s-rc"]?s["s-rc"].push(c):c()},Qe=e=>{r.lazyLoad&&r.connectedCallback&&ke(e,"connectedCallback")},We=e=>{if(0===(1&I.$flags$)){const t=nt(e),n=t.$cmpMeta$,i=j("connectedCallback",n.$tagName$);if(r.hostListenerTargetParent&&A(e,t,n.$listeners$,!0),1&t.$flags$)A(e,t,n.$listeners$,!1),Qe(t.$lazyInstance$);else{let i;if(t.$flags$|=1,r.hydrateClientSide&&(i=e.getAttribute(x),i)){if(r.shadowDom&&M&&1&n.$flags$){const t=r.mode?B(e.shadowRoot,n,e.getAttribute("s-mode")):B(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$)&&Ze(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"]){Ee(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?Mt(()=>Ve(e,t,n)):Ve(e,t,n)}i()}},Ze=e=>{const t=e["s-cr"]=y.createComment(r.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Ke=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&&ke(n,"disconnectedCallback"),r.cmpDidUnload&&ke(n,"componentDidUnload")}},qe=(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&&!M&&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(){We(this),r.connectedCallback&&i&&i.call(this)},disconnectedCallback(){Ke(this),r.disconnectedCallback&&o&&o.call(this)}}),e.is=n.$tagName$,$e(e,n,3)},Je=e=>{M?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"]=[]),A(e,n,t.$listeners$,!1),et.set(e,n)},it=(e,t)=>t in e,ot=(e,t)=>(c||console.error)(e,t),at=r.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],st=(...e)=>console.error(...at,...e),ct=(...e)=>console.warn(...at,...e),ut=new Map,lt=(e,t,i)=>{const o=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(r.isDev&&"string"!==typeof a)return void st(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!r.hotModuleReplacement&&ut.get(a);return s?s[o]:n("c2e1")(`./${a}.entry.js${r.hotModuleReplacement&&i?"?s-hmr="+i:""}`).then(e=>(r.hotModuleReplacement||ut.set(a,e),e[o]),ot)},ft=new Map,dt=[],ht=[],pt=[],gt=[],vt=(e,t)=>n=>{e.push(n),v||(v=!0,t&&4&I.$flags$?Mt(It):I.raf(It))},mt=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){ot(t)}e.length=0},yt=(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++,mt(ht),r.asyncQueue){const e=2===(6&I.$flags$)?performance.now()+14*Math.ceil(.1*g):1/0;yt(pt,e),yt(gt,e),pt.length>0&&(gt.push(...pt),pt.length=0),(v=ht.length+pt.length+gt.length>0)?I.raf(It):g=0}else mt(pt),(v=ht.length>0)&&I.raf(It)},Mt=e=>C().then(e),bt=vt(pt,!0);r.isDev,r.isTesting;var Ct=n("903e"),Tt=function(e,t){return Tt=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])},Tt(e,t)},At=function(){return At=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},At.apply(this,arguments)};function _t(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(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(a,s)}c((r=r.apply(e,t||[])).next())}))}function wt(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}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,s])}}}var Et,Nt,St=new Ct["k"]("RCIM"),Ot=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))},Dt=Ot(),xt={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,a=Object(Ct["w"])(e.url,i);return new Promise((function(e){var i,s=(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(s);if(s.open(t,a),r&&s.setRequestHeader)for(var u in r)s.setRequestHeader(u,r[u]);if(c){s.timeout=n,s.onload=function(){e({data:s.responseText,status:s.status||200})},s.onerror=function(){e({status:s.status||0})},s.ontimeout=function(){e({status:s.status||0})};var l="object"==typeof o?JSON.stringify(o):o;s.send(l)}else s.onreadystatechange=function(){4===s.readyState&&e({data:s.responseText,status:s.status})},s.onerror=function(){e({status:s.status||0})},setTimeout((function(){s.abort(),e({status:s.status||0})}),n),s.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:Dt,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["v"](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)}))}},Rt=Ot(),kt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["H"].ID();try{return Ct["H"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"wechat"},{traceId:r}),wx[e].apply(wx,t)}catch(t){Ct["H"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"wechat"},{traceId:r}),console.error(t)}}},Lt={setItem:kt("setStorageSync"),getItem:kt("getStorageSync"),removeItem:kt("removeStorageSync"),clear:kt("clearStorageSync")},jt={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,a=Object(Ct["w"])(e.url,i);return new Promise((function(e){wx.request({url:a,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:Lt,sessionStorage:Lt,isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Rt,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["v"](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=Ot(),Ut=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["H"].ID();try{return Ct["H"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"alipay"},{traceId:r}),my[e].apply(my,t)}catch(t){Ct["H"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"alipay"},{traceId:r}),console.error(t)}}},zt={setItem:Ut("setStorageSync"),getItem:Ut("getStorageSync"),removeItem:Ut("removeStorageSync"),clear:Ut("clearStorageSync")},Bt={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,a=Object(Ct["w"])(e.url,i),s=e.dataType||"json";return new Promise((function(e){my.request({url:a,method:t,headers:r,timeout:n,data:o,dataType:s,success:function(t){e({data:t.data,status:t.status})},fail:function(){e({status:Ct["f"].RC_HTTP_REQ_TIMEOUT})}})}))},localStorage:zt,sessionStorage:zt,isSupportSocket:function(){return!1},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Pt,createDataChannel:function(e,t){return"websocket"===t?new Ct["v"](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=Ot(),Yt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["H"].ID();try{return Ct["H"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"toutiao"},{traceId:r}),tt[e].apply(tt,t)}catch(t){Ct["H"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"toutiao"},{traceId:r}),console.error(t)}}},Ht={setItem:Yt("setStorageSync"),getItem:Yt("getStorageSync"),removeItem:Yt("removeStorageSync"),clear:Yt("clearStorageSync")},Ft={tag:"toutiao",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:Gt,localStorage:Ht,sessionStorage:Ht,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["v"](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)}})}))}},$t=Ot(),Vt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["H"].ID();try{return Ct["H"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"baidu"},{traceId:r}),swan[e].apply(swan,t)}catch(t){Ct["H"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"baidu"},{traceId:r}),console.error(t)}}},Qt={setItem:Vt("setStorageSync"),getItem:Vt("getStorageSync"),removeItem:Vt("removeStorageSync"),clear:Vt("clearStorageSync")},Wt={tag:"baidu",isSupportSocket:function(){return!0},useNavi:!1,connectPlatform:"MiniProgram",isFromUniapp:$t,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["v"](this,e):new Ct["d"](this,e)},getNetworkType:function(){return _t(this,void 0,void 0,(function(){return wt(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)}})}))]}))}))}},Zt=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ct["H"].ID();try{return Ct["H"].info(Ct["j"].A_CALLBACK_O,{func_name:e,source:"uniapp"},{traceId:r}),uni[e].apply(uni,t)}catch(t){Ct["H"].error(Ct["j"].A_CALLBACK_E,{func_name:e,source:"uniapp"},{traceId:r}),console.error(t)}}},Kt={setItem:Zt("setStorageSync"),getItem:Zt("getStorageSync"),removeItem:Zt("removeStorageSync"),clear:Zt("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,a=Object(Ct["w"])(e.url,i);return new Promise((function(e){uni.request({url:a,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:Kt,sessionStorage:Kt,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["v"](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)}})}))}},Jt=function(e){return e&&e.canIUse&&e.getSystemInfo},Xt="undefined"!=typeof uni&&Jt(uni)?function(){switch(Object({NODE_ENV:"production",VUE_APP_BASE_API:"api",BASE_URL:""}).VUE_APP_PLATFORM){case"app-plus":return qt;case"mp-baidu":return Wt;case"mp-toutiao":return Ft;case"mp-alipay":return Bt;case"mp-weixin":return jt;default:return xt}}():"undefined"!=typeof my&&Jt(my)?Bt:"undefined"!=typeof tt&&Jt(tt)?Ft:"undefined"!=typeof swan&&Jt(swan)?Wt:"undefined"!=typeof wx&&Jt(wx)?jt:xt;function en(e){var t=e.conversationType,n=e.channelId,r=e.messageType,i=e.content,o=e.senderUserId,a=e.targetId,s=e.sentTime,c=e.receivedTime,u=e.messageUId,l=e.messageDirection,f=e.isPersited,d=e.isCounted,h=e.isOffLineMessage,p=e.canIncludeExpansion,g=e.expansion,v=e.receivedStatus,m=e.disableNotification,y=e.isMentioned,I=e.isStatusMessage,M=e.readReceiptInfo,b=e.pushConfig,C=e.messageId,T=e.isInterrupt,A=e.isModifyMessage,_=e.channelType,w=e.sentStatus;v||(v=Ct["r"].UNREAD);var E={messageType:r,channelId:n||"",content:i,senderUserId:o,targetId:a,conversationType:t,sentTime:s,receivedTime:c,messageUId:u,messageDirection:l,isPersited:f,isCounted:d,isMentioned:y,disableNotification:m,isStatusMessage:I,canIncludeExpansion:p,expansion:g,receivedStatus:v,readReceiptInfo:M,pushConfig:b,messageId:C,isInterrupt:T,isModifyMessage:A,sentStatus:w};return t!==Ct["e"].ULTRA_GROUP&&(E.isOffLineMessage=h),t===Ct["e"].ULTRA_GROUP&&Object(Ct["C"])(_)&&(E.channelType=_),E}function tn(e){var t=e.conversationType,n=e.targetId,r=e.latestMessage,i=e.unreadMessageCount,o=e.hasMentioned,a=e.mentionedInfo,s=e.lastUnreadTime,c=e.notificationStatus,u=e.notificationLevel,l=e.isTop,f=e.channelId,d=e.unreadMentionedCount;return{conversationType:t,targetId:n,latestMessage:r&&en(r),unreadMessageCount:i,hasMentioned:o,mentionedInfo:o?{type:null==a?void 0:a.type,userIdList:null==a?void 0:a.userIdList}:void 0,lastUnreadTime:s,notificationStatus:c,notificationLevel:u,isTop:l,channelId:f,unreadMentionedCount:d}}!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"}(Et||(Et={})),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"}(Nt||(Nt={}));var nn,rn=function(e){function t(n){var r=e.call(this)||this;if(t.imClient)return St.error("Please do not repeatedly perform the init method"),t.imClient;r.initOptions=n,Object(Ct["x"])("options.navigators",n.navigators,(function(e){return Object(Ct["z"])(e)&&(0===e.length||e.every(Ct["B"]))})),St.setLogLevel(n.logLevel),St.setLogStdout(n.logStdout);var i=null==n?void 0:n.connectType;return i?Ct["c"].WEBSOCKET!==i&&Ct["c"].COMET!==i&&(St.warn("RongIMLib connectionType must be ".concat(Ct["c"].WEBSOCKET," or ").concat(Ct["c"].COMET)),i=Ct["c"].WEBSOCKET):i=Ct["c"].WEBSOCKET,Ct["H"].info(Ct["j"].A_INIT_O,{appkey:n.appkey,navigators:n.navigators||[],connectionType:i,logLevel:n.logLevel}),r._context=Ct["a"].init(Xt,{appkey:n.appkey,apiVersion:"5.4.3",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}Tt(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["H"].ID(),n={onConnecting:function(){e.emit(Et.CONNECTING)},onConnected:function(){e.emit(Et.CONNECTED)},onDisconnect:function(n){Ct["H"].info(Ct["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(Et.DISCONNECT,n)},onSuspend:function(n){Ct["H"].info(Ct["j"].A_CONNECT_S,{status:n},{traceId:t}),e.emit(Et.SUSPEND,n)},batchMessage:function(t){e.emit(Et.MESSAGES,{messages:t.map((function(e){return en(e)}))})},typingState:function(t){e.emit(Et.TYPING_STATUS,{status:t})},readReceiptReceived:function(t,n,r){e.emit(Et.READ_RECEIPT_RECEIVED,{conversation:t,messageUId:n,sentTime:r})},messageReceiptRequest:function(t,n,r){e.emit(Et.MESSAGE_RECEIPT_REQUEST,{conversation:t,messageUId:n,senderUserId:r})},messageReceiptResponse:function(t,n,r){e.emit(Et.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?en(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?en(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(Et.CONVERSATION,{conversationList:n})},chatroomState:function(t){e.emit(Et.CHATROOM,t)},expansion:function(t){e.emit(Et.EXPANSION,t)},pullFinished:function(){e.emit(Et.PULL_OFFLINE_MESSAGE_FINISHED)},tag:function(){e.emit(Et.TAG)},conversationTagChanged:function(){e.emit(Et.CONVERSATION_TAG)},messageBlocked:function(t){e.emit(Et.MESSAGE_BLOCKED,t)},ultraGroupEnable:function(t){e.emit(Et.ULTRA_GROUP_ENABLE,t)},operateStatus:function(t){e.emit(Et.OPERATE_STATUS,t)},ultraGroupMessageExpansionUpdated:function(t){e.emit(Et.ULTRA_GROUP_MESSAGE_EXPANSION_UPDATED,t)},ultraGroupMessageModified:function(t){e.emit(Et.ULTRA_GROUP_MESSAGE_MODIFIED,t)},ultraGroupMessageRecalled:function(t){e.emit(Et.ULTRA_GROUP_MESSAGE_RECALLED,t)},ultraGroupChannelChangeType:function(t){e.emit(Et.ULTRA_GROUP_CHANNEL_TYPE_CHANGE,t)},ultraGroupChannelUserKicked:function(t){e.emit(Et.ULTRA_GROUP_CHANNEL_USER_KICKED,t)},ultraGroupChannelDelete:function(t){e.emit(Et.ULTRA_GROUP_CHANNEL_DELETE,t)}};this.context.assignWatcher(n)},t}(Ct["g"]),on={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:Ct["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:Ct["f"].NOT_SUPPORT,msg:"The method is not supported in a browser!"}},an={},sn={};for(var cn in on){var un=on[cn],ln=un.code;an[ln]=cn,sn[ln]=un}on.ROAMING_SERVICE_UNAVAILABLE.code;var fn=function(e){nn=nn||new rn(e)};function dn(e,t){return _t(this,void 0,void 0,(function(){var n,r;return wt(this,(function(i){switch(i.label){case 0:return Object(Ct["x"])("token",e,Ct["b"].STRING,!0),St.warn("RongIMLib Version: ".concat("5.4.3",", Commit: ").concat("b3936f05590d2beb491dee0dbb7071eeb648e941")),n=Ct["H"].ID(),Ct["H"].info(Ct["j"].A_CONNECT_T,{token:e,reconnectKickEnable:t},{traceId:n}),[4,nn.context.connect(e,!1,t,n)];case 1:return r=i.sent(),(r.code===Ct["f"].SUCCESS?Ct["H"].info:Ct["H"].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:an[r.code]}]}}))}))}function hn(){return Ct["H"].info(Ct["j"].A_DISCONNECT_O,{}),nn.context.disconnect()}function pn(){return nn.context.getServerTime()}function gn(){return nn.context.getCurrentUserId()}function vn(e,t,n){nn.on(e,t,n)}function mn(e,t,n){nn.off(e,t,n)}function yn(e,t){return _t(this,void 0,void 0,(function(){var n,r,i;return wt(this,(function(o){switch(o.label){case 0:return St.debug("get conversation list ->"),[4,rn.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 tn(e)}))}]:(St.warn("get conversation list fail ->"+r+":"+an[r]),[2,{code:r,msg:an[r]}])}}))}))}function In(e){return _t(this,void 0,void 0,(function(){var t,n;return wt(this,(function(r){switch(r.label){case 0:return Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,rn.imClient.context.removeConversation(e.conversationType,e.targetId,e.channelId)];case 1:return t=r.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("destroy conversation ->"+n),t!==Ct["f"].SUCCESS?(St.warn("destroy conversation fail ->"+t+":"+an[t]+","+n),[2,{code:t,msg:an[t]}]):[2,{code:t}]}}))}))}function Mn(e){return _t(this,void 0,void 0,(function(){var t,n,r,i;return wt(this,(function(o){switch(o.label){case 0:return Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,rn.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,St.debug("get draft ->"+i),n===Ct["f"].SUCCESS?[2,{code:n,data:r||""}]:(St.warn("get draft fail ->"+n+":"+an[n]+","+i),[2,{code:n,msg:an[n]}])}}))}))}function bn(e,t){return _t(this,void 0,void 0,(function(){var n,r;return wt(this,(function(i){switch(i.label){case 0:return Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),Object(Ct["x"])("draft",t,Ct["b"].STRING,!0),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("set draft ->"+n),[4,rn.imClient.context.saveConversationMessageDraft(e.conversationType,e.targetId,t,e.channelId)];case 1:return(r=i.sent())===Ct["f"].SUCCESS?[2,{code:r}]:(St.warn("set draft fail ->"+r+":"+an[r]+","+n),[2,{code:r,msg:an[r]}])}}))}))}function Cn(e){return _t(this,void 0,void 0,(function(){var t,n;return wt(this,(function(r){switch(r.label){case 0:return Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),t="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("delete draft ->"+t),[4,rn.imClient.context.clearConversationMessageDraft(e.conversationType,e.targetId,e.channelId)];case 1:return(n=r.sent())===Ct["f"].SUCCESS?[2,{code:n}]:(St.warn("delete draft fail ->"+n+":"+an[n]+","+t),[2,{code:n,msg:an[n]}])}}))}))}function Tn(e){return _t(this,void 0,void 0,(function(){var t,n;return wt(this,(function(r){switch(r.label){case 0:return Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),[4,rn.imClient.context.clearUnreadCount(e.conversationType,e.targetId,e.channelId)];case 1:return t=r.sent(),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("clear unreadMsgNum ->"+n),t!==Ct["f"].SUCCESS?(St.warn("clear unreadMsgNum fail ->"+t+":"+an[t]+","+n),[2,{code:t,msg:an[t]}]):[2,{code:t}]}}))}))}var An=function(e,t){void 0===t&&(t=""),Object(Ct["x"])("options.conversationType",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID);var n="conversationType:"+e.conversationType+",targetId:"+e.targetId;return St.debug("".concat(t," -> ").concat(n)),n},_n=function(e,t,n){return void 0===n&&(n=""),_t(void 0,void 0,void 0,(function(){var r,i;return wt(this,(function(o){switch(o.label){case 0:return r=An(e,n),[4,t()];case 1:return(i=o.sent())!==Ct["f"].SUCCESS?(St.warn("".concat(n," fail -> ").concat(i," : ").concat(an[i]," , ").concat(r)),[2,{code:i,msg:an[i]}]):[2,{code:i}]}}))}))};function wn(e,t){return _t(this,void 0,void 0,(function(){return wt(this,(function(n){return Object(Ct["x"])("notificationStatus",t,(function(e){return 1===e||2===e}),!0),[2,_n(e,(function(){return rn.imClient.context.setConversationStatus(e.conversationType,e.targetId,void 0,t,e.channelId)}),"setConversationNotificationStatus")]}))}))}function En(e,t){return void 0===t&&(t=!0),_t(this,void 0,void 0,(function(){var n,r;return wt(this,(function(i){switch(i.label){case 0:return Object(Ct["x"])("options.type",e.conversationType,Ct["F"],!0),Object(Ct["x"])("options.targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("options.channelId",e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("set conversation status ->"+n),[4,rn.imClient.context.setConversationStatus(e.conversationType,e.targetId,t,void 0,e.channelId)];case 1:return(r=i.sent())!==Ct["f"].SUCCESS?(St.warn("set conversation status fail ->"+r+":"+an[r]+","+n),[2,{code:r,msg:an[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 Sn(e,t,n){return void 0===t&&(t=!0),void 0===n&&(n=!0),function(r){return new Nn(e,r,t,n)}}var On,Dn,xn=Sn("RC:ImgMsg"),Rn=Sn("RC:HQVCMsg"),kn=Sn("RC:SightMsg"),Ln=Sn("RC:TxtMsg"),jn=Sn("RC:CombineMsg"),Pn=Sn("RC:FileMsg"),Un=(Sn("RC:GIFMsg"),Sn("RC:VcMsg"),Sn("RC:LBSMsg"),Sn("RC:ReferenceMsg")),zn=(Sn("RC:ImgTextMsg"),{qiniu:function(e,t,n,r){var i=rn.imClient.context.getInfoFromCache();if(1===(null==i?void 0:i.type)&&t.chunk_size&&r.size>t.chunk_size){var o=Object(Ct["y"])(),a=r.name.substr(r.name.lastIndexOf("."));o+=a,r.uniqueName=o,Vn(r,t,n)}else $n(e,t,n,r)},baidu:function(e,t,n,r){if(r.size>Gn)throw new Error("the file size is over 5GB!");var i=t||{};t=t||Dn;var o=new XMLHttpRequest,a=Yn();if(i.uploadHost.bos||i.bosUploadPath){var s=a+Bn[0][1]+i.bosUploadPath;Bn.shift();var c=i.bosHeader||{},u={filename:t.uniqueValue||r.uniqueName,name:r.name,downloadUrl:s,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):Bn.length?zn[Bn[0][0]](e,t,n,r):n.onError("upload fail"))},o.open(t.method,s,!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=Bn[0][1];Bn.shift(),e=e||On,t=(t=t||{})||Dn;var a=new XMLHttpRequest,s=Yn()+t.ossBucketName+"."+o;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=Ct["t"]?Ct["t"].ALI:"",200===a.status?n.onCompleted(e):Bn.length?zn[Bn[0][0]](i,t,n,r):n.onError("upload fail")}},a.open(t.method,s,!0),console.log("ali:url",s);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),a.send(e)},s3:function(e,t,n,r){var i=new FormData,o=new XMLHttpRequest,a=Yn(),s=t.contentDisposition,c=Bn[0][1],u=a+t.s3BucketName+"."+c;console.log("uploadS3:url",u),Bn.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["t"].AWS,200===o.status||204===o.status)n.onCompleted(i);else if(Bn.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),zn[Bn[0][0]](a,t,n,r)}else n.onError("upload fail")}},o.open(t.method,u,!0);var l=t?t.s3Header:{},f=r&&r.type;s?i.set("Content-Disposition",s+";"):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,a="https://"+Bn[0][1]+"/"+t.stcBucketName+"/"+t.uploadFileName;Bn.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["t"]?Ct["t"].STC:"",200===i.status||204===i.status)n.onCompleted(o);else if(Bn.length){var a=new FormData;a.set("file",e.get("file")),a.set("key",e.get("key")),a.set("token",e.get("token")),zn[Bn[0][0]](a,t,n,r)}else n.onError("upload fail")}},i.open("PUT",a,!0);var s=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",s.stcAuthorization),i.setRequestHeader("x-amz-content-sha256",s.stcContentSha256),i.setRequestHeader("x-amz-date",s.stcDate),i.send(r)}}),Bn=[],Gn=5368709120;function Yn(){var e="https://";return"http:"!==location.protocol&&"file:"!==location.protocol||(e="http://"),e}var Hn,Fn=(Hn="RC-upload-",{get:function(e){e=Hn+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=Hn+e,t={data:t,type:typeof t,updateTime:Date.now()},n.setItem(e,JSON.stringify(t))},remove:function(e){e=Hn+e,localStorage.removeItem(e)}});function $n(e,t,n,r){var i="https://"+t.uploadHost.qiniu,o=(/http/.test(Bn[0][1])?"":Yn())+Bn[0][1]||i;t.isChunk||Bn.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 i=JSON.parse(a.responseText||"{}");i.filename=t.uniqueValue,i.uploadMethod=Ct["t"]?Ct["t"].QINIU:"",200===a.status||204===a.status?n.onCompleted(i):Bn.length?zn[Bn[0][0]](e,t,n,r):n.onError("upload fail")}},a.open(t.method,o,!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 Vn(e,t,n,r){var i=0,o=r||Object(Ct["y"])(),a=Fn.get(o);a&&(e.uniqueName=a.sessionId,i=a.offset);var s=Math.min(t.chunk_size,e.size-i),c=e.slice(i,i+s),u=e.uniqueName;t.multi_parmas.name=u,t.filesize=e.size;var l="bytes="+i+"-"+(i+s);t.headers={Range:l,"X-File-TransactionId":u,"X-File-Total-Size":e.size},t.isChunk=!0,c.name=e.name,c=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}(c,t,e.uniqueName),$n(c,t,{onCompleted:function(r){i+=s;var a=e.uniqueName;Fn.set(o,{offset:i,sessionId:a}),i<e.size?Vn(e,t,n,o):(i=0,Fn.remove(o),n.onCompleted(r))},onError:function(e){console.error(e),n.onError(e)},onProgress:function(e,r){var o=e+i;n.onProgress(o,t.filesize)},onOpen:function(e){n.onOpen(e)}},e)}function Qn(e,t,n){var r,i,o=e&&e.type||"text/plain",a=o.indexOf("image")>-1?1:4,s=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";rn.imClient.context.getFileToken(a,r,"POST",f).then((function(a){r=a.fileName,i="https://"+l.stc+"/"+t.stcBucketName+"/"+r,console.log("uploadStcMultipart:url",i);var u=new XMLHttpRequest;u.open("POST",i+"?"+f,!0),s?u.setRequestHeader("Content-Disposition",s+";"):u.setRequestHeader("Content-Disposition","text/html"===e.type?"inline;":"attachment;"),u.setRequestHeader("Authorization",a&&a.stcAuthorization),u.setRequestHeader("x-amz-content-sha256",a&&a.stcContentSha256),u.setRequestHeader("x-amz-date",a&&a.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 d=[],h=new Map;function p(s,u){u&&Array.isArray(u)&&0!==u.length&&Promise.all(u).then((function(){var u="uploadId="+s;if(h.size===c)rn.imClient.context.getFileToken(a,r,"POST",u).then((function(r){console.log("onSuccess",r),console.log("onSuccess:uploadId",s);var a=new XMLHttpRequest;a.open("POST",i+"?"+u,!0),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",o);var c="<CompleteMultipartUpload xmlns='http://s3.amazonaws.com/doc/2006-03-01/'>",l=Array.from(h.keys()||[]).sort((function(e,t){return e-t}));console.log("keys",l),l.forEach((function(e){c+="<Part><ETag>".concat(h.get(e),"</ETag><PartNumber>").concat(e,"</PartNumber></Part>")})),c+="</CompleteMultipartUpload>",a.send(c),console.log("xml",c),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var r={name:e.name,filename:t.uploadFileName,uploadMethod:Ct["t"].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=d;f<v.length;f++){var m=v[f];l.push(g(s,m))}p(s,l)}}),(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(g(s,o))}p(s,t)}))}function g(n,s){return new Promise((function(c,u){var l="partNumber="+s+"&uploadId="+n;rn.imClient.context.getFileToken(a,r,"PUT",l).then((function(n){console.log("signature "+s+" onSuccess",n);var r=e&&e.slice((s-1)*t.stc_chunk_size,s*t.stc_chunk_size);console.log("fileChunk:size",r.size);var a=new XMLHttpRequest;a.open("PUT",i+"?"+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",o),a.send(r),a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status||204===a.status){var e=a.getResponseHeader("etag");console.log("etag:"+s,e),h.set(s,e),c(e)}else d.includes(s)||d.push(s),u(s)}}),(function(e){console.log("getETags:签名验证失败"),d.includes(s)||d.push(s),u(s)}))}))}}var Wn={form:function(e,t){var n=new FormData;if(t.unique_key){var r=e.name.substr(e.name.lastIndexOf(".")),i=Zn()+r;n.append(t.unique_key,i),t.uniqueValue=i}return n.append(t.file_data_name,e),Kn(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=Zn()+r;n[t.unique_key]=i,t.uniqueValue=i}return n[t.file_data_name]=e,Kn(t.multi_parmas,(function(e,t){n[e]=t})),JSON.stringify(n)},data:function(e,t){return e}};function Zn(){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 Kn(e,t){for(var n in e)t(n,e[n])}var qn,Jn,Xn,er=0,tr=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:Wn.form,genUId:Zn};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;Kn(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;On=e,Dn=t,Bn=[];var o,a=rn.imClient.context.getInfoFromCache();if(1===(null==a?void 0:a.type)&&(null===(r=rn.imClient.initOptions)||void 0===r?void 0:r.uploadDomain))Bn=[["qiniu",null===(i=rn.imClient.initOptions)||void 0===i?void 0:i.uploadDomain]];else if(t.ossConfig){var s,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&&(s=e[n]),"stc"===n&&(c=e[n]),"p"!==n&&(f[t]=[n,e[n]])})),f.forEach((function(e){e&&Bn.push(e)})),u.length!==Bn.length&&(Bn=[["qiniu",t.domain],["baidu",t.uploadHost.bos],["aliyun",l],["s3",s],["stc",c]])}else Bn=[["qiniu",t.domain],["baidu",t.uploadHost.bos]];if(t.ossConfig){var d=t&&JSON.parse(t.ossConfig);Array.isArray(d)||(d=[]),o=d.find((function(e){return Object.keys(e).includes("stc")}))}if(o&&1===parseInt(o.p)&&e.size>=4194304)Qn(e,t,n);else{var h=t.data(e,t);zn[Bn[0][0]](h,t,n,e)}}(e,this.options,{onProgress:function(e,n,r){qn=e,r?qn=er+e/n*(n-er):er=qn,t.onProgress(qn,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}(),nr={init:function(e){return new tr(e)},dataType:Wn,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 a=o.width,s=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,a=t.maxHeight||0;if(a>0&&o>a){var s=a/o;n=Math.min(n,s)}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:a,height:s,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,a*c,s*c)),n(u)}}},rr=function(e,t,n){var r=document.createElement("canvas"),i=r.getContext("2d"),o=new Image,a="string"==typeof e;o.onload=function(a){var s=function(e,t,n){var r,i,o,a=e<t,s=0,c=0;return(a?t/e:e/t)>n.scale?(a?(i=100,c=((o=t/(r=e/100))-n.maxHeight)/2):(o=100,s=((i=e/(r=t/100))-n.maxWidth)/2),{w:i,h:o,x:-s,y:-c}):(a?(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:-s,y:-c})}(o.width,o.height,t);r.width=s.w>t.maxWidth?t.maxWidth:s.w,r.height=s.h>t.maxHeight?t.maxHeight:s.h,i.drawImage(o,s.x,s.y,s.w,s.h);var c=r.toDataURL("string"==typeof e?"image/jpg":e.type,t.quality);c=c.replace(/data:image\/[^;]+;base64,/,""),n(c)},o.src=a?"data:image/jpg;base64,"+e:function(e){var t=window.URL||window.webkitURL;return t?t.createObjectURL(e):""}(e)},ir=function(e,t){var n=e.file,r=e.compress;rr(n,r,t)},or=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=nr.init(e);t(i)}));else{e.headers||(e.headers={}),e.base64&&(e.headers["Content-type"]="application/octet-stream");var n=nr.init(e);t(n)}},ar=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||ir;e.compress?r(e,(function(e){t.thumbnail=e,n.onCompleted(t)})):n.onCompleted(t)}})},sr=function(){function e(e){this.instance=e}return e.prototype.upload=function(e,t){ar({file:e},this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),cr=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};ar(n,this.instance,t)},e.prototype.cancel=function(){this.instance.cancel()},e}(),ur=function(e,t){or(e,(function(n){var r,i,o,a,s={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===(a=e.thumbnailConfig)||void 0===a?void 0:a.scale)||2.4},c=new cr(n,s);t(c)}))},lr=function(e,t){or(e,(function(e){var n=new sr(e);t(n)}))},fr=ur;function dr(e,t,n,r){var i,o=this;void 0===t&&(t=Ct["h"].FILE),i=t===Ct["h"].IMAGE?Ct["h"].IMAGE:Ct["h"].FILE;var a=rn.imClient.context.getInfoFromCache();if(!Xn&&(Xn="upload.qiniup.com",a&&a.ossConfig))try{var s=JSON.parse(a.ossConfig).find((function(e){return void 0!==e.qiniu}));s&&(Xn=s.qiniu)}catch(e){}var c=At({domain:Xn,getToken:function(e){rn.imClient.context.getFileToken(i).then((function(t){e(t.token,t)})).catch((function(e){n.onFail(e)}))}},r);(i===Ct["h"].IMAGE?fr:lr)(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 _t(o,void 0,void 0,(function(){return wt(this,(function(o){return 1===(null==a?void 0:a.type)?function(e,t,n,r,i){var o,a={type:n.type,name:r.rc_url.file_name,downloadUrl:(null===(o=rn.imClient.initOptions)||void 0===o?void 0:o.uploadDomain)+r.rc_url.path};e!==Ct["h"].AUDIO?(e===Ct["h"].IMAGE&&(a.thumbnail=r.thumbnail),i.onSuccess(a)):hr(n).then((function(e){i.onSuccess(At(At({},a),e))}))}(t,0,e,r,n):function(e,t,n,r,i){var o=this;gr(t,r.filename,r.name,r,r.uploadMethod).then((function(a){return _t(o,void 0,void 0,(function(){var o;return wt(this,(function(s){return 0!==a.code?(i.onFail(a),[2]):((o=a.data).type=n.type,o.name=r.name||r.filename,e===Ct["h"].AUDIO?(hr(n).then((function(e){i.onSuccess(At(At({},o),e))})),[2]):(t===Ct["h"].IMAGE&&(o.thumbnail=r.thumbnail),i.onSuccess(o),[2]))}))}))})).catch((function(e){i.onFail(e)}))}(t,i,e,r,n),[2]}))}))},onError:function(e){n.onFail(e)}})}))}function hr(e){return new Promise((function(t){if("function"==typeof e.arrayBuffer)return e.arrayBuffer().then(pr).then((function(e){t(e)}));var n=new FileReader;n.onload=function(){n.result?pr(n.result).then((function(e){t(e)}),(function(){t({})})):t({})},n.onerror=function(){t({duration:0})},n.readAsArrayBuffer(e)}))}function pr(e){return Jn=Jn||new AudioContext,new Promise((function(t,n){Jn.decodeAudioData(e,(function(e){t({duration:e.duration,length:e.length})}),n)}))}function gr(e,t,n,r,i){return Object(Ct["x"])("fileType",e,Ct["G"],!0),Object(Ct["x"])("filename",t,Ct["b"].STRING),Object(Ct["x"])("saveName",n,Ct["b"].STRING),Object(Ct["x"])("serverType",i,Ct["b"].NUMBER),new Promise((function(o){rn.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 vr(e,t,n){return _t(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,f,d,h,p;return wt(this,(function(g){switch(g.label){case 0:return n=n||{},t instanceof Nn==0?(St.warn("send message fail -> message parameter is not an instance of BaseMessage"),[2,on.ILLGAL_PARAMS]):(Object(Ct["x"])("conversation",e,Ct["b"].OBJECT,!0),r=e.conversationType,i=e.targetId,o=e.channelId,Object(Ct["x"])("conversation.targetId",i,Ct["b"].STRING,!0),Object(Ct["x"])("conversation.conversationType",r,Ct["b"].NUMBER),Object(Ct["x"])("conversation.channelId",o,Ct["b"].CHANNEL_ID),Object(Ct["x"])("options.isStatusMessage",null==n?void 0:n.isStatusMessage,Ct["b"].BOOLEAN),Object(Ct["x"])("options.disableNotification",null==n?void 0:n.disableNotification,Ct["b"].BOOLEAN),Object(Ct["x"])("options.pushContent",null==n?void 0:n.pushContent,Ct["b"].STRING),Object(Ct["x"])("options.pushData",null==n?void 0:n.pushData,Ct["b"].STRING),Object(Ct["x"])("options.isMentioned",null==n?void 0:n.isMentioned,Ct["b"].BOOLEAN),Object(Ct["x"])("options.mentionedType",null==n?void 0:n.mentionedType,Ct["b"].NUMBER),Object(Ct["x"])("options.mentionedUserIdList",null==n?void 0:n.mentionedUserIdList,Ct["b"].ARRAY),Object(Ct["x"])("options.directionalUserIdList",null==n?void 0:n.directionalUserIdList,Ct["b"].ARRAY),Object(Ct["x"])("options.isVoipPush",null==n?void 0:n.isVoipPush,Ct["b"].BOOLEAN),Object(Ct["x"])("options.canIncludeExpansion",null==n?void 0:n.canIncludeExpansion,Ct["b"].BOOLEAN),Object(Ct["x"])("options.expansion",null==n?void 0:n.expansion,Ct["b"].OBJECT),Object(Ct["x"])("options.pushConfig",null==n?void 0:n.pushConfig,Ct["b"].OBJECT),a="conversationType:"+r+",targetId:"+i,St.debug("send message ->"+a),s=function(e,t,n){var r=e.isStatusMessage,i=e.disableNotification,o=e.pushContent,a=e.pushData,s=e.isMentioned,c=e.mentionedType,u=e.mentionedUserIdList,l=e.directionalUserIdList,f=e.isVoipPush,d=e.canIncludeExpansion,h=e.expansion,p=e.isFilerWhiteBlacklist,g=e.pushConfig,v=n.channelId;return At({isStatusMessage:r,disableNotification:i,pushContent:o,pushData:a,isMentioned:s,mentionedType:c,mentionedUserIdList:u,directionalUserIdList:l,isVoipPush:f,canIncludeExpansion:d,expansion:h,isFilerWhiteBlacklist:p,pushConfig:g,channelId:v||""},t)}(n,t,e),c={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:rn.imClient.context.getCurrentUserId(),messageUId:"",messageDirection:Ct["m"].SEND,receivedTime:0,isStatusMessage:n.isStatusMessage||!1,receivedStatus:Ct["r"].UNREAD,isOffLineMessage:!1,pushConfig:null==n?void 0:n.pushConfig},r!==Ct["e"].ULTRA_GROUP&&(c.isOffLineMessage=!1),u=function(e){c.messageId=e;try{(null==n?void 0:n.onSendBefore)&&n.onSendBefore(en(c))}catch(e){Ct["H"].error('Callback method "onSendBefore" execution error',e)}},l=Ct["H"].ID(),Ct["H"].info(Ct["j"].A_SEND_MSG_T,{messageType:t.messageType,conversationType:r,targetId:i,channelId:o},{traceId:l}),[4,rn.imClient.context.sendMessage(r,i,s,u,l)]);case 1:return f=g.sent(),d=f.code,h=f.data,(d===Ct["f"].SUCCESS?Ct["H"].info:Ct["H"].warn)(Ct["j"].A_SEND_MSG_R,{code:d,messageUId:h?h.messageUId:"",messageId:h?h.messageId:""},{traceId:l}),d===Ct["f"].SUCCESS?(p=en(h),[2,{code:d,data:p}]):(St.warn("send message fail ->"+d+":"+an[d]+","+a),c.sentTime=(null==h?void 0:h.sentTime)||0,[2,{code:d,msg:an[d],data:en(c)}])}}))}))}function mr(e,t){return function(n,r,i,o){Object(Ct["x"])("sendOptions.contentDisposition",null==o?void 0:o.contentDisposition,(function(e){return["inline","attachment"].includes(e)}));var a={contentDisposition:null==o?void 0:o.contentDisposition};if(o&&"thumbnailConfig"in o){var s=null==o?void 0:o.thumbnailConfig;Object(Ct["x"])("sendOptions.maxHeight",null==s?void 0:s.maxHeight,Ct["b"].NUMBER),Object(Ct["x"])("sendOptions.maxWidth",null==s?void 0:s.maxWidth,Ct["b"].NUMBER),Object(Ct["x"])("sendOptions.quality",null==s?void 0:s.quality,Ct["b"].NUMBER),Object(Ct["x"])("sendOptions.scale",null==s?void 0:s.scale,Ct["b"].NUMBER),a.thumbnailConfig=s}return new Promise((function(s){var c=Ct["H"].ID();Ct["H"].info(Ct["j"].L_MEDIA_UPLOAD_T,{filesize:r.file.size,type:e},{traceId:c}),dr(r.file,e,{onProgress:null==i?void 0:i.onProgress,onSuccess:function(e){var a,u=(null===(a=null==i?void 0:i.onComplete)||void 0===a?void 0:a.call(i,{url:e.downloadUrl}))||t(e,r);e&&e.downloadUrl&&Ct["H"].info(Ct["j"].L_MEDIA_UPLOAD_R,{downurl:e.downloadUrl,code:Ct["f"].SUCCESS},{traceId:c}),vr(n,u,o).then(s)},onFail:function(e){Ct["H"].warn(Ct["j"].L_MEDIA_UPLOAD_R,{code:Ct["f"].UPLOAD_FILE_FAILED},{traceId:c}),s({code:Ct["f"].UPLOAD_FILE_FAILED,msg:e||Ct["f"][Ct["f"].UPLOAD_FILE_FAILED]})}},a)}))}}nr.dataType;var yr=mr(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})})),Ir=mr(Ct["h"].IMAGE,(function(e,t){return new xn({content:e.thumbnail,imageUri:e.downloadUrl,user:t.user,extra:t.extra})}));mr(Ct["h"].AUDIO,(function(e,t){return new Rn({remoteUrl:e.downloadUrl,duration:e.duration,type:e.type,user:t.user,extra:t.extra})})),mr(Ct["h"].SIGHT,(function(e,t){return new kn({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 Mr(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o,a,s;return wt(this,(function(c){switch(c.label){case 0:return Object(Ct["x"])("options.timestamp",null==t?void 0:t.timestamp,Ct["b"].NUMBER),Object(Ct["x"])("options.count",null==t?void 0:t.count,Ct["b"].NUMBER),Object(Ct["x"])("options.order",null==t?void 0:t.order,(function(e){return 0===e||1===e})),Object(Ct["x"])("conversation.channelId",null==e?void 0:e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("get history message ->"+n),r=Ct["H"].ID(),Ct["H"].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,rn.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,a=i.data,o===Ct["f"].SUCCESS&&a?(s=a.list.map((function(e){return en(e)})),Ct["H"].info(Ct["j"].A_GET_HISTORY_MSG_R,{code:o,messageLength:s.length},{traceId:r}),[2,{code:o,data:{list:s,hasMore:a.hasMore}}]):(Ct["H"].warn(Ct["j"].A_GET_HISTORY_MSG_R,{code:o,messageUIds:""},{traceId:r}),St.warn("get history message fail ->"+o+":"+an[o]+","+n),[2,{code:o,msg:an[o]}])}}))}))}function br(e,t,n,r){return _t(this,void 0,void 0,(function(){var i,o,a,s,c;return wt(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,vr(i,o)];case 1:return a=u.sent(),s=a.code,c=a.msg,0===s?[2,{code:s}]:[2,{code:s,msg:c}]}}))}))}function Cr(e,t,n){return _t(this,void 0,void 0,(function(){var r,i,o,a,s,c,u;return wt(this,(function(l){switch(l.label){case 0:return Object(Ct["x"])("targetId",e,Ct["b"].STRING,!0),Object(Ct["x"])("messageList",t,Ct["b"].OBJECT,!0),Object(Ct["x"])("channelId",n,Ct["b"].CHANNEL_ID),Object.keys(t).forEach((function(e){Object(Ct["x"])(e,t[e],Ct["b"].ARRAY)})),r={targetId:e,conversationType:Ct["e"].GROUP,channelId:n},o=rn.imClient.context.getInfoFromCache(),0!==(a=(null==o?void 0:o.grpRRVer)||0)?[3,2]:(s=new Nn("RC:RRRspMsg",{receiptMessageDic:t}),[4,vr(r,s)]);case 1:return i=l.sent(),[3,4];case 2:return 1!==a?[3,4]:(c=[],Object.keys(t).forEach((function(e){t[e].forEach((function(e){-1===c.indexOf(e)&&c.push(e)}))})),c.length?[4,rn.imClient.context.sendReadReceiptMessage(e,c,n)]:(St.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}]:(St.warn("send read receipt message fail ->"+u+":"+an[u]),[2,{code:u,msg:an[u]}])}}))}))}function Tr(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o,a;return wt(this,(function(s){switch(s.label){case 0:return Object(Ct["x"])("options.messageUId",t.messageUId,Ct["b"].STRING,!0),Object(Ct["x"])("options.sentTime",t.sentTime,Ct["b"].NUMBER,!0),Object(Ct["x"])("options.disableNotification",null==t?void 0:t.disableNotification,Ct["b"].BOOLEAN),Object(Ct["x"])("options.pushConfig",null==t?void 0:t.pushConfig,Ct["b"].OBJECT),Object(Ct["x"])("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,St.debug("recall message ->"+r),[4,rn.imClient.context.recallMessage(e.conversationType,e.targetId,t.messageUId,t.sentTime,n)];case 1:return i=s.sent(),o=i.code,a=i.data,o===Ct["f"].SUCCESS&&a?[2,{code:o,data:en(a)}]:o===Ct["f"].SUCCESS?[2,{code:o}]:(St.warn("recall message fail ->"+o+":"+an[o]+","+r),[2,{code:o,msg:an[o]}])}}))}))}function Ar(e,t){return _t(this,void 0,void 0,(function(){var n,r;return wt(this,(function(i){switch(i.label){case 0:return Object(Ct["x"])("options",t,(function(e){return Object(Ct["z"])(e)&&e.length}),!0),t.forEach((function(e){Object(Ct["x"])("options.messageUId",e.messageUId,Ct["b"].STRING,!0),Object(Ct["x"])("options.sentTime",e.sentTime,Ct["b"].NUMBER,!0),Object(Ct["x"])("options.messageDirection",e.messageDirection,(function(e){return 1===e||2===e}),!0)})),Object(Ct["x"])("conversation.channelId",null==e?void 0:e.channelId,Ct["b"].CHANNEL_ID),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("delete messages ->"+n),[4,rn.imClient.context.deleteRemoteMessage(e.conversationType,e.targetId,t,e.channelId)];case 1:return(r=i.sent())!==Ct["f"].SUCCESS?(St.warn("delete message fail ->"+r+":"+an[r]+","+n),[2,{code:r,msg:an[r]}]):[2,{code:Ct["f"].SUCCESS}]}}))}))}function _r(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o,a,s;return wt(this,(function(c){switch(c.label){case 0:return Object(Ct["x"])("typingContentType",t,Ct["b"].STRING,!0),n="conversationType:"+e.conversationType+",targetId:"+e.targetId,St.debug("send typing status message ->"+n),r={messageType:"RC:TypSts",content:{typingContentType:t},isStatusMessage:!0,channelId:e.channelId},i=Ct["H"].ID(),Ct["H"].info(Ct["j"].A_SEND_MSG_T,{messageType:r.messageType,conversationType:e.conversationType,targetId:e.targetId,channelId:e.channelId},{traceId:i}),[4,rn.imClient.context.sendMessage(e.conversationType,e.targetId,r,void 0,i)];case 1:return o=c.sent(),a=o.code,s=o.data,(a===Ct["f"].SUCCESS?Ct["H"].info:Ct["H"].warn)(Ct["j"].A_SEND_MSG_R,{code:a,messageUId:s?s.messageUId:"",messageId:s?s.messageId:""},{traceId:i}),a===Ct["f"].SUCCESS?[2,{code:a,data:en(s)}]:(St.warn("send typing status message fail ->"+a+":"+an[a]+","+n),[2,{code:a,msg:an[a]}])}}))}))}function wr(e,t,n,r,i){return Object(Ct["x"])("messageType",e,Ct["b"].STRING,!0),Object(Ct["x"])("isPersited",t,Ct["b"].BOOLEAN,!0),Object(Ct["x"])("isCounted",n,Ct["b"].BOOLEAN,!0),Object(Ct["x"])("isStatusMessage",i,Ct["b"].BOOLEAN,!1),Ct["H"].info(Ct["j"].A_REGTYP_O,{messageType:e,isCounted:n,isStatusMessage:i,isPersited:t}),rn.imClient.context.registerMessageType(e,t,n,r,i),Sn(e,t,n)}mr(Ct["h"].COMBINE_HTML,(function(e,t){return new jn({remoteUrl:e.downloadUrl,nameList:t.nameList,summaryList:t.summaryList,conversationType:t.conversationType,user:t.user,extra:t.extra})}));var Er,Nr,Sr,Or={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"};Object.freeze({__proto__:null,getAllConversationList:function(e){return _t(this,void 0,void 0,(function(){var t,n,r,i;return wt(this,(function(o){switch(o.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("channelId",e,Ct["b"].ONLY_STRING),St.info("getAllConversationList -> channelId: ".concat(e)),Object(Ct["E"])(e)?[4,rn.imClient.context.getConversationListWithAllChannel()]:[3,2]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return t=o.sent(),[3,4];case 2:return[4,rn.imClient.context.getConversationList(void 0,void 0,void 0,void 0,e)];case 3:t=o.sent(),o.label=4;case 4:return n=t.code,r=t.data,n===Ct["f"].SUCCESS&&r?(i=r.map((function(e){return tn(e)})),[2,{code:n,data:i}]):(St.warn("getAllConversationList fail -> code: ".concat(n," channelId: ").concat(e)),[2,{code:n,msg:an[n]}])}}))}))},getConversationList:function(e,t,n){return _t(this,void 0,void 0,(function(){var r,i,o,a,s,c;return wt(this,(function(u){switch(u.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("startTime",e,Ct["b"].NUMBER,!0),Object(Ct["x"])("count",t,Ct["b"].NUMBER,!0),Object(Ct["x"])("channelId",n,Ct["b"].ONLY_STRING),r="startTime: ".concat(e,", count: ").concat(t,", channelId: ").concat(n),St.info("getConversationList -> ".concat(r)),Object(Ct["E"])(n)?[4,rn.imClient.context.getConversationListWithAllChannelByPage(e,t)]:[3,2]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return i=u.sent(),[3,4];case 2:return o=[1,2,3,5,6,7,8],[4,rn.imClient.context.getConversationsByPage(o,e,t,n)];case 3:i=u.sent(),u.label=4;case 4:return a=i.code,s=i.data,a===Ct["f"].SUCCESS&&s?(c=s.map((function(e){return tn(e)})),[2,{code:a,data:c}]):(St.warn("getConversationList fail -> code: ".concat(a," ").concat(r)),[2,{code:a,msg:an[a]}])}}))}))},searchConversationByContent:function(e,t,n){return _t(this,void 0,void 0,(function(){var r,i,o,a,s;return wt(this,(function(c){switch(c.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("keyword",e,Ct["b"].STRING,!0),Object(Ct["x"])("messageTypes",t,Ct["b"].ARRAY,!0),Object(Ct["x"])("channelId",n,Ct["b"].ONLY_STRING),t.forEach((function(e){Object(Ct["x"])("messageType",e,Ct["b"].STRING,!0)})),r="keyword: ".concat(e,", messageTypes: ").concat(JSON.stringify(t),", channelId: ").concat(n),St.info("searchConversationByContent -> ".concat(Ct["k"])),Object(Ct["E"])(n)?[4,rn.imClient.context.searchConversationByContentWithAllChannel(e,t)]:[3,2]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return i=c.sent(),[3,4];case 2:return[4,rn.imClient.context.searchConversationByContent(e,t,n)];case 3:i=c.sent(),c.label=4;case 4:return o=i.code,a=i.data,o===Ct["f"].SUCCESS&&a?(s=a.map((function(e){return tn(e)})),[2,{code:o,data:s}]):(St.warn("searchConversationByContent fail -> code: ".concat(o," ").concat(r)),[2,{code:o,msg:an[o]}])}}))}))},searchMessages:function(e,t,n,r){return _t(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,f,d,h;return wt(this,(function(p){switch(p.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("conversation",e,Ct["b"].CONVERSATION,!0),Object(Ct["x"])("keyword",t,Ct["b"].STRING,!0),Object(Ct["x"])("startTime",n,Ct["b"].NUMBER,!0),Object(Ct["x"])("count",r,Ct["b"].NUMBER,!0),i="conversation: ".concat(JSON.stringify(e),", keyword: ").concat(t,", timestamp: ").concat(n,", count: ").concat(r),St.info("searchMessages -> ".concat(i)),o=e.targetId,a=e.conversationType,s=e.channelId,Object(Ct["E"])(s)?[4,rn.imClient.context.searchMessageByContentWithAllChannel(a,o,t,n,r)]:[3,2]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return c=p.sent(),[3,4];case 2:return[4,rn.imClient.context.searchMessageByContent(a,o,t,n,r,0,s)];case 3:c=p.sent(),p.label=4;case 4:return u=c.code,l=c.data,u===Ct["f"].SUCCESS&&l?(f=l.messages,d=l.count,h=f.map((function(e){return en(e)})),[2,{code:u,data:{messages:h,count:d}}]):(St.warn("searchMessages fail -> code: ".concat(u," ").concat(i)),[2,{code:u,msg:an[u]}])}}))}))},searchMessageInTimeRange:function(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o,a,s,c,u,l,f,d;return wt(this,(function(h){switch(h.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("conversation",e,Ct["b"].CONVERSATION,!0),Object(Ct["x"])("option",t,Ct["b"].OBJECT,!0),Object(Ct["x"])("option.keyword",t.keyword,Ct["b"].STRING,!0),Object(Ct["x"])("option.startTime",t.startTime,Ct["b"].NUMBER,!0),Object(Ct["x"])("option.endTime",t.endTime,Ct["b"].NUMBER,!0),Object(Ct["x"])("option.offset",t.offset,Ct["b"].NUMBER),Object(Ct["x"])("option.limit",t.limit,Ct["b"].NUMBER),n="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),St.info("searchMessageInTimeRange -> ".concat(n)),r=e.conversationType,i=e.targetId,o=t.keyword,a=t.startTime,s=t.endTime,c=t.offset,u=t.limit,c=c||0,u=u||5,[4,rn.imClient.context.searchMessageByContentInTimeRangeWithAllChannel(r,i,o,a,s,c,u)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return l=h.sent(),f=l.code,d=l.data,f===Ct["f"].SUCCESS&&d?[2,{code:f,data:{messages:d.messages.map((function(e){return en(e)}))}}]:(St.warn("searchMessageInTimeRange fail -> code: ".concat(f,", ").concat(n)),[2,{code:f}])}}))}))},getHistoryMessagesByMessageTypes:function(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o,a,s,c,u,l,f,d,h,p,g,v;return wt(this,(function(m){switch(m.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("conversation",e,Ct["b"].CONVERSATION,!0),Object(Ct["x"])("option",t,Ct["b"].OBJECT,!0),n=t.count,r=t.timestamp,i=t.order,o=t.messageTypes,Object(Ct["x"])("option.count",n,Ct["b"].NUMBER),Object(Ct["x"])("option.timestamp",r,Ct["b"].NUMBER),Object(Ct["x"])("option.order",i,(function(e){return[0,1].includes(e)})),Object(Ct["x"])("option.messageTypes",o,Ct["b"].ARRAY,!0),o.forEach((function(e){Object(Ct["x"])("option.messageType",e,Ct["b"].STRING,!0)})),a="conversation: ".concat(JSON.stringify(e),", option: ").concat(JSON.stringify(t)),St.info("getHistoryMessagesByMessageTypes -> ".concat(a)),s=e.conversationType,c=e.targetId,u=e.channelId,n||(n=20),r||(r=0),i||(i=0),u||(u=""),[4,rn.imClient.context.getHistoryMessagesByObjectNames(s,c,r,n,o,i,u)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return l=m.sent(),f=l.code,d=l.data,f===Ct["f"].SUCCESS?(p=(h=d).list,g=h.hasMore,v=p.map((function(e){return en(e)})),[2,{code:f,data:{messages:v,hasMore:g}}]):(St.warn("getHistoryMessagesByMessageTypes fail -> code: ".concat(f," ").concat(a)),[2,{code:f,msg:an[f]}])}}))}))},setMessageStatusToRead:function(e,t){return _t(this,void 0,void 0,(function(){var n,r,i,o;return wt(this,(function(a){switch(a.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("conversation",e,Ct["b"].CONVERSATION,!0),Object(Ct["x"])("timestamp",t,Ct["b"].NUMBER,!0),n="conversation: ".concat(JSON.stringify(e),", timestamp: ").concat(t),St.info("updateSentMsgReceiptStatus -> ".concat(n)),r=e.conversationType,i=e.targetId,o=e.channelId,[4,rn.imClient.context.setMessageStatusToRead(r,i,t,o)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return[2,a.sent()]}}))}))},setMessageReceivedStatus:function(e,t){return _t(this,void 0,void 0,(function(){return wt(this,(function(n){switch(n.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("messageId",e,Ct["b"].NUMBER,!0),Object(Ct["x"])("receivedStatus",t,(function(e){return!Object(Ct["E"])(Ct["r"][e])}),!0),St.info("setMessageReceivedStatus -> messageId: ".concat(e,", receivedStatus: ").concat(t)),[4,rn.imClient.context.setMessageReceivedStatus(e,t)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageSentStatus:function(e,t){return _t(this,void 0,void 0,(function(){return wt(this,(function(n){switch(n.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("messageId",e,Ct["b"].NUMBER,!0),Object(Ct["x"])("sentStatus",t,(function(e){return!Object(Ct["E"])(Nt[e])}),!0),St.info("setMessageSentStatus ->messageId: ".concat(e,", sentStatus: ").concat(t)),[4,rn.imClient.context.setMessageSentStatus(e,t)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return[2,{code:n.sent()}]}}))}))},setMessageContent:function(e,t,n){return void 0===n&&(n=""),_t(this,void 0,void 0,(function(){return wt(this,(function(r){switch(r.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("messageId",e,Ct["b"].NUMBER,!0),Object(Ct["x"])("content",t,Ct["b"].OBJECT,!0),Object(Ct["x"])("messageType",n,Ct["b"].ONLY_STRING,!0),St.info("setMessageSentStatus ->messageId: ".concat(e,", messageType: ").concat(n)),[4,rn.imClient.context.setMessageContent(e,t,n)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return[2,{code:r.sent()}]}}))}))},deleteMessages:function(e){return _t(this,void 0,void 0,(function(){return wt(this,(function(t){switch(t.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("messageIds",e,Ct["b"].ARRAY,!0),e.forEach((function(e){Object(Ct["x"])("messageId",e,Ct["b"].NUMBER,!0)})),St.info("deleteMessages ->messageIds: ".concat(JSON.stringify(e))),[4,rn.imClient.context.deleteMessages(e)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return[2,{code:t.sent()}]}}))}))},clearMessages:function(e){return _t(this,void 0,void 0,(function(){var t;return wt(this,(function(n){switch(n.label){case 0:return Object(Ct["K"])()?(St.info("clearMessages ->targetId:"+e.targetId+",conversationType:"+e.conversationType),[4,rn.imClient.context.clearMessages(e.conversationType,e.targetId,e.channelId)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return(t=n.sent())===Ct["f"].SUCCESS?[2,{code:t}]:(St.warn("clearMessages ->code:"+t+",targetId:"+e.targetId),[2,{code:t,msg:an[t]}])}}))}))},deleteMessagesByTimestamp:function(e,t,n){return _t(this,void 0,void 0,(function(){var r;return wt(this,(function(i){switch(i.label){case 0:return Object(Ct["K"])()?(Object(Ct["x"])("conversationType",e.conversationType,Ct["b"].NUMBER,!0),Object(Ct["x"])("targetId",e.targetId,Ct["b"].STRING,!0),Object(Ct["x"])("timestamp",t,Ct["b"].NUMBER,!0),Object(Ct["x"])("cleanSpace",n,Ct["b"].BOOLEAN),[4,rn.imClient.context.deleteMessagesByTimestamp(e.conversationType,e.targetId,t,n,e.channelId)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return(r=i.sent())===Ct["f"].SUCCESS?[2,{code:r}]:(St.warn("deleteMessagesByTimestamp ->code:"+r+",targetId:"+e.targetId),[2,{code:r,msg:an[r]}])}}))}))},insertMessage:function(e,t,n){return void 0===n&&(n={}),_t(this,void 0,void 0,(function(){var r,i,o,a,s,c,u,l,f,d,h,p,g,v,m,y;return wt(this,(function(I){switch(I.label){case 0:return Object(Ct["K"])()?(r=t.senderUserId,i=t.messageType,o=t.content,a=t.messageDirection,s=t.messageUId,c=t.canIncludeExpansion,u=t.expansion,l=t.disableNotification,f=t.sentTime,d=t.sentStatus,St.info("insertMessage ->targetId:"+e.targetId+",conversationType:"+e.conversationType),h=n.isUnread,p=n.searchContent,g={senderUserId:r,messageType:i,content:o,messageDirection:a,sentTime:f,sentStatus:d,searchContent:p,isUnread:h,messageUId:s,disableNotification:l,canIncludeExpansion:c,expansionMsg:JSON.stringify(u),channelId:e.channelId||""},[4,rn.imClient.context.insertMessage(e.conversationType,e.targetId,g)]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return v=I.sent(),m=v.code,y=v.data,m===Ct["f"].SUCCESS?[2,{code:m,data:en(y)}]:(St.warn("insertMessage ->code:"+m+",targetId:"+e.targetId),[2,{code:m,msg:an[m]}])}}))}))},clearLocalData:function(){return _t(this,void 0,void 0,(function(){var e,t,n;return wt(this,(function(r){switch(r.label){case 0:return Object(Ct["K"])()?(St.info("clearData -> "),[4,rn.imClient.context.clearData()]):[2,{code:Ct["f"].NOT_SUPPORT,msg:an[Ct["f"].NOT_SUPPORT]}];case 1:return e=r.sent(),t=e.code,n=e.data,[2,{code:t,data:n}]}}))}))}});function Dr(e){return Dr="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},Dr(e)}function xr(e){var t="function"===typeof Map?new Map:void 0;return xr=function(e){if(null===e||!kr(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 Rr(e,arguments,Fr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zr(n,e)},xr(e)}function Rr(e,t,n){return Rr=Hr()?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&&zr(o,n.prototype),o},Rr.apply(null,arguments)}function kr(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Lr(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 jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lr(Object(n),!0).forEach((function(t){Pr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(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&&zr(e,t)}function zr(e,t){return zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zr(e,t)}function Br(e){var t=Hr();return function(){var n,r=Fr(e);if(t){var i=Fr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gr(this,n)}}function Gr(e,t){if(t&&("object"===Dr(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yr(e)}function Yr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hr(){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 Fr(e){return Fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fr(e)}function $r(e){return Zr(e)||Wr(e)||Qr(e)||Vr()}function Vr(){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 Qr(e,t){if(e){if("string"===typeof e)return Kr(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)?Kr(e,t):void 0}}function Wr(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Zr(e){if(Array.isArray(e))return Kr(e)}function Kr(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 qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 Xr(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Ct["u"].add("imlib-next","5.4.3"),n.d(t,"a",(function(){return fc})),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"}(Nr||(Nr={})),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"}(Sr||(Sr={}));var ei,ti="polyfill",ni=function(){function e(){qr(this,e),this.FIRST_COUNT_BASE=30,this.COUNT_BASE=30,this.first=!0,this.topConversations=[],this.unTopConversations=[]}return Xr(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===ti})),r=this.unTopConversations.filter((function(e){return e.latestMessage&&e.latestMessage.messageType===ti})),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:ti,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["H"].info(Sr.A_KIT_CONVERSATION_CREATE_O,t)}},{key:"remove",value:function(e){var t=this;return In(e).then((function(n){var r=t.findConversation(e);return r&&0===n.code&&(r.source.splice(r.index,1),Ct["H"].info(Sr.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,a=Math.min(r,i);return this.getRemoteConversation(o,a,t).then((function(){n.first=!1;var e=[].concat($r(n.topConversations),$r(n.unTopConversations));return e}))}var s=[].concat($r(this.topConversations),$r(this.unTopConversations));return Promise.resolve(s)}},{key:"changeTopStatus",value:function(e,t){return En(e,t).then((function(e){return e}))}},{key:"changeNotificationStatus",value:function(e,t){var n=this;return wn(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 ri(e,t){return(e.channelId||"")===(t.channelId||"")&&e.conversationType===t.conversationType&&e.targetId===t.targetId}function ii(e){return e.conversationType+"&&"+e.targetId+"&&"+(e.channelId||"")}function oi(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 ai,si,ci={},ui={},li=function(){function e(t){qr(this,e),this.config=t}return Xr(e,[{key:"getUserProfile",value:function(e){return this.config.getUserProfile?ei?Promise.resolve(ei):this.config.getUserProfile(e).then((function(e){return ei=e,ei})):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=ii(r),o=ci[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=ii(e);ci[t]=e}})),[].concat($r(e),t)}))}},{key:"getGroupMembers",value:function(e){if(!this.config.getGroupMembers)return Promise.reject(new Error("Method getGroupMembers is not defined!"));var t=ii(e);return ui[t]?Promise.resolve(ui[t]):this.config.getGroupMembers(e).then((function(t){var n=ii(e);return t?(ui[n]=t,ui[n]):null}))}},{key:"clearMyProfileCache",value:function(){ei=null}}]),e}(),fi=function(){function e(){qr(this,e),this.localMessages={}}return Xr(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 a=ii(e),s=0;return this.localMessages[a]&&this.localMessages[a].list.length>0&&(s=this.localMessages[a].list[0].sentTime),this.getRemoteMessages(e,{count:r,timestamp:s}).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=ii(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})),a=[];return 0===o?{list:[],hasMore:i.hasMore}:(-1===o&&(o=i.list.length),a=i.list.slice(Math.max(0,o-n),o),a.length>=n&&o-n>0?{list:a,hasMore:!0}:{list:a,hasMore:i.hasMore})}},{key:"getRemoteMessages",value:function(e,t){var n=this;return Mr(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 a=this.localMessages[o].list;return t.forEach((function(t){var n=a.length;if("RC:RcCmd"===t.messageType&&t.messageDirection===Ct["m"].RECEIVE){var s=t.content;if(s&&s.messageUId){var c=e.deleteMessageByUId(a,s.messageUId);c&&i.push(c)}}for(var u=0;u<a.length;u++){var l=a[u];if(t.messageUId===l.messageUId)return;if(t.sentTime<=l.sentTime){n=u;break}}e._currentConversation&&ri(t,e._currentConversation)&&r.push(t);var f=t.conversationType===Ct["e"].PRIVATE,d=t.messageDirection===Ct["m"].SEND,h=t.sentTime>e._unReadTime||!e._unReadTime;f&&d&&h&&(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=ii(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=ii(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["H"].info(Sr.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["H"].info(Sr.A_KIT_MSG_DELETE_O,{index:n,message:e[n]}),r}}},{key:"insertMessage",value:function(e){var t=ii(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["H"].info(Sr.A_KIT_MSG_INSERT_O,{index:i,message:e})}else this.localMessages[t]={list:[e],hasMore:!0}}},{key:"updateMessage",value:function(e){var t=ii(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=ii(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"})(ai||(ai={}));var di=function(e,t,n){var r="imkit_".concat(t,"_").concat(n);return si={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))}},si},hi=function(){function e(){qr(this,e),this._conversationStorage={}}return Xr(e,[{key:"init",value:function(e,t){this._kitStorage=di(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}(),pi=function(){function e(){qr(this,e),this._LangStore=null}return Xr(e,[{key:"init",value:function(e,t){this._kitStorage=di(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:ai.ZH_CN;return e}}]),e}();function gi(){return~~(16777215*Math.random())}function vi(e){return-1!==["RC:Delivered"].indexOf(e)}var mi=!1,yi=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.switchTimes={},e.receiptRequstCache=[],e._fileCache={},n.INSTANCE?Gr(e,n.INSTANCE):(e.conversationManager=new ni,e.messageManager=new fi,e._conversationStorage=new hi,e._langStore=new pi,n.INSTANCE=Yr(e),e)}return Xr(n,[{key:"init",value:function(e){mi&&Ct["H"].error(Sr.A_KIT_INIT_O,{msg:"禁止多次初始化!"}),e.libOption&&Object(Ct["J"])(e.libOption.appkey)||Ct["H"].error(Sr.A_KIT_INIT_O,{msg:"参数错误:libOption.appkey 为必传字段!",data:e}),this._appkey=e.libOption.appkey,fn(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 li(e.service),this.setListener(),mi=!0,this.emit(Nr.INIT)}},{key:"connect",value:function(e,t){return dn(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=pn()),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():ai.ZH_CN;return e},set:function(e){this._langStore.setLang(e)}},{key:"selectConversation",value:function(e){var t=this;if(!this.currentConversation||!ri(this.currentConversation,e)){if(this.conversationManager.findConversation(e)||(this.createConversation(e),this.emit(Nr.CONVERSATION,this.currentConversation)),this.currentConversation){var n=ii(this.currentConversation);this.switchTimes[n]=this.getTime(),this.messageManager.cutMessages()}this.currentConversation=e,this.messageManager.currentConversation=this.currentConversation,this.emit(Nr.SWITCH_CONVERSATION,this.currentConversation),this.receiptRequstCache.forEach((function(e){ri(e.conversation,t.currentConversation)&&t.emit(Nr.MESSAGE_RECEIPT_REQUEST,e)}))}}},{key:"changeLanguage",value:function(e){if(e&&e.lang)return this._langStore.setLang(e),void this.emit(Nr.LANGUAGE_CHANGED,e);console.log("参数异常,切换语言失败")}},{key:"setListener",value:function(){var e=this;vn(Et.CONNECTED,(function(){e._currentUsreId=gn(),e._conversationStorage.init(e._appkey,e._currentUsreId),e._langStore.init(e._appkey,e._currentUsreId),e.emit(Nr.CONNECTED,!0),e.emit(Nr.LANGUAGE_CHANGED,{lang:e.lang})})),vn(Et.DISCONNECT,(function(){e.currentConversation=null,e.emit(Nr.SWITCH_CONVERSATION,e.currentConversation),e.emit(Nr.CONNECTED,!1)})),vn(Et.CONVERSATION,(function(t){Ct["H"].info(Sr.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!vi(t)}return!0})),n.length&&(e.conversationManager.update(n),e.emit(Nr.CONVERSATION,n))})),vn(Et.MESSAGES,(function(t){Ct["H"].info(Sr.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!vi(e.messageType)})),n.length){var r=e.messageManager.setLocalMessages(n);e.currentConversation&&r["new"].length&&e.emit(Nr.MESSAGES,r["new"]),r.remove&&r.remove.length&&e.emit(Nr.DELETE_MESSAGE,r.remove)}})),vn(Et.PULL_OFFLINE_MESSAGE_FINISHED,(function(){e.emit(Nr.PULL_OFFLINE_MESSAGE_FINISHED)})),vn(Et.TYPING_STATUS,(function(t){e.emit(Nr.TYPING_STATUS,t)})),vn(Et.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],a=o.latestMessage;a.sentTime&&a.sentTime===r&&(e.conversationManager.update([{conversation:o,updatedItems:{latestMessage:{time:Date.now(),val:jr(jr({},a),{},{receivedStatus:Ct["r"].READ})}}}]),e.emit(Nr.CONVERSATION,o))}var s=e.messageManager.getLocalMessage(n,0,0),c=s.list.findIndex((function(e){return e.sentTime===r}));-1!==c&&s.list.forEach((function(t){t.receivedStatus=Ct["r"].READ,e.messageManager.updateMessage(t),e.emit(Nr.UPDATE_MESSAGE,t)})),e._conversationStorage.updateUnReadTime(r,n.conversationType,n.targetId,n.channelId),e.emit(Nr.READ_RECEIPT_RECEIVED,t)})),vn(Et.MESSAGE_RECEIPT_REQUEST,(function(t){var n=t.conversation,r=t.messageUId;if(ri(e.currentConversation,n))e.emit(Nr.MESSAGE_RECEIPT_REQUEST,t);else{var i=ii(n);if(e.switchTimes[i]){var o=e.messageManager.getLocalMessage(n,0,0),a=o.list.findIndex((function(t){return t.messageUId===r&&t.receivedTime<e.switchTimes[i]}));-1===a?e.receiptRequstCache.push(t):Cr(n.targetId,Pr({},t.senderUserId,[t.messageUId]),n.channelId)}else e.receiptRequstCache.push(t)}})),vn(Et.MESSAGE_RECEIPT_RESPONSE,(function(t){e.emit(Nr.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||!ri(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(Nr.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(Nr.REFERENCE_MESSAGE,e)}},{key:"recallMessage",value:function(e){var t=this;Tr({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(Nr.UPDATE_MESSAGE,r)}}))}},{key:"deleteMessage",value:function(e){var t=this;Ar({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(Nr.DELETE_MESSAGE,[e])}}))}},{key:"registerMessageType",value:function(e,t,n,r,i){return wr(e,t,n,r,i)}},{key:"sendMessage",value:function(e,t,n){var r=gi(),i=t.content,o=t;return t.messageType===Ct["n"].REFERENCE&&(this.emit(Nr.CLOSE_REFERENCE),o=new Un(Object.assign({},i))),t.messageType===Ct["n"].TextMessage&&(o=new Ln({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,vr(e,t,n))}},{key:"sendImageMessage",value:function(e,t,n,r){var i=this,o=gi();this._fileCache[o]=t;var a=function(a){return t=i._willSendMessage(t,e.conversationType,e.targetId,Ct["n"].IMAGE),i.decorateMessage(e,o,new xn({content:a,imageUri:""}),Ir(e,t,{onProgress:function(e){i.emit(Nr.UPLOAD_PROGRESS,{messageId:o,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Nr.UPLOAD_COMPLETE,{messageId:o,fileInfo:e}),"function"===typeof n.onComplete&&n.onComplete(e)}},r))};return oi(t.file).then((function(e){a(e)}))["catch"]((function(){a("")}))}},{key:"sendFileMessage",value:function(e,t,n,r){var i=this,o=gi(),a=t.file;return this._fileCache[o]=a,t=this._willSendMessage(t,e.conversationType,e.targetId,Ct["n"].FILE),this.decorateMessage(e,o,new Pn({name:a.name,size:a.size,type:a.type,fileUrl:""}),yr(e,t,{onProgress:function(e){i.emit(Nr.UPLOAD_PROGRESS,{messageId:o,progress:e}),"function"===typeof n.onProgress&&n.onProgress(e)},onComplete:function(e){i.emit(Nr.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(Nr.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 Ln({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 a=this._fileCache[t.messageId];this.sendFileMessage(e,{file:a},{onProgress:function(){},onComplete:function(){}}),delete this._fileCache[t.messageId];break;case"RC:ReferenceMsg":n=new Un({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:gn(),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(Nr.MESSAGES,[o]);var a=this.conversationManager.findConversation(e),s=null;if(a){s=a.source[a.index];var c={conversation:s,updatedItems:{latestMessage:{time:Date.now(),val:o}}};this.conversationManager.update([c]),this.emit(Nr.UPDATE_CONVERSATION,[jr(jr({},s),{},{latestMessage:o})])}return this.emit(Nr.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(Nr.MESSAGE_SEND_SUCCESS,n),delete i._fileCache[n.messageId];else{if(a){n.messageUId="fail_"+n.messageId;var r={conversation:s,updatedItems:{latestMessage:{time:Date.now(),val:n}}};i.conversationManager.update([r]),i.emit(Nr.UPDATE_CONVERSATION,[jr(jr({},s),{},{latestMessage:n})])}i.messageManager.updateMessage(n),i.emit(Nr.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=gn();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){Tn(e),this.conversationManager.update([{conversation:e,updatedItems:{unreadMessageCount:{time:Date.now(),val:0}}}]),this.emit(Nr.UPDATE_CONVERSATION,[jr(jr({},e),{},{unreadMessageCount:0})])}},{key:"saveTextMessageDraft",value:function(e,t){var n=this;bn(e,t).then((function(e){0===e.code?n.emit(Nr.SWITCH_CONVERSATION,n.currentConversation):console.log(e.code,e.msg)}))}}]),n}(Ct["g"]);yi.INSTANCE=null;var Ii=new yi;console.warn("IMKit版本信息","7/18/2022, 11:05:18 AM","ceb1d125c48ba324a45a764232c67ccf1f59bf33","5.3.0");var Mi=0,bi=function(){function e(t,n,r){qr(this,e),Ti(t),this.container=t,this.configs=Ci(n),this.triggers=this.configs.map((function(e){return e.trigger})),this.triggering=!1,this.bindFuncs(),this.body=Oi(t).body,this.body.addEventListener("keydown",this.checkKeyDown,!1),this.locale=r}return Xr(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_"+Mi+"' class='at-span' data-trigger='@'>@</span>",o=this.inserElement(i,Mi);if(o){this.currentIndex=Mi;var a=_i(o);"function"===typeof r.onTrigger&&(this.triggering=!0,r.onTrigger(a,this.onSelect))}}else if(8===e.keyCode){if(this.triggering)return e.preventDefault(),void this.cancelTrigger();var s=Si(this.container);if(0===s.rangeCount)return;var c=Oi(this.container).body,u=s.getRangeAt(0),l=u.commonAncestorContainer,f=l.parentNode;if(f&&this.isAtNode(f))return f.parentNode.removeChild(f),void e.preventDefault();var d=s.getRangeAt(0).cloneRange();d.collapse(!0),d.setStart(c,0);var h=d.cloneContents(),p=h.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=Oi(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=Oi(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),Mi++,t.body.focus();var i=t.createRange();i.setStartAfter(n.nextSibling||n),i.collapse(!0);var o=Si(this.container);o.removeAllRanges(),o.addRange(i)}else this.cancelTrigger()}},{key:"inserElement",value:function(e,t){var n,r=Oi(this.container);Ni(r.body);var i=Ai(e),o=Si(this.container),a=o.getRangeAt(0);return a.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=wi(this.container);if(t=-[1]?n.lastChild:Ai(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 a=Oi(this.container).querySelector("#"+r);if(a){var s=this.configs[o],c=_i(a);"function"===typeof s.onTrigger&&(this.triggering=!0,s.onTrigger(c,this.onSelect))}}}}}},{key:"dispose",value:function(){this.body.removeEventListener("keydown",this.checkKeyDown,!1)}}]),e}();function Ci(e){return e}function Ti(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 Ai(e){var t=document.createDocumentFragment(),n=document.createElement("div");n.innerHTML=e;while(n.firstChild)t.appendChild(n.firstChild);return t}function _i(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 wi(e){var t,n=Oi(e).body,r=Si(e);if(r.rangeCount>0){var i=r.getRangeAt(0).cloneRange();i.collapse(!0),i.setStart(n,0),t=i.cloneContents()}return t}function Ei(e){var t,n=Si(e);if(n.rangeCount>0){var r=Oi(e).body,i=n.getRangeAt(0).cloneRange();i.collapse(!1),i.setEnd(r,r.childNodes.length),t=i.cloneContents()}return t}function Ni(e){e.focus();var t=Oi(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=Si(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 Si(e){return"IFRAME"===e.tagName?e.contentWindow.getSelection():window.getSelection()}function Oi(e){var t;return"IFRAME"===e.tagName&&(t=e),t?t.contentDocument?t.contentDocument:t.contentWindow?t.contentWindow.document:null:document}var Di={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:"所有人"}},xi={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"}},Ri={zh_CN:Di,en:xi},ki=".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}",Li=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),Je(Yr(e)),e.post=_e(Yr(e),"post",7),e.contentChange=_e(Yr(e),"contentChange",7),e.inputContent=_e(Yr(e),"inputContent",7),e.memberListVisible=!1,e.hasContent=!1,e.lang=Ii.lang,e.handleInput=e.handleInput.bind(Yr(e)),e.handleKeyDown=e.handleKeyDown.bind(Yr(e)),e.postHandler=e.postHandler.bind(Yr(e)),e.handlePastContent=e.handlePastContent.bind(Yr(e)),e.handleSelectMember=e.handleSelectMember.bind(Yr(e)),e.handleCloseMemberList=e.handleCloseMemberList.bind(Yr(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"validateWatchData",value:function(e,t){if(!t||e.time!==t.time){var n=Oi(this.contentRef);n.body.innerHTML=e.text,Ni(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(){Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){if(this.contentRef){var e=Oi(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(),Ii.off(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidLoad",value:function(){var e=this;if(this.value){var t=Oi(this.contentRef);t.body.innerHTML=this.value.text}setTimeout((function(){e.conversation.conversationType===Ct["e"].GROUP&&e.createAt();var t=Oi(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),Ii.on(Nr.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(Oi(e.contentRef)){var t=Oi(e.contentRef).body.innerHTML;t=t.trim(),t=t.replace(/&nbsp;/g,""),t=t.replace(/<br>/g,""),e.hasContent=!!t,e.checkContentTimer=null}}),400))}},{key:"contentChangeHandler",value:function(){this.contentChange.emit(Oi(this.contentRef).body.innerHTML)}},{key:"handlePastContent",value:function(e){var t=(e.clipboardData||window.clipboardData).getData("text"),n=Si(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=Oi(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=Si(this.contentRef),n=t.getRangeAt(0),r=Ei(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 a=document.createElement("br");return n.insertNode(a),void n.collapse(!1)}this.memberListVisible=!1,this.postHandler()}this.checkContentLength()}},{key:"createAt",value:function(){var e=this;this.at=new bi(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(Oi(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?Ri[this.lang]:Ri.zh_CN;var t=this.locale;return Z(Xe,null,Z("iframe",{class:"editor-content",contenteditable:"true",ref:function(t){return e.contentRef=t}}),Z("div",{class:"post-btn"},Z("button",{disabled:!this.hasContent,onClick:this.postHandler},t.messageEdit.send)),Z("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 ki}}]),n}(xr(HTMLElement)),ji=".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}",Pi=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.hide=_e(Yr(e),"hide",7),e.topStatusChange=_e(Yr(e),"topStatusChange",7),e.notificationStatusChange=_e(Yr(e),"notificationStatusChange",7),e["delete"]=_e(Yr(e),"delete",7),e.position={top:0,left:0},e.visible=!1,e.topStatus=!1,e.notificationStatus=!1,e.lang=Ii.lang,e.handleHide=e.handleHide.bind(Yr(e)),e.topStatusChangeHandler=e.topStatusChangeHandler.bind(Yr(e)),e.notificationStatusHandler=e.notificationStatusHandler.bind(Yr(e)),e.deleteHandler=e.deleteHandler.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"componentWillLoad",value:function(){document.body.addEventListener("mouseup",this.handleHide,!1),window.addEventListener("blur",this.handleHide,!1),Ii.on(Nr.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?Ri[this.lang]:Ri.zh_CN;var r=this.locale,i=document.documentElement.clientHeight,o=3;o+=n.length;var a=(null===(e=this.contextMenu)||void 0===e?void 0:e.childNodes[0].childNodes[0].clientHeight)*o||0;return Z("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<a?this.position.top-a:this.position.top:0)+"px"},ref:function(e){return t.contextMenu=e}},Z("ul",null,Z("li",{onClick:this.topStatusChangeHandler},this.topStatus?r.conversation.top:r.conversation.noTop),Z("li",{onClick:this.notificationStatusHandler},this.notificationStatus?r.conversation.inform:r.conversation.noInform),Z("li",{onClick:this.deleteHandler},r.conversation["delete"]),n.map((function(e){return Z("li",{onClick:e.callback},e.name)}))))}}],[{key:"style",get:function(){return ji}}]),n}(xr(HTMLElement)),Ui={"/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 zi(e){if(e.startsWith("data:/")||e.startsWith("http"))return e;var t=e.substr(0,3);return Ui[t]?"data:".concat(Ui[t].type,"/").concat(Ui[t].suffix.toLowerCase(),";base64,").concat(e):e}function Bi(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,a=r.getDate(),s=r.getHours()+"";s.length<2&&(s="0"+s);var c=r.getMinutes()+"";c.length<2&&(c="0"+c);var u=new Date,l=Gi(r);if(-1===l){var f=n.conversation.yesterday;return"".concat(f)}return u.getFullYear()===i?u.toDateString()===r.toDateString()?"".concat(s,":").concat(c):"".concat(o,"/").concat(a):"zh_CN"===n.area?"".concat(i,"/").concat(o,"/").concat(a):"".concat(o,"/").concat(a,"/").concat(i)}function Gi(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(),a=t.getFullYear(),s=t.getMonth()+1,c=t.getDate(),u=new Date(a+"/"+s+"/"+c).getTime(),l=(o-u)/1e3/60/60/24;return l}function Yi(e){return e.replace(/<[^>]+>/g,"")}function Hi(e){var t;if("object"===Dr(e))if(Array.isArray(e))for(var n in t=[],e)t.push(Hi(e[n]));else if(null===e)t=null;else if(e instanceof RegExp)t=e;else for(var r in t={},e)t[r]=Hi(e[r]);else t=e;return t}function Fi(e){var t=/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/g;return e=e.replace("<","&lt;"),e=e.replace(">","&gt;"),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 $i='.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}',Vi=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.selectConversation=_e(Yr(e),"selectConversation",7),e.isHover=!1,e.draft="",e.lang=Ii.lang,e.selectHandler=e.selectHandler.bind(Yr(e)),e.handleSwitchConversation=e.handleSwitchConversation.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"componentWillLoad",value:function(){Ii.on(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"componentDidUpdate",value:function(){Ii.off(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.on(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleSwitchConversation",value:function(){var e=this;this.locale=this.lang?Ri[this.lang]:Ri.zh_CN,Ii.currentConversation&&ri(Ii.currentConversation,this.data.conversation)?this.draft="":Mn(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=Z("span",null,Z("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&&(!Ii.currentConversation||!ri(Ii.currentConversation,this.data.conversation));if(i){var o="["+t.conversation.atMe+"]";this.data.conversation.hasMentioned&&(r=Z("span",{class:"mentioned"},o))}var a="",s="";e.messageDirection===Ct["m"].SEND&&(e.messageUId.startsWith("fail_")?s="fail":e.messageUId.startsWith("sending_")?s="sending":e.conversationType===Ct["e"].PRIVATE&&"polyfill"!==e.messageType&&(a=e.receivedStatus===Ct["r"].UNREAD?"["+t.conversation.unread+"]":"["+t.conversation.read+"]"));var c="";switch(e.messageType){case Or.TEXT:c=e.content.content;break;case Or.FILE:var u="["+t.conversation.file+"]";c=u;break;case Or.IMAGE:var l="["+t.conversation.img+"]";c=l;break;case Or.LOCATION:var f="["+t.conversation.location+"]";c=f;break;case Or.SIGHT:var d="["+t.conversation.video+"]";c=d;break;case Or.HQ_VOICE:var h="["+t.conversation.audio+"]";c=h;break;case Or.REFERENCE:var p="["+t.conversation.quote+"]";c=p;break;case Or.RECALL_MESSAGE_TYPE:var g=t.conversation.recall,v=t.conversation.you,m=e.messageDirection===Ct["m"].SEND,y=m?v:"";e.conversationType!==Ct["e"].PRIVATE||m?e.conversationType===Ct["e"].GROUP&&Ii.getGroupMemberProfile({targetId:e.targetId,conversationType:Ct["e"].GROUP,channelId:e.channelId},e.senderUserId).then((function(t){y=t&&(t.groupNickname||t.name)||e.senderUserId,n.nameRef.innerText=y+" "+g})):Ii.getConversationProfile({targetId:e.targetId,conversationType:Ct["e"].PRIVATE,channelId:e.channelId}).then((function(t){y=t?t.name:e.senderUserId,n.nameRef.innerText=y+" "+g})),c=y+g,a="";break;default:Ii.isCustomLastMessage(e)&&(c=Ii.createCustomLastMessageDom(e)?Ii.createCustomLastMessageDom(e):"")}return c=c.replace(/[\r\n]/g,""),this.nameRef&&(this.nameRef.innerText=" "+c),Z("div",{class:s},r,Z("span",{class:"ellipsis"},a,Z("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 Bi(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?Ri[this.lang]:Ri.zh_CN;var r=this.data,i=this.isHover,o=this.locale;return Z("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},Z("div",{class:"user-avatar"},Z("div",{class:"avatar-image"},null!==(e=r.profile)&&void 0!==e&&e.portraitUri?Z("img",{src:r.profile.portraitUri}):null),r.conversation.unreadMessageCount?Z("span",{class:"message-count"},r.conversation.unreadMessageCount):null),Z("div",{class:"conversation-info"},Z("div",{class:"info-block"},Z("div",{class:"user-name"},Z("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)),Z("div",{class:"last-time"},this.conversationFormatTime(r.conversation.latestMessage,o))),Z("div",{class:"info-block"},Z("div",{class:"latest-message"},Z("div",null,this.draft?this.draft:this.getLatestMessage(r.conversation.latestMessage,o))),Z("div",{class:"notification"},r.conversation.notificationStatus===Ct["q"].OPEN?Z("span",{class:"disable"}):null))))}}],[{key:"style",get:function(){return $i}}]),n}(xr(HTMLElement)),Qi=function(e,t){return Qi=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])},Qi(e,t)};function Wi(e,t){function n(){this.constructor=e}Qi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Zi=function(){return Zi=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},Zi.apply(this,arguments)};function Ki(){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],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var qi=[{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 Ji(e){console.error("[BScroll warn]: "+e)}var Xi="undefined"!==typeof window,eo=Xi&&navigator.userAgent.toLowerCase(),to=!(!eo||!/wechatdevtools/.test(eo)),no=eo&&eo.indexOf("android")>0,ro=function(){if("string"===typeof eo){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(eo);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}(),io=!1;if(Xi){var oo="test-passive";try{var ao={};Object.defineProperty(ao,"passive",{get:function(){io=!0}}),window.addEventListener(oo,(function(){}),ao)}catch(dc){}}function so(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var co=function(e,t){for(var n in t)e[n]=t[n];return e};function uo(e){return void 0===e||null===e}function lo(e,t,n){return e<t?t:e>n?n:e}var fo=Xi&&document.createElement("div").style,ho=function(){if(!Xi)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!==fo[r.value])return r.key}return!1}();function po(e){return!1===ho?e:"standard"===ho?"transitionEnd"===e?"transitionend":e:ho+e.charAt(0).toUpperCase()+e.substr(1)}function go(e){return"string"===typeof e?document.querySelector(e):e}function vo(e,t,n,r){var i=io?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function mo(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}function yo(e){var t=0,n=0;while(e)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}ho&&"standard"!==ho&&ho.toLowerCase();var Io=po("transform"),Mo=po("transition"),bo=Xi&&po("perspective")in fo,Co=Xi&&("ontouchstart"in window||to),To=Xi&&Mo in fo,Ao={transform:Io,transition:Mo,transitionTimingFunction:po("transitionTimingFunction"),transitionDuration:po("transitionDuration"),transitionDelay:po("transitionDelay"),transformOrigin:po("transformOrigin"),transitionEnd:po("transitionEnd"),transitionProperty:po("transitionProperty")},_o={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function wo(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 Eo(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var No=Eo;function So(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 Oo(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,a=!0,s=e.ctrlKey,c=e.shiftKey,u=e.altKey,l=e.metaKey,f={ctrlKey:s,shiftKey:c,altKey:u,metaKey:l};if("undefined"!==typeof MouseEvent)try{r=new MouseEvent(t,co(Zi({bubbles:o,cancelable:a},f),i))}catch(e){d()}else d();function d(){r=document.createEvent("Event"),r.initEvent(t,o,a),co(r,i)}r.forwardedTouchEvent=!0,r._constructed=!0,e.target.dispatchEvent(r)}function Do(e){Oo(e,"dblclick")}var xo={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}}},Ro=1e3/60,ko=Xi&&window;function Lo(){}var jo=function(){return Xi?ko.requestAnimationFrame||ko.webkitRequestAnimationFrame||ko.mozRequestAnimationFrame||ko.oRequestAnimationFrame||function(e){return window.setTimeout(e,e.interval||Ro)}:Lo}(),Po=function(){return Xi?ko.cancelAnimationFrame||ko.webkitCancelAnimationFrame||ko.mozCancelAnimationFrame||ko.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:Lo}(),Uo=function(e){},zo={enumerable:!0,configurable:!0,get:Uo,set:Uo},Bo=function(e,t){for(var n=t.split("."),r=0;r<n.length-1;r++)if(e=e[n[r]],"object"!==Dr(e)||!e)return;var i=n.pop();return"function"===typeof e[i]?function(){return e[i].apply(e,arguments)}:e[i]},Go=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 Yo(e,t,n){zo.get=function(){return Bo(this,t)},zo.set=function(e){Go(this,t,e)},Object.defineProperty(e,n,zo)}var Ho=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=[],a=0;a<arguments.length;a++)o[a]=arguments[a];r.off(e,i);var s=t.apply(n,o);if(!0===s)return s};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,a=Ki(r),s=0;s<o;s++){var c=a[s],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||Ji('EventEmitter has used unknown event type: "'+e+'", should be oneof ['+Object.keys(t).map((function(e){return JSON.stringify(e)}))+"]")},e}(),Fo=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(vo)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(mo)},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}(),$o=function(){function e(){}return e}(),Vo=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=Co,t.disableTouch=!Co,t.autoBlur=!0,t.autoEndDistance=5,t.outOfBoundaryDampingFactor=1/3,t.specifiedIndexAsContent=0,t.quadrant=1,t}return Wi(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&&bo?" translateZ(1px)":"",this.useTransition=this.useTransition&&To,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"===Dr(e)?co(n,e):e?n:r,t},t}($o),Qo=function(){function e(e,t){this.wrapper=e,this.options=t,this.hooks=new Ho(["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,a=t?o:window,s=[],c=[],u=!r,l=!n;i&&s.push({name:"click",handler:this.click.bind(this),capture:!0}),u&&(s.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&&(s.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 Fo(o,s),this.targetEventRegister=new Fo(a,c)},e.prototype.beforeHandler=function(e,t){var n=this.options,r=n.preventDefault,i=n.stopPropagation,o=n.preventDefaultException,a={start:function(){return r&&!Eo(e.target,o)},end:function(){return r&&!Eo(e.target,o)},move:function(){return r}};a[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=_o[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),No(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(_o[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,a=this.pointX-i,s=this.pointY-o,c=this.options.autoEndDistance;(a>document.documentElement.clientWidth-c||s>document.documentElement.clientHeight-c||a<c||s<c)&&this.end(e)}}},e.prototype.end=function(e){_o[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}(),Wo={x:["translateX","px"],y:["translateY","px"]},Zo=function(){function e(e){this.setContent(e),this.hooks=new Ho(["beforeTranslate","translate"])}return e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.content,null),t=e[Ao.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(Wo[n]){var r=Wo[n][0];if(r){var i=Wo[n][1],o=e[n];t.push(r+"("+o+i+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,t,e),this.style[Ao.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}(),Ko=function(){function e(e,t,n){this.translater=t,this.options=n,this.timer=0,this.hooks=new Ho(["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&&(Po(this.timer),this.timer=0)},e.prototype.destroy=function(){this.hooks.destroy(),Po(this.timer)},e}(),qo=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),a=i(t.y,e.y),s=n.x-r.x,c=n.y-r.y;return o*s<=0&&a*c<=0},Jo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wi(t,e),t.prototype.startProbe=function(e,t){var n=this,r=e,i=function i(){var o=n.translater.getComputedPosition();qo(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=jo(i))};this.callStopWhenPending&&this.setCallStop(!1),Po(this.timer),i()},t.prototype.transitionTime=function(e){void 0===e&&(e=0),this.style[Ao.transitionDuration]=e+"ms",this.hooks.trigger(this.hooks.eventTypes.time,e)},t.prototype.transitionTimingFunction=function(e){this.style[Ao.transitionTimingFunction]=e,this.hooks.trigger(this.hooks.eventTypes.timeFunction,e)},t.prototype.transitionProperty=function(){this.style[Ao.transitionProperty]=Ao.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),Po(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}(Ko),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wi(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=so(),a=o+n,s=3===this.options.probeType,c=function c(){var u=so();if(u>=a)return i.translate(t),s&&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),s&&i.hooks.trigger(i.hooks.eventTypes.move,f),i.pending&&(i.timer=jo(c)),i.pending||(i.callStopWhenPending?i.callStopWhenPending=!1:i.hooks.trigger(i.hooks.eventTypes.end,t))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),Po(this.timer),c()},t.prototype.doStop=function(){var e=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),e){this.setPending(!1),Po(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}(Ko);function ea(e,t,n){var r=n.useTransition,i={};return Object.defineProperty(i,"probeType",{enumerable:!0,configurable:!1,get:function(){return n.probeType}}),r?new Jo(e,t,i):new Xo(e,t,i)}var ta,na,ra,ia,oa=function(){function e(e,t,n){this.wrapper=e,this.options=n,this.hooks=new Ho(["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,a){void 0===a&&(a=this.options);var s=e-t,c=Math.abs(s)/n,u=a.deceleration,l=a.swipeBounceTime,f=a.swipeTime,d=Math.min(f,2*c/u),h={destination:e+c*c/u*(s<0?-1:1),duration:d,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,h,s),h.destination<r?(h.destination=o?Math.max(r-o/4,r-o/h.rate*c):r,h.duration=l):h.destination>i&&(h.destination=o?Math.min(i+o/4,i+o/h.rate*c):i,h.duration=l),h.destination=Math.round(h.destination),h},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=wo(this.wrapper);this.wrapperSize=this.wrapper["width"===n?"clientWidth":"clientHeight"],this.setContent(e);var a=wo(this.content);this.contentSize=a[n],this.relativeOffset=a[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}(),aa=(ta={},ta["yes"]=function(e){return!0},ta["no"]=function(e){return e.preventDefault(),!1},ta),sa=(na={},na["horizontal"]=(ra={},ra["yes"]="horizontal",ra["no"]="vertical",ra),na["vertical"]=(ia={},ia["yes"]="vertical",ia["no"]="horizontal",ia),na),ca=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=sa[this.directionLocked];if(t){if(this.eventPassthrough===t["yes"])return aa["yes"](e);if(this.eventPassthrough===t["no"])return aa["no"](e)}return!1},e}(),ua=function(e,t,n){return 2===n?[t,-e]:3===n?[-e,-t]:4===n?[-t,e]:[e,t]},la=function(){function e(e,t,n,r,i){this.hooks=new Ho(["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 ca(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=ua(n,r,e.options.quadrant),a=o[0],s=o[1],c={deltaX:a,deltaY:s};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=so();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=so();if(this.checkMomentum(r,i,o))return!0;if(this.directionLockAction.checkMovingDirection(r,i,n))return this.actionsHandler.setInitiated(),!0;var a=this.directionLockAction.adjustDelta(e,t),s=this.scrollBehaviorX.getCurrentPos(),c=this.scrollBehaviorX.move(a.deltaX),u=this.scrollBehaviorY.getCurrentPos(),l=this.scrollBehaviorY.move(a.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var f=c!==s||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=so();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,a=this.scrollBehaviorY,s=a.minScrollPos,c=a.maxScrollPos;return t=t>0?Math.ceil(t):Math.floor(t),n=n>0?Math.ceil(n):Math.floor(n),t=lo(t,o,i),n=lo(n,c,s),{x:t,y:n}},e.prototype.handleClick=function(e){Eo(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 fa(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 da(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 ha(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,Ki([i],e))}))}))}function pa(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 ga=1,va=function(){function e(e,t,n){this.wrapper=e,this.content=t,this.resizeTimeout=0,this.hooks=new Ho(["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,a=r.top,s=r.bottom;this.scrollBehaviorX=new oa(e,t,da(n,"scrollX",[i,o],{size:"width",position:"left"})),this.scrollBehaviorY=new oa(e,t,da(n,"scrollY",[a,s],{size:"height",position:"top"})),this.translater=new Zo(this.content),this.animater=ea(this.content,this.translater,this.options),this.actionsHandler=new Qo(this.options.bindToTarget?this.content:e,fa(this.options)),this.actions=new la(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var c=this.resize.bind(this);this.resizeRegister=new Fo(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 Fo(this.content,[{name:Ao.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))})),ha(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;ha(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,xo.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:xo.swiper,newX:e.x,newY:e.y},r=this.scrollBehaviorX.end(t),i=this.scrollBehaviorY.end(t);if(n.newX=uo(r.destination)?n.newX:r.destination,n.newY=uo(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=xo.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;so()-this.lastClickTime<o&&(r=!0,Do(e))}return this.options.tap&&So(e,this.options.tap),this.options.click&&!Eo(e.target,this.options.preventDefaultException)&&Oo(e),this.lastClickTime=r?null:so(),!0}return!1},e.prototype.resize=function(){var e=this;this.actions.enabled&&(no&&(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,xo.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=yo(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,a=i.y;r=r||xo.bounce,e+=o,t+=a,this.scrollTo(e,t,n,r)},e.prototype.scrollTo=function(e,t,n,r,i){void 0===n&&(n=0),void 0===r&&(r=xo.bounce),void 0===i&&(i={start:{},end:{}});var o=this.options.useTransition?r.style:r.fn,a=this.getCurrentPos(),s=Zi({x:a.x,y:a.y},i.start),c=Zi({x:e,y:t},i.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,c),!pa(s,c)){var u=Math.abs(c.x-s.x),l=Math.abs(c.y-s.y);u<ga&&l<ga&&(n=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(s,c,n,o)}},e.prototype.scrollToElement=function(e,t,n,r,i){var o=go(e),a=yo(o),s=function(e,t,n){return"number"===typeof e?e:e?Math.round(t/2-n/2):0};n=s(n,o.offsetWidth,this.wrapper.offsetWidth),r=s(r,o.offsetHeight,this.wrapper.offsetHeight);var c=function(e,t,n,r){return e-=t,e=r.adjustPosition(e-n),e};a.left=c(a.left,this.wrapperOffset.left,n,this.scrollBehaviorX),a.top=c(a.top,this.wrapperOffset.top,r,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,o,a)||this.scrollTo(a.left,a.top,t,i)},e.prototype.resetPosition=function(e,t){void 0===e&&(e=0),void 0===t&&(t=xo.bounce);var n=this.scrollBehaviorX.checkInBoundary(),r=n.position,i=n.inBoundary,o=this.scrollBehaviorY.checkInBoundary(),a=o.position,s=o.inBoundary;return(!i||!s)&&(ro&&this.reflow(),this.scrollTo(r,a,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(){Po(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}(),ma=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=go(t);return i?(r.plugins={},r.options=(new Vo).merge(n).process(),r.setContent(i).valid?(r.hooks=new Ho(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),r.init(i),r):r):(Ji("Can not resolve the wrapper DOM."),r)}return Wi(t,e),t.use=function(e){var n=e.pluginName,r=t.plugins.some((function(t){return e===t.ctor}));return r?t:uo(n)?(Ji("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)):(Ji("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 va(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(qi),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(){ha(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;Yo(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}(Ho);function ya(e,t){var n=new ma(e,t);return n}ya.use=ma.use,ya.plugins=ma.plugins,ya.pluginsMap=ma.pluginsMap;var Ia=ya,Ma="undefined"!==typeof window,ba=Ma&&navigator.userAgent.toLowerCase();
  227. /*!
  228. * better-scroll / pull-up
  229. * (c) 2016-2021 ustbhuangyi
  230. * Released under the MIT License.
  231. */if(ba&&/wechatdevtools/.test(ba),ba&&ba.indexOf("android"),function(){if("string"===typeof ba){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(ba);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),Ma){var Ca="test-passive";try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){}}),window.addEventListener(Ca,(function(){}),Ta)}catch(dc){}}var Aa=function(e,t){for(var n in t)e[n]=t[n];return e},_a=Ma&&document.createElement("div").style,wa=function(){if(!Ma)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!==_a[r.value])return r.key}return!1}();function Ea(e){return!1===wa?e:"standard"===wa?"transitionEnd"===e?"transitionend":e:wa+e.charAt(0).toUpperCase()+e.substr(1)}wa&&"standard"!==wa&&wa.toLowerCase();Ea("transform"),Ea("transition");Ma&&Ea("perspective"),Ea("transitionTimingFunction"),Ea("transitionDuration"),Ea("transitionDelay"),Ea("transformOrigin"),Ea("transitionEnd"),Ea("transitionProperty");var Na="plugins.pullUpLoad",Sa=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],Oa=Sa.map((function(e){return{key:e.key,sourceKey:Na+"."+e.name}})),Da="pullingUp",xa=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([Da]),this.scroll.proxy(Oa)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:0};this.options=Aa(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(Da))},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}();
  232. /*!
  233. * better-scroll / mouse-wheel
  234. * (c) 2016-2021 ustbhuangyi
  235. * Released under the MIT License.
  236. */
  237. function Ra(e){console.error("[BScroll warn]: "+e)}var ka="undefined"!==typeof window,La=ka&&navigator.userAgent.toLowerCase();La&&/wechatdevtools/.test(La),La&&La.indexOf("android"),function(){if("string"===typeof La){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(La);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}();var ja=!1;if(ka){var Pa="test-passive";try{var Ua={};Object.defineProperty(Ua,"passive",{get:function(){ja=!0}}),window.addEventListener(Pa,(function(){}),Ua)}catch(dc){}}var za=function(e,t){for(var n in t)e[n]=t[n];return e},Ba=ka&&document.createElement("div").style,Ga=function(){if(!ka)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!==Ba[r.value])return r.key}return!1}();function Ya(e){return!1===Ga?e:"standard"===Ga?"transitionEnd"===e?"transitionend":e:Ga+e.charAt(0).toUpperCase()+e.substr(1)}function Ha(e,t,n,r){var i=ja?{passive:!1,capture:!!r}:!!r;e.addEventListener(t,n,i)}function Fa(e,t,n,r){e.removeEventListener(t,n,{capture:!!r})}Ga&&"standard"!==Ga&&Ga.toLowerCase();Ya("transform"),Ya("transition");function $a(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}ka&&Ya("perspective"),Ya("transitionTimingFunction"),Ya("transitionDuration"),Ya("transitionDelay"),Ya("transformOrigin"),Ya("transitionEnd"),Ya("transitionProperty");var Va=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(Ha)},e.prototype.removeDOMEvents=function(){this.handleDOMEvents(Fa)},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}(),Qa=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=za(t,e)},e.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},e.prototype.registerEvent=function(){this.eventRegister=new Va(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 a=this.scroll.scroller,s=a.scrollBehaviorX,c=a.scrollBehaviorY;s.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),s.setDirection(e.x),c.setDirection(e.y);var u=s.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,a=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*=a,o*=a,this.scroll.hasVerticalScroll||(Math.abs(o)>Math.abs(i)&&(i=o),o=0),this.scroll.hasHorizontalScroll||(i=0);var s=i>0?-1:i<0?1:0,c=o>0?-1:o<0?1:0;return{x:i,y:o,directionX:s,directionY:c}},e.prototype.beforeHandler=function(e){var t=this.scroll.options,n=t.preventDefault,r=t.stopPropagation,i=t.preventDefaultException;n&&!$a(e.target,i)&&e.preventDefault(),r&&e.stopPropagation()},e.prototype.getEaseTime=function(){var e=100,t=this.mouseWheelOpt.easeTime;return t<e&&Ra("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}();Qa.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 a=this.scroll.scroller,s=a.scrollBehaviorX,c=a.scrollBehaviorY;s.setMovingDirection(-e.directionX),c.setMovingDirection(-e.directionY),s.setDirection(e.x),c.setDirection(e.y);var u=s.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 Wa={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function Za(e,t){for(var n in t)if(t[n].test(e[n]))return!0;return!1}var Ka=Za,qa=function(e){var t=Wa[e.type];if(!this.initiated||this.initiated===t)if(this.setInitiated(t),Ka(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()},Ja=".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}";Ia.use(xa),Ia.use(Qa);var Xa=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),Je(Yr(e)),e.updateConversation=_e(Yr(e),"updateConversation",7),e.tapConversation=_e(Yr(e),"tapConversation",7),e.deleteConversation=_e(Yr(e),"deleteConversation",7),e.baseSize="16px",e.isPullUpLoad=!1,e.data=[],e.lang=Ii.lang,e.contextMenuData={visible:!1},e.getConversationList=e.getConversationList.bind(Yr(e)),e.handleUpdateConversation=e.handleUpdateConversation.bind(Yr(e)),e.switchConversation=e.switchConversation.bind(Yr(e)),e.hideContextMenu=e.hideContextMenu.bind(Yr(e)),e.handleTopStatusChange=e.handleTopStatusChange.bind(Yr(e)),e.handleDelete=e.handleDelete.bind(Yr(e)),e.handleNotificationStatusChange=e.handleNotificationStatusChange.bind(Yr(e)),e.pullingUpHandler=e.pullingUpHandler.bind(Yr(e)),e.handleSelectConversation=e.handleSelectConversation.bind(Yr(e)),e.handleMouseLeave=e.handleMouseLeave.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"componentWillLoad",value:function(){var e=this;Ii.on(Nr.CONVERSATION,this.getConversationList),Ii.on(Nr.UPDATE_CONVERSATION,this.handleUpdateConversation),Ii.on(Nr.SWITCH_CONVERSATION,this.switchConversation),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.CONNECTED,(function(t){t?e.getConversationList(!0):e.data=[]}))}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.CONVERSATION,this.getConversationList),Ii.off(Nr.UPDATE_CONVERSATION,this.handleUpdateConversation),Ii.off(Nr.SWITCH_CONVERSATION,this.switchConversation),Ii.off(Nr.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 Ii.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&&ri(e.conversation,t)}));-1!==n&&(e.data[n].conversation=t)})),t.length&&(this.data=Hi(this.data))}},{key:"switchConversation",value:function(e){this.currentConversation=e}},{key:"createScroll",value:function(){var e=this;this.scrollWrapper&&(this.bscroll=new Ia(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=qa.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&&Ii.setConversationToTop({conversationType:this.operatedConversation.conversationType,targetId:this.operatedConversation.targetId,channelId:this.operatedConversation.channelId},e.detail)}},{key:"handleNotificationStatusChange",value:function(e){void 0!==e&&Ii.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||""};Ii.deleteConversation(t).then((function(){e.getConversationList(!0),e.deleteConversation.emit(t)}))}},{key:"handleSelectConversation",value:function(e){Ii.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?Ri[this.lang]:Ri.zh_CN;var e=this.locale;return this.isPullUpLoad?Z("div",{class:"after-trigger"},Z("span",{class:"pullup-txt"},e.conversation.loading)):"ontouchstart"in window&&!this.isPullUpLoad?Z("div",{class:"before-trigger"},Z("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?Ri[this.lang]:Ri.zh_CN;var t=this.contextMenuData,n=this.locale;return Z("div",{class:"conversation-wrapper",style:{fontSize:this.baseSize}},this.data.length?Z("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?Z("div",{class:"conversation-container",ref:function(t){return e.scrollWrapper=t}},Z("div",{class:"conversation-scroll-wrapper",onMouseLeave:this.handleMouseLeave},Z("div",{class:"conversation-list"},this.data.map((function(t){return Z("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})}))),Z("div",{class:"pullup-tips"},this.data.length?this.getPullupTip():null))):Z("div",{class:"no-data"},Z("span",null,n.conversation.noData)))}}],[{key:"style",get:function(){return Ja}}]),n}(xr(HTMLElement)),es=".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}",ts=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.close=_e(Yr(e),"close",7),e.selectMember=_e(Yr(e),"selectMember",7),e.visible=!1,e.memberList=[],e.position={left:0,top:0},e.lang=Ii.lang,e.selected=!1,e.selectMemberHandler=e.selectMemberHandler.bind(Yr(e)),e.closeHandler=e.closeHandler.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(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),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),this.getMemberList()}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.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&&Ii.getGroupMembers(this.conversation).then((function(t){if(t){e.memberList=$r(t);var n=gn(),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,a=document.documentElement.clientWidth,s=document.documentElement.clientHeight,c=t.x,u=t.y+t.height;n.left=c+i>a?a-i:c<0?0:c,u+o>s?n.top=s-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?Ri[this.lang]:Ri.zh_CN;var t=this.memberList,n=this.visible,r=this.position,i=this.locale;return Z("div",{class:"member-list",ref:function(t){return e.listRef=t},style:{display:n?"block":"none",left:r.left+"px",top:r.top+"px"}},Z("ul",{onClick:this.selectMemberHandler},Z("li",{"data-id":"all","data-name":i.other.all},i.other.all),t.map((function(e){return Z("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 es}}]),n}(xr(HTMLElement)),ns=".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}",rs=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.position={top:0,left:0},e.visible=!1,e.lang=Ii.lang,e.isShowForward=!1,e.msgType=["RC:TxtMsg","RC:FileMsg","RC:ImgMsg"],e.handleCopy=e.handleCopy.bind(Yr(e)),e.handleReference=e.handleReference.bind(Yr(e)),e.handleRecall=e.handleRecall.bind(Yr(e)),e.handleDelete=e.handleDelete.bind(Yr(e)),e.handlForward=e.handlForward.bind(Yr(e)),e.hide=e.hide.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(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),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){document.body.removeEventListener("mouseup",this.hide,!1),window.removeEventListener("blur",this.hide,!1),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleCopy",value:function(){var e;switch(this.message.messageType){case Or.TEXT:e=Pr({},"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(dc){console.error("Failed to copy: ",dc)}}},{key:"handleReference",value:function(){this.message&&Ii.referenceMessage(this.message)}},{key:"handleRecall",value:function(){this.message&&this.message.messageDirection===Ct["m"].SEND&&Ii.recallMessage(this.message)}},{key:"handleDelete",value:function(){this.message&&Ii.deleteMessage(this.message)}},{key:"handlForward",value:function(){var e=this;if(this.message){var t=this.forwardList.callback(this.message);Object(Ct["z"])(t)?Object(Ct["I"])(t)?t.length>6?Ct["H"].error(Sr.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 Ln({content:r.content});break;case"RC:ImgMsg":n=new xn({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};Ii.sendMessage(i,n,null)})):Ct["H"].error(Sr.A_KIT_FORWARD_O,"Forwarding list is empty"):Ct["H"].error(Sr.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?Ri[this.lang]:Ri.zh_CN;var r=this.locale,i=this.message,o=this.createCustomMenu();this.isShowForward=!(!this.forwardList||!this.forwardList.callback);var a=document.documentElement.clientHeight,s=document.documentElement.clientWidth,c=2;i&&i.messageType===Or.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 Z("div",{class:"message-context-menu",style:{"z-index":this.visible?"1":"-1",display:"block",left:(this.position?s-this.position.left<l?this.position.left-l:this.position.left:0)+"px",top:(this.position?a-this.position.top<u?this.position.top-u:this.position.top:0)+"px"},ref:function(e){return n.contextMenu=e}},Z("ul",null,i&&i.messageType===Or.TEXT?Z("li",{onClick:this.handleCopy},r.message.copy):null,Z("li",{onClick:this.handleReference},r.message.quote),(i&&i.messageDirection)===Ct["m"].SEND?Z("li",{onClick:this.handleRecall},r.message.recall):null,Z("li",{onClick:this.handleDelete},r.message["delete"]),this.isShowForward&&i&&this.msgType.indexOf(i.messageType)>-1?Z("li",{onClick:this.handlForward},r.message.forward):null,o.map((function(e){return Z("li",{onClick:e.callback},e.name)}))))}}],[{key:"watchers",get:function(){return{position:["watchPosition"],message:["watchMessage"]}}},{key:"style",get:function(){return ns}}]),n}(xr(HTMLElement)),is=".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}",os=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.baseSize="16px",e.showMemberList=!1,e.isError=!1,e.lang=Ii.lang,e.connected=!0,e.content="",e.switchConversation=e.switchConversation.bind(Yr(e)),e.sendFileMessage=e.sendFileMessage.bind(Yr(e)),e.sendImageMessage=e.sendImageMessage.bind(Yr(e)),e.handlePostMessage=e.handlePostMessage.bind(Yr(e)),e.handleEditorChange=e.handleEditorChange.bind(Yr(e)),e.handleReferenceMessage=e.handleReferenceMessage.bind(Yr(e)),e.handleCloseReference=e.handleCloseReference.bind(Yr(e)),e.handleConnected=e.handleConnected.bind(Yr(e)),e.handleConnecting=e.handleConnecting.bind(Yr(e)),e.handleSuspend=e.handleSuspend.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(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(/&nbsp;/gi," "),t=Yi(t),this.referenceMessage)n=new Un({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?jr({isMentioned:!0},i):void 0,r||(o.mentionedInfo=r),n=new Ln(o)}Ii.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);Ii.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];Ii.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),vn(Et.CONNECTED,this.handleConnected),vn(Et.CONNECTING,this.handleConnecting),vn(Et.SUSPEND,this.handleSuspend)}},{key:"componentWillLoad",value:function(){this.conversation=Ii.currentConversation,(Ii.currentConversation&&Ii.currentConversation.conversationType)===Ct["e"].SYSTEM&&(this.conversation=null),Ii.on(Nr.SWITCH_CONVERSATION,this.switchConversation),Ii.on(Nr.REFERENCE_MESSAGE,this.handleReferenceMessage),Ii.on(Nr.CLOSE_REFERENCE,this.handleCloseReference),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.SWITCH_CONVERSATION,this.switchConversation),Ii.off(Nr.REFERENCE_MESSAGE,this.handleReferenceMessage),Ii.off(Nr.CLOSE_REFERENCE,this.handleCloseReference),Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),mn(Et.CONNECTED,this.handleConnected),mn(Et.CONNECTING,this.handleConnecting),mn(Et.SUSPEND,this.handleSuspend),this.content&&Ii.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&&Ii.saveTextMessageDraft(this.conversation,this.content),this.conversation=e,this.draft={time:Date.now(),text:""},this.content="",e&&e.conversationType!==Ct["e"].SYSTEM?Mn(this.conversation).then((function(e){0===e.code&&(e.data&&(t.draft={time:Date.now(),text:e.data},t.content=t.draft.text),Cn(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(){_r(this.conversation,Or.TEXT)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ri[this.lang]:Ri.zh_CN;var t=this.conversation,n=this.isError,r=this.locale;return t?Z("div",{class:"message-editor-wrapper",style:{fontSize:this.baseSize}},Z("reference-message",{referenceMessage:this.referenceMessage,onClose:this.handleCloseReference}),Z("div",{class:"editor-body"},Z("div",{class:"editor-tool-bar"},Z("div",{class:"buttons"},Z("div",{class:"button image-btn"},Z("input",{type:"file",accept:"image/jpeg,image/jpg,image/png",ref:function(t){return e.imageInputRef=t},onChange:this.sendImageMessage}),Z("span",{class:"label",onClick:function(){return e.imageInputRef.click()}},r.messageEdit.picture),n?Z("div",{class:"error-tip"},r.messageEdit.picError):""),Z("div",{class:"button file-btn"},Z("input",{type:"file",accept:"*",ref:function(t){return e.fileInputRef=t},onChange:this.sendFileMessage}),Z("span",{class:"label",onClick:function(){return e.fileInputRef.click()}},r.messageEdit.file)))),Z("div",{class:"editor-content-wrapper"},Z("content-editor",{conversation:this.conversation,onPost:this.handlePostMessage,onContentChange:this.handleEditorChange,onInputContent:this.onInputContent,value:this.draft})))):null}}],[{key:"style",get:function(){return is}}]),n}(xr(HTMLElement)),as=function(){function e(t,n){qr(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 Xr(e,[{key:"wrap",value:function(e){return Z("div",{class:"message-content"},e)}}]),e}(),ss={"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 cs(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 us=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Yr(i)),i}return Xr(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=ss[e];return n||console.log("暂未识别的文件类型:"+e,t),n||"file-icon"}},{key:"create",value:function(){var e=this.content;return this.wrap(Z("div",{class:"file-message-body","data-origin":e.imageUri},Z("div",{class:"file-message-icon "+this.getFileIcon(e.type,e.name)}),Z("div",{class:"file-desc"},Z("div",{class:"file-name",title:e.name},e.name),Z("div",{class:"file-size"},cs(e.size))),this.uid.startsWith("sending_")||this.uid.startsWith("fail_")?null:Z("div",{class:"file-download-btn",onClick:this.handleClick})))}}]),n}(as),ls=function(e){Ur(n,e);var t=Br(n);function n(){return qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"create",value:function(){var e=this.content;return this.wrap(Z("div",{class:"gif-message-body"},Z("img",{src:e.remoteUrl})))}}]),n}(as),fs="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+6K+t6Z+z5aSH5Lu9IDI8L3RpdGxlPgogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iMDVf5Y2V6IGKLeS4jeaUr+aMgeeahOa2iOaBr+exu+Weiy3or63pn7Pmtojmga8iIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01ODQuMDAwMDAwLCAtNjA0LjAwMDAwMCkiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxnIGlkPSLnvJbnu4TlpIfku70tNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTY0LjAwMDAwMCwgNTg5LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9Iuivremfs+Wkh+S7vS0yIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyMC4wMDAwMDAsIDE1LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxyZWN0IGlkPSLnn6nlvaIiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9IjAiIHg9IjAiIHk9IjAiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiI+PC9yZWN0PgogICAgICAgICAgICAgICAgICAgIDxwYXRoIGQ9Ik0xOS44ODAxNiwyOS45MiBMMTcuNjY3NTIsMjcuNzA3MiBDMjEuMDI5NzYsMjQuODMwMjQgMjMuMTY4NDgsMjAuNTYzODQgMjMuMTY4NDgsMTUuNzkxMDQgQzIzLjE2ODQ4LDExLjI0NDMyIDIxLjIyMjA4LDcuMTYyMjQgMTguMTMxNjgsNC4yOTgwOCBMMjAuMzQ5NzYsMi4wOCBDMjQuMDA2NCw1LjUxMjE2IDI2LjMwMzIsMTAuMzc2MTYgMjYuMzAzMiwxNS43ODY1NiBDMjYuMzAzMiwyMS40MjU0NCAyMy44MTAwOCwyNi40NzEyIDE5Ljg4MDE2LDI5LjkyIFoiIGlkPSLot6/lvoQiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMTMuOTA4OTYsMjMuOTQ4NjQgTDExLjYyOTYsMjEuNjY5NiBDMTMuNzAwOTYsMjAuNTI0NDggMTUuMTA0MzIsMTguMzIwNjQgMTUuMTA0MzIsMTUuNzg2NTYgQzE1LjEwNDMyLDEzLjQ4NjA4IDEzLjk0NjU2LDExLjQ1Nzc2IDEyLjE4MzM2LDEwLjI0NjI0IEwxNC40MjE2LDguMDA4MzIgQzE2Ljc0MTI4LDkuODExNjggMTguMjQsMTIuNjIxMjggMTguMjQsMTUuNzg2NTYgQzE4LjI0LDE5LjE4MjA4IDE2LjUyMjU2LDIyLjE3NTUyIDEzLjkwODk2LDIzLjk0ODY0IEwxMy45MDg5NiwyMy45NDg2NCBaIE03LjkzNjQ4LDE4LjQ3NDU2IEM2LjY5OTY4LDE4LjQ3NDU2IDUuNjk2OCwxNy40NzIgNS42OTY4LDE2LjIzNDcyIEM1LjY5NjgsMTQuOTk3MjggNi42OTk1MiwxMy45OTQ4OCA3LjkzNjQ4LDEzLjk5NDg4IEM5LjE3NDI0LDEzLjk5NDg4IDEwLjE3NjQ4LDE0Ljk5NzI4IDEwLjE3NjQ4LDE2LjIzNDcyIEMxMC4xNzY0OCwxNy40NzIgOS4xNzQyNCwxOC40NzQ1NiA3LjkzNjQ4LDE4LjQ3NDU2IEw3LjkzNjQ4LDE4LjQ3NDU2IFoiIGlkPSLlvaLnirYiIGZpbGw9IiMxMTFGMkMiPjwvcGF0aD4KICAgICAgICAgICAgICAgIDwvZz4KICAgICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",ds="data:image/gif;base64,R0lGODlhQABAAIcAAAAAABEfLBIgLREfLRIfLRIgLBEgLBEgLRIhLgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFFAAAACwAAAAAQABAAAAIiwABCBxIsKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqlzJsqXLlzBjypxJs6bNmzhz6txJUsCAAgd2Bhg6tEBOAkSJBr2ZNOlNAU2J4ow6FGeBqEZxHki69OiAAwZ4ih1LtqzZs2jTql3Ltq3bt3Djyp1Lt67du3h1BgQAIfkEBRQAAAAsGAAQAAwAIAAACHEAAQgEIGCgwYEGAgQ4iFChQoYJHT40KNHhgYMVFQ7AmPGggIwFDX6syLDjwYgOCZQkyVHiSpctHTI8wJJizYEFbgo0aRPmwJEOQw4EaZDmTQJEh/IEkNPkgIwBLu6EavBpRaECrSpEwBCA1a4DuXYNCAAh+QQJFAAAACwkAAQAEQA4AAAIygABCASAYKDBgwMNBDCAsKHCABAbGnwIMUABiQIraiSAkYDGihgBUKzIEaOAjxZDHkAZEgDKiyZZqvwoIOQAmR0/lpR48mNLlAVzaqwZEqfEmxp/0lRaESZGow2hIvSYNCRVkCF7YsVY4GNQiV01fm2oFSJRsD6tpn26VqLUg28NfjyQ9SNDoRXHIowrMGxViSMDnI3aFmHZAAOKFj7oF+JOwyjvEl48EOlfhCvt8kRJt6HlywYbk3SLcvDBz4hbWu6sOnXLhK8BBAQAIfkEBRQAAAAsAAAAAAEAAQAACAQAAQQEADs=",hs=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.isPlaying=!1,i.handleClick=i.handleClick.bind(Yr(i)),i.onStart=i.onStart.bind(Yr(i)),i.onStop=i.onStop.bind(Yr(i)),i}return Xr(n,[{key:"handleClick",value:function(){var e;"function"===typeof this.callback&&("RC:VcMsg"===this.messageType?e=zi(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=ds}},{key:"onStop",value:function(){this.voiceIcon.src=fs}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(Z("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},Z("img",{ref:function(t){e.voiceIcon=t},class:"voice-icon",src:fs}),t.duration?Z("span",null,Math.round(t.duration),"''"):null))}}]),n}(as),ps=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Yr(i)),i.onError=i.onError.bind(Yr(i)),i}return Xr(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(Z("div",{class:"image-message-body","data-origin":e.imageUri,onClick:this.handleClick},e.content?Z("img",{src:zi(e.content),onError:this.onError}):null))}}]),n}(as),gs=function(e){Ur(n,e);var t=Br(n);function n(){return qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"create",value:function(){var e=Ii.lang?Ii.lang:Ri.zh_CN,t=Ri[e],n="["+t.message.location+"]"+t.message.nonsupport;return this.wrap(Z("div",{class:"location-message-body"},Z("p",null,n)))}}]),n}(as),vs=function(e){Ur(n,e);var t=Br(n);function n(){return qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"create",value:function(){var e,t=this,n=Ii.lang?Ii.lang:Ri.zh_CN,r=Ri[n];return this.direction===Ct["m"].SEND?e=r.message.you+" ":this.conversationType===Ct["e"].PRIVATE?Ii.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&&Ii.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(Z("div",{class:"recall-message-body"},Z("div",{class:"tip-content"},Z("span",{ref:function(e){return t.nameRef=e}},e),r.message.msgRecall)))}}]),n}(as),ms=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.getName(e),i}return Xr(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)Ii.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===gn()?Ii.getMyProfile():Ii.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=Ii.lang?Ii.lang:Ri.zh_CN,o=Ri[i];switch(e){case Or.TEXT:n=t.content.content,r=Fi(n),n=Z("div",{innerHTML:r,class:"referenced-message-text"},Z("div",{class:"quote quoteContent",innerHTML:r}));break;case Or.IMAGE:n=Z("img",{src:zi(t.content.content)});break;case Or.GIF:n=Z("img",{src:t.content.remoteUrl});break;case Or.FILE:n="["+o.conversation.file+"]"+" ".concat(t.content.name);break;case Or.RICH_CONTENT:n="["+o.conversation.img+"]"+" ".concat(t.content.title);break;case Or.REFERENCE:n=t.content.content;break}return n}},{key:"create",value:function(){var e=this,t=this.content;return this.wrap(Z("div",{class:"reference-message-body"},Z("div",{class:"reference-message-content"},Z("div",{class:"user",ref:function(t){return e.nameRef=t}},this.name),Z("div",{class:"content"},this.getRererenceContent(t.objName,t.referMsg))),Z("div",{class:"message-content",innerHTML:Fi(t.content)})))}}]),n}(as),ys=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Yr(i)),i}return Xr(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(Z("div",{class:"rich-message-body","data-url":e.url,onClick:this.handleClick},Z("div",{class:"title"},e.title),Z("div",{class:"content"},e.imageUri?Z("img",{src:e.imageUri}):null,Z("p",null,e.content))))}}]),n}(as),Is=function(e){Ur(n,e);var t=Br(n);function n(e,r){var i;return qr(this,n),i=t.call(this,e,r),i.handleClick=i.handleClick.bind(Yr(i)),i}return Xr(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(Z("div",{class:"sight-message-body","data-origin":e.imageUri,onClick:this.handleClick},Z("img",{class:"sight-conver",src:zi(e.content)}),Z("div",{class:"file-duration"},this.formatDuration(e.duration)),Z("div",{class:"start-play-btn"},Z("button",null))))}}]),n}(as),Ms=function(e){Ur(n,e);var t=Br(n);function n(){return qr(this,n),t.apply(this,arguments)}return Xr(n,[{key:"create",value:function(){var e=this.content.content;return e=Fi(e),this.wrap(Z("div",{class:"text-message-body"},Z("p",{innerHTML:e})))}}]),n}(as),bs={"RC:RcCmd":vs,"RC:InfoNtf":null,"RC:ContactNtf":null,"RC:ProfileNtf":null,"RC:CmdNtf":null,"RC:GrpNtf":null},Cs=(Er={},Pr(Er,Or.TEXT,Ms),Pr(Er,Or.IMAGE,ps),Pr(Er,Or.FILE,us),Pr(Er,Or.SIGHT,Is),Pr(Er,Or.HQ_VOICE,hs),Pr(Er,Or.GIF,ls),Pr(Er,Or.REFERENCE,ms),Pr(Er,Or.RICH_CONTENT,ys),Pr(Er,Or.LOCATION,gs),Pr(Er,"RC:VcMsg",hs),Er);function Ts(e,t){var n=Cs[e.messageType]||bs[e.messageType];return n?new n(e,t).create():"不识别的消息内容"}var As=".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=)}",_s=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.rightClick=_e(Yr(e),"rightClick",7),e.tapMessageItem=_e(Yr(e),"tapMessageItem",7),e.lang=Ii.lang,e.lastTime=0,e.tapMessageHandler=e.tapMessageHandler.bind(Yr(e)),e.rightClickHandler=e.rightClickHandler.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"validateData",value:function(e,t){e!==t&&(this.lastTime=0)}},{key:"componentWillLoad",value:function(){Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.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 Z("li",{class:"time-separation"},Bi(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(bs[e.messageType])return Z("li",{class:"message-item ntf-message-item"},Ts(e));if(Ii.isCustomNotifyMessage(e))return Z("li",{class:"message-item custom-notify-message-item",innerHTML:Ii.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 Z("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,Z(Xe,null,t.getTimeLine(n.sentTime,e),t.getItem(n)))}))}},{key:"render",value:function(){this.locale=this.lang?Ri[this.lang]:Ri.zh_CN;var e=this.locale;return Z("ul",{style:{"list-style":"none",padding:"0",margin:"0"}},this.checkGroup(e))}}],[{key:"watchers",get:function(){return{messages:["validateData"]}}},{key:"style",get:function(){return As}}]),n}(xr(HTMLElement)),ws=".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)}",Es=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.rightClick=_e(Yr(e),"rightClick",7),e.tap=_e(Yr(e),"tap",7),e.lang=Ii.lang,e.handleClick=e.handleClick.bind(Yr(e)),e.handleFail=e.handleFail.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),e}return Xr(n,[{key:"componentWillLoad",value:function(){Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged),Ii.on(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.LANGUAGE_CHANGED,this.handleLanguageChanged)}},{key:"handleLanguageChanged",value:function(e){this.lang=e.lang}},{key:"getMessageStyleClass",value:function(e){var t,n=(t={},Pr(t,Or.IMAGE,"image-message-item"),Pr(t,Or.SIGHT,"sight-message-item"),Pr(t,Or.GIF,"gif-message-item"),Pr(t,Or.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!==[Or.IMAGE,Or.FILE,Or.SIGHT,Or.HQ_VOICE,Or.GIF].indexOf(e.messageType)?Z("progress-bar",{mId:e.messageId,reverse:e.messageType===Or.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};Ii.resendMessage(e,this.message)}},{key:"render",value:function(){var e=this;this.locale=this.lang?Ri[this.lang]:Ri.zh_CN;var t=this.message,n=this.isGroupMember,r=this.member,i=this.locale;return Cs[t.messageType]||Ii.isCustomUserMessage(t)?Z("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},Z("div",{class:"avatar"},n?r&&r.portraitUri?Z("img",{src:r.portraitUri}):null:t.messageDirection===Ct["m"].RECEIVE?this.conversationProfile?Z("img",{src:this.conversationProfile.portraitUri}):null:this.myProfile?Z("img",{src:this.myProfile.portraitUri}):null),Z("div",{class:"message-body-wrapper",onContextMenu:function(n){return e.rightClickHandler(t,n)}},n&&t.messageDirection===Ct["m"].RECEIVE?Z("div",{class:"name"},Z("span",null,r.groupNickname||r.name||r.id)):null,t.conversationType===Ct["e"].SYSTEM?Z("div",{class:"name"},Z("span",null,this.conversationProfile.name)):null,Z("div",{class:"message-body"},Cs[t.messageType]?Z(Xe,null,t.messageUId.startsWith("fail_")?Z("div",{onClick:this.handleFail,class:"sendFail"}):Z("div",{class:"receive-status"}," ",this.getReceivedStatus(t,i)," "),Ts(t,this.handleClick),this.getProgressBar(t)):Ii.isCustomUserMessage(t)?Z("div",null,Z("div",{class:"receive-status"}," ",this.getReceivedStatus(t,i)," "),Z("div",{innerHTML:Ii.createCustomUserMessageDom(t)})):null))):(console.log("无法识别的消息",t.messageType,JSON.stringify(t.content)),null)}}],[{key:"style",get:function(){return ws}}]),n}(xr(HTMLElement)),Ns="undefined"!==typeof window,Ss=Ns&&navigator.userAgent.toLowerCase();if(Ss&&/wechatdevtools/.test(Ss),Ss&&Ss.indexOf("android"),function(){if("string"===typeof Ss){var e=/os (\d\d?_\d(_\d)?)/,t=e.exec(Ss);if(!t)return!1;var n=t[1].split("_").map((function(e){return parseInt(e,10)}));return!!(13===n[0]&&n[1]>=4)}}(),Ns){var Os="test-passive";try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){}}),window.addEventListener(Os,(function(){}),Ds)}catch(dc){}}var xs=function(e,t){for(var n in t)e[n]=t[n];return e},Rs=Ns&&document.createElement("div").style,ks=function(){if(!Ns)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!==Rs[r.value])return r.key}return!1}();function Ls(e){return!1===ks?e:"standard"===ks?"transitionEnd"===e?"transitionend":e:ks+e.charAt(0).toUpperCase()+e.substr(1)}ks&&"standard"!==ks&&ks.toLowerCase();Ls("transform"),Ls("transition");Ns&&Ls("perspective"),Ls("transitionTimingFunction"),Ls("transitionDuration"),Ls("transitionDelay"),Ls("transformOrigin"),Ls("transitionEnd"),Ls("transitionProperty");var js={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}}},Ps="plugins.pullDownRefresh",Us=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],zs=Us.map((function(e){return{key:e.key,sourceKey:Ps+"."+e.name}})),Bs="pullingDown",Gs="enterThreshold",Ys="leaveThreshold",Hs=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([Bs,Gs,Ys]),this.scroll.proxy(zs)},e.prototype.handleOptions=function(e){void 0===e&&(e={}),e=!0===e?{}:e;var t={threshold:90,stop:40};this.options=xs(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(Gs)),n&&(this.setThresholdBoundary(2),e.trigger(Ys))}},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(Bs)),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,js.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,js.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(Bs),this.scroll.scrollTo(this.scroll.x,n,this.scroll.options.bounceTime,js.bounce))},e.pluginName="pullDownRefresh",e}(),Fs='.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%}}';Ia.use(Hs),Ia.use(Qa);var $s=70,Vs=56,Qs=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),Je(Yr(e)),e.tapMessage=_e(Yr(e),"tapMessage",7),e.baseSize="16px",e.messages=[],e.hasMore=!0,e.beforePullDown=!0,e.isPullingDown=!1,e.isLoading=!1,e.lang=Ii.lang,e.isGetHistory=!1,e.scrollWrapper=null,e.lastPosition=0,e.groupMembers=[],e.handleSwitchConversation=e.handleSwitchConversation.bind(Yr(e)),e.handleMessages=e.handleMessages.bind(Yr(e)),e.pullingDownHandler=e.pullingDownHandler.bind(Yr(e)),e.handleReceiptRequest=e.handleReceiptRequest.bind(Yr(e)),e.handleSelectMessage=e.handleSelectMessage.bind(Yr(e)),e.handleUpdateMessage=e.handleUpdateMessage.bind(Yr(e)),e.handleDeleteMessage=e.handleDeleteMessage.bind(Yr(e)),e.tapMessageHandler=e.tapMessageHandler.bind(Yr(e)),e.handleTypingStatus=e.handleTypingStatus.bind(Yr(e)),e.handleMouseLeave=e.handleMouseLeave.bind(Yr(e)),e.handleLanguageChanged=e.handleLanguageChanged.bind(Yr(e)),Ii.on(Nr.CONNECTED,(function(t){e.isConnect=t,e.isConnect?e.updateMyProfile():e.myProfile=null})),e}return Xr(n,[{key:"updateMyProfile",value:function(){var e=this;Ii.getMyProfile().then((function(t){e.myProfile=t}))}},{key:"updateMessageList",value:function(e){var t=this,n=e||Ii.currentConversation;n&&n!==this.conversation&&Ii.getConversation(n).then((function(e){e&&t.loadData(e)}))}},{key:"componentWillLoad",value:function(){Ii.on(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.on(Nr.MESSAGES,this.handleMessages),Ii.on(Nr.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),Ii.on(Nr.UPDATE_MESSAGE,this.handleUpdateMessage),Ii.on(Nr.DELETE_MESSAGE,this.handleDeleteMessage),Ii.on(Nr.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),Ii.on(Nr.MESSAGE_SEND_FAIL,this.handleUpdateMessage),Ii.on(Nr.TYPING_STATUS,this.handleTypingStatus),Ii.on(Nr.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)})),Ii.currentConversation&&this.handleSwitchConversation(Ii.currentConversation)}},{key:"disconnectedCallback",value:function(){this.bscroll&&(this.bscroll.off("pullingDown",this.pullingDownHandler),this.bscroll.destroy()),Ii.off(Nr.SWITCH_CONVERSATION,this.handleSwitchConversation),Ii.off(Nr.MESSAGES,this.handleMessages),Ii.off(Nr.MESSAGE_RECEIPT_REQUEST,this.handleReceiptRequest),Ii.off(Nr.UPDATE_MESSAGE,this.handleUpdateMessage),Ii.off(Nr.DELETE_MESSAGE,this.handleDeleteMessage),Ii.off(Nr.MESSAGE_SEND_SUCCESS,this.handleUpdateMessage),Ii.off(Nr.MESSAGE_SEND_FAIL,this.handleUpdateMessage),Ii.off(Nr.TYPING_STATUS,this.handleTypingStatus),Ii.off(Nr.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 Ia(this.scrollWrapper,{bindToWrapper:!0,mouseWheel:{throttleTime:30},scrollX:!1,scrollY:!0,pullDownRefresh:{threshold:$s,stop:Vs},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=qa.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&&Ii.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?Ii.getGroupMembers(this.conversation).then((function(e){t.groupMembers=$r(e),t.getMessages()})):(this.groupMembers=null,this.getMessages())}},{key:"getMessages",value:function(){var e=this;return this.isLoading=!0,Ii.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&&ri(e[0],this.conversation)){var n=function(){var n=[].concat($r(t.messages),$r(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?Ii.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){Ii.clearMessagesUnreadStatus(this.conversation),e&&e.conversationType===Ct["e"].PRIVATE&&br(this.conversation.targetId,e.messageUId,e.sentTime,this.conversation.channelId)}},{key:"handleReceiptRequest",value:function(e){Cr(e.conversation.targetId,Pr({},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=$r(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=$r(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&&ri(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?Ri[this.lang]:Ri.zh_CN;var t=this.conversationProfile,n=this.conversation,r=this.messages,i=this.groupMembers,o=this.myProfile,a=this.locale;return n?Z("div",{class:"message-container",style:{fontSize:this.baseSize}},Z("div",{class:"conversation-info"},Z("div",{class:"receiver"},Z("span",{class:"name"},t?t.name:n.targetId),n.conversationType===Ct["e"].GROUP?Z("span",{class:"count"},"(",null===t||void 0===t?void 0:t.memberCount,")"):null)),Z("div",{class:"message-list-container",onMouseLeave:this.handleMouseLeave},Z("div",{class:"input-tip"}),Z("message-context-menu",{message:this.selectedMessage,position:this.contextMenuPosition,customMenu:this.customMenu,forwardList:this.forwardList}),Z("div",{class:"message-loading"},Z("div",{style:{display:this.isLoading?"block":"none"}},Z("span",null,a.message.loading))),Z("div",{class:"message-list-wrapper",ref:function(t){return e.scrollWrapper=t}},Z("div",{class:"message-list-scroller"},Z("div",{class:"pulldown-wrapper"},Z("div",{style:{display:this.beforePullDown?"block":"none"}},this.hasMore?Z("span",null,a.message.loading):Z("span",null,a.message.noHistory))),Z("div",{class:"message-list"},Z("message-group",{messages:r,groupMembers:i,conversationProfile:t,myProfile:o,onRightClick:this.handleSelectMessage,onTapMessageItem:this.tapMessageHandler})))),Z("div",{class:"typing-status",style:{display:this.showTypingStatus?"flex":"none"}},Z("span",null),Z("span",null),Z("span",null)))):Z("div",{class:"no-data",style:{fontSize:this.baseSize}},Z("span",null,a.message.noData))}}],[{key:"style",get:function(){return Fs}}]),n}(xr(HTMLElement)),Ws=".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 Zs(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 Ks=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.reverse=!1,e.handleUploadProgress=e.handleUploadProgress.bind(Yr(e)),e}return Xr(n,[{key:"componentWillLoad",value:function(){Ii.on(Nr.UPLOAD_PROGRESS,this.handleUploadProgress)}},{key:"disconnectedCallback",value:function(){Ii.off(Nr.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,a=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(a,"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(a,"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(a,"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(a,"L").concat(r," ").concat(i," L").concat(r," ").concat(i-n,"Z");var s=Zs("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(s)}},{key:"handleUploadProgress",value:function(e){this.mId===e.messageId&&this.drawPath(3.6*e.progress)}},{key:"render",value:function(){var e=this;return Z("div",{class:"upload-progress-mask"},Z("div",{class:"upload-progress-bar"},Z("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"},Z("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 Ws}}]),n}(xr(HTMLElement)),qs=".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}",Js=function(e){Ur(n,e);var t=Br(n);function n(){var e;return qr(this,n),e=t.call(this),e.__registerHost(),e.close=_e(Yr(e),"close",7),e.lang=Ii.lang,e.closeReference=e.closeReference.bind(Yr(e)),e}return Xr(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?Ii.getGroupMemberProfile(r,e.senderUserId).then((function(t){return t?t.groupNickname||t.name:e.senderUserId})):e.senderUserId===gn()?Ii.getMyProfile().then((function(t){return t.displayName||t.name||e.senderUserId})):Ii.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 Or.TEXT:n.content=e.content.content;break;case Or.IMAGE:n.content=Z("div",{class:"reference-image"},Z("img",{src:zi(e.content.content)}));break;case Or.FILE:n.content="["+n.locale.conversation.file+"]"+e.content.name;break;case Or.GIF:n.content=Z("img",{src:e.content.remoteUrl});break;case Or.HQ_VOICE:n.content="["+n.locale.conversation.file+"]";break;case Or.SIGHT:n.content=Z("img",{src:e.content.content});break;case Or.RICH_CONTENT:n.content=e.content.title;break;case Or.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?Ri[this.lang]:Ri.zh_CN;var e=this.name,t=this.content;return e&&t?Z("div",{class:"message-reference"},Z("div",{class:"message-body"},Z("div",{class:"name"},this.name,":"),Z("div",{class:"content"},this.content)),Z("button",{class:"close-btn",onClick:this.closeReference},"关闭")):null}}],[{key:"watchers",get:function(){return{referenceMessage:["validateData"]}}},{key:"style",get:function(){return qs}}]),n}(xr(HTMLElement)),Xs=qe(Li,[1,"content-editor",{conversation:[16],value:[16],memberListVisible:[32],targetRect:[32],hasContent:[32],locale:[32],lang:[32]}]),ec=qe(Pi,[0,"conversation-context-menu",{position:[16],visible:[4],topStatus:[4,"top-status"],notificationStatus:[4,"notification-status"],customMenu:[16],conversation:[16],locale:[32],lang:[32]}]),tc=qe(Vi,[0,"conversation-item",{data:[16],isHover:[4,"is-hover"],draft:[32],locale:[32],lang:[32]}]),nc=qe(Xa,[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]}]),rc=qe(ts,[0,"member-list",{conversation:[16],visible:[4],targetRect:[16],memberList:[32],position:[32],locale:[32],lang:[32]}]),ic=qe(rs,[0,"message-context-menu",{position:[16],message:[16],customMenu:[16],forwardList:[16],visible:[32],locale:[32],lang:[32],isShowForward:[32],msgType:[32]}]),oc=qe(os,[0,"message-editor",{baseSize:[1,"base-size"],conversation:[32],hasContent:[32],referenceMessage:[32],showMemberList:[32],draft:[32],isError:[32],locale:[32],lang:[32]}]),ac=qe(_s,[0,"message-group",{messages:[16],groupMembers:[16],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),sc=qe(Es,[0,"message-item",{message:[16],member:[16],isGroupMember:[4,"is-group-member"],conversationProfile:[16],myProfile:[16],locale:[32],lang:[32]}]),cc=qe(Qs,[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]}]),uc=qe(Ks,[0,"progress-bar",{mId:[2,"m-id"],reverse:[4]}]),lc=qe(Js,[0,"reference-message",{referenceMessage:[16],content:[32],name:[32],locale:[32],lang:[32]}]),fc=function(e){"undefined"!==typeof customElements&&[Xs,ec,tc,nc,rc,ic,oc,ac,sc,cc,uc,lc].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"),a=n("9def"),s=n("d8e8"),c=n("cd1c");r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(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}},ebd6:function(e,t,n){var r=n("cb7c"),i=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[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"),a=n("d9f6").f,s=0,c=Object.isExtensible||function(){return!0},u=!n("294c")((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,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},d=function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},h=function(e){return u&&p.NEED&&c(e)&&!o(e,r)&&l(e),e},p=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var r=n("2d00"),i=n("7726"),o=n("79e5"),a=n("5ca1"),s=n("0f88"),c=n("ed0b"),u=n("9b43"),l=n("f605"),f=n("4630"),d=n("32e9"),h=n("dcbc"),p=n("4588"),g=n("9def"),v=n("09fa"),m=n("77f1"),y=n("6a99"),I=n("69a8"),M=n("23c6"),b=n("d3f4"),C=n("4bf8"),T=n("33a4"),A=n("2aeb"),_=n("38fd"),w=n("9093").f,E=n("27ee"),N=n("ca5a"),S=n("2b4c"),O=n("0a49"),D=n("c366"),x=n("ebd6"),R=n("cadf"),k=n("84f2"),L=n("5cc5"),j=n("7a56"),P=n("36bd"),U=n("ba92"),z=n("86cc"),B=n("11e9"),G=z.f,Y=B.f,H=i.RangeError,F=i.TypeError,$=i.Uint8Array,V="ArrayBuffer",Q="Shared"+V,W="BYTES_PER_ELEMENT",Z="prototype",K=Array[Z],q=c.ArrayBuffer,J=c.DataView,X=O(0),ee=O(2),te=O(3),ne=O(4),re=O(5),ie=O(6),oe=D(!0),ae=D(!1),se=R.values,ce=R.keys,ue=R.entries,le=K.lastIndexOf,fe=K.reduce,de=K.reduceRight,he=K.join,pe=K.sort,ge=K.slice,ve=K.toString,me=K.toLocaleString,ye=S("iterator"),Ie=S("toStringTag"),Me=N("typed_constructor"),be=N("def_constructor"),Ce=s.CONSTR,Te=s.TYPED,Ae=s.VIEW,_e="Wrong length!",we=O(1,(function(e,t){return De(x(e,e[be]),t)})),Ee=o((function(){return 1===new $(new Uint16Array([1]).buffer)[0]})),Ne=!!$&&!!$[Z].set&&o((function(){new $(1).set({})})),Se=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Oe=function(e){if(b(e)&&Te in e)return e;throw F(e+" is not a typed array!")},De=function(e,t){if(!b(e)||!(Me in e))throw F("It is not a typed array constructor!");return new e(t)},xe=function(e,t){return Re(x(e,e[be]),t)},Re=function(e,t){var n=0,r=t.length,i=De(e,r);while(r>n)i[n]=t[n++];return i},ke=function(e,t,n){G(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,i,o,a,s=C(e),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,d=E(s);if(void 0!=d&&!T(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&c>2&&(l=u(l,arguments[2],2)),t=0,n=g(s.length),i=De(this,n);n>t;t++)i[t]=f?l(s[t],t):s[t];return i},je=function(){var e=0,t=arguments.length,n=De(this,t);while(t>e)n[e]=arguments[e++];return n},Pe=!!$&&o((function(){me.call(new $(1))})),Ue=function(){return me.apply(Pe?ge.call(Oe(this)):Oe(this),arguments)},ze={copyWithin:function(e,t){return U.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 P.apply(Oe(this),arguments)},filter:function(e){return xe(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 ae(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 he.apply(Oe(this),arguments)},lastIndexOf:function(e){return le.apply(Oe(this),arguments)},map:function(e){return we(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return fe.apply(Oe(this),arguments)},reduceRight:function(e){return de.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=m(e,r);return new(x(n,n[be]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:m(t,r))-i))}},Be=function(e,t){return xe(this,ge.call(Oe(this),e,t))},Ge=function(e){Oe(this);var t=Se(arguments[1],1),n=this.length,r=C(e),i=g(r.length),o=0;if(i+t>n)throw H(_e);while(o<i)this[t+o]=r[o++]},Ye={entries:function(){return ue.call(Oe(this))},keys:function(){return ce.call(Oe(this))},values:function(){return se.call(Oe(this))}},He=function(e,t){return b(e)&&e[Te]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Fe=function(e,t){return He(e,t=y(t,!0))?f(2,e[t]):Y(e,t)},$e=function(e,t,n){return!(He(e,t=y(t,!0))&&b(n)&&I(n,"value"))||I(n,"get")||I(n,"set")||n.configurable||I(n,"writable")&&!n.writable||I(n,"enumerable")&&!n.enumerable?G(e,t,n):(e[t]=n.value,e)};Ce||(B.f=Fe,z.f=$e),a(a.S+a.F*!Ce,"Object",{getOwnPropertyDescriptor:Fe,defineProperty:$e}),o((function(){ve.call({})}))&&(ve=me=function(){return he.call(this)});var Ve=h({},ze);h(Ve,Ye),d(Ve,ye,Ye.values),h(Ve,{slice:Be,set:Ge,constructor:function(){},toString:ve,toLocaleString:Ue}),ke(Ve,"buffer","b"),ke(Ve,"byteOffset","o"),ke(Ve,"byteLength","l"),ke(Ve,"length","e"),G(Ve,Ie,{get:function(){return this[Te]}}),e.exports=function(e,t,n,c){c=!!c;var u=e+(c?"Clamped":"")+"Array",f="get"+e,h="set"+e,p=i[u],m=p||{},y=p&&_(p),I=!p||!s.ABV,C={},T=p&&p[Z],E=function(e,n){var r=e._d;return r.v[f](n*t+r.o,Ee)},N=function(e,n,r){var i=e._d;c&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[h](n*t+i.o,r,Ee)},S=function(e,t){G(e,t,{get:function(){return E(this,t)},set:function(e){return N(this,t,e)},enumerable:!0})};I?(p=n((function(e,n,r,i){l(e,p,u,"_d");var o,a,s,c,f=0,h=0;if(b(n)){if(!(n instanceof q||(c=M(n))==V||c==Q))return Te in n?Re(p,n):Le.call(p,n);o=n,h=Se(r,t);var m=n.byteLength;if(void 0===i){if(m%t)throw H(_e);if(a=m-h,a<0)throw H(_e)}else if(a=g(i)*t,a+h>m)throw H(_e);s=a/t}else s=v(n),a=s*t,o=new q(a);d(e,"_d",{b:o,o:h,l:a,e:s,v:new J(o)});while(f<s)S(e,f++)})),T=p[Z]=A(Ve),d(T,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&L((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),b(n)?n instanceof q||(o=M(n))==V||o==Q?void 0!==i?new m(n,Se(r,t),i):void 0!==r?new m(n,Se(r,t)):new m(n):Te in n?Re(p,n):Le.call(p,n):new m(v(n))})),X(y!==Function.prototype?w(m).concat(w(y)):w(m),(function(e){e in p||d(p,e,m[e])})),p[Z]=T,r||(T.constructor=p));var O=T[ye],D=!!O&&("values"==O.name||void 0==O.name),x=Ye.values;d(p,Me,!0),d(T,Te,u),d(T,Ae,!0),d(T,be,p),(c?new p(1)[Ie]==u:Ie in T)||G(T,Ie,{get:function(){return u}}),C[u]=p,a(a.G+a.W+a.F*(p!=m),C),a(a.S,u,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){m.of.call(p,1)})),u,{from:Le,of:je}),W in T||d(T,W,t),a(a.P,u,ze),j(u),a(a.P+a.F*Ne,u,{set:Ge}),a(a.P+a.F*!D,u,Ye),r||T.toString==ve||(T.toString=ve),a(a.P+a.F*o((function(){new p(1).slice()})),u,{slice:Be}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){T.toLocaleString.call([1,2])}))),u,{toLocaleString:Ue}),k[u]=D?O:x,r||D||d(T,ye,x)}}else e.exports=function(){}},ec39:function(e,t,n){var r=n("37a7"),i=n("cb7c"),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},ed0b:function(e,t,n){"use strict";var r=n("7726"),i=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),c=n("dcbc"),u=n("79e5"),l=n("f605"),f=n("4588"),d=n("9def"),h=n("09fa"),p=n("9093").f,g=n("86cc").f,v=n("36bd"),m=n("7f20"),y="ArrayBuffer",I="DataView",M="prototype",b="Wrong length!",C="Wrong index!",T=r[y],A=r[I],_=r.Math,w=r.RangeError,E=r.Infinity,N=T,S=_.abs,O=_.pow,D=_.floor,x=_.log,R=_.LN2,k="buffer",L="byteLength",j="byteOffset",P=i?"_b":k,U=i?"_l":L,z=i?"_o":j;function B(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,u=c>>1,l=23===t?O(2,-24)-O(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for(e=S(e),e!=e||e===E?(i=e!=e?1:0,r=c):(r=D(x(e)/R),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;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a}function G(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=n-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:u?-E:E;r+=O(2,t),l-=a}return(u?-1:1)*r*O(2,l-t)}function Y(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function $(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function V(e){return B(e,52,8)}function Q(e){return B(e,23,4)}function W(e,t,n){g(e[M],t,{get:function(){return this[n]}})}function Z(e,t,n,r){var i=+n,o=h(i);if(o+t>e[U])throw w(C);var a=e[P]._b,s=o+e[z],c=a.slice(s,s+t);return r?c:c.reverse()}function K(e,t,n,r,i,o){var a=+n,s=h(a);if(s+t>e[U])throw w(C);for(var c=e[P]._b,u=s+e[z],l=r(+i),f=0;f<t;f++)c[u+f]=l[o?f:t-f-1]}if(a.ABV){if(!u((function(){T(1)}))||!u((function(){new T(-1)}))||u((function(){return new T,new T(1.5),new T(NaN),T.name!=y}))){T=function(e){return l(this,T),new N(h(e))};for(var q,J=T[M]=N[M],X=p(N),ee=0;X.length>ee;)(q=X[ee++])in T||s(T,q,N[q]);o||(J.constructor=T)}var te=new A(new T(2)),ne=A[M].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(A[M],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else T=function(e){l(this,T,y);var t=h(e);this._b=v.call(new Array(t),0),this[U]=t},A=function(e,t,n){l(this,A,I),l(e,T,I);var r=e[U],i=f(t);if(i<0||i>r)throw w("Wrong offset!");if(n=void 0===n?r-i:d(n),i+n>r)throw w(b);this[P]=e,this[z]=i,this[U]=n},i&&(W(T,L,"_l"),W(A,k,"_b"),W(A,L,"_l"),W(A,j,"_o")),c(A[M],{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(Z(this,4,e,arguments[1]))},getUint32:function(e){return Y(Z(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return G(Z(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return G(Z(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,H,t)},setUint8:function(e,t){K(this,1,e,H,t)},setInt16:function(e,t){K(this,2,e,F,t,arguments[2])},setUint16:function(e,t){K(this,2,e,F,t,arguments[2])},setInt32:function(e,t){K(this,4,e,$,t,arguments[2])},setUint32:function(e,t){K(this,4,e,$,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,Q,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,V,t,arguments[2])}});m(T,y),m(A,I),s(A[M],a.VIEW,!0),t[y]=T,t[I]=A},ed50:function(e,t,n){"use strict";var r=n("5ca1"),i=n("2e08"),o=n("a25f"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"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}})},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 a(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}function s(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(a(e))return"date";if(o(e))return"error";if(s(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"),a=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?c(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},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}},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:{},a=o.iterator||"@@iterator",s=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=M;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",g={},v={};v[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(x([])));y&&y!==r&&i.call(y,a)&&(v=y);var I=A.prototype=C.prototype=Object.create(v);T.prototype=I.constructor=A,A.constructor=T,A[c]=T.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===T||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(I),e},l.awrap=function(e){return{__await:e}},_(w.prototype),w.prototype[s]=function(){return this},l.AsyncIterator=w,l.async=function(e,t,n,r){var i=new w(M(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},_(I),I[c]="Generator",I[a]=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=x,D.prototype={constructor:D,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 s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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 a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),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:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}}}function M(e,t,n,r){var i=t&&t.prototype instanceof C?t:C,o=Object.create(i.prototype),a=new D(r||[]);return o._invoke=E(e,n,a),o}function b(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function C(){}function T(){}function A(){}function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function w(e){function n(t,r,o,a){var s=b(e[t],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),a)}a(s.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 E(e,t,n){var r=f;return function(i,o){if(r===h)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 a=n.delegate;if(a){var s=N(a,n);if(s){if(s===g)continue;return s}}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=h;var c=b(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function N(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,N(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=b(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 S(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 D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function x(e){if(e){var t=e[a];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:R}}function R(){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)},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,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.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"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"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 a(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function s(e,t){var n,s,c,u,l,f,d=!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 h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!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),d=!0}catch(p){n&&console.error("unable to copy using clipboardData: ",p),n&&console.error("falling back to prompt"),s=a("message"in t?t.message:o),window.prompt(s,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(u):l.removeAllRanges()),f&&document.body.removeChild(f),c()}return d}e.exports=s},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","","")}}))},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb48:function(e,t,n){"use strict";
  238. /*!
  239. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  240. *
  241. * Copyright (c) 2014-2017, Jon Schlinkert.
  242. * Released under the MIT License.
  243. */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},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"),a=n("86cc");n("9e1e")&&r(r.P+n("c5b4"),"Object",{__defineSetter__:function(e,t){a.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)}})}}]);