easemob-websdk 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/Easemob-chat.js +1 -1
- package/chatroom/chatroom.js +1 -1
- package/contact/contact.js +1 -1
- package/group/group.js +1 -1
- package/miniCore/miniCore.js +1 -1
- package/package.json +1 -1
- package/presence/presence.js +1 -1
- package/silent/silent.js +1 -1
- package/thread/thread.js +1 -1
- package/translation/translation.js +1 -1
package/miniCore/miniCore.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.websdk=t():e.websdk=t()}(this,(function(){return function(){var __webpack_modules__={5317:function(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o<arguments.length;)r[n++]=arguments[o++];return new Promise((function(o,s){r[n]=function(e){if(i)if(i=!1,e)s(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,s(e))}}))}},8660:function(e,t){"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t<r;){var c=e[t++];switch(u){case 0:s[a++]=n[c>>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u<e.length;){var c=e.charCodeAt(u++);if(61===c&&a>1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},4495:function(e){"use strict";function t(e,r){"string"==typeof e&&(r=e,e=void 0);var n=[];function o(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),u=new Array(s.length),c=0;c<s.length;)a[c]=s[c],u[c]=e[s[c++]];return a[c]=r,Function.apply(null,a).apply(null,u)}return Function(r)()}for(var l=new Array(arguments.length-1),f=0;f<l.length;)l[f]=arguments[++f];if(f=0,e=e.replace(/%([%dfijs])/g,(function(e,t){var r=l[f++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"})),f!==l.length)throw Error("parameter count mismatch");return n.push(e),o}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+n.join("\n ")+"\n}"}return o.toString=i,o}e.exports=t,t.verbose=!1},3745:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},8551:function(e,t,r){"use strict";e.exports=i;var n=r(5317),o=r(491)("fs");function i(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&o&&o.readFile?o.readFile(e,(function(n,o){return n&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):n?r(n):r(null,t.binary?o:o.toString("utf8"))})):i.xhr(e,t,r):n(i,this,e,t)}i.xhr=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return r(Error("status "+n.status));if(t.binary){var e=n.response;if(!e){e=[];for(var o=0;o<n.responseText.length;++o)e.push(255&n.responseText.charCodeAt(o))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,n.responseText)}},t.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",e),n.send()}},9059:function(e){"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3]}function i(e,n,o){t[0]=e,n[o]=r[3],n[o+1]=r[2],n[o+2]=r[1],n[o+3]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function a(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?o:i,e.writeFloatBE=n?i:o,e.readFloatLE=n?s:a,e.readFloatBE=n?a:s}():function(){function t(e,t,r,n){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},491:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},7460:function(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},8601:function(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},8375:function(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var n,o=null,i=[],s=0;t<r;)(n=e[t++])<128?i[s++]=n:n>191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},r.write=function(e,t,r){for(var n,o,i=r,s=0;s<e.length;++s)(n=e.charCodeAt(s))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},5491:function(e,t,r){var n,o,i;!function(s){"use strict";if(null!=t&&"number"!=typeof t.nodeType)e.exports=s();else if(null!=r.amdO)o=[],void 0===(i="function"==typeof(n=s)?n.apply(t,o):n)||(e.exports=i);else{var a=s(),u="undefined"!=typeof self?self:$.global;"function"!=typeof u.btoa&&(u.btoa=a.btoa),"function"!=typeof u.atob&&(u.atob=a.atob)}}((function(){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidCharacterError",{btoa:function(r){for(var n,o,i=String(r),s=0,a=e,u="";i.charAt(0|s)||(a="=",s%1);u+=a.charAt(63&n>>8-s%1*8)){if((o=i.charCodeAt(s+=3/4))>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|o}return u},atob:function(r){var n=String(r).replace(/[=]+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,s=0,a=0,u="";i=n.charAt(a++);~i&&(o=s%4?64*o+i:i,s++%4)?u+=String.fromCharCode(255&o>>(-2*s&6)):0)i=e.indexOf(i);return u}}}))},3681:function(e,t,r){"use strict";var n,o,i,s,a,u;r.d(t,{C8:function(){return n},aC:function(){return u},c:function(){return i},dd:function(){return a},fI:function(){return o},td:function(){return s}}),function(e){e[e.UNKNOWOPERATION=-1]="UNKNOWOPERATION",e[e.REST_GET_SESSION_LIST=1]="REST_GET_SESSION_LIST",e[e.REST_DEL_SESSION=2]="REST_DEL_SESSION",e[e.REST_GET_HISTORY_MESSAGE=3]="REST_GET_HISTORY_MESSAGE",e[e.REST_OPERATE=10]="REST_OPERATE",e[e.MSYNC_SENDMESSAGE=11]="MSYNC_SENDMESSAGE",e[e.MSYNC_RECALLMESSAGE=12]="MSYNC_RECALLMESSAGE",e[e.MSYNC_OPERATE=20]="MSYNC_OPERATE",e[e.ROSTER_ADD=21]="ROSTER_ADD",e[e.ROSTER_REMOVE=22]="ROSTER_REMOVE",e[e.ROSTER_ACCEPT=23]="ROSTER_ACCEPT",e[e.ROSTER_DECLINE=24]="ROSTER_DECLINE",e[e.ROSTER_BAN=25]="ROSTER_BAN",e[e.ROSTER_ALLOW=26]="ROSTER_ALLOW",e[e.ROSTER_BLACKLIST=27]="ROSTER_BLACKLIST",e[e.ROSTER_CONTACTS=28]="ROSTER_CONTACTS",e[e.ROSTER_OPERATE=30]="ROSTER_OPERATE",e[e.USER_LOGIN=31]="USER_LOGIN",e[e.USER_CREATE=32]="USER_CREATE",e[e.USER_UPDATE_USERINFO=33]="USER_UPDATE_USERINFO",e[e.USER_FETCH_USERINFO=34]="USER_FETCH_USERINFO",e[e.USER_UPDATE_NICK=35]="USER_UPDATE_NICK",e[e.USER_UPLOAD_PUSH_TOKEN=36]="USER_UPLOAD_PUSH_TOKEN",e[e.USER_OPERATE=40]="USER_OPERATE",e[e.GROUP_CREATEGROUP=41]="GROUP_CREATEGROUP",e[e.GROUP_BLOCK_MESSAGE=42]="GROUP_BLOCK_MESSAGE",e[e.GROUP_FETCH_PUBLICGROUPS_WITHCURSOR=43]="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e[e.GROUP_FETCH_USERS_GROUP=44]="GROUP_FETCH_USERS_GROUP",e[e.GROUP_CHANGE_OWNER=45]="GROUP_CHANGE_OWNER",e[e.GROUP_FETCH_SPECIFICATION=46]="GROUP_FETCH_SPECIFICATION",e[e.GROUP_CHANGE_GROUPATTRIBUTE=47]="GROUP_CHANGE_GROUPATTRIBUTE",e[e.GROUP_FETCH_MEMEBERS=48]="GROUP_FETCH_MEMEBERS",e[e.GROUP_GET_ADMIN=49]="GROUP_GET_ADMIN",e[e.GROUP_SET_ADMIN=50]="GROUP_SET_ADMIN",e[e.GROUP_REMOVE_ADMIN=51]="GROUP_REMOVE_ADMIN",e[e.GROUP_DESTOTYGROUP=52]="GROUP_DESTOTYGROUP",e[e.GROUP_LEAVEGROUP=53]="GROUP_LEAVEGROUP",e[e.GROUP_INVITE_TO_GROUP=54]="GROUP_INVITE_TO_GROUP",e[e.GROUP_JOIN_PUBLICGROUP=55]="GROUP_JOIN_PUBLICGROUP",e[e.GROUP_ACCEPT_JOINPUBLICGROUPAPPL=56]="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e[e.GROUP_DECLINE_JOINPUBLICGROUPAPPL=57]="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e[e.GROUP_ACCEPT_INVITATION=58]="GROUP_ACCEPT_INVITATION",e[e.GROUP_DECLINE_INVITATION=59]="GROUP_DECLINE_INVITATION",e[e.GROUP_REMOVE_MEMBER=60]="GROUP_REMOVE_MEMBER",e[e.GROUP_REMOVE_MEMBERS=61]="GROUP_REMOVE_MEMBERS",e[e.GROUP_MUTE_MEMBERS=62]="GROUP_MUTE_MEMBERS",e[e.GROUP_UNMUTE_MEMBERS=63]="GROUP_UNMUTE_MEMBERS",e[e.GROUP_FETCH_MUTES=64]="GROUP_FETCH_MUTES",e[e.GROUP_BLOCK_MEMBER=65]="GROUP_BLOCK_MEMBER",e[e.GROUP_BLOCK_MEMBERS=66]="GROUP_BLOCK_MEMBERS",e[e.GROUP_UNBLOCK_MEMBER=67]="GROUP_UNBLOCK_MEMBER",e[e.GROUP_UNBLOCK_MEMBERS=68]="GROUP_UNBLOCK_MEMBERS",e[e.GROUP_GET_BLOCK_LIST=69]="GROUP_GET_BLOCK_LIST",e[e.GROUP_MUTE_ALLMEMBERS=70]="GROUP_MUTE_ALLMEMBERS",e[e.GROUP_UNMUTE_ALLMEMBERS=71]="GROUP_UNMUTE_ALLMEMBERS",e[e.GROUP_ADD_WHITELIST=72]="GROUP_ADD_WHITELIST",e[e.GROUP_REMOVE_WHITELIST=73]="GROUP_REMOVE_WHITELIST",e[e.GROUP_FETCH_WHITELIST=74]="GROUP_FETCH_WHITELIST",e[e.GROUP_IS_IN_WHITELIST=75]="GROUP_IS_IN_WHITELIST",e[e.GROUP_GET_READ_USERS=76]="GROUP_GET_READ_USERS",e[e.GROUP_FETCH_ANNOUNCEMENT=77]="GROUP_FETCH_ANNOUNCEMENT",e[e.GROUP_UPDATE_ANNOUNCEMENT=78]="GROUP_UPDATE_ANNOUNCEMENT",e[e.GROUP_UPLOAD_SHAREDFILE=79]="GROUP_UPLOAD_SHAREDFILE",e[e.GROUP_DELETE_SHAREDFILE=80]="GROUP_DELETE_SHAREDFILE",e[e.GROUP_FETCH_SHAREDFILE=81]="GROUP_FETCH_SHAREDFILE",e[e.GROUP_DOWNLOAD_SHAREDFILE=82]="GROUP_DOWNLOAD_SHAREDFILE",e[e.GROUP_OPERATE=100]="GROUP_OPERATE",e[e.CHATROOM_FETCH_CHATROOMSWITHPAGE=101]="CHATROOM_FETCH_CHATROOMSWITHPAGE",e[e.CHATROOM_CREATECHATROOM=102]="CHATROOM_CREATECHATROOM",e[e.CHATROOM_DESTORYCHATROOM=103]="CHATROOM_DESTORYCHATROOM",e[e.CHATROOM_FETCH_SPECIFICATION=104]="CHATROOM_FETCH_SPECIFICATION",e[e.CHATROOM_CHANGE_ATTRIBUTE=105]="CHATROOM_CHANGE_ATTRIBUTE",e[e.CHATROOM_REMOVE_MEMBER=106]="CHATROOM_REMOVE_MEMBER",e[e.CHATROOM_REMOVE_MEMBERS=107]="CHATROOM_REMOVE_MEMBERS",e[e.CHATROOM_ADD_MEMBERS=108]="CHATROOM_ADD_MEMBERS",e[e.CHATROOM_JOINCAHTROOM=109]="CHATROOM_JOINCAHTROOM",e[e.CHATROOM_LEAVECAHTROOM=110]="CHATROOM_LEAVECAHTROOM",e[e.CHATROOM_FETCH_MEMBERS=111]="CHATROOM_FETCH_MEMBERS",e[e.CHATROOM_GET_ADMIN=112]="CHATROOM_GET_ADMIN",e[e.CHATROOM_SET_ADMIN=113]="CHATROOM_SET_ADMIN",e[e.CHATROOM_REMOVE_ADMIN=114]="CHATROOM_REMOVE_ADMIN",e[e.CHATROOM_MUTE_USER=115]="CHATROOM_MUTE_USER",e[e.CHATROOM_UNMUTE_USER=116]="CHATROOM_UNMUTE_USER",e[e.CHATROOM_FETCH_MUTES=117]="CHATROOM_FETCH_MUTES",e[e.CHATROOM_BLOCK_USER=118]="CHATROOM_BLOCK_USER",e[e.CHATROOM_BLOCK_USERS=119]="CHATROOM_BLOCK_USERS",e[e.CHATROOM_UNBLOCK_USER=120]="CHATROOM_UNBLOCK_USER",e[e.CHATROOM_UNBLOCK_USERS=121]="CHATROOM_UNBLOCK_USERS",e[e.CHATROOM_FETCH_BANS=122]="CHATROOM_FETCH_BANS",e[e.CHATROOM_MUTE_ALLMEMEBERS=123]="CHATROOM_MUTE_ALLMEMEBERS",e[e.CHATROOM_UNMUTE_ALLMEMEBERS=124]="CHATROOM_UNMUTE_ALLMEMEBERS",e[e.CHATROOM_ADD_WHITELIST=125]="CHATROOM_ADD_WHITELIST",e[e.CHATROOM_REMOVE_WHITELIST=126]="CHATROOM_REMOVE_WHITELIST",e[e.CHATROOM_FETCH_WHITELIST=127]="CHATROOM_FETCH_WHITELIST",e[e.CHATROOM_FETCH_MEMBERIN_WHITELIST=128]="CHATROOM_FETCH_MEMBERIN_WHITELIST",e[e.CHATROOM_FETCH_ANNOUNCEMENT=129]="CHATROOM_FETCH_ANNOUNCEMENT",e[e.CHATROOM_UPDATE_ANNOUNCEMENT=130]="CHATROOM_UPDATE_ANNOUNCEMENT",e[e.CHATROOM_REMOVE_SHARE_FILE=131]="CHATROOM_REMOVE_SHARE_FILE",e[e.CHATROOM_GET_SHARE_FILE_LIST=132]="CHATROOM_GET_SHARE_FILE_LIST",e[e.CHATROOM_UPLOAD_FILE=133]="CHATROOM_UPLOAD_FILE",e[e.CHATROOM_OPERATE=150]="CHATROOM_OPERATE"}(n||(n={})),function(e){e.SDK_INTERNAL="SDK_INTERNAL",e.LOGIN="USER_LOGIN",e.REGISTER="USER_CREATE",e.GET_CHATROOM_LIST="CHATROOM_FETCH_CHATROOMSWITHPAGE",e.CREATE_CHATROOM="CHATROOM_CREATECHATROOM",e.DESTROY_CHATROOM="CHATROOM_DESTORYCHATROOM",e.GET_CHATROOM_DETAIL="CHATROOM_FETCH_SPECIFICATION",e.MODIFY_CHATROOM="CHATROOM_CHANGE_ATTRIBUTE",e.REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBER",e.MULTI_REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBERS",e.ADD_USERS_TO_CHATROOM="CHATROOM_ADD_MEMBERS",e.JOIN_CHATROOM="CHATROOM_JOINCAHTROOM",e.QUIT_CHATROOM="CHATROOM_LEAVECAHTROOM",e.LIST_CHATROOM_MEMBERS="CHATROOM_FETCH_MEMBERS",e.GET_CHATROOM_ADMIN="CHATROOM_GET_ADMIN",e.SET_CHATROOM_ADMIN="CHATROOM_SET_ADMIN",e.REMOVE_CHATROOM_ADMIN="CHATROOM_REMOVE_ADMIN",e.MUTE_CHATROOM_MEMBER="CHATROOM_MUTE_USER",e.REMOVE_MUTE_CHATROOM_MEMBER="CHATROOM_UNMUTE_USER",e.GET_MUTE_CHATROOM_MEMBERS="CHATROOM_FETCH_MUTES",e.SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USER",e.MULTI_SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USERS",e.REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USER",e.MULTI_REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USERS",e.GET_CHATROOM_BLOCK_MEMBERS="CHATROOM_FETCH_BANS",e.DISABLED_CHATROOM_SEND_MSG="CHATROOM_MUTE_ALLMEMEBERS",e.ENABLE_CHATROOM_SEND_MSG="CHATROOM_UNMUTE_ALLMEMEBERS",e.ADD_CHATROOM_WHITE_USERS="CHATROOM_ADD_WHITELIST",e.REMOVE_CHATROOM_WHITE_USERS="CHATROOM_REMOVE_WHITELIST",e.GET_CHATROOM_WHITE_USERS="CHATROOM_FETCH_WHITELIST",e.CHECK_CHATROOM_WHITE_USER="CHATROOM_FETCH_MEMBERIN_WHITELIST",e.GET_CHATROOM_ANN="CHATROOM_FETCH_ANNOUNCEMENT",e.UPDATE_CHATROOM_ANN="CHATROOM_UPDATE_ANNOUNCEMENT",e.DELETE_CHATROOM_FILE="CHATROOM_REMOVE_SHARE_FILE",e.GET_CHATROOM_FILES="CHATROOM_GET_SHARE_FILE_LIST",e.UPLOAD_CHATROOM_FILE="CHATROOM_UPLOAD_FILE",e.GET_CHATROOM_ATTRIBUTES="GET_CHATROOM_ATTRIBUTES",e.SET_CHATROOM_ATTRIBUTE="SET_CHATROOM_ATTRIBUTE",e.SET_CHATROOM_ATTRIBUTES="SET_CHATROOM_ATTRIBUTES",e.REMOVE_CHATROOM_ATTRIBUTE="REMOVE_CHATROOM_ATTRIBUTE",e.REMOVE_CHATROOM_ATTRIBUTES="REMOVE_CHATROOM_ATTRIBUTES",e.CREATE_GROUP="GROUP_CREATEGROUP",e.BLOCK_GROUP="GROUP_BLOCK_MESSAGE",e.LIST_GROUP="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e.GET_USER_GROUP="GROUP_FETCH_USERS_GROUP",e.CHANGE_OWNER="GROUP_CHANGE_OWNER",e.GET_GROUP_INFO="GROUP_FETCH_SPECIFICATION",e.MODIFY_GROUP="GROUP_CHANGE_GROUPATTRIBUTE",e.LIST_GROUP_MEMBER="GROUP_FETCH_MEMEBERS",e.GET_GROUP_ADMIN="GROUP_GET_ADMIN",e.SET_GROUP_ADMIN="GROUP_SET_ADMIN",e.REMOVE_GROUP_ADMIN="GROUP_REMOVE_ADMIN",e.DISSOLVE_GROUP="GROUP_DESTOTYGROUP",e.QUIT_GROUP="GROUP_LEAVEGROUP",e.INVITE_TO_GROUP="GROUP_INVITE_TO_GROUP",e.JOIN_GROUP="GROUP_JOIN_PUBLICGROUP",e.AGREE_JOIN_GROUP="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e.REJECT_JOIN_GROUP="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e.AGREE_INVITE_GROUP="GROUP_ACCEPT_INVITATION",e.REJECT_INVITE_GROUP="GROUP_DECLINE_INVITATION",e.REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBER",e.MULTI_REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBERS",e.MUTE_GROUP_MEMBER="GROUP_MUTE_MEMBERS",e.UNMUTE_GROUP_MEMBER="GROUP_UNMUTE_MEMBERS",e.GET_GROUP_MUTE_LIST="GROUP_FETCH_MUTES",e.BLOCK_GROUP_MEMBER="GROUP_BLOCK_MEMBER",e.BLOCK_GROUP_MEMBERS="GROUP_BLOCK_MEMBERS",e.UNBLOCK_GROUP_MEMBER="GROUP_UNBLOCK_MEMBER",e.UNBLOCK_GROUP_MEMBERS="GROUP_UNBLOCK_MEMBERS",e.GET_GROUP_BLACK_LIST="GROUP_GET_BLOCK_LIST",e.DISABLED_SEND_GROUP_MSG="GROUP_MUTE_ALLMEMBERS",e.ENABLE_SEND_GROUP_MSG="GROUP_UNMUTE_ALLMEMBERS",e.ADD_USERS_TO_GROUP_WHITE="GROUP_ADD_WHITELIST",e.REMOVE_GROUP_WHITE_MEMBER="GROUP_REMOVE_WHITELIST",e.GET_GROUP_WHITE_LIST="GROUP_FETCH_WHITELIST",e.IS_IN_GROUP_WHITE_LIST="GROUP_IS_IN_WHITELIST",e.GET_GROUP_MSG_READ_USER="GROUP_GET_READ_USERS",e.GET_GROUP_ANN="GROUP_FETCH_ANNOUNCEMENT",e.UPDATE_GROUP_ANN="GROUP_UPDATE_ANNOUNCEMENT",e.UPLOAD_GROUP_FILE="GROUP_UPLOAD_SHAREDFILE",e.DELETE_GROUP_FILE="GROUP_DELETE_SHAREDFILE",e.GET_GROUP_FILE_LIST="GROUP_FETCH_SHAREDFILE",e.DOWN_GROUP_FILE="GROUP_DOWNLOAD_SHAREDFILE",e.GET_SESSION_LIST="REST_GET_SESSION_LIST",e.DELETE_SESSION="REST_DEL_SESSION",e.GET_HISTORY_MSG="REST_GET_HISTORY_MESSAGE",e.UPDATE_USER_INFO="USER_UPDATE_USERINFO",e.GET_USER_INFO="USER_FETCH_USERINFO",e.UPDATE_USER_NICK="USER_UPDATE_NICK",e.UPLOAD_PUSH_TOKEN="USER_UPLOAD_PUSH_TOKEN",e.GET_BLACK_LIST="ROSTER_BLACKLIST",e.GET_CONTACTS="ROSTER_CONTACTS",e.add="ROSTER_ADD",e.remove="ROSTER_REMOVE",e.accept="ROSTER_ACCEPT",e.decline="ROSTER_DECLINE",e.ban="ROSTER_BAN",e.allow="ROSTER_ALLOW",e.SEND_MSG="MSYNC_SENDMESSAGE",e.UPLOAD_MSG_ATTACH="UPLOAD_MSG_ATTACH",e.SEND_RECALL_MSG="MSYNC_RECALLMESSAGE"}(o||(o={})),function(e){e.GET_DNS="REST_DNSLIST",e.LOGIN_BY_AGORA_TOKEN="LOGIN_BY_AGORA_TOKEN",e.LOGIN_BY_PWD="LOGIN_BY_PWD",e.RESISTER="REGISTER"}(i||(i={})),function(e){e[e["5G"]=7]="5G",e[e["4G"]=7]="4G",e[e["3G"]=7]="3G",e[e["2G"]=7]="2G",e[e["SLOW-2G"]=7]="SLOW-2G",e[e.WIFI=2]="WIFI",e[e.LAN=1]="LAN",e[e.DISCONNECTED=0]="DISCONNECTED",e[e.NONE=0]="NONE",e[e.UNKNOWN=-1]="UNKNOWN",e[e["WEBIM UNABLE TO GET"]=-2]="WEBIM UNABLE TO GET"}(s||(s={})),function(e){e[e.success=200]="success",e[e.failed=500]="failed"}(a||(a={})),function(e){e[e.web=0]="web",e[e.native=1]="native"}(u||(u={}))},6916:function(e,t,r){"use strict";function n(){console.log&&(console.log.apply?console.log.apply(console,Array.prototype.slice.call(arguments)):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}r.d(t,{kg:function(){return h}}),r(2657),r(7095),r(8668),r(3535),r(1685),r(900),r(2486),r(4261),r(4838),r(8385),r(7693),r(9782),r(1008),r(7461),r(1362),r(5980),r(514),r(4201),r(6864);var o="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent);function i(e){return i="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},i(e)}var s,a=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},u=function(){},c={};!function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(s||(s={}));var l=function(){function e(e,t,r){this.name=e||"defaultLogger",this.currentLevel=0,this.useCookiePersist=!1,this.storageLogLevelKey="loglevel",this.levels=s,this.logMethods=["trace","debug","info","warn","error"],this.methodFactory=r||this.defaultMethodFactory;var n=this._getPersistedLevel();null==n&&(n=null===t?"WARN":t),this.logs=[],this.config={useCache:!1,maxCache:3145728,color:"",background:""},this.logBytes=0,this.setLevel(n,!1,"")}return e.prototype.setConfig=function(e){this.config=e},e.prototype.getLevel=function(){return this.currentLevel},e.prototype.setLevel=function(e,t,r){if("string"==typeof e&&(e=s[e]),void 0===e&&(e=0),!("number"==typeof e&&e>=0&&e<=this.levels.SILENT))throw Error("log.setLevel() called with invalid level: "+e);if(this.currentLevel=e,!1!==t&&this._persistLevel(e),this.replaceLoggingMethods(e,r),"undefined"==typeof console&&e<s.SILENT)throw Error("No console available for logging")},e.prototype.setDefaultLevel=function(e){this._getPersistedLevel()||this.setLevel(e,!1,"")},e.prototype.enableAll=function(e){this.setLevel(this.levels.TRACE,!0,"")},e.prototype.disableAll=function(e){this.setLevel(this.levels.SILENT,!0,"")},e.prototype.getLogs=function(){return this.logs},e.prototype.download=function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var e=this.getLogs().join("\n"),t=new Blob([e],{type:"text/plain;charset=UTF-8"}),r=window.URL.createObjectURL(t),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download","sdklog"),document.body.appendChild(n),n.click()}},e.prototype._bindMethod=function(e,t,r){var n=this,o=e[t],i=this.getTime();if(r)return this._cacheLog;if("function"==typeof o.bind)return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=n.getTime();o.call.apply(o,a([e,"".concat(s," IM SDK [").concat("log"===t?"debug":t,"]: ")],r,!1)),n.logsCallback&&n.logsCallback({time:s,level:"log"===t?"debug":t,logs:r})};try{return Function.prototype.bind.call(o,e,"".concat(i," IM SDK [").concat("log"===t?"debug":t,"]: "))}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}},e.prototype.getTime=function(){var e=new Date;return e.toTimeString().split(" ")[0]+":"+e.getMilliseconds()},e.prototype._cacheLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(new Date).toLocaleString()+": ",n="";e.forEach((function(e){"object"===i(e)?n+=JSON.stringify(e)+" ":n+=e+" "})),this._cacheLogCall(r+n)},e.prototype._cacheLogCall=function(e){var t=f(e),r=this.logBytes+t,n=this.config.maxCache;if(!(t>=n)){if(r<n)this.logBytes+=t;else for(var o=r-n,i=0;i<o;){var s=this.logs.shift();void 0!==s&&(i+=f(s))}this.logs.push(e)}},e.prototype._getPersistedLevel=function(){var e;if("undefined"==typeof window)return 5;if("undefined"===(e=window&&window.localStorage&&window.localStorage[this.storageLogLevelKey])){var t=window.document.cookie,r=t.indexOf(encodeURIComponent(this.storageLogLevelKey));-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}return e||5},e.prototype._persistLevel=function(e){var t=this.logMethods[e]||"SILENT";"undefined"!=typeof window&&(window.localStorage&&(window.localStorage[this.storageLogLevelKey]=t),this.useCookiePersist&&(window.document.cookie=encodeURIComponent(this.storageLogLevelKey)+"="+t+";"))},e.prototype.replaceLoggingMethods=function(e,t){for(var r=0;r<this.logMethods.length;r++){var n=this.logMethods[r];this[n]=r<e?u:this.methodFactory(n,e,t)}this.log=this.debug},e.prototype.defaultMethodFactory=function(e,t,r){return this.realMethod(e)||this.enableLoggingWhenConsoleArrives.apply(this,[e,t,r])},e.prototype.realMethod=function(e){return"debug"===e&&(e="log"),"undefined"!=typeof console&&("trace"===e&&o?n:void 0!==console[e]?this._bindMethod(console,e,this.config.useCache):void 0!==console.log?this._bindMethod(console,"log",this.config.useCache):u)},e.prototype.enableLoggingWhenConsoleArrives=function(e,t,r){return function(){"undefined"!=typeof console&&(this.replaceLoggingMethods.call(this,t,r),this[e].apply(this,arguments))}.bind(this)},e}();function f(e){for(var t=e.length,r=0;r<e.length;r++)e.charCodeAt(r)>255&&t++;return t}var p=new l;p.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");return this};var d="undefined"!=typeof window?window.log:void 0;p.noConflict=function(){return"undefined"!=typeof window&&window.log===p&&(window.log=d),p},p.getLoggers=function(){return c};var h=p},2591:function(e,t,r){"use strict";r.d(t,{Message:function(){return y}});var n=r(7551),o=function(){function e(e){var t=e.id;this.id=t,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.id,type:"read",to:e.to,from:e.from||"",chatType:e.chatType}},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,ackId:e.id,type:"read",to:e.to,from:e.from||"",ackContent:e.ackContent,isChatThread:e.isChatThread}},e}(),i=function(){function e(e){this.id=e.id,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.ackId,type:"delivery",to:e.to,from:e.from||""}},e.create=function(e){return{id:n.P6.getUniqueId(),ackId:e.ackId,type:"delivery",to:e.to,from:e.from||"",isChatThread:e.isChatThread}},e}(),s=(r(9046),r(9782),function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"channel",to:e.to,from:e.from||"",time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"channel",chatType:e.chatType||"singleChat",to:e.to,from:e.from||"",time:Date.now(),isChatThread:e.isChatThread}},e}()),a=(r(3529),function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t,this.value=""}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"txt",to:e.to,msg:e.msg,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),isChatThread:e.isChatThread},this.value=e.msg},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){var t,r;return(null===(t=e.msgConfig)||void 0===t?void 0:t.languages)&&Array.isArray(null===(r=e.msgConfig)||void 0===r?void 0:r.languages),{type:"txt",id:n.P6.getUniqueId(),msg:e.msg,to:e.to,from:e.from||"",chatType:e.chatType,ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}()),u=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"cmd",to:e.to,action:e.action,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"cmd",to:e.to,from:e.from||"",chatType:e.chatType||"singleChat",action:e.action,time:Date.now(),ext:e.ext,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),c=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),l=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),f=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"img",file:e.file,width:e.width,height:e.height,to:e.to,from:e.from||"",roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"img",url:e.url,width:e.width,height:e.height,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,isChatThread:e.isChatThread}},e}(),p=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"audio",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"audio",filename:e.filename,length:e.length,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,file_length:e.file_length,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),d=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),apiUrl:e.apiUrl,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),h=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,to:e.to,from:e.from||"",ext:e.ext,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),y=function(){function e(t,r){return this.type=t,this.id=r||n.P6.getUniqueId(),e.createOldMsg({type:t,id:this.id})}return e.createOldMsg=function(e){switch(e.type){case"read":return new o({type:"read",id:e.id});case"delivery":return new i({type:"delivery",id:e.id});case"channel":return new s({type:"channel",id:e.id});case"txt":return new a({type:"txt",id:e.id});case"cmd":return new u({type:"cmd",id:e.id});case"custom":return new c({type:"custom",id:e.id});case"loc":return new l({type:"loc",id:e.id});case"img":return new f({type:"img",id:e.id});case"audio":return new p({type:"audio",id:e.id});case"video":return new d({type:"video",id:e.id});case"file":return new h({type:"file",id:e.id})}},e.create=function(e){return"txt"!==(t=e).type||"version"in t?function(e){return"img"===e.type&&!("version"in e)}(e)?f.create(e):function(e){return"cmd"===e.type&&!("version"in e)}(e)?u.create(e):function(e){return"file"===e.type&&!("version"in e)}(e)?h.create(e):function(e){return"audio"===e.type&&!("version"in e)}(e)?p.create(e):function(e){return"video"===e.type&&!("version"in e)}(e)?d.create(e):function(e){return"custom"===e.type&&!("version"in e)}(e)?c.create(e):function(e){return"loc"===e.type&&!("version"in e)}(e)?l.create(e):function(e){return"channel"===e.type&&!("version"in e)}(e)?s.create(e):function(e){return"delivery"===e.type&&!("version"in e)}(e)?i.create(e):function(e){return"read"===e.type&&!("version"in e)}(e)?o.create(e):{}:a.create(e);var t},e.prototype.set=function(e){},e}()},3365:function(e,t,r){"use strict";var n;r.d(t,{E:function(){return n}}),function(e){e[e.REQUEST_SUCCESS=0]="REQUEST_SUCCESS",e[e.REQUEST_TIMEOUT=-1]="REQUEST_TIMEOUT",e[e.REQUEST_UNKNOWN=-2]="REQUEST_UNKNOWN",e[e.REQUEST_PARAMETER_ERROR=-3]="REQUEST_PARAMETER_ERROR",e[e.REQUEST_ABORT=-4]="REQUEST_ABORT",e[e.WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR=0]="WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_OPEN_ERROR=1]="WEBIM_CONNCTION_OPEN_ERROR",e[e.WEBIM_CONNCTION_AUTH_ERROR=2]="WEBIM_CONNCTION_AUTH_ERROR",e[e.WEBIM_CONNCTION_OPEN_USERGRID_ERROR=3]="WEBIM_CONNCTION_OPEN_USERGRID_ERROR",e[e.WEBIM_CONNCTION_ATTACH_ERROR=4]="WEBIM_CONNCTION_ATTACH_ERROR",e[e.WEBIM_CONNCTION_ATTACH_USERGRID_ERROR=5]="WEBIM_CONNCTION_ATTACH_USERGRID_ERROR",e[e.WEBIM_CONNCTION_REOPEN_ERROR=6]="WEBIM_CONNCTION_REOPEN_ERROR",e[e.WEBIM_CONNCTION_SERVER_CLOSE_ERROR=7]="WEBIM_CONNCTION_SERVER_CLOSE_ERROR",e[e.WEBIM_CONNCTION_SERVER_ERROR=8]="WEBIM_CONNCTION_SERVER_ERROR",e[e.WEBIM_CONNCTION_IQ_ERROR=9]="WEBIM_CONNCTION_IQ_ERROR",e[e.WEBIM_CONNCTION_PING_ERROR=10]="WEBIM_CONNCTION_PING_ERROR",e[e.WEBIM_CONNCTION_NOTIFYVERSION_ERROR=11]="WEBIM_CONNCTION_NOTIFYVERSION_ERROR",e[e.WEBIM_CONNCTION_GETROSTER_ERROR=12]="WEBIM_CONNCTION_GETROSTER_ERROR",e[e.WEBIM_CONNCTION_CROSSDOMAIN_ERROR=13]="WEBIM_CONNCTION_CROSSDOMAIN_ERROR",e[e.WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES=14]="WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES",e[e.WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR=15]="WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR",e[e.WEBIM_CONNCTION_DISCONNECTED=16]="WEBIM_CONNCTION_DISCONNECTED",e[e.WEBIM_CONNCTION_AJAX_ERROR=17]="WEBIM_CONNCTION_AJAX_ERROR",e[e.WEBIM_CONNCTION_JOINROOM_ERROR=18]="WEBIM_CONNCTION_JOINROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOM_ERROR=19]="WEBIM_CONNCTION_GETROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOMINFO_ERROR=20]="WEBIM_CONNCTION_GETROOMINFO_ERROR",e[e.WEBIM_CONNCTION_GETROOMMEMBER_ERROR=21]="WEBIM_CONNCTION_GETROOMMEMBER_ERROR",e[e.WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR=22]="WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR",e[e.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR=23]="WEBIM_CONNCTION_LOAD_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR=24]="WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_JOINCHATROOM_ERROR=25]="WEBIM_CONNCTION_JOINCHATROOM_ERROR",e[e.WEBIM_CONNCTION_QUITCHATROOM_ERROR=26]="WEBIM_CONNCTION_QUITCHATROOM_ERROR",e[e.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR=27]="WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR=28]="WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR=29]="WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR=30]="WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_CALLBACK_INNER_ERROR=31]="WEBIM_CONNCTION_CALLBACK_INNER_ERROR",e[e.WEBIM_CONNCTION_CLIENT_OFFLINE=32]="WEBIM_CONNCTION_CLIENT_OFFLINE",e[e.WEBIM_CONNCTION_CLIENT_LOGOUT=33]="WEBIM_CONNCTION_CLIENT_LOGOUT",e[e.WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR=34]="WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR",e[e.WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP=35]="WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP=36]="WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_ACCEPT_JOIN_GROUP=37]="WEBIM_CONNECTION_ACCEPT_JOIN_GROUP",e[e.WEBIM_CONNECTION_DECLINE_JOIN_GROUP=38]="WEBIM_CONNECTION_DECLINE_JOIN_GROUP",e[e.WEBIM_CONNECTION_CLOSED=39]="WEBIM_CONNECTION_CLOSED",e[e.WEBIM_CONNECTION_ERROR=40]="WEBIM_CONNECTION_ERROR",e[e.MAX_LIMIT=50]="MAX_LIMIT",e[e.MESSAGE_NOT_FOUND=51]="MESSAGE_NOT_FOUND",e[e.NO_PERMISSION=52]="NO_PERMISSION",e[e.OPERATION_UNSUPPORTED=53]="OPERATION_UNSUPPORTED",e[e.OPERATION_NOT_ALLOWED=54]="OPERATION_NOT_ALLOWED",e[e.WEBIM_UPLOADFILE_BROWSER_ERROR=100]="WEBIM_UPLOADFILE_BROWSER_ERROR",e[e.WEBIM_UPLOADFILE_ERROR=101]="WEBIM_UPLOADFILE_ERROR",e[e.WEBIM_UPLOADFILE_NO_LOGIN=102]="WEBIM_UPLOADFILE_NO_LOGIN",e[e.WEBIM_UPLOADFILE_NO_FILE=103]="WEBIM_UPLOADFILE_NO_FILE",e[e.WEBIM_DOWNLOADFILE_ERROR=200]="WEBIM_DOWNLOADFILE_ERROR",e[e.WEBIM_DOWNLOADFILE_NO_LOGIN=201]="WEBIM_DOWNLOADFILE_NO_LOGIN",e[e.WEBIM_DOWNLOADFILE_BROWSER_ERROR=202]="WEBIM_DOWNLOADFILE_BROWSER_ERROR",e[e.USER_NOT_FOUND=204]="USER_NOT_FOUND",e[e.WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE=206]="WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE",e[e.WEBIM_CONNCTION_USER_REMOVED=207]="WEBIM_CONNCTION_USER_REMOVED",e[e.WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD=216]="WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD",e[e.WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE=217]="WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE",e[e.USER_MUTED_BY_ADMIN=219]="USER_MUTED_BY_ADMIN",e[e.USER_NOT_FRIEND=221]="USER_NOT_FRIEND",e[e.WEBIM_MESSAGE_REC_TEXT=300]="WEBIM_MESSAGE_REC_TEXT",e[e.WEBIM_MESSAGE_REC_TEXT_ERROR=301]="WEBIM_MESSAGE_REC_TEXT_ERROR",e[e.WEBIM_MESSAGE_REC_EMOTION=302]="WEBIM_MESSAGE_REC_EMOTION",e[e.WEBIM_MESSAGE_REC_PHOTO=303]="WEBIM_MESSAGE_REC_PHOTO",e[e.WEBIM_MESSAGE_REC_AUDIO=304]="WEBIM_MESSAGE_REC_AUDIO",e[e.WEBIM_MESSAGE_REC_AUDIO_FILE=305]="WEBIM_MESSAGE_REC_AUDIO_FILE",e[e.WEBIM_MESSAGE_REC_VEDIO=306]="WEBIM_MESSAGE_REC_VEDIO",e[e.WEBIM_MESSAGE_REC_VEDIO_FILE=307]="WEBIM_MESSAGE_REC_VEDIO_FILE",e[e.WEBIM_MESSAGE_REC_FILE=308]="WEBIM_MESSAGE_REC_FILE",e[e.WEBIM_MESSAGE_SED_TEXT=309]="WEBIM_MESSAGE_SED_TEXT",e[e.WEBIM_MESSAGE_SED_EMOTION=310]="WEBIM_MESSAGE_SED_EMOTION",e[e.WEBIM_MESSAGE_SED_PHOTO=311]="WEBIM_MESSAGE_SED_PHOTO",e[e.WEBIM_MESSAGE_SED_AUDIO=312]="WEBIM_MESSAGE_SED_AUDIO",e[e.WEBIM_MESSAGE_SED_AUDIO_FILE=313]="WEBIM_MESSAGE_SED_AUDIO_FILE",e[e.WEBIM_MESSAGE_SED_VEDIO=314]="WEBIM_MESSAGE_SED_VEDIO",e[e.WEBIM_MESSAGE_SED_VEDIO_FILE=315]="WEBIM_MESSAGE_SED_VEDIO_FILE",e[e.WEBIM_MESSAGE_SED_FILE=316]="WEBIM_MESSAGE_SED_FILE",e[e.WEBIM_MESSAGE_SED_ERROR=317]="WEBIM_MESSAGE_SED_ERROR",e[e.STATUS_INIT=400]="STATUS_INIT",e[e.STATUS_DOLOGIN_USERGRID=401]="STATUS_DOLOGIN_USERGRID",e[e.STATUS_DOLOGIN_IM=402]="STATUS_DOLOGIN_IM",e[e.STATUS_OPENED=403]="STATUS_OPENED",e[e.STATUS_CLOSING=404]="STATUS_CLOSING",e[e.STATUS_CLOSED=405]="STATUS_CLOSED",e[e.STATUS_ERROR=406]="STATUS_ERROR",e[e.SERVER_BUSY=500]="SERVER_BUSY",e[e.MESSAGE_INCLUDE_ILLEGAL_CONTENT=501]="MESSAGE_INCLUDE_ILLEGAL_CONTENT",e[e.MESSAGE_EXTERNAL_LOGIC_BLOCKED=502]="MESSAGE_EXTERNAL_LOGIC_BLOCKED",e[e.SERVER_UNKNOWN_ERROR=503]="SERVER_UNKNOWN_ERROR",e[e.MESSAGE_RECALL_TIME_LIMIT=504]="MESSAGE_RECALL_TIME_LIMIT",e[e.SERVICE_NOT_ENABLED=505]="SERVICE_NOT_ENABLED",e[e.SERVICE_NOT_ALLOW_MESSAGING=506]="SERVICE_NOT_ALLOW_MESSAGING",e[e.SERVICE_NOT_ALLOW_MESSAGING_MUTE=507]="SERVICE_NOT_ALLOW_MESSAGING_MUTE",e[e.MESSAGE_MODERATION_BLOCKED=508]="MESSAGE_MODERATION_BLOCKED",e[e.MESSAGE_CURRENT_LIMITING=509]="MESSAGE_CURRENT_LIMITING",e[e.GROUP_NOT_EXIST=605]="GROUP_NOT_EXIST",e[e.GROUP_NOT_JOINED=602]="GROUP_NOT_JOINED",e[e.GROUP_MEMBERS_FULL=606]="GROUP_MEMBERS_FULL",e[e.PERMISSION_DENIED=603]="PERMISSION_DENIED",e[e.WEBIM_LOAD_MSG_ERROR=604]="WEBIM_LOAD_MSG_ERROR",e[e.GROUP_ALREADY_JOINED=601]="GROUP_ALREADY_JOINED",e[e.GROUP_MEMBERS_LIMIT=607]="GROUP_MEMBERS_LIMIT",e[e.GROUP_IS_DISABLED=608]="GROUP_IS_DISABLED",e[e.REST_PARAMS_STATUS=700]="REST_PARAMS_STATUS",e[e.CHATROOM_NOT_JOINED=702]="CHATROOM_NOT_JOINED",e[e.CHATROOM_MEMBERS_FULL=704]="CHATROOM_MEMBERS_FULL",e[e.CHATROOM_NOT_EXIST=705]="CHATROOM_NOT_EXIST",e[e.SDK_RUNTIME_ERROR=999]="SDK_RUNTIME_ERROR",e[e.PRESENCE_PARAM_EXCEED=1100]="PRESENCE_PARAM_EXCEED",e[e.REACTION_ALREADY_ADDED=1101]="REACTION_ALREADY_ADDED",e[e.REACTION_CREATING=1102]="REACTION_CREATING",e[e.REACTION_OPERATION_IS_ILLEGAL=1103]="REACTION_OPERATION_IS_ILLEGAL",e[e.TRANSLATION_NOT_VALID=1200]="TRANSLATION_NOT_VALID",e[e.TRANSLATION_TEXT_TOO_LONG=1201]="TRANSLATION_TEXT_TOO_LONG",e[e.TRANSLATION_FAILED=1204]="TRANSLATION_FAILED",e[e.THREAD_NOT_EXIST=1300]="THREAD_NOT_EXIST",e[e.THREAD_ALREADY_EXIST=1301]="THREAD_ALREADY_EXIST"}(n||(n={}))},7551:function(e,t,r){"use strict";r.d(t,{iw:function(){return n},Ki:function(){return f},P4:function(){return p},P6:function(){return E}}),r(8327),r(900),r(3814),r(9782),r(9889),r(2657),r(5980),r(8453),r(937),r(1685),r(2486),r(4261),r(4838),r(8385),r(8668),r(1655),r(1008),r(7461),r(6619);var n,o=r(3365),i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},s=r(3681),a=r(6916),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)},c=function(){};function l(e){return Object.prototype.toString.call(e).slice(8,-1)}function f(){this.autoIncrement?this.autoIncrement++:this.autoIncrement=1;var e=new Date,t=new Date(2010,1,1);return(e.getTime()-t.getTime()+this.autoIncrement).toString()}function p(e,t){var r=d();if(r.platform!==n.WEB){var o=r.global,i=function(r){r.isConnected?e():t()};o.offNetworkStatusChange&&o.offNetworkStatusChange(i),o.onNetworkStatusChange&&o.onNetworkStatusChange(i)}else"undefined"!=typeof addEventListener&&(window.addEventListener("online",e),window.addEventListener("offline",t))}function d(){return"undefined"!=typeof swan&&h(swan)?{platform:n.BAIDU,global:swan}:"undefined"!=typeof tt&&h(tt)?{platform:n.TT,global:tt}:"undefined"!=typeof dd&&h(dd)?{platform:n.DD,global:dd}:"undefined"!=typeof my&&h(my)?{platform:n.ZFB,global:my}:"undefined"!=typeof wx&&h(wx)?{platform:n.WX,global:wx}:"undefined"!=typeof uni&&h(uni)?{platform:n.UNI,global:uni}:"undefined"!=typeof window&&window.WebSocket?{platform:n.WEB,global:window}:{platform:n.NODE,global:r.g||{}}}function h(e){for(var t=["canIUse","getSystemInfo"],r=0,n=t.length;r<n;r++)if(!e[t[r]])return!1;return!0}function y(e){void 0===e&&(e={});var t=e.elapse,r=void 0===t?0:t,n=e.httpCode,o=void 0===n?0:n,i=e.errDesc;return{requestElapse:r,code:o,codeDesc:void 0===i?"":i}}!function(e){e.WEB="web",e.WX="wx",e.ZFB="zfb",e.DD="dd",e.TT="tt",e.BAIDU="baidu",e.QUICK_APP="quick_app",e.UNI="uni",e.NODE="node"}(n||(n={}));var E={autoIncrement:0,ajaxUnconventionalErrorTimes:0,ajax:function(e,t){var r,n=this;return new Promise((function(t,n){var s=e.dataType||"text",u=e.success||c,l=e.error||c,f=new XMLHttpRequest;f.ontimeout=function(){n({type:o.E.REQUEST_TIMEOUT,message:"Request Timeout",errorType:"timeout_error",xhr:f})},f.onerror=function(){n({type:o.E.REQUEST_UNKNOWN,message:"Request Unknow Error",errorType:"onerror",xhr:f})},f.onabort=function(){n({type:o.E.REQUEST_ABORT,message:"Request Abort",errorType:"onabort",xhr:f})},f.onreadystatechange=function(){if(4===f.readyState){var e=(new Date).getTime()-r,c=f.status||0,p={elapse:e,httpCode:c};if(200===c){E.ajaxUnconventionalErrorTimes=0;try{switch(s){case"text":return u(f.responseText),void t(f.responseText);case"json":var d=JSON.parse(f.responseText);return d.extraInfo=p,u(d),void t(d);case"xml":return f.responseXML&&f.responseXML.documentElement?(u(f.responseXML.documentElement),void t(f.responseXML.documentElement)):(l({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}),void n({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}));default:l({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"}),n({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"})}return t(f.response||f.responseText),void u(f.response||f.responseText,f)}catch(e){n(e)}return}[400,401,403,404,429,500,503].includes(c)||(a.kg.debug("rest api request fail status:",c),E.ajaxUnconventionalErrorTimes++),function(e,t,r,n){var s,a,u,c,l,f,p,d,h,y,E,_,v,m,g,O,T,R,I,C,N=e.response;N&&"string"==typeof N&&(N=JSON.parse(N));var b=e.status,S={elapse:n,httpCode:b,errDesc:null==N?void 0:N.error_description};if(400===b){if(40002===N.error_code)return void t({type:o.E.THREAD_ALREADY_EXIST,message:null==N?void 0:N.error_description,extraInfo:S});if(40009===N.error_code)return void t({type:o.E.OPERATION_UNSUPPORTED,message:null==N?void 0:N.error_description,extraInfo:S});if(60010===N.error_code)return void t({type:o.E.NO_PERMISSION,message:null==N?void 0:N.desc});if(60011===N.error_code)return void t({type:o.E.CHATROOM_NOT_JOINED,message:null==N?void 0:N.desc});if(60012===N.error_code)return void t({type:o.E.MAX_LIMIT,message:null==N?void 0:N.desc});if(null===(s=N.error_description)||void 0===s?void 0:s.includes("are not members of this group"))return(null===(a=e.responseURL)||void 0===a?void 0:a.includes("chatgroups"))?t({type:o.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):t({type:o.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}),void r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:S});if("the app not open presence"===(null==N?void 0:N.result))return void t({type:o.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.result,extraInfo:S});switch(null==N?void 0:N.error_description){case"the user is already operation this message":t({type:o.E.REACTION_ALREADY_ADDED,message:null==N?void 0:N.error_description,extraInfo:S});break;case"The quantity has exceeded the limit!":t({type:o.E.MAX_LIMIT,message:null==N?void 0:N.error_description,extraInfo:S});break;case"The user not in this group!":t({type:o.E.GROUP_NOT_JOINED,message:null==N?void 0:N.error_description,extraInfo:S});break;case"the user operation is illegal!":t({type:o.E.REACTION_OPERATION_IS_ILLEGAL,message:null==N?void 0:N.error_description,extraInfo:S});break;case"this appKey is not open reaction service!":t({type:o.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.error_description,extraInfo:S});break;case"this message is creating reaction, please try again.":t({type:o.E.REACTION_CREATING,message:null==N?void 0:N.error_description,extraInfo:S});break;case"groupId can not be null!":t({type:o.E.GROUP_NOT_EXIST,message:null==N?void 0:N.error_description,extraInfo:S});break;case"The input text is too long.":t({type:o.E.TRANSLATION_TEXT_TOO_LONG,message:null==N?void 0:N.error_description,extraInfo:S});break;case"The target language is not valid.":t({type:o.E.TRANSLATION_NOT_VALID,message:null==N?void 0:N.error_description,extraInfo:S});break;case"report failed, get message by id failed":t({type:o.E.MESSAGE_NOT_FOUND,message:null==N?void 0:N.error_description,extraInfo:S});break;case"ext is too big ":t({type:o.E.PRESENCE_PARAM_EXCEED,message:null==N?void 0:N.error_description,extraInfo:S});break;case"Request body not readable.Please check content type is correct!":t({type:o.E.REQUEST_PARAMETER_ERROR,message:null==N?void 0:N.error_description,extraInfo:S});break;default:t({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:S}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==N?void 0:N.error_description,data:e.responseText,extraInfo:S})}}else if(401===b)40001===N.error_code?t({type:o.E.NO_PERMISSION,message:null==N?void 0:N.error_description,extraInfo:S}):(r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S}),t({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S}));else if(403===b)4e4===N.error_code?t({type:o.E.SERVICE_NOT_ENABLED,message:null==N?void 0:N.error_description,extraInfo:S}):40003===N.error_code||40004===N.error_code?t({type:o.E.THREAD_ALREADY_EXIST,message:null==N?void 0:N.error_description,extraInfo:S}):(40005===N.error_code||40007===N.error_code)&&t({type:o.E.MAX_LIMIT,message:null==N?void 0:N.error_description,extraInfo:S}),"group member list is full!"===N.error_description?(null===(u=e.responseURL)||void 0===u?void 0:u.includes("chatgroups"))?t({type:o.E.GROUP_MEMBERS_FULL,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):t({type:o.E.CHATROOM_MEMBERS_FULL,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):(null===(c=N.error_description)||void 0===c?void 0:c.includes(N.error_description.includes("already in group")))?(null===(l=e.responseURL)||void 0===l?void 0:l.includes("chatgroups"))&&t({type:o.E.GROUP_ALREADY_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):(null===(f=N.error_description)||void 0===f?void 0:f.includes("are not members of this group"))?(null===(p=e.responseURL)||void 0===p?void 0:p.includes("chatgroups"))?t({type:o.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):t({type:o.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):(null===(d=N.error_description)||void 0===d?void 0:d.includes("service not open!"))||(null===(h=N.error_description)||void 0===h?void 0:h.includes("message report not open"))||(null===(y=N.error_description)||void 0===y?void 0:y.includes("messageroaming function not open"))?t({type:o.E.SERVICE_NOT_ENABLED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):(null===(E=N.error_description)||void 0===E?void 0:E.includes("members size is greater than max user size !"))?t({type:o.E.GROUP_MEMBERS_LIMIT,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):(null===(_=N.error_description)||void 0===_?void 0:_.includes("can not operate this group, reason: group is disabled"))?t({type:o.E.GROUP_IS_DISABLED,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):t({type:o.E.PERMISSION_DENIED,data:e.response||e.responseText,message:"permission denied",extraInfo:i(i({},S),{errDesc:"permission denied"})}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S});else if(404===b)40011===N.error_code?t({type:o.E.THREAD_NOT_EXIST,message:null==N?void 0:N.error_description,extraInfo:S}):40012===N.error_code&&t({type:o.E.NO_PERMISSION,message:null==N?void 0:N.error_description,extraInfo:S}),(null===(v=N.error_description)||void 0===v?void 0:v.includes("do not find this group"))||(null===(m=N.error_description)||void 0===m?void 0:m.includes("does not exist"))?(null===(g=e.responseURL)||void 0===g?void 0:g.includes("chatgroups"))?t({type:o.E.GROUP_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:i(i({},S),{errDesc:"The chat room dose not exist."})}):t({type:o.E.CHATROOM_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:i(i({},S),{errDesc:"The chat room dose not exist."})}):(null===(O=N.error_description)||void 0===O?void 0:O.includes("username"))&&(null===(T=N.error_description)||void 0===T?void 0:T.includes("doesn't exist!'"))||(null===(R=N.error_description)||void 0===R?void 0:R.includes("user not found"))?t({type:o.E.USER_NOT_FOUND,data:e.response||e.responseText,message:N.error_description,extraInfo:S}):t({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:S}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:S});else if(429===b||503===b){if(null===(I=N.error_description)||void 0===I?void 0:I.includes("The request has reached the maximum limit"))return void t({type:o.E.MAX_LIMIT,message:e.responseText,extraInfo:S});t({type:o.E.SERVER_BUSY,data:e.response||e.responseText,message:"Server is busy.",extraInfo:i(i({},S),{errDesc:"Server is busy."})}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"Server is busy.",extraInfo:i(i({},S),{errDesc:"Server is busy."})})}else if(500===b){if((40006===N.error_code||40008===N.error_code||40010===N.error_code)&&t({type:o.E.SERVER_UNKNOWN_ERROR,message:null==N?void 0:N.error_description,extraInfo:S}),null===(C=N.error_description)||void 0===C?void 0:C.includes("translte failed!"))return void t({type:o.E.TRANSLATION_FAILED,message:e.responseText,extraInfo:S});t({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:S}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:S})}else t({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:i(i({},S),{errDesc:"ajax error"})}),r({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:i(i({},S),{errDesc:"ajax error"})})}(f,n,l,e)}0===f.readyState&&(l({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}),n({type:o.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}))},e.responseType&&f.responseType&&(f.responseType=e.responseType),e.mimeType&&f.overrideMimeType(e.mimeType);var p=e.type||"POST",d=e.data||null,h="";if("get"===p.toLowerCase()&&d){for(var y in d)d.hasOwnProperty(y)&&(h+=y+"="+d[y]+"&");h=h?h.slice(0,-1):h,e.url+=(e.url.indexOf("?")>0?"&":"?")+(h?h+"&":h)+"_v="+(new Date).getTime(),d=null,h=""}r=(new Date).getTime(),f.open(p,e.url);var _=e.headers||{};for(var v in _["Content-Type"]||(_["Content-Type"]="application/json"),_)_.hasOwnProperty(v)&&f.setRequestHeader(v,_[v]);f.send(d)})).then((function(r){return n.dataReport&&t&&t!==s.fI.SDK_INTERNAL&&n.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:u({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},y(r.extraInfo))}),t!==s.fI.SDK_INTERNAL&&delete r.extraInfo,"Object"===l(r)?u(u({},r),{type:o.E.REQUEST_SUCCESS}):{data:r,type:o.E.REQUEST_SUCCESS}})).catch((function(r){throw n.dataReport&&t&&t!==s.fI.SDK_INTERNAL&&n.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:u({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},y(r.extraInfo))}),t!==s.fI.SDK_INTERNAL&&delete r.extraInfo,r}))},getUniqueId:f,getFileUrl:function(e){var t={url:"",filename:"",filetype:"",data:{}},r="string"==typeof e?document.getElementById(e):e;if(window.URL.createObjectURL){if(!r.files)throw Error("this is not HTMLInputElement");var n=r.files;if(n.length>0){var o=n.item(0);t.data=o,t.url=window.URL.createObjectURL(o),t.filename=(null==o?void 0:o.name)||""}}else{if("string"!=typeof e)throw Error("in IE fileInputId must be string");o=document.getElementById(e).value,t.url=o;var i=o.lastIndexOf("/"),s=o.lastIndexOf("\\"),a=Math.max(i,s);t.filename=a<0?o:o.substring(a+1)}var u=t.filename.lastIndexOf(".");return-1!==u&&(t.filetype=t.filename.substring(u+1).toLowerCase()),t},uploadFile:function(e,t){var r,n,i=this,a=(new Date).getTime(),u=e.accessToken;if(u){var l=e.appKey,f=[],p="",d="";if(l&&(p=(f=l.split("#"))[0],d=f[1]),p||d){var h=e.apiUrl,y=e.uploadUrl||h+"/"+p+"/"+d+"/chatfiles";if((null===(n=null===(r=null==e?void 0:e.file)||void 0===r?void 0:r.data)||void 0===n?void 0:n.size)<=0)e.onFileUploadError&&e.onFileUploadError({type:o.E.WEBIM_UPLOADFILE_ERROR,message:"fileSize must be greater than 0"});else{var E=new XMLHttpRequest;E.upload&&E.upload.addEventListener("progress",e.onFileUploadProgress||c,!1),E.addEventListener("abort",e.onFileUploadCanceled||c,!1),E.addEventListener("error",(function(e){v({type:o.E.WEBIM_UPLOADFILE_ERROR,data:E})}),!1),E.addEventListener("load",(function(r){try{var n=JSON.parse(E.responseText);if(400===E.status)return v({type:o.E.WEBIM_UPLOADFILE_ERROR,data:n}),!1;try{!function(r){var n=(new Date).getTime()-a;i.dataReport&&t&&[s.fI.UPLOAD_MSG_ATTACH,s.fI.UPLOAD_CHATROOM_FILE,s.fI.UPLOAD_GROUP_FILE].includes(t)&&i.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:(null==r?void 0:r.error)?0:1,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:y,code:E.status,codeDesc:(null==r?void 0:r.error_description)||""}}),e.onFileUploadComplete&&e.onFileUploadComplete(r)}(n)}catch(r){v({type:o.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:r})}}catch(r){v({type:o.E.WEBIM_UPLOADFILE_ERROR,data:E.responseText})}}),!1),E.open("POST",y),E.setRequestHeader("restrict-access","true"),E.setRequestHeader("Accept","*/*"),E.setRequestHeader("Authorization","Bearer "+u);var _=new FormData;_.append("file",e.file.data),E.send(_)}}else e.onFileUploadError&&e.onFileUploadError({type:o.E.WEBIM_UPLOADFILE_ERROR,message:"AppKey illegal"})}else e.onFileUploadError&&e.onFileUploadError({type:o.E.WEBIM_UPLOADFILE_NO_LOGIN,message:"AccessToken cannot be empty"});function v(r){var n=(new Date).getTime()-a;i.dataReport&&t&&[s.fI.UPLOAD_MSG_ATTACH,s.fI.UPLOAD_CHATROOM_FILE,s.fI.UPLOAD_GROUP_FILE].includes(t)&&i.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:y,code:(null==E?void 0:E.status)||0,codeDesc:"upload file error"}}),e.onFileUploadError&&e.onFileUploadError(r)}},flow:function(e){for(var t=e.length,r=t;r--;)if("function"!=typeof e[r])throw new TypeError("Expected a function");return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var o=0,i=t?e[o].apply(this,r):r[0];++o<t;)i=e[o].call(this,i);return i}},listenNetwork:p,getEnvInfo:d,wxRequest:function(e,t){var r=this;return new Promise((function(t,r){var n=e.success||c,o=e.error||c,i=e.type||"POST",s=e.data||null,a="",u=(new Date).getTime(),l=E.getEnvInfo();if("get"===i.toLowerCase()&&s){for(var f in s)s.hasOwnProperty(f)&&(a+=f+"="+s[f]+"&");a=a?a.slice(0,-1):a,e.url+=(e.url.indexOf("?")>0?"&":"?")+(a?a+"&":a)+"_v="+(new Date).getTime(),s=null,a=""}var p={url:e.url,data:e.data,method:i,headers:{},success:function(e){var i,s,a,c,l,f={elapse:(new Date).getTime()-u,httpCode:Number((null===(i=e.statusCode)||void 0===i?void 0:i.toString())||(null===(s=e.status)||void 0===s?void 0:s.toString())),errDesc:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.error_description)||""};if("200"===(null===(c=e.statusCode)||void 0===c?void 0:c.toString())||"200"===(null===(l=e.status)||void 0===l?void 0:l.toString())){e.data.extraInfo=f;var p=e.data;n(p),t(p)}else e.extraInfo=f,o(p=e),r(p)},complete:function(){},fail:function(e){o(e),r(e)}};if("zfb"===l.platform||"dd"===l.platform?p.headers=e.headers:p.header=e.headers,"dd"===l.platform)return dd.httpRequest(p);l.global.request(p)})).then((function(n){return r.dataReport&&t&&t!==s.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:u({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},y(n.extraInfo))}),t!==s.fI.SDK_INTERNAL&&delete n.extraInfo,"Object"===l(n)?u(u({},n),{type:o.E.REQUEST_SUCCESS}):{data:n,type:o.E.REQUEST_SUCCESS}})).catch((function(n){throw r.dataReport&&t&&t!==s.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:u({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},y(n.extraInfo))}),t!==s.fI.SDK_INTERNAL&&delete n.extraInfo,n}))},parseDownloadResponse:function(e){if(!window||!window.URL)throw Error("parseDownloadResponse can be used in broswer only");return e&&e.type&&"application/json"===e.type||0>Object.prototype.toString.call(e).indexOf("Blob")?this.url+"?token=":window.URL.createObjectURL(e)},download:function(e,t){e.onFileDownloadComplete=e.onFileDownloadComplete||c,e.onFileDownloadError=e.onFileDownloadError||c;var r=(new Date).getTime(),n=new XMLHttpRequest,i=this;n.addEventListener("load",(function(o){var a=(new Date).getTime()-r;i.dataReport&&t&&t===s.fI.DOWN_GROUP_FILE&&i.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:200===n.status?1:0,requestMethod:"POST",requestName:t,requestElapse:a,requestUrl:null==e?void 0:e.url,code:n.status,codeDesc:200===n.status?"":"download file error"}}),e.onFileDownloadComplete&&e.onFileDownloadComplete(n.response)}),!1),n.addEventListener("error",(function(a){var u=(new Date).getTime()-r;i.dataReport&&t&&t===s.fI.DOWN_GROUP_FILE&&i.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:u,requestUrl:null==e?void 0:e.url,code:(null==n?void 0:n.status)||0,codeDesc:"download file error"}}),e.onFileDownloadError&&e.onFileDownloadError({type:o.E.WEBIM_DOWNLOADFILE_ERROR,id:e.id,xhr:n})}),!1);var a=e.method||"GET",u=e.responseType||"blob",l=e.mimeType||"text/plain; charset=x-user-defined";n.open(a,e.url),"undefined"!=typeof Blob?n.responseType=u:n.overrideMimeType(l);var f={"X-Requested-With":"XMLHttpRequest",Accept:"application/octet-stream","share-secret":e.secret,Authorization:"Bearer "+this.context.accessToken},p=e.headers||{};for(var d in p)f[d]=p[d];for(var d in f)f[d]&&n.setRequestHeader(d,f[d]);n.send(null)},parseNotify:function(e){for(var t="",r=0;r<e.length;r++)t+="%"+e[r].toString(16);return JSON.parse(decodeURIComponent(t))},getExtraData:y}},9181:function(e,t,r){var n=r(1045),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},7345:function(e,t,r){var n=r(8297),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},2091:function(e,t,r){var n=r(1045),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},4651:function(e,t,r){var n=r(9140),o=r(5565),i=r(4317).f,s=n("unscopables"),a=Array.prototype;null==a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},3025:function(e,t,r){"use strict";var n=r(7957).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9112:function(e,t,r){var n=r(8931),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},1571:function(e,t,r){var n=r(7809),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},6280:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},9042:function(e,t,r){var n=r(4141);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5861:function(e,t,r){"use strict";var n,o,i,s=r(6280),a=r(2931),u=r(2383),c=r(1045),l=r(7809),f=r(1163),p=r(6837),d=r(7632),h=r(6493),y=r(4405),E=r(4317).f,_=r(8931),v=r(2573),m=r(7046),g=r(9140),O=r(858),T=r(7417),R=T.enforce,I=T.get,C=u.Int8Array,N=C&&C.prototype,b=u.Uint8ClampedArray,S=b&&b.prototype,A=C&&v(C),M=N&&v(N),w=Object.prototype,U=u.TypeError,x=g("toStringTag"),L=O("TYPED_ARRAY_TAG"),P=s&&!!m&&"Opera"!==p(u.opera),k=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=v(e);if(l(t)){var r=I(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:B(t)}},G=function(e){if(!l(e))return!1;var t=p(e);return f(D,t)||f(H,t)};for(n in D)(i=(o=u[n])&&o.prototype)?R(i).TypedArrayConstructor=o:P=!1;for(n in H)(i=(o=u[n])&&o.prototype)&&(R(i).TypedArrayConstructor=o);if((!P||!c(A)||A===Function.prototype)&&(A=function(){throw U("Incorrect invocation")},P))for(n in D)u[n]&&m(u[n],A);if((!P||!M||M===w)&&(M=A.prototype,P))for(n in D)u[n]&&m(u[n].prototype,M);if(P&&v(S)!==M&&m(S,M),a&&!f(M,x))for(n in k=!0,E(M,x,{get:function(){return l(this)?this[L]:void 0}}),D)u[n]&&h(u[n],L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:k&&L,aTypedArray:function(e){if(G(e))return e;throw U("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!m||_(A,e)))return e;throw U(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var o in D){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}M[e]&&!r||y(M,e,r?t:P&&N[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(a){if(m){if(r)for(n in D)if((o=u[n])&&f(o,e))try{delete o[e]}catch(e){}if(A[e]&&!r)return;try{return y(A,e,r?t:P&&A[e]||t)}catch(e){}}for(n in D)!(o=u[n])||o[e]&&!r||y(o,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(D,t)||f(H,t)},isTypedArray:G,TypedArray:A,TypedArrayPrototype:M}},4061:function(e,t,r){"use strict";var n=r(2383),o=r(9720),i=r(2931),s=r(6280),a=r(9684),u=r(6493),c=r(4766),l=r(4141),f=r(9112),p=r(152),d=r(2844),h=r(3577),y=r(9074),E=r(2573),_=r(7046),v=r(1242).f,m=r(4317).f,g=r(9732),O=r(9730),T=r(5125),R=r(7417),I=a.PROPER,C=a.CONFIGURABLE,N=R.get,b=R.set,S="ArrayBuffer",A="Wrong index",M=n.ArrayBuffer,w=M,U=w&&w.prototype,x=n.DataView,L=x&&x.prototype,P=Object.prototype,k=n.Array,D=n.RangeError,H=o(g),B=o([].reverse),G=y.pack,F=y.unpack,j=function(e){return[255&e]},W=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return G(e,23,4)},J=function(e){return G(e,52,8)},z=function(e,t){m(e.prototype,t,{get:function(){return N(this)[t]}})},X=function(e,t,r,n){var o=h(r),i=N(e);if(o+t>i.byteLength)throw D(A);var s=N(i.buffer).bytes,a=o+i.byteOffset,u=O(s,a,a+t);return n?u:B(u)},Y=function(e,t,r,n,o,i){var s=h(r),a=N(e);if(s+t>a.byteLength)throw D(A);for(var u=N(a.buffer).bytes,c=s+a.byteOffset,l=n(+o),f=0;f<t;f++)u[c+f]=l[i?f:t-f-1]};if(s){var $=I&&M.name!==S;if(l((function(){M(1)}))&&l((function(){new M(-1)}))&&!l((function(){return new M,new M(1.5),new M(NaN),1!=M.length||$&&!C})))$&&C&&u(M,"name",S);else{(w=function(e){return f(this,U),new M(h(e))}).prototype=U;for(var Q,Z=v(M),ee=0;Z.length>ee;)(Q=Z[ee++])in w||u(w,Q,M[Q]);U.constructor=w}_&&E(L)!==P&&_(L,P);var te=new x(new w(2)),re=o(L.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(L,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else U=(w=function(e){f(this,U);var t=h(e);b(this,{bytes:H(k(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,L=(x=function(e,t,r){f(this,L),f(e,U);var n=N(e).byteLength,o=p(t);if(o<0||o>n)throw D("Wrong offset");if(o+(r=void 0===r?n-o:d(r))>n)throw D("Wrong length");b(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,i&&(z(w,"byteLength"),z(x,"buffer"),z(x,"byteLength"),z(x,"byteOffset")),c(L,{getInt8:function(e){return X(this,1,e)[0]<<24>>24},getUint8:function(e){return X(this,1,e)[0]},getInt16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return V(X(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return V(X(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(X(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(X(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Y(this,1,e,j,t)},setUint8:function(e,t){Y(this,1,e,j,t)},setInt16:function(e,t){Y(this,2,e,W,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Y(this,2,e,W,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Y(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Y(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Y(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Y(this,8,e,J,t,arguments.length>2?arguments[2]:void 0)}});T(w,S),T(x,"DataView"),e.exports={ArrayBuffer:w,DataView:x}},5239:function(e,t,r){"use strict";var n=r(4569),o=r(3943),i=r(2398),s=r(6733),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),u=i(r),c=o(e,u),l=o(t,u),f=arguments.length>2?arguments[2]:void 0,p=a((void 0===f?u:o(f,u))-l,u-c),d=1;for(l<c&&c<l+p&&(d=-1,l+=p-1,c+=p-1);p-- >0;)l in r?r[c]=r[l]:s(r,c),c+=d,l+=d;return r}},9732:function(e,t,r){"use strict";var n=r(4569),o=r(3943),i=r(2398);e.exports=function(e){for(var t=n(this),r=i(t),s=arguments.length,a=o(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:o(u,r);c>a;)t[a++]=e;return t}},4890:function(e,t,r){"use strict";var n=r(888).forEach,o=r(3070)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},9141:function(e,t,r){var n=r(2398);e.exports=function(e,t){for(var r=0,o=n(t),i=new e(o);o>r;)i[r]=t[r++];return i}},1601:function(e,t,r){"use strict";var n=r(3847),o=r(9107),i=r(4569),s=r(7214),a=r(706),u=r(8297),c=r(2398),l=r(567),f=r(6151),p=r(1328),d=Array;e.exports=function(e){var t=i(e),r=u(this),h=arguments.length,y=h>1?arguments[1]:void 0,E=void 0!==y;E&&(y=n(y,h>2?arguments[2]:void 0));var _,v,m,g,O,T,R=p(t),I=0;if(!R||this===d&&a(R))for(_=c(t),v=r?new this(_):d(_);_>I;I++)T=E?y(t[I],I):t[I],l(v,I,T);else for(O=(g=f(t,R)).next,v=r?new this:[];!(m=o(O,g)).done;I++)T=E?s(g,y,[m.value,I],!0):m.value,l(v,I,T);return v.length=I,v}},7351:function(e,t,r){var n=r(4221),o=r(3943),i=r(2398),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},888:function(e,t,r){var n=r(3847),o=r(9720),i=r(3392),s=r(4569),a=r(2398),u=r(5508),c=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,y,E,_){for(var v,m,g=s(h),O=i(g),T=n(y,E),R=a(O),I=0,C=_||u,N=t?C(h,R):r||p?C(h,0):void 0;R>I;I++)if((d||I in O)&&(m=T(v=O[I],I,g),e))if(t)N[I]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return I;case 2:c(N,v)}else switch(e){case 4:return!1;case 7:c(N,v)}return f?-1:o||l?l:N}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1959:function(e,t,r){"use strict";var n=r(7841),o=r(4221),i=r(152),s=r(2398),a=r(3070),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),p=l||!f;e.exports=p?function(e){if(l)return n(c,this,arguments)||0;var t=o(this),r=s(t),a=r-1;for(arguments.length>1&&(a=u(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},3933:function(e,t,r){var n=r(4141),o=r(9140),i=r(583),s=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},3070:function(e,t,r){"use strict";var n=r(4141);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},6653:function(e,t,r){var n=r(9181),o=r(4569),i=r(3392),s=r(2398),a=TypeError,u=function(e){return function(t,r,u,c){n(r);var l=o(t),f=i(l),p=s(l),d=e?p-1:0,h=e?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw a("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(c=r(c,f[d],d,l));return c}};e.exports={left:u(!1),right:u(!0)}},1208:function(e,t,r){"use strict";var n=r(2931),o=r(6833),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(o(e)&&!s(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9730:function(e,t,r){var n=r(3943),o=r(2398),i=r(567),s=Array,a=Math.max;e.exports=function(e,t,r){for(var u=o(e),c=n(t,u),l=n(void 0===r?u:r,u),f=s(a(l-c,0)),p=0;c<l;c++,p++)i(f,p,e[c]);return f.length=p,f}},942:function(e,t,r){var n=r(9720);e.exports=n([].slice)},5416:function(e,t,r){var n=r(9730),o=Math.floor,i=function(e,t){var r=e.length,u=o(r/2);return r<8?s(e,t):a(e,i(n(e,0,u),t),i(n(e,u),t),t)},s=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},a=function(e,t,r,n){for(var o=t.length,i=r.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?n(t[s],r[a])<=0?t[s++]:r[a++]:s<o?t[s++]:r[a++];return e};e.exports=i},4908:function(e,t,r){var n=r(6833),o=r(8297),i=r(7809),s=r(9140)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},5508:function(e,t,r){var n=r(4908);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},7214:function(e,t,r){var n=r(1571),o=r(6186);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3802:function(e,t,r){var n=r(9140)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6027:function(e,t,r){var n=r(9720),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6837:function(e,t,r){var n=r(1247),o=r(1045),i=r(6027),s=r(9140)("toStringTag"),a=Object,u="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:u?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},6675:function(e,t,r){"use strict";var n=r(4317).f,o=r(5565),i=r(4766),s=r(3847),a=r(9112),u=r(7323),c=r(5991),l=r(9719),f=r(8174),p=r(4467),d=r(2931),h=r(6811).fastKey,y=r(7417),E=y.set,_=y.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,n){a(e,p),E(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),u(n)||c(n,e[l],{that:e,AS_ENTRIES:r})})),p=f.prototype,y=_(t),v=function(e,t,r){var n,o,i=y(e),s=m(e,t);return s?s.value=r:(i.last=s={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),d?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},m=function(e,t){var r,n=y(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(p,{clear:function(){for(var e=y(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,r=y(t),n=m(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=y(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),i(p,r?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&n(p,"size",{get:function(){return y(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=_(t),i=_(n);l(e,t,(function(e,t){E(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(t)}}},6202:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9720),s=r(1122),a=r(4405),u=r(6811),c=r(5991),l=r(9112),f=r(1045),p=r(7323),d=r(7809),h=r(4141),y=r(3802),E=r(5125),_=r(8851);e.exports=function(e,t,r){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),g=v?"set":"add",O=o[e],T=O&&O.prototype,R=O,I={},C=function(e){var t=i(T[e]);a(T,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return m&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(s(e,!f(O)||!(m||T.forEach&&!h((function(){(new O).entries().next()})))))R=r.getConstructor(t,e,v,g),u.enable();else if(s(e,!0)){var N=new R,b=N[g](m?{}:-0,1)!=N,S=h((function(){N.has(1)})),A=y((function(e){new O(e)})),M=!m&&h((function(){for(var e=new O,t=5;t--;)e[g](t,t);return!e.has(-0)}));A||((R=t((function(e,t){l(e,T);var r=_(new O,e,R);return p(t)||c(t,r[g],{that:r,AS_ENTRIES:v}),r}))).prototype=T,T.constructor=R),(S||M)&&(C("delete"),C("has"),v&&C("get")),(M||b)&&C(g),m&&T.clear&&delete T.clear}return I[e]=R,n({global:!0,constructor:!0,forced:R!=O},I),E(R,e),m||r.setStrong(R,e,v),R}},5751:function(e,t,r){var n=r(1163),o=r(5260),i=r(9097),s=r(4317);e.exports=function(e,t,r){for(var a=o(t),u=s.f,c=i.f,l=0;l<a.length;l++){var f=a[l];n(e,f)||r&&n(r,f)||u(e,f,c(t,f))}}},7849:function(e,t,r){var n=r(9140)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},4667:function(e,t,r){var n=r(4141);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8174:function(e){e.exports=function(e,t){return{value:e,done:t}}},6493:function(e,t,r){var n=r(2931),o=r(4317),i=r(2499);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},2499:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},567:function(e,t,r){"use strict";var n=r(7277),o=r(4317),i=r(2499);e.exports=function(e,t,r){var s=n(t);s in e?o.f(e,s,i(0,r)):e[s]=r}},2886:function(e,t,r){var n=r(2511),o=r(4317);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},4405:function(e,t,r){var n=r(1045),o=r(4317),i=r(2511),s=r(5784);e.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&i(r,c,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4766:function(e,t,r){var n=r(4405);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},5784:function(e,t,r){var n=r(2383),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6733:function(e,t,r){"use strict";var n=r(7632),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},2931:function(e,t,r){var n=r(4141);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6459:function(e,t,r){var n=r(2383),o=r(7809),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7540:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},9286:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5977:function(e,t,r){var n=r(6459)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},3975:function(e,t,r){var n=r(9376).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},5830:function(e,t,r){var n=r(3954),o=r(4368);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},3954:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},8482:function(e,t,r){var n=r(9376);e.exports=/MSIE|Trident/.test(n)},3035:function(e,t,r){var n=r(9376),o=r(2383);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},7337:function(e,t,r){var n=r(9376);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4368:function(e,t,r){var n=r(6027),o=r(2383);e.exports="process"==n(o.process)},678:function(e,t,r){var n=r(9376);e.exports=/web0s(?!.*chrome)/i.test(n)},9376:function(e,t,r){var n=r(7300);e.exports=n("navigator","userAgent")||""},583:function(e,t,r){var n,o,i=r(2383),s=r(9376),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},3701:function(e,t,r){var n=r(9376).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},7414:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4866:function(e,t,r){var n=r(2383),o=r(9097).f,i=r(6493),s=r(4405),a=r(5784),u=r(5751),c=r(1122);e.exports=function(e,t){var r,l,f,p,d,h=e.target,y=e.global,E=e.stat;if(r=y?n:E?n[h]||a(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(r,l))&&d.value:r[l],!c(y?l:h+(E?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),s(r,l,p,e)}}},4141:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},2267:function(e,t,r){"use strict";r(1008);var n=r(9720),o=r(4405),i=r(1660),s=r(4141),a=r(9140),u=r(6493),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var p=a(e),d=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d&&!s((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!d||!h||r){var y=n(/./[p]),E=t(p,""[e],(function(e,t,r,o,s){var a=n(e),u=t.exec;return u===i||u===l.exec?d&&!s?{done:!0,value:y(t,r,o)}:{done:!0,value:a(r,t,o)}:{done:!1}}));o(String.prototype,e,E[0]),o(l,p,E[1])}f&&u(l[p],"sham",!0)}},2693:function(e,t,r){var n=r(4141);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7841:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},3847:function(e,t,r){var n=r(9720),o=r(9181),i=r(1153),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},1153:function(e,t,r){var n=r(4141);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8829:function(e,t,r){"use strict";var n=r(9720),o=r(9181),i=r(7809),s=r(1163),a=r(942),u=r(1153),c=Function,l=n([].concat),f=n([].join),p={},d=function(e,t,r){if(!s(p,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";p[t]=c("C,a","return new C("+f(n,",")+")")}return p[t](e,r)};e.exports=u?c.bind:function(e){var t=o(this),r=t.prototype,n=a(arguments,1),s=function(){var r=l(n,a(arguments));return this instanceof s?d(t,r.length,r):t.apply(e,r)};return i(r)&&(s.prototype=r),s}},9107:function(e,t,r){var n=r(1153),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9684:function(e,t,r){var n=r(2931),o=r(1163),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},9720:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.bind,s=o.call,a=n&&i.bind(s,s);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},7300:function(e,t,r){var n=r(2383),o=r(1045),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1328:function(e,t,r){var n=r(6837),o=r(466),i=r(7323),s=r(9171),a=r(9140)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},6151:function(e,t,r){var n=r(9107),o=r(9181),i=r(1571),s=r(7632),a=r(1328),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw u(s(e)+" is not iterable")}},466:function(e,t,r){var n=r(9181),o=r(7323);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2383:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},1163:function(e,t,r){var n=r(9720),o=r(4569),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},8164:function(e){e.exports={}},1879:function(e,t,r){var n=r(2383);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},4530:function(e,t,r){var n=r(7300);e.exports=n("document","documentElement")},688:function(e,t,r){var n=r(2931),o=r(4141),i=r(6459);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9074:function(e){var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2;e.exports={pack:function(e,a,u){var c,l,f,p=t(u),d=8*u-a-1,h=(1<<d)-1,y=h>>1,E=23===a?n(2,-24)-n(2,-77):0,_=e<0||0===e&&1/e<0?1:0,v=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,c=h):(c=o(i(e)/s),e*(f=n(2,-c))<1&&(c--,f*=2),(e+=c+y>=1?E/f:E*n(2,1-y))*f>=2&&(c++,f/=2),c+y>=h?(l=0,c=h):c+y>=1?(l=(e*f-1)*n(2,a),c+=y):(l=e*n(2,y-1)*n(2,a),c=0));a>=8;)p[v++]=255&l,l/=256,a-=8;for(c=c<<a|l,d+=a;d>0;)p[v++]=255&c,c/=256,d-=8;return p[--v]|=128*_,p},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,s=(1<<i)-1,a=s>>1,u=i-7,c=o-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)r=256*r+e[c--],u-=8;if(0===f)f=1-a;else{if(f===s)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=a}return(l?-1:1)*r*n(2,f-t)}}},3392:function(e,t,r){var n=r(9720),o=r(4141),i=r(6027),s=Object,a=n("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s},8851:function(e,t,r){var n=r(1045),o=r(7809),i=r(7046);e.exports=function(e,t,r){var s,a;return i&&n(s=t.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(e,a),e}},4554:function(e,t,r){var n=r(9720),o=r(1045),i=r(4480),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},6811:function(e,t,r){var n=r(4866),o=r(9720),i=r(8164),s=r(7809),a=r(1163),u=r(4317).f,c=r(1242),l=r(6584),f=r(1773),p=r(858),d=r(2693),h=!1,y=p("meta"),E=0,_=function(e){u(e,y,{value:{objectID:"O"+E++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=c.f,t=o([].splice),r={};r[y]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===y){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,y)){if(!f(e))return"F";if(!t)return"E";_(e)}return e[y].objectID},getWeakData:function(e,t){if(!a(e,y)){if(!f(e))return!0;if(!t)return!1;_(e)}return e[y].weakData},onFreeze:function(e){return d&&h&&f(e)&&!a(e,y)&&_(e),e}};i[y]=!0},7417:function(e,t,r){var n,o,i,s=r(1849),a=r(2383),u=r(9720),c=r(7809),l=r(6493),f=r(1163),p=r(4480),d=r(6033),h=r(8164),y="Object already initialized",E=a.TypeError,_=a.WeakMap;if(s||p.state){var v=p.state||(p.state=new _),m=u(v.get),g=u(v.has),O=u(v.set);n=function(e,t){if(g(v,e))throw E(y);return t.facade=e,O(v,e,t),t},o=function(e){return m(v,e)||{}},i=function(e){return g(v,e)}}else{var T=d("state");h[T]=!0,n=function(e,t){if(f(e,T))throw E(y);return t.facade=e,l(e,T,t),t},o=function(e){return f(e,T)?e[T]:{}},i=function(e){return f(e,T)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw E("Incompatible receiver, "+e+" required");return r}}}},706:function(e,t,r){var n=r(9140),o=r(9171),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},6833:function(e,t,r){var n=r(6027);e.exports=Array.isArray||function(e){return"Array"==n(e)}},2318:function(e,t,r){var n=r(6837),o=r(9720)("".slice);e.exports=function(e){return"Big"===o(n(e),0,3)}},1045:function(e){e.exports=function(e){return"function"==typeof e}},8297:function(e,t,r){var n=r(9720),o=r(4141),i=r(1045),s=r(6837),a=r(7300),u=r(4554),c=function(){},l=[],f=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),h=!p.exec(c),y=function(e){if(!i(e))return!1;try{return f(c,l,e),!0}catch(e){return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(p,u(e))}catch(e){return!0}};E.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y},1122:function(e,t,r){var n=r(4141),o=r(1045),i=/#|\.prototype\./,s=function(e,t){var r=u[a(e)];return r==l||r!=c&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},6121:function(e,t,r){var n=r(7809),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},7323:function(e){e.exports=function(e){return null==e}},7809:function(e,t,r){var n=r(1045),o="object"==typeof document&&document.all,i=void 0===o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},4726:function(e){e.exports=!1},3265:function(e,t,r){var n=r(7809),o=r(6027),i=r(9140)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},6894:function(e,t,r){var n=r(7300),o=r(1045),i=r(8931),s=r(2048),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},5991:function(e,t,r){var n=r(3847),o=r(9107),i=r(1571),s=r(7632),a=r(706),u=r(2398),c=r(8931),l=r(6151),f=r(1328),p=r(6186),d=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;e.exports=function(e,t,r){var E,_,v,m,g,O,T,R=r&&r.that,I=!(!r||!r.AS_ENTRIES),C=!(!r||!r.IS_RECORD),N=!(!r||!r.IS_ITERATOR),b=!(!r||!r.INTERRUPTED),S=n(t,R),A=function(e){return E&&p(E,"normal",e),new h(!0,e)},M=function(e){return I?(i(e),b?S(e[0],e[1],A):S(e[0],e[1])):b?S(e,A):S(e)};if(C)E=e.iterator;else if(N)E=e;else{if(!(_=f(e)))throw d(s(e)+" is not iterable");if(a(_)){for(v=0,m=u(e);m>v;v++)if((g=M(e[v]))&&c(y,g))return g;return new h(!1)}E=l(e,_)}for(O=C?e.next:E.next;!(T=o(O,E)).done;){try{g=M(T.value)}catch(e){p(E,"throw",e)}if("object"==typeof g&&g&&c(y,g))return g}return new h(!1)}},6186:function(e,t,r){var n=r(9107),o=r(1571),i=r(466);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},9437:function(e,t,r){"use strict";var n=r(9549).IteratorPrototype,o=r(5565),i=r(2499),s=r(5125),a=r(9171),u=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),s(e,l,!1,!0),a[l]=u,e}},9719:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(4726),s=r(9684),a=r(1045),u=r(9437),c=r(2573),l=r(7046),f=r(5125),p=r(6493),d=r(4405),h=r(9140),y=r(9171),E=r(9549),_=s.PROPER,v=s.CONFIGURABLE,m=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,O=h("iterator"),T="keys",R="values",I="entries",C=function(){return this};e.exports=function(e,t,r,s,h,E,N){u(r,t,s);var b,S,A,M=function(e){if(e===h&&P)return P;if(!g&&e in x)return x[e];switch(e){case T:case R:case I:return function(){return new r(this,e)}}return function(){return new r(this)}},w=t+" Iterator",U=!1,x=e.prototype,L=x[O]||x["@@iterator"]||h&&x[h],P=!g&&L||M(h),k="Array"==t&&x.entries||L;if(k&&(b=c(k.call(new e)))!==Object.prototype&&b.next&&(i||c(b)===m||(l?l(b,m):a(b[O])||d(b,O,C)),f(b,w,!0,!0),i&&(y[w]=C)),_&&h==R&&L&&L.name!==R&&(!i&&v?p(x,"name",R):(U=!0,P=function(){return o(L,this)})),h)if(S={values:M(R),keys:E?P:M(T),entries:M(I)},N)for(A in S)(g||U||!(A in x))&&d(x,A,S[A]);else n({target:t,proto:!0,forced:g||U},S);return i&&!N||x[O]===P||d(x,O,P,{name:h}),y[t]=P,S}},9549:function(e,t,r){"use strict";var n,o,i,s=r(4141),a=r(1045),u=r(7809),c=r(5565),l=r(2573),f=r(4405),p=r(9140),d=r(4726),h=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):y=!0),!u(n)||s((function(){var e={};return n[h].call(e)!==e}))?n={}:d&&(n=c(n)),a(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},9171:function(e){e.exports={}},2398:function(e,t,r){var n=r(2844);e.exports=function(e){return n(e.length)}},2511:function(e,t,r){var n=r(4141),o=r(1045),i=r(1163),s=r(2931),a=r(9684).CONFIGURABLE,u=r(4554),c=r(7417),l=c.enforce,f=c.get,p=Object.defineProperty,d=s&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&r&&i(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||u(this)}),"toString")},3709:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5418:function(e,t,r){var n,o,i,s,a,u,c,l,f=r(2383),p=r(3847),d=r(9097).f,h=r(5515).set,y=r(7337),E=r(3035),_=r(678),v=r(4368),m=f.MutationObserver||f.WebKitMutationObserver,g=f.document,O=f.process,T=f.Promise,R=d(f,"queueMicrotask"),I=R&&R.value;I||(n=function(){var e,t;for(v&&(e=O.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?s():i=void 0,e}}i=void 0,e&&e.enter()},y||v||_||!m||!g?!E&&T&&T.resolve?((c=T.resolve(void 0)).constructor=T,l=p(c.then,c),s=function(){l(n)}):v?s=function(){O.nextTick(n)}:(h=p(h,f),s=function(){h(n)}):(a=!0,u=g.createTextNode(""),new m(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),e.exports=I||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,s()),i=t}},9636:function(e,t,r){"use strict";var n=r(9181),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},1271:function(e,t,r){var n=r(3265),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},7411:function(e,t,r){"use strict";var n=r(2931),o=r(9720),i=r(9107),s=r(4141),a=r(3555),u=r(6920),c=r(7225),l=r(4569),f=r(3392),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||s((function(){if(n&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||a(p({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,s=1,p=u.f,d=c.f;o>s;)for(var y,E=f(arguments[s++]),_=p?h(a(E),p(E)):a(E),v=_.length,m=0;v>m;)y=_[m++],n&&!i(d,E,y)||(r[y]=E[y]);return r}:p},5565:function(e,t,r){var n,o=r(1571),i=r(3633),s=r(7414),a=r(8164),u=r(4530),c=r(6459),l=r(6033)("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?d(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):d(n);for(var r=s.length;r--;)delete h.prototype[s[r]];return h()};a[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[l]=e):r=h(),void 0===t?r:i.f(r,t)}},3633:function(e,t,r){var n=r(2931),o=r(5957),i=r(4317),s=r(1571),a=r(4221),u=r(3555);t.f=n&&!o?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,r=o[l++],n[r]);return e}},4317:function(e,t,r){var n=r(2931),o=r(688),i=r(5957),s=r(1571),a=r(7277),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9097:function(e,t,r){var n=r(2931),o=r(9107),i=r(7225),s=r(2499),a=r(4221),u=r(7277),c=r(1163),l=r(688),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=a(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return s(!o(i.f,e,t),e[t])}},6584:function(e,t,r){var n=r(6027),o=r(4221),i=r(1242).f,s=r(9730),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return s(a)}}(e):i(o(e))}},1242:function(e,t,r){var n=r(6984),o=r(7414).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},6920:function(e,t){t.f=Object.getOwnPropertySymbols},2573:function(e,t,r){var n=r(1163),o=r(1045),i=r(4569),s=r(6033),a=r(4667),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},1773:function(e,t,r){var n=r(4141),o=r(7809),i=r(6027),s=r(9042),a=Object.isExtensible,u=n((function(){a(1)}));e.exports=u||s?function(e){return!!o(e)&&(!s||"ArrayBuffer"!=i(e))&&(!a||a(e))}:a},8931:function(e,t,r){var n=r(9720);e.exports=n({}.isPrototypeOf)},6984:function(e,t,r){var n=r(9720),o=r(1163),i=r(4221),s=r(7351).indexOf,a=r(8164),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&u(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~s(l,r)||u(l,r));return l}},3555:function(e,t,r){var n=r(6984),o=r(7414);e.exports=Object.keys||function(e){return n(e,o)}},7225:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7046:function(e,t,r){var n=r(9720),o=r(1571),i=r(2091);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},8389:function(e,t,r){var n=r(2931),o=r(9720),i=r(3555),s=r(4221),a=o(r(7225).f),u=o([].push),c=function(e){return function(t){for(var r,o=s(t),c=i(o),l=c.length,f=0,p=[];l>f;)r=c[f++],n&&!a(o,r)||u(p,e?[r,o[r]]:o[r]);return p}};e.exports={entries:c(!0),values:c(!1)}},4757:function(e,t,r){"use strict";var n=r(1247),o=r(6837);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},8434:function(e,t,r){var n=r(9107),o=r(1045),i=r(7809),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw s("Can't convert object to primitive value")}},5260:function(e,t,r){var n=r(7300),o=r(9720),i=r(1242),s=r(6920),a=r(1571),u=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?u(t,r(e)):t}},5096:function(e,t,r){var n=r(2383);e.exports=n},4393:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},8583:function(e,t,r){var n=r(2383),o=r(7587),i=r(1045),s=r(1122),a=r(4554),u=r(9140),c=r(5830),l=r(3954),f=r(4726),p=r(583),d=o&&o.prototype,h=u("species"),y=!1,E=i(n.PromiseRejectionEvent),_=s("Promise",(function(){var e=a(o),t=e!==String(o);if(!t&&66===p)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(y=r.then((function(){}))instanceof n))return!0}return!t&&(c||l)&&!E}));e.exports={CONSTRUCTOR:_,REJECTION_EVENT:E,SUBCLASSING:y}},7587:function(e,t,r){var n=r(2383);e.exports=n.Promise},6401:function(e,t,r){var n=r(1571),o=r(7809),i=r(9636);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},5431:function(e,t,r){var n=r(7587),o=r(3802),i=r(8583).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},1072:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2146:function(e,t,r){var n=r(9107),o=r(1571),i=r(1045),s=r(6027),a=r(1660),u=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=n(r,e,t);return null!==c&&o(c),c}if("RegExp"===s(e))return n(a,e,t);throw u("RegExp#exec called on incompatible receiver")}},1660:function(e,t,r){"use strict";var n,o,i=r(9107),s=r(9720),a=r(9274),u=r(5316),c=r(4233),l=r(6402),f=r(5565),p=r(7417).get,d=r(5629),h=r(2231),y=l("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,_=E,v=s("".charAt),m=s("".indexOf),g=s("".replace),O=s("".slice),T=(o=/b*/g,i(E,n=/a/,"a"),i(E,o,"a"),0!==n.lastIndex||0!==o.lastIndex),R=c.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];(T||I||R||d||h)&&(_=function(e){var t,r,n,o,s,c,l,d=this,h=p(d),C=a(e),N=h.raw;if(N)return N.lastIndex=d.lastIndex,t=i(_,N,C),d.lastIndex=N.lastIndex,t;var b=h.groups,S=R&&d.sticky,A=i(u,d),M=d.source,w=0,U=C;if(S&&(A=g(A,"y",""),-1===m(A,"g")&&(A+="g"),U=O(C,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==v(C,d.lastIndex-1))&&(M="(?: "+M+")",U=" "+U,w++),r=new RegExp("^(?:"+M+")",A)),I&&(r=new RegExp("^"+M+"$(?!\\s)",A)),T&&(n=d.lastIndex),o=i(E,S?r:d,U),S?o?(o.input=O(o.input,w),o[0]=O(o[0],w),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:T&&o&&(d.lastIndex=d.global?o.index+o[0].length:n),I&&o&&o.length>1&&i(y,o[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o&&b)for(o.groups=c=f(null),s=0;s<b.length;s++)c[(l=b[s])[0]]=o[l[1]];return o}),e.exports=_},5316:function(e,t,r){"use strict";var n=r(1571);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8040:function(e,t,r){var n=r(9107),o=r(1163),i=r(8931),s=r(5316),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||o(e,"flags")||!i(a,e)?t:n(s,e)}},4233:function(e,t,r){var n=r(4141),o=r(2383).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},5629:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2231:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},6827:function(e,t,r){var n=r(7323),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},3257:function(e,t,r){var n=r(2383),o=r(7841),i=r(1045),s=r(9376),a=r(942),u=r(248),c=/MSIE .\./.test(s),l=n.Function,f=function(e){return c?function(t,r){var n=u(arguments.length,1)>2,s=i(t)?t:l(t),c=n?a(arguments,2):void 0;return e(n?function(){o(s,this,c)}:s,r)}:e};e.exports={setTimeout:f(n.setTimeout),setInterval:f(n.setInterval)}},4467:function(e,t,r){"use strict";var n=r(7300),o=r(4317),i=r(9140),s=r(2931),a=i("species");e.exports=function(e){var t=n(e),r=o.f;s&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},5125:function(e,t,r){var n=r(4317).f,o=r(1163),i=r(9140)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6033:function(e,t,r){var n=r(6402),o=r(858),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4480:function(e,t,r){var n=r(2383),o=r(5784),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},6402:function(e,t,r){var n=r(4726),o=r(4480);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},543:function(e,t,r){var n=r(1571),o=r(7345),i=r(7323),s=r(9140)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||i(r=n(a)[s])?t:o(r)}},7957:function(e,t,r){var n=r(9720),o=r(152),i=r(9274),s=r(6827),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(e){return function(t,r){var n,l,f=i(s(t)),p=o(r),d=f.length;return p<0||p>=d?e?"":void 0:(n=u(f,p))<55296||n>56319||p+1===d||(l=u(f,p+1))<56320||l>57343?e?a(f,p):n:e?c(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},9492:function(e,t,r){"use strict";var n=r(9720),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=n(s.exec),l=Math.floor,f=String.fromCharCode,p=n("".charCodeAt),d=n([].join),h=n([].push),y=n("".replace),E=n("".split),_=n("".toLowerCase),v=function(e){return e+22+75*(e<26)},m=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},g=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=p(e,r++);if(o>=55296&&o<=56319&&r<n){var i=p(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,s=128,c=0,y=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var E=t.length,_=E;for(E&&h(t,"-");_<i;){var g=o;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<g&&(g=n);var O=_+1;if(g-s>l((o-c)/O))throw u(a);for(c+=(g-s)*O,s=g,r=0;r<e.length;r++){if((n=e[r])<s&&++c>o)throw u(a);if(n==s){for(var T=c,R=36;;){var I=R<=y?1:R>=y+26?26:R-y;if(T<I)break;var C=T-I,N=36-I;h(t,f(v(I+C%N))),T=l(C/N),R+=36}h(t,f(v(T))),y=m(c,O,_==E),c=0,_++}}c++,s++}return d(t,"")};e.exports=function(e){var t,r,n=[],o=E(y(_(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,c(i,r)?"xn--"+g(r):r);return d(n,".")}},3379:function(e,t,r){var n=r(9720),o=r(6827),i=r(9274),s=r(6342),a=n("".replace),u="["+s+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(e){return function(t){var r=i(o(t));return 1&e&&(r=a(r,c,"")),2&e&&(r=a(r,l,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},5793:function(e,t,r){var n=r(583),o=r(4141);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3706:function(e,t,r){var n=r(9107),o=r(7300),i=r(9140),s=r(4405);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return n(r,this)}),{arity:1})}},6125:function(e,t,r){var n=r(5793);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},5515:function(e,t,r){var n,o,i,s,a=r(2383),u=r(7841),c=r(3847),l=r(1045),f=r(1163),p=r(4141),d=r(4530),h=r(942),y=r(6459),E=r(248),_=r(7337),v=r(4368),m=a.setImmediate,g=a.clearImmediate,O=a.process,T=a.Dispatch,R=a.Function,I=a.MessageChannel,C=a.String,N=0,b={};try{n=a.location}catch(e){}var S=function(e){if(f(b,e)){var t=b[e];delete b[e],t()}},A=function(e){return function(){S(e)}},M=function(e){S(e.data)},w=function(e){a.postMessage(C(e),n.protocol+"//"+n.host)};m&&g||(m=function(e){E(arguments.length,1);var t=l(e)?e:R(e),r=h(arguments,1);return b[++N]=function(){u(t,void 0,r)},o(N),N},g=function(e){delete b[e]},v?o=function(e){O.nextTick(A(e))}:T&&T.now?o=function(e){T.now(A(e))}:I&&!_?(s=(i=new I).port2,i.port1.onmessage=M,o=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(w)?(o=w,a.addEventListener("message",M,!1)):o="onreadystatechange"in y("script")?function(e){d.appendChild(y("script")).onreadystatechange=function(){d.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:m,clear:g}},5890:function(e,t,r){var n=r(9720);e.exports=n(1..valueOf)},3943:function(e,t,r){var n=r(152),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},7386:function(e,t,r){var n=r(55),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},3577:function(e,t,r){var n=r(152),o=r(2844),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw i("Wrong length or index");return r}},4221:function(e,t,r){var n=r(3392),o=r(6827);e.exports=function(e){return n(o(e))}},152:function(e,t,r){var n=r(3709);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2844:function(e,t,r){var n=r(152),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},4569:function(e,t,r){var n=r(6827),o=Object;e.exports=function(e){return o(n(e))}},5276:function(e,t,r){var n=r(8090),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw o("Wrong offset");return r}},8090:function(e,t,r){var n=r(152),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw o("The argument can't be less than 0");return t}},55:function(e,t,r){var n=r(9107),o=r(7809),i=r(6894),s=r(466),a=r(8434),u=r(9140),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=s(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},7277:function(e,t,r){var n=r(55),o=r(6894);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1247:function(e,t,r){var n={};n[r(9140)("toStringTag")]="z",e.exports="[object z]"===String(n)},9274:function(e,t,r){var n=r(6837),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},7632:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7466:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9107),s=r(2931),a=r(4412),u=r(5861),c=r(4061),l=r(9112),f=r(2499),p=r(6493),d=r(6121),h=r(2844),y=r(3577),E=r(5276),_=r(7277),v=r(1163),m=r(6837),g=r(7809),O=r(6894),T=r(5565),R=r(8931),I=r(7046),C=r(1242).f,N=r(8607),b=r(888).forEach,S=r(4467),A=r(4317),M=r(9097),w=r(7417),U=r(8851),x=w.get,L=w.set,P=w.enforce,k=A.f,D=M.f,H=Math.round,B=o.RangeError,G=c.ArrayBuffer,F=G.prototype,j=c.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,q=u.TYPED_ARRAY_TAG,V=u.TypedArray,K=u.TypedArrayPrototype,J=u.aTypedArrayConstructor,z=u.isTypedArray,X="BYTES_PER_ELEMENT",Y="Wrong length",$=function(e,t){J(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},Q=function(e,t){k(e,t,{get:function(){return x(this)[t]}})},Z=function(e){var t;return R(F,e)||"ArrayBuffer"==(t=m(e))||"SharedArrayBuffer"==t},ee=function(e,t){return z(e)&&!O(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=_(t),ee(e,t)?f(2,e[t]):D(e,t)},re=function(e,t,r){return t=_(t),!(ee(e,t)&&g(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?k(e,t,r):(e[t]=r.value,e)};s?(W||(M.f=te,A.f=re,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),n({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var s=e.match(/\d+$/)[0]/8,u=e+(r?"Clamped":"")+"Array",c="get"+e,f="set"+e,d=o[u],_=d,v=_&&_.prototype,m={},O=function(e,t){k(e,t,{get:function(){return function(e,t){var r=x(e);return r.view[c](t*s+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=x(e);r&&(n=(n=H(n))<0?0:n>255?255:255&n),o.view[f](t*s+o.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};W?a&&(_=t((function(e,t,r,n){return l(e,v),U(g(t)?Z(t)?void 0!==n?new d(t,E(r,s),n):void 0!==r?new d(t,E(r,s)):new d(t):z(t)?$(_,t):i(N,_,t):new d(y(t)),e,_)})),I&&I(_,V),b(C(d),(function(e){e in _||p(_,e,d[e])})),_.prototype=v):(_=t((function(e,t,r,n){l(e,v);var o,a,u,c=0,f=0;if(g(t)){if(!Z(t))return z(t)?$(_,t):i(N,_,t);o=t,f=E(r,s);var p=t.byteLength;if(void 0===n){if(p%s)throw B(Y);if((a=p-f)<0)throw B(Y)}else if((a=h(n)*s)+f>p)throw B(Y);u=a/s}else u=y(t),o=new G(a=u*s);for(L(e,{buffer:o,byteOffset:f,byteLength:a,length:u,view:new j(o)});c<u;)O(e,c++)})),I&&I(_,V),v=_.prototype=T(K)),v.constructor!==_&&p(v,"constructor",_),P(v).TypedArrayConstructor=_,q&&p(v,q,u);var R=_!=d;m[u]=_,n({global:!0,constructor:!0,forced:R,sham:!W},m),X in _||p(_,X,s),X in v||p(v,X,s),S(u)}):e.exports=function(){}},4412:function(e,t,r){var n=r(2383),o=r(4141),i=r(3802),s=r(5861).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;e.exports=!s||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||o((function(){return 1!==new u(new a(2),1,void 0).length}))},1390:function(e,t,r){var n=r(9141),o=r(7106);e.exports=function(e,t){return n(o(e),t)}},8607:function(e,t,r){var n=r(3847),o=r(9107),i=r(7345),s=r(4569),a=r(2398),u=r(6151),c=r(1328),l=r(706),f=r(2318),p=r(5861).aTypedArrayConstructor,d=r(7386);e.exports=function(e){var t,r,h,y,E,_,v,m,g=i(this),O=s(e),T=arguments.length,R=T>1?arguments[1]:void 0,I=void 0!==R,C=c(O);if(C&&!l(C))for(m=(v=u(O,C)).next,O=[];!(_=o(m,v)).done;)O.push(_.value);for(I&&T>2&&(R=n(R,arguments[2])),r=a(O),h=new(p(g))(r),y=f(h),t=0;r>t;t++)E=I?R(O[t],t):O[t],h[t]=y?d(E):+E;return h}},7106:function(e,t,r){var n=r(5861),o=r(543),i=n.aTypedArrayConstructor,s=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,s(e)))}},858:function(e,t,r){var n=r(9720),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},9677:function(e,t,r){var n=r(4141),o=r(9140),i=r(4726),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2048:function(e,t,r){var n=r(5793);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5957:function(e,t,r){var n=r(2931),o=r(4141);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},248:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},1849:function(e,t,r){var n=r(2383),o=r(1045),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8225:function(e,t,r){var n=r(5096),o=r(1163),i=r(7216),s=r(4317).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},7216:function(e,t,r){var n=r(9140);t.f=n},9140:function(e,t,r){var n=r(2383),o=r(6402),i=r(1163),s=r(858),a=r(5793),u=r(2048),c=o("wks"),l=n.Symbol,f=l&&l.for,p=u?l:l&&l.withoutSetter||s;e.exports=function(e){if(!i(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&i(l,e)?c[e]=l[e]:c[e]=u&&f?f(t):p(t)}return c[e]}},6342:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},863:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(4141),s=r(4061),a=r(1571),u=r(3943),c=r(2844),l=r(543),f=s.ArrayBuffer,p=s.DataView,d=p.prototype,h=o(f.prototype.slice),y=o(d.getUint8),E=o(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(a(this),e);for(var r=a(this).byteLength,n=u(e,r),o=u(void 0===t?r:t,r),i=new(l(this,f))(c(o-n)),s=new p(this),d=new p(i),_=0;n<o;)E(d,_++,y(s,n++));return i}})},7095:function(e,t,r){"use strict";var n=r(4866),o=r(4141),i=r(6833),s=r(7809),a=r(4569),u=r(2398),c=r(7540),l=r(567),f=r(5508),p=r(3933),d=r(9140),h=r(583),y=d("isConcatSpreadable"),E=h>=51||!o((function(){var e=[];return e[y]=!1,e.concat()[0]!==e})),_=p("concat"),v=function(e){if(!s(e))return!1;var t=e[y];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!E||!_},{concat:function(e){var t,r,n,o,i,s=a(this),p=f(s,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(v(i=-1===t?s:arguments[t]))for(o=u(i),c(d+o),r=0;r<o;r++,d++)r in i&&l(p,d,i[r]);else c(d+1),l(p,d++,i);return p.length=d,p}})},7521:function(e,t,r){"use strict";var n=r(4866),o=r(888).filter;n({target:"Array",proto:!0,forced:!r(3933)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},1362:function(e,t,r){"use strict";var n=r(4866),o=r(4890);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9889:function(e,t,r){"use strict";var n=r(4866),o=r(7351).includes,i=r(4141),s=r(4651);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},5980:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(7351).indexOf,s=r(3070),a=o([].indexOf),u=!!a&&1/a([1],1,-0)<0,c=s("indexOf");n({target:"Array",proto:!0,forced:u||!c},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?a(this,e,t)||0:i(this,e,t)}})},3529:function(e,t,r){r(4866)({target:"Array",stat:!0},{isArray:r(6833)})},1685:function(e,t,r){"use strict";var n=r(4221),o=r(4651),i=r(9171),s=r(7417),a=r(4317).f,u=r(9719),c=r(8174),l=r(4726),f=r(2931),p="Array Iterator",d=s.set,h=s.getterFor(p);e.exports=u(Array,"Array",(function(e,t){d(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(e){}},3535:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(3392),s=r(4221),a=r(3070),u=o([].join),c=i!=Object,l=a("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(e){return u(s(this),void 0===e?",":e)}})},1655:function(e,t,r){var n=r(4866),o=r(1959);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},7118:function(e,t,r){"use strict";var n=r(4866),o=r(888).map;n({target:"Array",proto:!0,forced:!r(3933)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2657:function(e,t,r){"use strict";var n=r(4866),o=r(6833),i=r(8297),s=r(7809),a=r(3943),u=r(2398),c=r(4221),l=r(567),f=r(9140),p=r(3933),d=r(942),h=p("slice"),y=f("species"),E=Array,_=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,p=c(this),h=u(p),v=a(e,h),m=a(void 0===t?h:t,h);if(o(p)&&(r=p.constructor,(i(r)&&(r===E||o(r.prototype))||s(r)&&null===(r=r[y]))&&(r=void 0),r===E||void 0===r))return d(p,v,m);for(n=new(void 0===r?E:r)(_(m-v,0)),f=0;v<m;v++,f++)v in p&&l(n,f,p[v]);return n.length=f,n}})},351:function(e,t,r){"use strict";var n=r(4866),o=r(888).some;n({target:"Array",proto:!0,forced:!r(3070)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3022:function(e,t,r){"use strict";var n=r(4866),o=r(4569),i=r(3943),s=r(152),a=r(2398),u=r(1208),c=r(7540),l=r(5508),f=r(567),p=r(6733),d=r(3933)("splice"),h=Math.max,y=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,d,E,_,v,m=o(this),g=a(m),O=i(e,g),T=arguments.length;for(0===T?r=n=0:1===T?(r=0,n=g-O):(r=T-2,n=y(h(s(t),0),g-O)),c(g+r-n),d=l(m,n),E=0;E<n;E++)(_=O+E)in m&&f(d,E,m[_]);if(d.length=n,r<n){for(E=O;E<g-n;E++)v=E+r,(_=E+n)in m?m[v]=m[_]:p(m,v);for(E=g;E>g-n+r;E--)p(m,E-1)}else if(r>n)for(E=g-n;E>O;E--)v=E+r-1,(_=E+n-1)in m?m[v]=m[_]:p(m,v);for(E=0;E<r;E++)m[E+O]=arguments[E+2];return u(m,g-n+r),d}})},9046:function(e,t,r){var n=r(4866),o=r(9720),i=Date,s=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return s(new i)}})},9782:function(e,t,r){var n=r(9720),o=r(4405),i=Date.prototype,s="Invalid Date",a=n(i.toString),u=n(i.getTime);String(new Date(NaN))!=s&&o(i,"toString",(function(){var e=u(this);return e==e?a(this):s}))},7693:function(e,t,r){var n=r(4866),o=r(8829);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},8668:function(e,t,r){var n=r(2931),o=r(9684).EXISTS,i=r(9720),s=r(4317).f,a=Function.prototype,u=i(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);n&&!o&&s(a,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},7675:function(e,t,r){var n=r(4866),o=r(7300),i=r(7841),s=r(9107),a=r(9720),u=r(4141),c=r(6833),l=r(1045),f=r(7809),p=r(6894),d=r(942),h=r(5793),y=o("JSON","stringify"),E=a(/./.exec),_=a("".charAt),v=a("".charCodeAt),m=a("".replace),g=a(1..toString),O=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,I=!h||u((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),C=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),N=function(e,t){var r=d(arguments),n=t;if((f(t)||void 0!==e)&&!p(e))return c(t)||(t=function(e,t){if(l(n)&&(t=s(n,this,e,t)),!p(t))return t}),r[1]=t,i(y,null,r)},b=function(e,t,r){var n=_(r,t-1),o=_(r,t+1);return E(T,e)&&!E(R,o)||E(R,e)&&!E(T,n)?"\\u"+g(v(e,0),16):e};y&&n({target:"JSON",stat:!0,arity:3,forced:I||C},{stringify:function(e,t,r){var n=d(arguments),o=i(I?N:y,null,n);return C&&"string"==typeof o?m(o,O,b):o}})},5303:function(e,t,r){"use strict";r(6202)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(6675))},5724:function(e,t,r){r(5303)},8453:function(e,t,r){"use strict";var n=r(2931),o=r(2383),i=r(9720),s=r(1122),a=r(4405),u=r(1163),c=r(8851),l=r(8931),f=r(6894),p=r(55),d=r(4141),h=r(1242).f,y=r(9097).f,E=r(4317).f,_=r(5890),v=r(3379).trim,m="Number",g=o.Number,O=g.prototype,T=o.TypeError,R=i("".slice),I=i("".charCodeAt),C=function(e){var t=p(e,"number");return"bigint"==typeof t?t:N(t)},N=function(e){var t,r,n,o,i,s,a,u,c=p(e,"number");if(f(c))throw T("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=v(c),43===(t=I(c,0))||45===t){if(88===(r=I(c,2))||120===r)return NaN}else if(48===t){switch(I(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(i=R(c,2)).length,a=0;a<s;a++)if((u=I(i,a))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(s(m,!g(" 0o1")||!g("0b1")||g("+0x1"))){for(var b,S=function(e){var t=arguments.length<1?0:g(C(e)),r=this;return l(O,r)&&d((function(){_(r)}))?c(Object(t),r,S):t},A=n?h(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;A.length>M;M++)u(g,b=A[M])&&!u(S,b)&&E(S,b,y(g,b));S.prototype=O,O.constructor=S,a(o,m,S,{constructor:!0})}},1538:function(e,t,r){r(4866)({target:"Number",stat:!0},{isInteger:r(6121)})},8327:function(e,t,r){var n=r(4866),o=r(7411);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},7665:function(e,t,r){var n=r(4866),o=r(8389).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},954:function(e,t,r){var n=r(4866),o=r(5793),i=r(4141),s=r(6920),a=r(4569);n({target:"Object",stat:!0,forced:!o||i((function(){s.f(1)}))},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},3786:function(e,t,r){var n=r(4866),o=r(4569),i=r(3555);n({target:"Object",stat:!0,forced:r(4141)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},900:function(e,t,r){var n=r(1247),o=r(4405),i=r(4757);n||o(Object.prototype,"toString",i,{unsafe:!0})},9273:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),s=r(9636),a=r(4393),u=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1;u(e,(function(e){var i=a++,u=!1;l++,o(r,t,e).then((function(e){u||(u=!0,s[i]=e,--l||n(s))}),c)})),--l||n(s)}));return l.error&&c(l.value),r.promise}})},359:function(e,t,r){"use strict";var n=r(4866),o=r(4726),i=r(8583).CONSTRUCTOR,s=r(7587),a=r(7300),u=r(1045),c=r(4405),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(s)){var f=a("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},5137:function(e,t,r){"use strict";var n,o,i,s=r(4866),a=r(4726),u=r(4368),c=r(2383),l=r(9107),f=r(4405),p=r(7046),d=r(5125),h=r(4467),y=r(9181),E=r(1045),_=r(7809),v=r(9112),m=r(543),g=r(5515).set,O=r(5418),T=r(1879),R=r(4393),I=r(1072),C=r(7417),N=r(7587),b=r(8583),S=r(9636),A="Promise",M=b.CONSTRUCTOR,w=b.REJECTION_EVENT,U=b.SUBCLASSING,x=C.getterFor(A),L=C.set,P=N&&N.prototype,k=N,D=P,H=c.TypeError,B=c.document,G=c.process,F=S.f,j=F,W=!!(B&&B.createEvent&&c.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!_(e)||!E(t=e.then))&&t},K=function(e,t){var r,n,o,i=t.value,s=1==t.state,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{a?(s||(2===t.rejection&&$(t),t.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===e.promise?c(H("Promise-chain cycle")):(n=V(r))?l(n,r,u,c):u(r)):c(i)}catch(e){f&&!o&&f.exit(),c(e)}},J=function(e,t){e.notified||(e.notified=!0,O((function(){for(var r,n=e.reactions;r=n.get();)K(r,e);e.notified=!1,t&&!e.rejection&&X(e)})))},z=function(e,t,r){var n,o;W?((n=B.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!w&&(o=c["on"+e])?o(n):e===q&&T("Unhandled promise rejection",r)},X=function(e){l(g,c,(function(){var t,r=e.facade,n=e.value;if(Y(e)&&(t=R((function(){u?G.emit("unhandledRejection",n,r):z(q,r,n)})),e.rejection=u||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},$=function(e){l(g,c,(function(){var t=e.facade;u?G.emit("rejectionHandled",t):z("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,J(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw H("Promise can't be resolved itself");var n=V(t);n?O((function(){var r={done:!1};try{l(n,t,Q(ee,r,e),Q(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,J(e,!1))}catch(t){Z({done:!1},t,e)}}};if(M&&(D=(k=function(e){v(this,D),y(e),l(n,this);var t=x(this);try{e(Q(ee,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var r=x(this),n=F(m(this,k));return r.parent=!0,n.ok=!E(e)||e,n.fail=E(t)&&t,n.domain=u?G.domain:void 0,0==r.state?r.reactions.add(n):O((function(){K(n,r)})),n.promise})),o=function(){var e=new n,t=x(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},S.f=F=function(e){return e===k||void 0===e?new o(e):j(e)},!a&&E(N)&&P!==Object.prototype)){i=P.then,U||f(P,"then",(function(e,t){var r=this;return new k((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete P.constructor}catch(e){}p&&p(P,D)}s({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:k}),d(k,A,!1,!0),h(A)},3814:function(e,t,r){r(5137),r(9273),r(359),r(5886),r(5465),r(1118)},5886:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),s=r(9636),a=r(4393),u=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a((function(){var s=i(t.resolve);u(e,(function(e){o(s,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},5465:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9636);n({target:"Promise",stat:!0,forced:r(8583).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},1118:function(e,t,r){"use strict";var n=r(4866),o=r(7300),i=r(4726),s=r(7587),a=r(8583).CONSTRUCTOR,u=r(6401),c=o("Promise"),l=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},1008:function(e,t,r){"use strict";var n=r(4866),o=r(1660);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},937:function(e,t,r){"use strict";var n=r(9684).PROPER,o=r(4405),i=r(1571),s=r(9274),a=r(4141),u=r(8040),c="toString",l=RegExp.prototype.toString,f=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=n&&l.name!=c;(f||p)&&o(RegExp.prototype,c,(function(){var e=i(this);return"/"+s(e.source)+"/"+s(u(e))}),{unsafe:!0})},6619:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(1271),s=r(6827),a=r(9274),u=r(7849),c=o("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(a(s(this)),a(i(e)),arguments.length>1?arguments[1]:void 0)}})},2486:function(e,t,r){"use strict";var n=r(7957).charAt,o=r(9274),i=r(7417),s=r(9719),a=r(8174),u="String Iterator",c=i.set,l=i.getterFor(u);s(String,"String",(function(e){c(this,{type:u,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?a(void 0,!0):(e=n(r,o),t.index+=e.length,a(e,!1))}))},7461:function(e,t,r){"use strict";var n=r(7841),o=r(9107),i=r(9720),s=r(2267),a=r(1571),u=r(7323),c=r(3265),l=r(6827),f=r(543),p=r(3025),d=r(2844),h=r(9274),y=r(466),E=r(9730),_=r(2146),v=r(1660),m=r(4233),g=r(4141),O=m.UNSUPPORTED_Y,T=4294967295,R=Math.min,I=[].push,C=i(/./.exec),N=i(I),b=i("".slice),S=!g((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));s("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=h(l(this)),s=void 0===r?T:r>>>0;if(0===s)return[];if(void 0===e)return[i];if(!c(e))return o(t,i,e,s);for(var a,u,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,_=new RegExp(e.source,d+"g");(a=o(v,_,i))&&!((u=_.lastIndex)>y&&(N(p,b(i,y,a.index)),a.length>1&&a.index<i.length&&n(I,p,E(a,1)),f=a[0].length,y=u,p.length>=s));)_.lastIndex===a.index&&_.lastIndex++;return y===i.length?!f&&C(_,"")||N(p,""):N(p,b(i,y)),p.length>s?E(p,0,s):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:o(t,this,e,r)}:t,[function(t,r){var n=l(this),s=u(t)?void 0:y(t,e);return s?o(s,t,n,r):o(i,h(n),t,r)},function(e,n){var o=a(this),s=h(e),u=r(i,o,s,n,i!==t);if(u.done)return u.value;var c=f(o,RegExp),l=o.unicode,y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(O?"g":"y"),E=new c(O?"^(?:"+o.source+")":o,y),v=void 0===n?T:n>>>0;if(0===v)return[];if(0===s.length)return null===_(E,s)?[s]:[];for(var m=0,g=0,I=[];g<s.length;){E.lastIndex=O?0:g;var C,S=_(E,O?b(s,g):s);if(null===S||(C=R(d(E.lastIndex+(O?g:0)),s.length))===m)g=p(s,g,l);else{if(N(I,b(s,m,g)),I.length===v)return I;for(var A=1;A<=S.length-1;A++)if(N(I,S[A]),I.length===v)return I;g=m=C}}return N(I,b(s,m)),I}]}),!S,O)},9172:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9107),s=r(9720),a=r(4726),u=r(2931),c=r(5793),l=r(4141),f=r(1163),p=r(8931),d=r(1571),h=r(4221),y=r(7277),E=r(9274),_=r(2499),v=r(5565),m=r(3555),g=r(1242),O=r(6584),T=r(6920),R=r(9097),I=r(4317),C=r(3633),N=r(7225),b=r(4405),S=r(6402),A=r(6033),M=r(8164),w=r(858),U=r(9140),x=r(7216),L=r(8225),P=r(3706),k=r(5125),D=r(7417),H=r(888).forEach,B=A("hidden"),G="Symbol",F=D.set,j=D.getterFor(G),W=Object.prototype,q=o.Symbol,V=q&&q.prototype,K=o.TypeError,J=o.QObject,z=R.f,X=I.f,Y=O.f,$=N.f,Q=s([].push),Z=S("symbols"),ee=S("op-symbols"),te=S("wks"),re=!J||!J.prototype||!J.prototype.findChild,ne=u&&l((function(){return 7!=v(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=z(W,t);n&&delete W[t],X(e,t,r),n&&e!==W&&X(W,t,n)}:X,oe=function(e,t){var r=Z[e]=v(V);return F(r,{type:G,tag:e,description:t}),u||(r.description=t),r},ie=function(e,t,r){e===W&&ie(ee,t,r),d(e);var n=y(t);return d(r),f(Z,n)?(r.enumerable?(f(e,B)&&e[B][n]&&(e[B][n]=!1),r=v(r,{enumerable:_(0,!1)})):(f(e,B)||X(e,B,_(1,{})),e[B][n]=!0),ne(e,n,r)):X(e,n,r)},se=function(e,t){d(e);var r=h(t),n=m(r).concat(le(r));return H(n,(function(t){u&&!i(ae,r,t)||ie(e,t,r[t])})),e},ae=function(e){var t=y(e),r=i($,this,t);return!(this===W&&f(Z,t)&&!f(ee,t))&&(!(r||!f(this,t)||!f(Z,t)||f(this,B)&&this[B][t])||r)},ue=function(e,t){var r=h(e),n=y(t);if(r!==W||!f(Z,n)||f(ee,n)){var o=z(r,n);return!o||!f(Z,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},ce=function(e){var t=Y(h(e)),r=[];return H(t,(function(e){f(Z,e)||f(M,e)||Q(r,e)})),r},le=function(e){var t=e===W,r=Y(t?ee:h(e)),n=[];return H(r,(function(e){!f(Z,e)||t&&!f(W,e)||Q(n,Z[e])})),n};c||(q=function(){if(p(V,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,t=w(e),r=function(e){this===W&&i(r,ee,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ne(this,t,_(1,e))};return u&&re&&ne(W,t,{configurable:!0,set:r}),oe(t,e)},b(V=q.prototype,"toString",(function(){return j(this).tag})),b(q,"withoutSetter",(function(e){return oe(w(e),e)})),N.f=ae,I.f=ie,C.f=se,R.f=ue,g.f=O.f=ce,T.f=le,x.f=function(e){return oe(U(e),e)},u&&(X(V,"description",{configurable:!0,get:function(){return j(this).description}}),a||b(W,"propertyIsEnumerable",ae,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),H(m(te),(function(e){L(e)})),n({target:G,stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?v(e):se(v(e),t)},defineProperty:ie,defineProperties:se,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),P(),k(q,G),M[B]=!0},4201:function(e,t,r){"use strict";var n=r(4866),o=r(2931),i=r(2383),s=r(9720),a=r(1163),u=r(1045),c=r(8931),l=r(9274),f=r(4317).f,p=r(5751),d=i.Symbol,h=d&&d.prototype;if(o&&u(d)&&(!("description"in h)||void 0!==d().description)){var y={},E=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(y[t]=!0),t};p(E,d),E.prototype=h,h.constructor=E;var _="Symbol(test)"==String(d("test")),v=s(h.valueOf),m=s(h.toString),g=/^Symbol\((.*)\)[^)]+$/,O=s("".replace),T=s("".slice);f(h,"description",{configurable:!0,get:function(){var e=v(this);if(a(y,e))return"";var t=m(e),r=_?T(t,7,-1):O(t,g,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:E})}},2718:function(e,t,r){var n=r(4866),o=r(7300),i=r(1163),s=r(9274),a=r(6402),u=r(6125),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=s(e);if(i(c,t))return c[t];var r=o("Symbol")(t);return c[t]=r,l[r]=t,r}})},6864:function(e,t,r){r(8225)("iterator")},514:function(e,t,r){r(9172),r(2718),r(2183),r(7675),r(954)},2183:function(e,t,r){var n=r(4866),o=r(1163),i=r(6894),s=r(7632),a=r(6402),u=r(6125),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(s(e)+" is not a symbol");if(o(c,e))return c[e]}})},8548:function(e,t,r){"use strict";var n=r(9720),o=r(5861),i=n(r(5239)),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},6921:function(e,t,r){"use strict";var n=r(5861),o=r(888).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8346:function(e,t,r){"use strict";var n=r(5861),o=r(9732),i=r(7386),s=r(6837),a=r(9107),u=r(9720),c=r(4141),l=n.aTypedArray,f=n.exportTypedArrayMethod,p=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===p(s(this),0,3)?i(e):+e;return a(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},3849:function(e,t,r){"use strict";var n=r(5861),o=r(888).filter,i=r(1390),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(s(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},2728:function(e,t,r){"use strict";var n=r(5861),o=r(888).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6781:function(e,t,r){"use strict";var n=r(5861),o=r(888).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3039:function(e,t,r){"use strict";var n=r(5861),o=r(888).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2258:function(e,t,r){"use strict";var n=r(5861),o=r(7351).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},316:function(e,t,r){"use strict";var n=r(5861),o=r(7351).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2446:function(e,t,r){"use strict";var n=r(2383),o=r(4141),i=r(9720),s=r(5861),a=r(1685),u=r(9140)("iterator"),c=n.Uint8Array,l=i(a.values),f=i(a.keys),p=i(a.entries),d=s.aTypedArray,h=s.exportTypedArrayMethod,y=c&&c.prototype,E=!o((function(){y[u].call([1])})),_=!!y&&y.values&&y[u]===y.values&&"values"===y.values.name,v=function(){return l(d(this))};h("entries",(function(){return p(d(this))}),E),h("keys",(function(){return f(d(this))}),E),h("values",v,E||!_,{name:"values"}),h(u,v,E||!_,{name:"values"})},695:function(e,t,r){"use strict";var n=r(5861),o=r(9720),i=n.aTypedArray,s=n.exportTypedArrayMethod,a=o([].join);s("join",(function(e){return a(i(this),e)}))},6776:function(e,t,r){"use strict";var n=r(5861),o=r(7841),i=r(1959),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,s(this),t>1?[e,arguments[1]]:[e])}))},1922:function(e,t,r){"use strict";var n=r(5861),o=r(888).map,i=r(7106),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},7146:function(e,t,r){"use strict";var n=r(5861),o=r(6653).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},8844:function(e,t,r){"use strict";var n=r(5861),o=r(6653).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},3641:function(e,t,r){"use strict";var n=r(5861),o=n.aTypedArray,i=n.exportTypedArrayMethod,s=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=s(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},650:function(e,t,r){"use strict";var n=r(2383),o=r(9107),i=r(5861),s=r(2398),a=r(5276),u=r(4569),c=r(4141),l=n.RangeError,f=n.Int8Array,p=f&&f.prototype,d=p&&p.set,h=i.aTypedArray,y=i.exportTypedArrayMethod,E=!c((function(){var e=new Uint8ClampedArray(2);return o(d,e,{length:1,0:3},1),3!==e[1]})),_=E&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));y("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(E)return o(d,this,r,t);var n=this.length,i=s(r),c=0;if(i+t>n)throw l("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!E||_)},9951:function(e,t,r){"use strict";var n=r(5861),o=r(7106),i=r(4141),s=r(942),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=s(a(this),e,t),n=o(this),i=0,u=r.length,c=new n(u);u>i;)c[i]=r[i++];return c}),i((function(){new Int8Array(1).slice()})))},2426:function(e,t,r){"use strict";var n=r(5861),o=r(888).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},5488:function(e,t,r){"use strict";var n=r(2383),o=r(9720),i=r(4141),s=r(9181),a=r(5416),u=r(5861),c=r(3975),l=r(8482),f=r(583),p=r(3701),d=u.aTypedArray,h=u.exportTypedArrayMethod,y=n.Uint16Array,E=y&&o(y.prototype.sort),_=!(!E||i((function(){E(new y(2),null)}))&&i((function(){E(new y(2),{})}))),v=!!E&&!i((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(p)return p<602;var e,t,r=new y(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(E(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&s(e),v?E(this,e):a(d(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!v||_)},8542:function(e,t,r){"use strict";var n=r(5861),o=r(2844),i=r(3943),s=r(7106),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=a(this),n=r.length,u=i(e,n);return new(s(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-u))}))},4740:function(e,t,r){"use strict";var n=r(2383),o=r(7841),i=r(5861),s=r(4141),a=r(942),u=n.Int8Array,c=i.aTypedArray,l=i.exportTypedArrayMethod,f=[].toLocaleString,p=!!u&&s((function(){f.call(new u(1))}));l("toLocaleString",(function(){return o(f,p?a(c(this)):c(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])})))},4822:function(e,t,r){"use strict";var n=r(5861).exportTypedArrayMethod,o=r(4141),i=r(2383),s=r(9720),a=i.Uint8Array,u=a&&a.prototype||{},c=[].toString,l=s([].join);o((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;n("toString",c,f)},3536:function(e,t,r){r(7466)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},7988:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),s=r(4890),a=r(6493),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in o)o[c]&&u(n[c]&&n[c].prototype);u(i)},4261:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),s=r(1685),a=r(6493),u=r(9140),c=u("iterator"),l=u("toStringTag"),f=s.values,p=function(e,t){if(e){if(e[c]!==f)try{a(e,c,f)}catch(t){e[c]=f}if(e[l]||a(e,l,t),o[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(t){e[r]=s[r]}}};for(var d in o)p(n[d]&&n[d].prototype,d);p(i,"DOMTokenList")},8259:function(e,t,r){var n=r(4866),o=r(2383),i=r(3257).setInterval;n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},2606:function(e,t,r){var n=r(4866),o=r(2383),i=r(3257).setTimeout;n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},6181:function(e,t,r){r(8259),r(2606)},5709:function(e,t,r){"use strict";r(1685);var n=r(4866),o=r(2383),i=r(9107),s=r(9720),a=r(2931),u=r(9677),c=r(4405),l=r(4766),f=r(5125),p=r(9437),d=r(7417),h=r(9112),y=r(1045),E=r(1163),_=r(3847),v=r(6837),m=r(1571),g=r(7809),O=r(9274),T=r(5565),R=r(2499),I=r(6151),C=r(1328),N=r(248),b=r(9140),S=r(5416),A=b("iterator"),M="URLSearchParams",w="URLSearchParamsIterator",U=d.set,x=d.getterFor(M),L=d.getterFor(w),P=Object.getOwnPropertyDescriptor,k=function(e){if(!a)return o[e];var t=P(o,e);return t&&t.value},D=k("fetch"),H=k("Request"),B=k("Headers"),G=H&&H.prototype,F=B&&B.prototype,j=o.RegExp,W=o.TypeError,q=o.decodeURIComponent,V=o.encodeURIComponent,K=s("".charAt),J=s([].join),z=s([].push),X=s("".replace),Y=s([].shift),$=s([].splice),Q=s("".split),Z=s("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=j("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return q(e)}catch(t){return e}},oe=function(e){var t=X(e,ee," "),r=4;try{return q(t)}catch(e){for(;r;)t=X(t,re(r--),ne);return t}},ie=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return se[e]},ue=function(e){return X(V(e),ie,ae)},ce=p((function(e,t){U(this,{type:w,iterator:I(x(e).entries),kind:t})}),"Iterator",(function(){var e=L(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(g(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?Z(e,1):e:O(e)))};le.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,s,a,u,c=C(e);if(c)for(r=(t=I(e,c)).next;!(n=i(r,t)).done;){if(s=(o=I(m(n.value))).next,(a=i(s,o)).done||(u=i(s,o)).done||!i(s,o).done)throw W("Expected sequence with length 2");z(this.entries,{key:O(a.value),value:O(u.value)})}else for(var l in e)E(e,l)&&z(this.entries,{key:l,value:O(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=Q(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Q(t,"="),z(this.entries,{key:oe(Y(r)),value:oe(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],z(r,ue(e.key)+"="+ue(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,pe);var e=arguments.length>0?arguments[0]:void 0;U(this,new le(e))},pe=fe.prototype;if(l(pe,{append:function(e,t){N(arguments.length,2);var r=x(this);z(r.entries,{key:O(e),value:O(t)}),r.updateURL()},delete:function(e){N(arguments.length,1);for(var t=x(this),r=t.entries,n=O(e),o=0;o<r.length;)r[o].key===n?$(r,o,1):o++;t.updateURL()},get:function(e){N(arguments.length,1);for(var t=x(this).entries,r=O(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){N(arguments.length,1);for(var t=x(this).entries,r=O(e),n=[],o=0;o<t.length;o++)t[o].key===r&&z(n,t[o].value);return n},has:function(e){N(arguments.length,1);for(var t=x(this).entries,r=O(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){N(arguments.length,1);for(var r,n=x(this),o=n.entries,i=!1,s=O(e),a=O(t),u=0;u<o.length;u++)(r=o[u]).key===s&&(i?$(o,u--,1):(i=!0,r.value=a));i||z(o,{key:s,value:a}),n.updateURL()},sort:function(){var e=x(this);S(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=x(this).entries,n=_(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(pe,A,pe.entries,{name:"entries"}),c(pe,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),f(fe,M),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:fe}),!u&&y(B)){var de=s(F.has),he=s(F.set),ye=function(e){if(g(e)){var t,r=e.body;if(v(r)===M)return t=e.headers?new B(e.headers):new B,de(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(e,{body:R(0,O(r)),headers:R(0,t)})}return e};if(y(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ye(arguments[1]):{})}}),y(H)){var Ee=function(e){return h(this,G),new H(e,arguments.length>1?ye(arguments[1]):{})};G.constructor=Ee,Ee.prototype=G,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ee})}}e.exports={URLSearchParams:fe,getState:x}},8385:function(e,t,r){r(5709)},1672:function(e,t,r){"use strict";r(2486);var n,o=r(4866),i=r(2931),s=r(9677),a=r(2383),u=r(3847),c=r(9720),l=r(4405),f=r(2886),p=r(9112),d=r(1163),h=r(7411),y=r(1601),E=r(9730),_=r(7957).codeAt,v=r(9492),m=r(9274),g=r(5125),O=r(248),T=r(5709),R=r(7417),I=R.set,C=R.getterFor("URL"),N=T.URLSearchParams,b=T.getState,S=a.URL,A=a.TypeError,M=a.parseInt,w=Math.floor,U=Math.pow,x=c("".charAt),L=c(/./.exec),P=c([].join),k=c(1..toString),D=c([].pop),H=c([].push),B=c("".replace),G=c([].shift),F=c("".split),j=c("".slice),W=c("".toLowerCase),q=c([].unshift),V="Invalid scheme",K="Invalid host",J="Invalid port",z=/[a-z]/i,X=/[\d+-.a-z]/i,Y=/\d/,$=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=w(e/256);return P(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=k(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ae=h({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=h({},ae,{"#":1,"?":1,"{":1,"}":1}),ce=h({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var r=_(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2==e.length&&L(z,x(e,0))&&(":"==(r=x(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&pe(j(e,0,2))&&(2==e.length||"/"===(t=x(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===W(e)},ye={},Ee={},_e={},ve={},me={},ge={},Oe={},Te={},Re={},Ie={},Ce={},Ne={},be={},Se={},Ae={},Me={},we={},Ue={},xe={},Le={},Pe={},ke=function(e,t,r){var n,o,i,s=m(e);if(t){if(o=this.parse(s))throw A(o);this.searchParams=null}else{if(void 0!==r&&(n=new ke(r,!0)),o=this.parse(s,null,n))throw A(o);(i=b(new N)).bindURL(this),this.searchParams=i}};ke.prototype={type:"URL",parse:function(e,t,r){var o,i,s,a,u,c=this,l=t||ye,f=0,p="",h=!1,_=!1,v=!1;for(e=m(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,ne,"")),e=B(e,oe,""),o=y(e);f<=o.length;){switch(i=o[f],l){case ye:if(!i||!L(z,i)){if(t)return V;l=_e;continue}p+=W(i),l=Ee;break;case Ee:if(i&&(L(X,i)||"+"==i||"-"==i||"."==i))p+=W(i);else{if(":"!=i){if(t)return V;p="",l=_e,f=0;continue}if(t&&(c.isSpecial()!=d(fe,p)||"file"==p&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=p,t)return void(c.isSpecial()&&fe[c.scheme]==c.port&&(c.port=null));p="","file"==c.scheme?l=Se:c.isSpecial()&&r&&r.scheme==c.scheme?l=ve:c.isSpecial()?l=Te:"/"==o[f+1]?(l=me,f++):(c.cannotBeABaseURL=!0,H(c.path,""),l=xe)}break;case _e:if(!r||r.cannotBeABaseURL&&"#"!=i)return V;if(r.cannotBeABaseURL&&"#"==i){c.scheme=r.scheme,c.path=E(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Pe;break}l="file"==r.scheme?Se:ge;continue;case ve:if("/"!=i||"/"!=o[f+1]){l=ge;continue}l=Re,f++;break;case me:if("/"==i){l=Ie;break}l=Ue;continue;case ge:if(c.scheme=r.scheme,i==n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query=r.query;else if("/"==i||"\\"==i&&c.isSpecial())l=Oe;else if("?"==i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query="",l=Le;else{if("#"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.path.length--,l=Ue;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query=r.query,c.fragment="",l=Pe}break;case Oe:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Ue;continue}l=Ie}else l=Re;break;case Te:if(l=Re,"/"!=i||"/"!=x(p,f+1))continue;f++;break;case Re:if("/"!=i&&"\\"!=i){l=Ie;continue}break;case Ie:if("@"==i){h&&(p="%40"+p),h=!0,s=y(p);for(var g=0;g<s.length;g++){var O=s[g];if(":"!=O||v){var T=le(O,ce);v?c.password+=T:c.username+=T}else v=!0}p=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(h&&""==p)return"Invalid authority";f-=y(p).length+1,p="",l=Ce}else p+=i;break;case Ce:case Ne:if(t&&"file"==c.scheme){l=Me;continue}if(":"!=i||_){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==p)return K;if(t&&""==p&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(p))return a;if(p="",l=we,t)return;continue}"["==i?_=!0:"]"==i&&(_=!1),p+=i}else{if(""==p)return K;if(a=c.parseHost(p))return a;if(p="",l=be,t==Ne)return}break;case be:if(!L(Y,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||t){if(""!=p){var R=M(p,10);if(R>65535)return J;c.port=c.isSpecial()&&R===fe[c.scheme]?null:R,p=""}if(t)return;l=we;continue}return J}p+=i;break;case Se:if(c.scheme="file","/"==i||"\\"==i)l=Ae;else{if(!r||"file"!=r.scheme){l=Ue;continue}if(i==n)c.host=r.host,c.path=E(r.path),c.query=r.query;else if("?"==i)c.host=r.host,c.path=E(r.path),c.query="",l=Le;else{if("#"!=i){de(P(E(o,f),""))||(c.host=r.host,c.path=E(r.path),c.shortenPath()),l=Ue;continue}c.host=r.host,c.path=E(r.path),c.query=r.query,c.fragment="",l=Pe}}break;case Ae:if("/"==i||"\\"==i){l=Me;break}r&&"file"==r.scheme&&!de(P(E(o,f),""))&&(pe(r.path[0],!0)?H(c.path,r.path[0]):c.host=r.host),l=Ue;continue;case Me:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(p))l=Ue;else if(""==p){if(c.host="",t)return;l=we}else{if(a=c.parseHost(p))return a;if("localhost"==c.host&&(c.host=""),t)return;p="",l=we}continue}p+=i;break;case we:if(c.isSpecial()){if(l=Ue,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=Ue,"/"!=i))continue}else c.fragment="",l=Pe;else c.query="",l=Le;break;case Ue:if(i==n||"/"==i||"\\"==i&&c.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=W(u=p))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||H(c.path,"")):he(p)?"/"==i||"\\"==i&&c.isSpecial()||H(c.path,""):("file"==c.scheme&&!c.path.length&&pe(p)&&(c.host&&(c.host=""),p=x(p,0)+":"),H(c.path,p)),p="","file"==c.scheme&&(i==n||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)G(c.path);"?"==i?(c.query="",l=Le):"#"==i&&(c.fragment="",l=Pe)}else p+=le(i,ue);break;case xe:"?"==i?(c.query="",l=Le):"#"==i?(c.fragment="",l=Pe):i!=n&&(c.path[0]+=le(i,se));break;case Le:t||"#"!=i?i!=n&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":le(i,se)):(c.fragment="",l=Pe);break;case Pe:i!=n&&(c.fragment+=le(i,ae))}f++}},parseHost:function(e){var t,r,n;if("["==x(e,0)){if("]"!=x(e,e.length-1))return K;if(t=function(e){var t,r,n,o,i,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,p=function(){return x(e,f)};if(":"==p()){if(":"!=x(e,1))return;f+=2,l=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&L(ee,p());)t=16*t+M(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!L(Y,p()))return;for(;L(Y,p());){if(i=M(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(s=c-l,c=7;0!=c&&s>0;)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a;else if(8!=c)return;return u}(j(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=v(e),L(te,e))return K;if(t=function(e){var t,r,n,o,i,s,a,u=F(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==x(o,0)&&(i=L($,o)?16:8,o=j(o,8==i?1:2)),""===o)s=0;else{if(!L(10==i?Z:8==i?Q:ee,o))return e;s=M(o,i)}H(r,s)}for(n=0;n<t;n++)if(s=r[n],n==t-1){if(s>=U(256,5-t))return null}else if(s>255)return null;for(a=D(r),n=0;n<r.length;n++)a+=r[n]*U(256,3-n);return a}(e),null===t)return K;this.host=t}else{if(L(re,e))return K;for(t="",r=y(e),n=0;n<r.length;n++)t+=le(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ie(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+P(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(m(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=y(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=le(t[r],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=y(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=le(t[r],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ne)},getPort:function(){var e=this.port;return null===e?"":m(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=m(e))?this.port=null:this.parse(e,be))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+P(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,we))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=m(e))?this.query=null:("?"==x(e,0)&&(e=j(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=m(e))?("#"==x(e,0)&&(e=j(e,1)),this.fragment="",this.parse(e,Pe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=p(this,He),r=O(arguments.length,1)>1?arguments[1]:void 0,n=I(t,new ke(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},He=De.prototype,Be=function(e,t){return{get:function(){return C(this)[e]()},set:t&&function(e){return C(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(He,"href",Be("serialize","setHref")),f(He,"origin",Be("getOrigin")),f(He,"protocol",Be("getProtocol","setProtocol")),f(He,"username",Be("getUsername","setUsername")),f(He,"password",Be("getPassword","setPassword")),f(He,"host",Be("getHost","setHost")),f(He,"hostname",Be("getHostname","setHostname")),f(He,"port",Be("getPort","setPort")),f(He,"pathname",Be("getPathname","setPathname")),f(He,"search",Be("getSearch","setSearch")),f(He,"searchParams",Be("getSearchParams")),f(He,"hash",Be("getHash","setHash"))),l(He,"toJSON",(function(){return C(this).serialize()}),{enumerable:!0}),l(He,"toString",(function(){return C(this).serialize()}),{enumerable:!0}),S){var Ge=S.createObjectURL,Fe=S.revokeObjectURL;Ge&&l(De,"createObjectURL",u(Ge,S)),Fe&&l(De,"revokeObjectURL",u(Fe,S))}g(De,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:De})},4838:function(e,t,r){r(1672)},9168:function(e){e.exports=r;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var o={},i={};function s(e,t){var r,n,s;return t?(s=0<=(e>>>=0)&&e<256)&&(n=i[e])?n:(r=u(e,(0|e)<0?-1:0,!0),s&&(i[e]=r),r):(s=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=u(e,e<0?-1:0,!1),s&&(o[e]=r),r)}function a(e,t){if(isNaN(e))return t?_:E;if(t){if(e<0)return _;if(e>=d)return T}else{if(e<=-h)return R;if(e+1>=h)return O}return e<0?a(-e,t).neg():u(e%p|0,e/p|0,t)}function u(e,t,n){return new r(e,t,n)}r.fromInt=s,r.fromNumber=a,r.fromBits=u;var c=Math.pow;function l(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return E;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return l(e.substring(1),t,r).neg();for(var o=a(c(r,8)),i=E,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+u),r);if(u<8){var p=a(c(r,u));i=i.mul(p).add(a(f))}else i=(i=i.mul(o)).add(a(f))}return i.unsigned=t,i}function f(e,t){return"number"==typeof e?a(e,t):"string"==typeof e?l(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=l,r.fromValue=f;var p=4294967296,d=p*p,h=d/2,y=s(1<<24),E=s(0);r.ZERO=E;var _=s(0,!0);r.UZERO=_;var v=s(1);r.ONE=v;var m=s(1,!0);r.UONE=m;var g=s(-1);r.NEG_ONE=g;var O=u(-1,2147483647,!1);r.MAX_VALUE=O;var T=u(-1,-1,!0);r.MAX_UNSIGNED_VALUE=T;var R=u(0,-2147483648,!1);r.MIN_VALUE=R;var I=r.prototype;I.toInt=function(){return this.unsigned?this.low>>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(R)){var t=a(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=a(c(e,6),this.unsigned),i=this,s="";;){var u=i.div(o),l=(i.sub(u.mul(o)).toInt()>>>0).toString(e);if((i=u).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(R)?64:this.neg().getNumBitsAbs();for(var 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},I.isZero=function(){return 0===this.high&&0===this.low},I.eqz=I.isZero,I.isNegative=function(){return!this.unsigned&&this.high<0},I.isPositive=function(){return this.unsigned||this.high>=0},I.isOdd=function(){return 1==(1&this.low)},I.isEven=function(){return 0==(1&this.low)},I.equals=function(e){return n(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return this.comp(e)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return this.comp(e)<=0},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(n(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&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},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(R)?R:this.not().add(v)},I.neg=I.negate,I.add=function(e){n(e)||(e=f(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,c=e.low>>>16,l=0,p=0,d=0,h=0;return d+=(h+=i+(65535&e.low))>>>16,p+=(d+=o+c)>>>16,l+=(p+=r+a)>>>16,l+=t+s,u((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(p&=65535),this.unsigned)},I.subtract=function(e){return n(e)||(e=f(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return E;if(n(e)||(e=f(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return E;if(this.eq(R))return e.isOdd()?R:E;if(e.eq(R))return this.isOdd()?R:E;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return a(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,s=65535&this.low,c=e.high>>>16,l=65535&e.high,p=e.low>>>16,d=65535&e.low,h=0,_=0,v=0,m=0;return v+=(m+=s*d)>>>16,_+=(v+=i*d)>>>16,v&=65535,_+=(v+=s*p)>>>16,h+=(_+=o*d)>>>16,_&=65535,h+=(_+=i*p)>>>16,_&=65535,h+=(_+=s*l)>>>16,h+=r*d+o*p+i*l+s*c,u((v&=65535)<<16|(m&=65535),(h&=65535)<<16|(_&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(n(e)||(e=f(e)),e.isZero())throw Error("division by zero");var r,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?_:E;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return _;if(e.gt(this.shru(1)))return m;i=_}else{if(this.eq(R))return e.eq(v)||e.eq(g)?R:e.eq(R)?v:(r=this.shr(1).div(e).shl(1)).eq(E)?e.isNegative()?v:g:(o=this.sub(e.mul(r)),i=r.add(o.div(e)));if(e.eq(R))return this.unsigned?_:E;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();i=E}for(o=this;o.gte(e);){r=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),l=s<=48?1:c(2,s-48),p=a(r),d=p.mul(e);d.isNegative()||d.gt(o);)d=(p=a(r-=l,this.unsigned)).mul(e);p.isZero()&&(p=v),i=i.add(p),o=o.sub(d)}return i},I.div=I.divide,I.modulo=function(e){return n(e)||(e=f(e)),t?u((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return u(~this.low,~this.high,this.unsigned)},I.and=function(e){return n(e)||(e=f(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return n(e)||(e=f(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return n(e)||(e=f(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},I.shl=I.shiftLeft,I.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},453:function(e,t,r){"use strict";e.exports=r(2833)},4759:function(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},1622:function(e,t,r){"use strict";var n=t,o=r(8052),i=r(3218);function s(e,t,r,n){if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var i=t.resolvedType.values,s=Object.keys(i),a=0;a<s.length;++a)t.repeated&&i[s[a]]===t.typeDefault&&e("default:"),e("case%j:",s[a])("case %i:",i[s[a]])("m%s=%j",n,i[s[a]])("break");e("}")}else e('if(typeof d%s!=="object")',n)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,r,n);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n<t.length;++n){var a=t[n].resolve(),u=i.safeProp(a.name);a.map?(r("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),s(r,a,n,u+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",u)("for(var i=0;i<d%s.length;++i){",u),s(r,a,n,u+"[i]")("}")("}")):(a.resolvedType instanceof o||r("if(d%s!=null){",u),s(r,a,n,u),a.resolvedType instanceof o||r("}"))}return r("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),n=[],s=[],u=[],c=0;c<t.length;++c)t[c].partOf||(t[c].resolve().repeated?n:t[c].map?s:u).push(t[c]);if(n.length){for(r("if(o.arrays||o.defaults){"),c=0;c<n.length;++c)r("d%s=[]",i.safeProp(n[c].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),c=0;c<s.length;++c)r("d%s={}",i.safeProp(s[c].name));r("}")}if(u.length){for(r("if(o.defaults){"),c=0;c<u.length;++c){var l=u[c],f=i.safeProp(l.name);if(l.resolvedType instanceof o)r("d%s=o.enums===String?%j:%j",f,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",f)("}else")("d%s=o.longs===String?%j:%i",f,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var p="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",f,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else r("d%s=%j",f,l.typeDefault)}r("}")}var d=!1;for(c=0;c<t.length;++c){l=t[c];var h=e._fieldsArray.indexOf(l);f=i.safeProp(l.name),l.map?(d||(d=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f)("for(var j=0;j<ks2.length;++j){"),a(r,l,h,f+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",f,f)("d%s=[]",f)("for(var j=0;j<m%s.length;++j){",f),a(r,l,h,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,l.name),a(r,l,h,f),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},4514:function(e,t,r){"use strict";e.exports=function(e){var t=i.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter((function(e){return e.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");e.group&&t("if((t&7)===4)")("break"),t("switch(t>>>3){");for(var r=0;r<e.fieldsArray.length;++r){var a=e._fieldsArray[r].resolve(),u=a.resolvedType instanceof n?"int32":a.type,c="m"+i.safeProp(a.name);t("case %i:",a.id),a.map?(t("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),void 0!==o.defaults[a.keyType]?t("k=%j",o.defaults[a.keyType]):t("k=null"),void 0!==o.defaults[u]?t("value=%j",o.defaults[u]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):t("%s[k]=value",c)):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,u)("}else"),void 0===o.basic[u]?t(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",c,r):t("%s.push(r.%s())",c,u)):void 0===o.basic[u]?t(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",c,r):t("%s=r.%s()",c,u),t("break")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",s(l))}return t("return m")};var n=r(8052),o=r(7767),i=r(3218);function s(e){return"missing required '"+e.name+"'"}},5701:function(e,t,r){"use strict";e.exports=function(e){for(var t,r=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(i.compareFieldsById),u=0;u<a.length;++u){var c=a[u].resolve(),l=e._fieldsArray.indexOf(c),f=c.resolvedType instanceof n?"int32":c.type,p=o.basic[f];t="m"+i.safeProp(c.name),c.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(8052),o=r(7767),i=r(3218);function s(e,t,r,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},8052:function(e,t,r){"use strict";e.exports=s;var n=r(8059);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(4072),i=r(3218);function s(e,t,r,o,i){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.reserved=void 0,t)for(var s=Object.keys(t),a=0;a<s.length;++a)"number"==typeof t[s[a]]&&(this.valuesById[this.values[s[a]]=t[s[a]]]=s[a])}s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},1676:function(e,t,r){"use strict";e.exports=c;var n=r(8059);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(8052),s=r(7767),a=r(3218),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.required="required"===o,this.optional=!this.required,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}c.fromJSON=function(e,t){return new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(c.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),c.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},1062:function(e,t,r){"use strict";var n=e.exports=r(1585);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(5701),n.decoder=r(4514),n.verifier=r(7227),n.converter=r(1622),n.ReflectionObject=r(8059),n.Namespace=r(4072),n.Root=r(2393),n.Enum=r(8052),n.Type=r(3084),n.Field=r(1676),n.OneOf=r(2631),n.MapField=r(8447),n.Service=r(7484),n.Method=r(3169),n.Message=r(5192),n.wrappers=r(6599),n.types=r(7767),n.util=r(3218),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},1585:function(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(7168),n.BufferWriter=r(4023),n.Reader=r(3124),n.BufferReader=r(8170),n.util=r(1986),n.rpc=r(531),n.roots=r(6742),n.configure=o,o()},2833:function(e,t,r){"use strict";var n=e.exports=r(1062);n.build="full",n.tokenize=r(4993),n.parse=r(9357),n.common=r(4759),n.Root._configure(n.Type,n.parse,n.common)},8447:function(e,t,r){"use strict";e.exports=s;var n=r(1676);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(7767),i=r(3218);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},5192:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}o.create=function(e){return this.$type.create(e)},o.encode=function(e,t){return this.$type.encode(e,t)},o.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},o.decode=function(e){return this.$type.decode(e)},o.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},o.verify=function(e){return this.$type.verify(e)},o.fromObject=function(e){return this.$type.fromObject(e)},o.toObject=function(e,t){return this.$type.toObject(e,t)},o.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},3169:function(e,t,r){"use strict";e.exports=i;var n=r(8059);((i.prototype=Object.create(n.prototype)).constructor=i).className="Method";var o=r(3218);function i(e,t,r,i,s,a,u,c,l){if(o.isObject(s)?(u=s,s=a=void 0):o.isObject(a)&&(u=a,a=void 0),void 0!==t&&!o.isString(t))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(i))throw TypeError("responseType must be a string");n.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=i,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=c,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},4072:function(e,t,r){"use strict";e.exports=f;var n=r(8059);((f.prototype=Object.create(n.prototype)).constructor=f).className="Namespace";var o,i,s,a=r(1676),u=r(2631),c=r(3218);function l(e,t){if(e&&e.length){for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}}function f(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null}function p(e){return e._nestedArray=null,e}f.fromJSON=function(e,t){return new f(e,t.options).addJSON(t.nested)},f.arrayToJSON=l,f.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(f.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=c.toArray(this.nested))}}),f.prototype.toJSON=function(e){return c.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},f.prototype.addJSON=function(e){if(e)for(var t,r=Object.keys(e),n=0;n<r.length;++n)t=e[r[n]],this.add((void 0!==t.fields?o.fromJSON:void 0!==t.values?s.fromJSON:void 0!==t.methods?i.fromJSON:void 0!==t.id?a.fromJSON:f.fromJSON)(r[n],t));return this},f.prototype.get=function(e){return this.nested&&this.nested[e]||null},f.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},f.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof o||e instanceof s||e instanceof i||e instanceof f||e instanceof u))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof f&&e instanceof f)||t instanceof o||t instanceof i)throw Error("duplicate name '"+e.name+"' in "+this);for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};return this.nested[e.name]=e,e.onAdd(this),p(this)},f.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),p(this)},f.prototype.define=function(e,t){if(c.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof f?e[t++].resolveAll():e[t++].resolve();return this.resolve()},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),c.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.get(e[0]);if(n){if(1===e.length){if(!t||t.indexOf(n.constructor)>-1)return n}else if(n instanceof f&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var o=0;o<this.nestedArray.length;++o)if(this._nestedArray[o]instanceof f&&(n=this._nestedArray[o].lookup(e,t,!0)))return n;return null===this.parent||r?null:this.parent.lookup(e,t)},f.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},f.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},f.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},f.prototype.lookupService=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},f._configure=function(e,t,r){o=e,i=t,s=r}},8059:function(e,t,r){"use strict";e.exports=i,i.className="ReflectionObject";var n,o=r(3218);function i(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,r){return r&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var i=n.find((function(t){return Object.prototype.hasOwnProperty.call(t,e)}));if(i){var s=i[e];o.setProperty(s,r,t)}else(i={})[e]=o.setProperty({},r,t),n.push(i)}else{var a={};a[e]=t,n.push(a)}return this},i.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},i.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},i._configure=function(e){n=e}},2631:function(e,t,r){"use strict";e.exports=s;var n=r(8059);((s.prototype=Object.create(n.prototype)).constructor=s).className="OneOf";var o=r(1676),i=r(3218);function s(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function a(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}s.fromJSON=function(e,t){return new s(e,t.oneof,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},s.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,a(this),this},s.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},s.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},s.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new s(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},9357:function(e,t,r){"use strict";e.exports=I,I.filename=null,I.defaults={keepCase:!1};var n=r(4993),o=r(2393),i=r(3084),s=r(1676),a=r(8447),u=r(2631),c=r(8052),l=r(7484),f=r(3169),p=r(7767),d=r(3218),h=/^[1-9][0-9]*$/,y=/^-?[1-9][0-9]*$/,E=/^0[x][0-9a-fA-F]+$/,_=/^-?0[x][0-9a-fA-F]+$/,v=/^0[0-7]+$/,m=/^-?0[0-7]+$/,g=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,T=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,R=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function I(e,t,r){t instanceof o||(r=t,t=new o),r||(r=I.defaults);var C,N,b,S,A,M=r.preferTrailingComment||!1,w=n(e,r.alternateCommentMode||!1),U=w.next,x=w.push,L=w.peek,P=w.skip,k=w.cmnt,D=!0,H=!1,B=t,G=r.keepCase?function(e){return e}:d.camelCase;function F(e,t,r){var n=I.filename;return r||(I.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+w.line+")")}function j(){var e,t=[];do{if('"'!==(e=U())&&"'"!==e)throw F(e);t.push(U()),P(e),e=L()}while('"'===e||"'"===e);return t.join("")}function W(e){var t=U();switch(t){case"'":case'"':return x(t),j();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(h.test(e))return r*parseInt(e,10);if(E.test(e))return r*parseInt(e,16);if(v.test(e))return r*parseInt(e,8);if(g.test(e))return r*parseFloat(e);throw F(e,"number",!0)}(t)}catch(r){if(e&&T.test(t))return t;throw F(t,"value")}}function q(e,t){var r,n;do{!t||'"'!==(r=L())&&"'"!==r?e.push([n=V(U()),P("to",!0)?V(U()):n]):e.push(j())}while(P(",",!0));P(";")}function V(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw F(e,"id");if(y.test(e))return parseInt(e,10);if(_.test(e))return parseInt(e,16);if(m.test(e))return parseInt(e,8);throw F(e,"id")}function K(){if(void 0!==C)throw F("package");if(C=U(),!T.test(C))throw F(C,"name");B=B.define(C),P(";")}function J(){var e,t=L();switch(t){case"weak":e=b||(b=[]),U();break;case"public":U();default:e=N||(N=[])}t=j(),P(";"),e.push(t)}function z(){if(P("="),S=j(),!(H="proto3"===S)&&"proto2"!==S)throw F(S,"syntax");P(";")}function X(e,t){switch(t){case"option":return Q(e,t),P(";"),!0;case"message":return function(e,t){if(!O.test(t=U()))throw F(t,"type name");var r=new i(t);Y(r,(function(e){if(!X(r,e))switch(e){case"map":!function(e){P("<");var t=U();if(void 0===p.mapKey[t])throw F(t,"type");P(",");var r=U();if(!T.test(r))throw F(r,"type");P(">");var n=U();if(!O.test(n))throw F(n,"name");P("=");var o=new a(G(n),V(U()),t,r);Y(o,(function(e){if("option"!==e)throw F(e);Q(o,e),P(";")}),(function(){te(o)})),e.add(o)}(r);break;case"required":case"repeated":$(r,e);break;case"optional":$(r,H?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!O.test(t=U()))throw F(t,"name");var r=new u(G(t));Y(r,(function(e){"option"===e?(Q(r,e),P(";")):(x(e),$(r,"optional"))})),e.add(r)}(r,e);break;case"extensions":q(r.extensions||(r.extensions=[]));break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:if(!H||!T.test(e))throw F(e);x(e),$(r,"optional")}})),e.add(r)}(e,t),!0;case"enum":return function(e,t){if(!O.test(t=U()))throw F(t,"name");var r=new c(t);Y(r,(function(e){switch(e){case"option":Q(r,e),P(";");break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:!function(e,t){if(!O.test(t))throw F(t,"name");P("=");var r=V(U(),!0),n={};Y(n,(function(e){if("option"!==e)throw F(e);Q(n,e),P(";")}),(function(){te(n)})),e.add(t,r,n.comment)}(r,e)}})),e.add(r)}(e,t),!0;case"service":return function(e,t){if(!O.test(t=U()))throw F(t,"service name");var r=new l(t);Y(r,(function(e){if(!X(r,e)){if("rpc"!==e)throw F(e);!function(e,t){var r=k(),n=t;if(!O.test(t=U()))throw F(t,"name");var o,i,s,a,u=t;if(P("("),P("stream",!0)&&(i=!0),!T.test(t=U()))throw F(t);if(o=t,P(")"),P("returns"),P("("),P("stream",!0)&&(a=!0),!T.test(t=U()))throw F(t);s=t,P(")");var c=new f(u,n,o,s,i,a);c.comment=r,Y(c,(function(e){if("option"!==e)throw F(e);Q(c,e),P(";")})),e.add(c)}(r,e)}})),e.add(r)}(e,t),!0;case"extend":return function(e,t){if(!T.test(t=U()))throw F(t,"reference");var r=t;Y(null,(function(t){switch(t){case"required":case"repeated":$(e,t,r);break;case"optional":$(e,H?"proto3_optional":"optional",r);break;default:if(!H||!T.test(t))throw F(t);x(t),$(e,"optional",r)}}))}(e,t),!0}return!1}function Y(e,t,r){var n=w.line;if(e&&("string"!=typeof e.comment&&(e.comment=k()),e.filename=I.filename),P("{",!0)){for(var o;"}"!==(o=U());)t(o);P(";",!0)}else r&&r(),P(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=k(n)||e.comment)}function $(e,t,r){var n=U();if("group"!==n){if(!T.test(n))throw F(n,"type");var o=U();if(!O.test(o))throw F(o,"name");o=G(o),P("=");var a=new s(o,V(U()),n,t,r);if(Y(a,(function(e){if("option"!==e)throw F(e);Q(a,e),P(";")}),(function(){te(a)})),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);H||!a.repeated||void 0===p.packed[n]&&void 0!==p.basic[n]||a.setOption("packed",!1,!0)}else!function(e,t){var r=U();if(!O.test(r))throw F(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),P("=");var o=V(U()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=I.filename,Y(a,(function(e){switch(e){case"option":Q(a,e),P(";");break;case"required":case"repeated":$(a,e);break;case"optional":$(a,H?"proto3_optional":"optional");break;default:throw F(e)}})),e.add(a).add(u)}(e,t)}function Q(e,t){var r=P("(",!0);if(!T.test(t=U()))throw F(t,"name");var n,o=t,i=o;r&&(P(")"),i=o="("+o+")",t=L(),R.test(t)&&(n=t.substr(1),o+=t,U())),P("="),function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,i,Z(e,o),n)}function Z(e,t){if(P("{",!0)){for(var r={};!P("}",!0);){if(!O.test(A=U()))throw F(A,"name");var n,o=A;"{"===L()?n=Z(e,t+"."+A):(P(":"),"{"===L()?n=Z(e,t+"."+A):(n=W(!0),ee(e,t+"."+A,n)));var i=r[o];i&&(n=[].concat(i).concat(n)),r[o]=n,P(",",!0)}return r}var s=W(!0);return ee(e,t,s),s}function ee(e,t,r){e.setOption&&e.setOption(t,r)}function te(e){if(P("[",!0)){do{Q(e,"option")}while(P(",",!0));P("]")}return e}for(;null!==(A=U());)switch(A){case"package":if(!D)throw F(A);K();break;case"import":if(!D)throw F(A);J();break;case"syntax":if(!D)throw F(A);z();break;case"option":Q(B,A),P(";");break;default:if(X(B,A)){D=!1;continue}throw F(A)}return I.filename=null,{package:C,imports:N,weakImports:b,syntax:S,root:t}}},3124:function(e,t,r){"use strict";e.exports=u;var n,o=r(1986),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},8170:function(e,t,r){"use strict";e.exports=i;var n=r(3124);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(1986);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},2393:function(e,t,r){"use strict";e.exports=f;var n=r(4072);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(1676),u=r(8052),c=r(2631),l=r(3218);function f(e){n.call(this,"",e),this.deferred=[],this.files=[]}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){var r=n;if(n=null,a)throw e;r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=c(s.imports[f])||o.resolvePath(e,s.imports[f]))&&d(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=c(s.weakImports[f])||o.resolvePath(e,s.weakImports[f]))&&d(n,!0)}else o.setOptions(t.options).addJSON(t.nested)}catch(e){u(e)}a||h||u(null,o)}function d(e,t){if(!(o.files.indexOf(e)>-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++h,setTimeout((function(){--h,f(e,s[e])})));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++h,o.fetch(e,(function(r,i){--h,n&&(r?t?h||u(null,o):u(r):f(e,i))}))}var h=0;l.isString(t)&&(t=[t]);for(var y,E=0;E<t.length;++E)(y=o.resolvePath("",t[E]))&&d(y);if(a)return o;h||u(null,o)},f.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,p)},f.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(e){return"'extend "+e.extend+"' in "+e.parent.fullName})).join(", "));return n.prototype.resolveAll.call(this)};var d=/^[A-Z]/;function h(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return n.declaringField=t,t.extensionField=n,r.add(n),!0}return!1}f.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||h(0,e)||this.deferred.push(e);else if(e instanceof u)d.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof c)){if(e instanceof o)for(var t=0;t<this.deferred.length;)h(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);d.test(e.name)&&(e.parent[e.name]=e)}},f.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)d.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);d.test(e.name)&&delete e.parent[e.name]}},f._configure=function(e,t,r){o=e,i=t,s=r}},6742:function(e){"use strict";e.exports={}},531:function(e,t,r){"use strict";t.Service=r(9180)},9180:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,o,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof o))try{r=o[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7484:function(e,t,r){"use strict";e.exports=a;var n=r(4072);((a.prototype=Object.create(n.prototype)).constructor=a).className="Service";var o=r(3169),i=r(3218),s=r(531);function a(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function u(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),i=0;i<n.length;++i)r.add(o.fromJSON(n[i],t.methods[n[i]]));return t.nested&&r.addJSON(t.nested),r.comment=t.comment,r},a.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return i.toObject(["options",t&&t.options||void 0,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}}),a.prototype.get=function(e){return this.methods[e]||n.prototype.get.call(this,e)},a.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return n.prototype.resolve.call(this)},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?(this.methods[e.name]=e,e.parent=this,u(this)):n.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return n.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var u=i.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");o[u]=i.codegen(["r","c"],i.isReserved(u)?u+"_":u)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return o}},4993:function(e){"use strict";e.exports=f;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,(function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}}))}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,d=null,h=null,y=0,E=!1,_=!1,v=[],m=null;function g(e){return Error("illegal "+e+" (line "+p+")")}function O(t){return e.charAt(t)}function T(t,r,n){d=e.charAt(t++),y=p,E=!1,_=n;var a,c=t-(u?2:3);do{if(--c<0||"\n"===(a=e.charAt(c))){E=!0;break}}while(" "===a||"\t"===a);for(var l=e.substring(t,r).split(s),f=0;f<l.length;++f)l[f]=l[f].replace(u?i:o,"").trim();h=l.join("\n").trim()}function R(t){var r=I(t),n=e.substring(t,r);return/^\s*\/{1,2}/.test(n)}function I(e){for(var t=e;t<f&&"\n"!==O(t);)t++;return t}function C(){if(v.length>0)return v.shift();if(m)return function(){var t="'"===m?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw g("string");return c=t.lastIndex,N(m),m=null,l(o[1])}();var o,i,s,d,h,y=0===c;do{if(c===f)return null;for(o=!1;a.test(s=O(c));)if("\n"===s&&(y=!0,++p),++c===f)return null;if("/"===O(c)){if(++c===f)throw g("comment");if("/"===O(c))if(u){if(d=c,h=!1,R(c)){h=!0;do{if((c=I(c))===f)break;c++}while(R(c))}else c=Math.min(f,I(c)+1);h&&T(d,c,y),p++,o=!0}else{for(h="/"===O(d=c+1);"\n"!==O(++c);)if(c===f)return null;++c,h&&T(d,c-1,y),++p,o=!0}else{if("*"!==(s=O(c)))return"/";d=c+1,h=u||"*"===O(d);do{if("\n"===s&&++p,++c===f)throw g("comment");i=s,s=O(c)}while("*"!==i||"/"!==s);++c,h&&T(d,c-2,y),o=!0}}}while(o);var E=c;if(t.lastIndex=0,!t.test(O(E++)))for(;E<f&&!t.test(O(E));)++E;var _=e.substring(c,c=E);return'"'!==_&&"'"!==_||(m=_),_}function N(e){v.push(e)}function b(){if(!v.length){var e=C();if(null===e)return null;N(e)}return v[0]}return Object.defineProperty({next:C,peek:b,push:N,skip:function(e,t){var r=b();if(r===e)return C(),!0;if(!t)throw g("token '"+r+"', '"+e+"' expected");return!1},cmnt:function(e){var t=null;return void 0===e?y===p-1&&(u||"*"===d||E)&&(t=_?h:null):(y<e&&b(),y!==e||E||!u&&"/"!==d||(t=_?null:h)),t}},"line",{get:function(){return p}})}f.unescape=l},3084:function(e,t,r){"use strict";e.exports=v;var n=r(4072);((v.prototype=Object.create(n.prototype)).constructor=v).className="Type";var o=r(8052),i=r(2631),s=r(1676),a=r(8447),u=r(7484),c=r(5192),l=r(3124),f=r(7168),p=r(3218),d=r(5701),h=r(4514),y=r(7227),E=r(1622),_=r(6599);function v(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function m(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(v.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=p.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=p.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=v.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof c||((e.prototype=new c).constructor=e,p.merge(e.prototype,t)),e.$type=e.prototype.$type=this,p.merge(e,c,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var n={};for(r=0;r<this.oneofsArray.length;++r)n[this._oneofsArray[r].resolve().name]={get:p.oneOfGetter(this._oneofsArray[r].oneof),set:p.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,n)}}}),v.generateConstructor=function(e){for(var t,r=p.codegen(["p"],e.name),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",p.safeProp(t.name)):t.repeated&&r("this%s=[]",p.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},v.fromJSON=function(e,t){var r=new v(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var c=Object.keys(t.fields),l=0;l<c.length;++l)r.add((void 0!==t.fields[c[l]].keyType?a.fromJSON:s.fromJSON)(c[l],t.fields[c[l]]));if(t.oneofs)for(c=Object.keys(t.oneofs),l=0;l<c.length;++l)r.add(i.fromJSON(c[l],t.oneofs[c[l]]));if(t.nested)for(c=Object.keys(t.nested),l=0;l<c.length;++l){var f=t.nested[c[l]];r.add((void 0!==f.id?s.fromJSON:void 0!==f.fields?v.fromJSON:void 0!==f.values?o.fromJSON:void 0!==f.methods?u.fromJSON:n.fromJSON)(c[l],f))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),r},v.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return p.toObject(["options",t&&t.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter((function(e){return!e.declaringField})),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},v.prototype.resolveAll=function(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var r=this.oneofsArray;for(t=0;t<r.length;)r[t++].resolve();return n.prototype.resolveAll.call(this)},v.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},v.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),m(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),m(this)):n.prototype.add.call(this,e)},v.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),m(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),m(this)}return n.prototype.remove.call(this,e)},v.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},v.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},v.prototype.create=function(e){return new this.ctor(e)},v.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=d(this)({Writer:f,types:t,util:p}),this.decode=h(this)({Reader:l,types:t,util:p}),this.verify=y(this)({types:t,util:p}),this.fromObject=E.fromObject(this)({types:t,util:p}),this.toObject=E.toObject(this)({types:t,util:p});var n=_[e];if(n){var o=Object.create(this);o.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(o),o.toObject=this.toObject,this.toObject=n.toObject.bind(o)}return this},v.prototype.encode=function(e,t){return this.setup().encode(e,t)},v.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},v.prototype.decode=function(e,t){return this.setup().decode(e,t)},v.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},v.prototype.verify=function(e){return this.setup().verify(e)},v.prototype.fromObject=function(e){return this.setup().fromObject(e)},v.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},v.d=function(e){return function(t){p.decorateType(t,e)}}},7767:function(e,t,r){"use strict";var n=t,o=r(3218),i=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,n={};for(t|=0;r<e.length;)n[i[r+t]]=e[r++];return n}n.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",o.emptyArray,null]),n.long=s([0,0,0,1,1],7),n.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])},3218:function(e,t,r){"use strict";var n,o,i=e.exports=r(1986),s=r(6742);i.codegen=r(4495),i.fetch=r(8551),i.path=r(7460),i.fs=i.inquire("fs"),i.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},i.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],o=e[r++];void 0!==o&&(t[n]=o)}return t};var a=/\\/g,u=/"/g;i.isReserved=function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)},i.safeProp=function(e){return!/^[$\w_]+$/.test(e)||i.isReserved(e)?'["'+e.replace(a,"\\\\").replace(u,'\\"')+'"]':"."+e},i.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var c=/_([a-z])/g;i.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(c,(function(e,t){return t.toUpperCase()}))},i.compareFieldsById=function(e,t){return e.id-t.id},i.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(i.decorateRoot.remove(e.$type),e.$type.name=t,i.decorateRoot.add(e.$type)),e.$type;n||(n=r(3084));var o=new n(t||e.name);return i.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var l=0;i.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r(8052));var t=new o("Enum"+l++,e);return i.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},i.setProperty=function(e,t,r){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,n){var o=r.shift();if("__proto__"===o)return t;if(r.length>0)t[o]=e(t[o]||{},r,n);else{var i=t[o];i&&(n=[].concat(i).concat(n)),t[o]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(2393)))}})},2969:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},1986:function(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o<n.length;++o)void 0!==e[n[o]]&&r||(e[n[o]]=t[n[o]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&o(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}n.asPromise=r(5317),n.base64=r(8660),n.EventEmitter=r(3745),n.float=r(9059),n.inquire=r(491),n.utf8=r(8375),n.pool=r(8601),n.LongBits=r(2969),n.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),n.global=n.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},7227:function(e,t,r){"use strict";e.exports=function(e){var t=o.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n<e.fieldsArray.length;++n){var u=e._fieldsArray[n].resolve(),c="m"+o.safeProp(u.name);if(u.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",c,u.name),u.map)t("if(!util.isObject(%s))",c)("return%j",i(u,"object"))("var k=Object.keys(%s)",c)("for(var i=0;i<k.length;++i){"),a(t,u,"k[i]"),s(t,u,n,c+"[k[i]]")("}");else if(u.repeated)t("if(!Array.isArray(%s))",c)("return%j",i(u,"array"))("for(var i=0;i<%s.length;++i){",c),s(t,u,n,c+"[i]")("}");else{if(u.partOf){var l=o.safeProp(u.partOf.name);1===r[u.partOf.name]&&t("if(p%s===1)",l)("return%j",u.partOf.name+": multiple values"),r[u.partOf.name]=1,t("p%s=1",l)}s(t,u,n,c)}u.optional&&t("}")}return t("return null")};var n=r(8052),o=r(3218);function i(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function s(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(%s){",o)("default:")("return%j",i(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),a=0;a<s.length;++a)e("case %i:",t.resolvedType.values[s[a]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",i(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",i(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",i(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",i(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",i(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",i(t,"buffer"))}return e}function a(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",i(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",i(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",i(t,"boolean key"))}return e}},6599:function(e,t,r){"use strict";var n=t,o=r(5192);n[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].substr(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var i=this.lookup(n);i&&(e=i.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof o){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.substr(1):e.$type.fullName),s["@type"]=n,s}return this.toObject(e,t)}}},7168:function(e,t,r){"use strict";e.exports=f;var n,o=r(1986),i=o.LongBits,s=o.base64,a=o.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var p=function(){return o.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function d(e,t,r){t[r]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function y(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function E(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(d,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(E,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(E,4,t.lo)._push(E,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var _=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(d,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(_,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},4023:function(e,t,r){"use strict";e.exports=i;var n=r(7168);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(1986);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},i.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return Ae}}),__webpack_require__(8327),__webpack_require__(900),__webpack_require__(3814),__webpack_require__(514),__webpack_require__(4201),__webpack_require__(6864),__webpack_require__(1685),__webpack_require__(2486),__webpack_require__(4261),__webpack_require__(8668),__webpack_require__(1008),__webpack_require__(7461),__webpack_require__(1362),__webpack_require__(7988),__webpack_require__(3786),__webpack_require__(7693),__webpack_require__(9782),__webpack_require__(9046),__webpack_require__(8453),__webpack_require__(6181),__webpack_require__(7521);var e=__webpack_require__(453),t=__webpack_require__.n(e),r=__webpack_require__(9168),n=__webpack_require__.n(r),o=__webpack_require__(2591),i=__webpack_require__(7551),s=__webpack_require__(6916),a=(__webpack_require__(937),__webpack_require__(2657),__webpack_require__(351),__webpack_require__(5980),__webpack_require__(863),__webpack_require__(3536),__webpack_require__(8548),__webpack_require__(6921),__webpack_require__(8346),__webpack_require__(3849),__webpack_require__(6781),__webpack_require__(2728),__webpack_require__(3039),__webpack_require__(2258),__webpack_require__(316),__webpack_require__(2446),__webpack_require__(695),__webpack_require__(6776),__webpack_require__(1922),__webpack_require__(8844),__webpack_require__(7146),__webpack_require__(3641),__webpack_require__(650),__webpack_require__(9951),__webpack_require__(2426),__webpack_require__(5488),__webpack_require__(8542),__webpack_require__(4740),__webpack_require__(4822),__webpack_require__(3022),__webpack_require__(9889),__webpack_require__(6619),__webpack_require__(1538),__webpack_require__(3529),__webpack_require__(7118),__webpack_require__(5491)),u=__webpack_require__.n(a),c=__webpack_require__(3365),l=(__webpack_require__(7095),function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});function f(e){var t,r,n=e.id,o=e.payload,i=e.timestamp,a=e.to,u=o.bodies&&o.bodies.length>0?o.bodies[0]:{},c={},f={},p=o.type?o.type:a.indexOf("@conference.easemob.com")>-1?"groupChat":"singleChat";switch(u.type){case"txt":c={id:n,type:"txt",chatType:p,msg:u.msg||"",to:o.to||"",from:o.from,time:i,ext:o.ext};break;case"img":c={id:n,type:"img",chatType:p,to:o.to,from:o.from,time:i,ext:o.ext,width:(null===(t=u.size)||void 0===t?void 0:t.width)||0,height:(null===(r=u.size)||void 0===r?void 0:r.height)||0,secret:u.secret||"",url:(null==u?void 0:u.url)||"",file:{}};break;case"video":c={id:n,type:"video",chatType:p,from:o.from,to:o.to,url:(null==u?void 0:u.url)||"",secret:u.secret||"",filename:u.filename,length:u.length||0,file:{},file_length:u.fileLength||0,filetype:o.ext.file_type||"",ext:o.ext,time:i};break;case"loc":c={id:n,type:"loc",chatType:p,from:o.from,to:o.to,buildingName:u.buildingName||"",addr:u.addr,lat:u.lat,lng:u.lng,ext:o.ext,time:i};break;case"audio":c={id:n,type:"audio",chatType:p,from:o.from,to:o.to,secret:u.secret||"",ext:o.ext,time:i,url:(null==u?void 0:u.url)||"",file:{},filename:u.filename,length:o.ext.duration||0,file_length:u.fileLength||0,filetype:o.ext.file_type||""};break;case"file":c={id:n,type:"file",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,url:(null==u?void 0:u.url)||"",secret:u.secret||"",file:{},filename:u.filename||"",length:u.length||0,file_length:u.file_length||0,filetype:o.ext.file_type||""};break;case"cmd":c={id:n,type:"cmd",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,action:u.action||""};break;case"custom":c={id:n,type:"custom",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,customEvent:u.customEvent||""};break;default:s.kg.error("unexpected message: ".concat(e))}if(o.msgConfig&&(f.msgConfig=o.msgConfig),null==o?void 0:o.meta){var d=o.meta;d.thread&&(f.chatThread={messageId:d.thread.msg_parent_id,parentId:d.thread.muc_parent_id,chatThreadName:d.thread.thread_name}),d.reactions&&(f.reactions=d.reactions),d.translations&&(f.translations=d.translations)}return l(l({},c),f)}var p={0:"TEXT",1:"IMAGE",2:"VIDEO",3:"LOCATION",4:"VOICE",5:"FILE",6:"COMMAND",7:"CUSTOM"};function d(e){for(var t={},r=0;r<e.length;r++)if(8===e[r].type)t[e[r].key]=JSON.parse(e[r].stringValue);else if(7===e[r].type)t[e[r].key]=e[r].stringValue;else if(6===e[r].type)t[e[r].key]=e[r].doubleValue;else if(5===e[r].type)t[e[r].key]=e[r].floatValue;else if(1===e[r].type){var o=e[r].varintValue,i=new(n())(o.low,o.high,o.unsigned).toString();t[e[r].key]=0!==Number(i)}else 2!==e[r].type&&3!==e[r].type&&4!==e[r].type||(o=e[r].varintValue,i=new(n())(o.low,o.high,o.unsigned).toString(),t[e[r].key]=Number(i));return t}function h(e,t,r){if(this.delivery&&e!==t){var n=this.getUniqueId(),i=new o.Message("delivery",n);i.set({ackId:r,to:e}),s.kg.debug("send delivery ack"),this.send(i.body)}}var y,E=function(e,t,r,o){var a,u,c,l,y,E,_,v=new(n())(e.timestamp.low,e.timestamp.high,e.timestamp.unsigned).toString(),m=this.root.lookup("easemob.pb.MessageBody").decode(e.payload),g=1;if(e.meta&&e.meta.length)switch(i.P6.parseNotify(e.meta).is_online){case 0:g=0;break;case 1:g=1;break;default:g=2}else g=3;var O,T=new(n())(e.id.low,e.id.high,e.id.unsigned).toString(),R=m.ackMessageId?new(n())(m.ackMessageId.low,m.ackMessageId.high,m.ackMessageId.unsigned).toString():"",I="",C=m.from&&m.from.name,N=m.to&&m.to.name;switch(s.kg.debug("thirdMessage:",m),m.type){case 1:I="chat","agoraToken"===this.grantType&&(I="singleChat"),this.delivery&&h.call(this,C,N,T);break;case 2:I="groupchat","agoraToken"===this.grantType&&(I="groupChat");break;case 3:I="chatroom","agoraToken"===this.grantType&&(I="chatRoom"),g=1;break;case 4:I="read_ack";var b=void 0;return m.ext[0]&&JSON.parse(m.ext[0].stringValue)?(b={id:T,type:"read",from:C,to:N,mid:R,groupReadCount:m.ext[0]&&JSON.parse(m.ext[0].stringValue),ackContent:m.ackContent,onlineState:g},this.onReadMessage&&this.onReadMessage(b),void(null===(a=this.eventHandler)||void 0===a||a.dispatch("onReadMessage",b))):(b={id:T,type:"read",from:C,to:N,mid:R,onlineState:g},this.onReadMessage&&this.onReadMessage(b),void(null===(u=this.eventHandler)||void 0===u||u.dispatch("onReadMessage",b)));case 5:I="deliver_ack",this.onDeliveredMessage&&this.onDeliveredMessage({id:T,type:"delivery",from:C,to:N,mid:R,onlineState:g});var S={id:T,type:"delivery",from:C,to:N,mid:R,onlineState:g};return void(null===(c=this.eventHandler)||void 0===c||c.dispatch("onDeliveredMessage",S));case 6:I="recall";var A={id:T,from:C||"admin",to:N,mid:R,onlineState:g};return this.onRecallMessage&&this.onRecallMessage(A),void(null===(l=this.eventHandler)||void 0===l||l.dispatch("onRecallMessage",A));case 7:this.onChannelMessage&&this.onChannelMessage({id:T,type:"channel",chatType:"singleChat",from:C,to:N,time:Number(v),onlineState:g});var M={id:T,type:"channel",chatType:"singleChat",from:C,to:N,time:Number(v),onlineState:g};return void(null===(y=this.eventHandler)||void 0===y||y.dispatch("onChannelMessage",M));default:return void s.kg.error("unexpected message type: ".concat(m.type))}"chat"===I.toLowerCase()||"singleChat"===I?O="singleChat":"groupchat"===I.toLowerCase()||"groupChat"===I?O="groupChat":(O="chatRoom",g=1);for(var w=0;w<m.contents.length;w++){var U={},x={},L=t.errorCode>0,P=t.errorCode,k=t.reason,D=m.contents[w],H={},B=[],G=[],F=null,j=null,W=void 0;if(m.ext&&(H=d(m.ext)),m.meta&&"string"==typeof m.meta){var q=JSON.parse(m.meta);q.reaction&&(B=q.reaction).forEach((function(e){e.isAddedBySelf=e.state,delete e.state})),q.translations&&(G=q.translations),q.thread&&"{}"!==JSON.stringify(q.thread)&&(F={messageId:q.thread.msg_parent_id,parentId:q.thread.muc_parent_id,chatThreadName:q.thread.thread_name}),q.thread_overview&&"{}"!==JSON.stringify(q.thread_overview)&&(j={id:q.thread_overview.id,parentId:q.thread_overview.muc_parent_id,name:q.thread_overview.name,lastMessage:f(q.thread_overview.last_message),createTimestamp:q.thread_overview.create_timestamp,updateTimestamp:q.thread_overview.update_timestamp,messageCount:q.thread_overview.message_count})}switch(D.type){case 0:!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,data:D.text,ext:H,sourceMsg:D.text,time:v,msgConfig:m.msgConfig,onlineState:g}).msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onTextMessage&&this.onTextMessage(U);var V={id:T,type:"txt",chatType:O,msg:D.text,to:N,from:C,ext:H,time:Number(v),onlineState:g};U.msgConfig&&(V.msgConfig=U.msgConfig),B.length>0&&(V.reactions=B),F&&(V.chatThread=F),j&&(V.chatThreadOverview=j),G.length>0&&(V.translations=G),x=V,!r&&this.eventHandler&&this.eventHandler.dispatch("onTextMessage",V);break;case 1:var K=(null===(E=null==D?void 0:D.size)||void 0===E?void 0:E.width)||0,J=(null===(_=null==D?void 0:D.size)||void 0===_?void 0:_.height)||0;W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,url:W,secret:D.secretKey,filename:D.displayName,thumb:this.useOwnUploadFun?"":"".concat(W,"&thumbnail=true"),thumb_secret:D.secretKey,file_length:D.fileLength||"",width:K,height:J,filetype:D.filetype||"",accessToken:this.token,ext:H,time:v,msgConfig:m.msgConfig,onlineState:g}).delay&&delete U.delay,!U.msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onPictureMessage&&this.onPictureMessage(U);var z={id:T,type:"img",chatType:O,from:C,to:N,url:W||"",file:{},width:K,height:J,secret:D.secretKey||"",thumb:this.useOwnUploadFun?"":"".concat(W,"&thumbnail=true"),thumb_secret:D.secretKey,ext:H,time:Number(v),onlineState:g};U.msgConfig&&(z.msgConfig=U.msgConfig),B.length>0&&(z.reactions=B),F&&(z.chatThread=F),j&&(z.chatThreadOverview=j),x=z,!r&&this.eventHandler&&this.eventHandler.dispatch("onImageMessage",z);break;case 2:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,url:W,secret:D.secretKey,filename:D.displayName,length:D.duration||"",file_length:D.fileLength||"",filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:v,msgConfig:m.msgConfig,onlineState:g}).delay&&delete U.delay,!U.msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onVideoMessage&&this.onVideoMessage(U);var X={id:T,type:"video",chatType:O,from:C,to:N,url:W,secret:D.secretKey,filename:D.displayName,length:D.duration||0,file:{},file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(v),onlineState:g};U.msgConfig&&(X.msgConfig=U.msgConfig),B.length>0&&(X.reactions=B),F&&(X.chatThread=F),j&&(X.chatThreadOverview=j),x=X,!r&&this.eventHandler&&this.eventHandler.dispatch("onVideoMessage",X);break;case 3:!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,addr:D.address,buildingName:D.buildingName,lat:D.latitude,lng:D.longitude,ext:H,time:v,msgConfig:m.msgConfig,onlineState:g}).delay&&delete U.delay,!U.msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onLocationMessage&&this.onLocationMessage(U);var Y={id:T,type:"loc",chatType:O,from:C,to:N,buildingName:D.buildingName,addr:D.address,lat:D.latitude,lng:D.longitude,ext:H,time:Number(v),onlineState:g};U.msgConfig&&(Y.msgConfig=U.msgConfig),B.length>0&&(Y.reactions=B),F&&(Y.chatThread=F),j&&(Y.chatThreadOverview=j),x=Y,!r&&this.eventHandler&&this.eventHandler.dispatch("onLocationMessage",Y);break;case 4:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,url:W,secret:D.secretKey,filename:D.displayName,file_length:D.fileLength||"",accessToken:this.token||"",ext:H,length:D.duration,time:v,msgConfig:m.msgConfig,onlineState:g}).delay&&delete U.delay,!U.msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onAudioMessage&&this.onAudioMessage(U);var $={id:T,type:"audio",chatType:O,from:C,to:N,url:W,secret:D.secretKey,file:{},filename:D.displayName,length:D.duration||0,file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(v),onlineState:g};U.msgConfig&&($.msgConfig=U.msgConfig),B.length>0&&($.reactions=B),F&&($.chatThread=F),j&&($.chatThreadOverview=j),x=$,!r&&this.eventHandler&&this.eventHandler.dispatch("onAudioMessage",$);break;case 5:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,url:W,secret:D.secretKey,filename:D.displayName,file_length:D.fileLength,accessToken:this.token||"",ext:H,time:v,msgConfig:m.msgConfig,onlineState:g}).delay&&delete U.delay,!U.msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onFileMessage&&this.onFileMessage(U);var Q={id:T,type:"file",chatType:O,from:C,to:N,url:W,secret:D.secretKey,file:{},filename:D.displayName,length:D.duration||0,file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(v),onlineState:g};U.msgConfig&&(Q.msgConfig=U.msgConfig),B.length>0&&(Q.reactions=B),F&&(Q.chatThread=F),j&&(Q.chatThreadOverview=j),x=Q,!r&&this.eventHandler&&this.eventHandler.dispatch("onFileMessage",Q);break;case 6:!(U={id:T,type:I,contentsType:p[D.type],from:C,to:N,action:D.action,ext:H,time:v,msgConfig:m.msgConfig,onlineState:g}).msgConfig&&delete m.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onCmdMessage&&this.onCmdMessage(U);var Z={id:T,type:"cmd",chatType:O,from:C,to:N,action:D.action,ext:H,time:Number(v),onlineState:g};U.msgConfig&&(Z.msgConfig=U.msgConfig),B.length>0&&(Z.reactions=B),F&&(Z.chatThread=F),j&&(Z.chatThreadOverview=j),x=Z,!r&&this.eventHandler&&this.eventHandler.dispatch("onCmdMessage",Z);break;case 7:var ee={},te={};m.contents[0].customExts&&(ee=d(m.contents[0].customExts)),m.contents[0].params&&(te=d(m.contents[0].params)),U={id:T,type:I,contentsType:p[D.type],from:C,to:N,customEvent:D.customEvent,params:te,customExts:ee,ext:H,time:v,onlineState:g},!r&&this.onCustomMessage&&this.onCustomMessage(U);var re={id:T,type:"custom",chatType:O,from:C,to:N,customEvent:D.customEvent,params:te,customExts:ee,ext:H,time:Number(v),onlineState:g};U.msgConfig&&(re.msgConfig=U.msgConfig),B.length>0&&(re.reactions=B),F&&(re.chatThread=F),j&&(re.chatThreadOverview=j),x=re,!r&&this.eventHandler&&this.eventHandler.dispatch("onCustomMessage",re);break;default:s.kg.error("Unknow message type, message:",D)}return o?x:U}},_=function(e){var t=this.root.lookup("easemob.pb.MUCBody").decode(e.payload),r=t.operation;s.kg.debug("onMucMessage",t),console.log("onMucMessage",t),function(e){var r,n,o,i,s,a=this;if(t.isThread)o={id:t.mucId.name,name:t.mucName,operation:"",parentId:t.mucParentId.name,operator:t.from.name,userName:t.to.length?t.to[0].name:""},i={chatThreadId:t.mucId.name,chatThreadName:t.mucName,operation:"",parentId:t.mucParentId.name};else if(n={type:"",owner:t.from.name,gid:t.mucId.name,from:t.from.name,fromJid:t.from,to:t.to.length?t.to[0].name:"",toJid:t.to,chatroom:t.isChatroom,status:t.status},s={operation:"",id:t.mucId.name,from:t.from.name},t.isChatroom&&(null===(r=null==t?void 0:t.eventInfo)||void 0===r?void 0:r.ext)){var u=JSON.parse(t.eventInfo.ext).properties;s.attributes=u}return({44:function(){var e;s.operation="removeChatRoomAttributes",null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomEvent",s)},43:function(){var e;s.operation="updateChatRoomAttributes",null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomEvent",s)},42:function(){},41:function(){},40:function(){},39:function(){},38:function(){var e;i.operation="chatThreadNameUpdate",null===(e=a.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},37:function(){var e;o.operation="userRemove",null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatThreadChange",o)},36:function(){var e;i.operation="chatThreadLeave",null===(e=a.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},35:function(){var e;i.operation="chatThreadJoin",null===(e=a.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},34:function(){var e;i.operation="chatThreadDestroy",null===(e=a.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},33:function(){var e;i.operation="chatThreadCreate",null===(e=a.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},32:function(){var e,r,o,i;n.type=t.isChatroom?"rmChatRoomMute":"rmGroupMute",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unmuteAllMembers",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},31:function(){var e,r,o,i;n.type=t.isChatroom?"muteChatRoom":"muteGroup",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="muteAllMembers",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},30:function(){var e,r,o,i;n.type=t.isChatroom?"rmUserFromChatRoomWhiteList":"rmUserFromGroupWhiteList",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeAllowlistMember",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},29:function(){var e,r,o,i;n.type=t.isChatroom?"addUserToChatRoomWhiteList":"addUserToGroupWhiteList",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="addUserToAllowlist",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},28:function(){var e,r,o,i;n.type="deleteFile",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="deleteFile",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},27:function(){var e,r,o,i;n.type="uploadFile",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="uploadFile",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},26:function(){var e,r,o,i;n.type="deleteAnnouncement",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="deleteAnnouncement",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},25:function(){var e,r,o,i;n.type="updateAnnouncement",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="updateAnnouncement",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},24:function(){var e,r,o,i;n.type="removeMute",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unmuteMember",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},23:function(){var e,r,o,i;n.type="addMute",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="muteMember",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},22:function(){var e,r,o,i;n.type="removeAdmin",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeAdmin",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},21:function(){var e,r,o,i;n.type="addAdmin",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="setAdmin",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},20:function(){var e,r,o,i;n.type="changeOwner",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="changeOwner",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},19:function(){var e,r,o,i;n.type="direct_joined",n.groupName=t.mucName,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="directJoined",s.name=t.mucName,t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},18:function(){var e,r,o,i;n.type=t.isChatroom?"leaveChatRoom":"leaveGroup",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="memberAbsence",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},17:function(){var e,r,o,i;n.type=t.isChatroom?"memberJoinChatRoomSuccess":"memberJoinPublicGroupSuccess",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="memberPresence",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},16:function(){var e,r;n.type="unblock",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},15:function(){var e,r;n.type="block",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},14:function(){var e,r,o,i;n.type="update",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="updateInfo",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},13:function(){var e,r,o,i;n.type="allow",n.reason=t.reason,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unblockMember",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},12:function(){var e,r;n.type="ban",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},11:function(){var e,r;n.type="getBlackList",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},10:function(){var e,r,o,i;n.type="removedFromGroup",n.kicked=n.to,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeMember",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},9:function(){var e,r,o,i;n.type="invite_decline",n.kicked=n.to,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="rejectInvite",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},8:function(){var e,r,o,i;n.type="invite_accept",n.kicked=n.to,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="acceptInvite",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},7:function(){var e,r,o,i;n.type="invite",n.kicked=n.to,n.groupName=t.mucName,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="inviteToJoin",s.name=t.mucName,t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},6:function(){var e,r;n.type="joinPublicGroupDeclined",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},5:function(){var e,r,o,i;n.type="joinPublicGroupSuccess",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="acceptRequest",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},4:function(){var e,r,o,i;n.type="joinGroupNotifications",n.reason=t.reason,a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="requestToJoin",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},3:function(){var e,r;n.type="leave",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},2:function(){var e,r;n.type="join",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},1:function(){var e,r,o,i;n.type="deleteGroupChat",a.onPresence&&a.onPresence(n),t.isChatroom?null===(e=a.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=a.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="destroy",t.isChatroom?null===(o=a.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=a.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)}}[e]||function(){console.error("No match operation ".concat(e))})()}.call(this,r)},v=(__webpack_require__(5724),new Map),m=new Map,g=1e3,O=9675,T=__webpack_require__(3681);!function(e){e[e.Add=2]="Add",e[e.Remove=3]="Remove",e[e.Accept=4]="Accept",e[e.Decline=5]="Decline",e[e.Ban=6]="Ban",e[e.Allow=7]="Allow"}(y||(y={}));var R={operatRoster:function(e,t){var r=[],n=this.root.lookup("easemob.pb.RosterBody"),o=n.decode(r);switch(t){case"add":o.operation=y.Add;break;case"remove":o.operation=y.Remove;break;case"accept":o.operation=y.Accept;break;case"decline":o.operation=y.Decline;break;case"ban":o.operation=y.Ban;break;case"allow":o.operation=y.Allow;break;default:s.kg.error("operatRoster:",t)}o.from=this.context.jid;var i=[];if("string"==typeof e.to)i.push({appKey:this.appKey||this.context.appKey,name:e.to,domain:"easemob.com"});else if(e.to instanceof Array)for(var a=0;a<e.to.length;a++)i.push({appKey:this.appKey,name:e.to[a],domain:"easemob.com"});o.to=i,o.reason=e.message||"",o=n.encode(o).finish();var u=this.root.lookup("easemob.pb.Meta").decode(r);u.id=e.id||this.getUniqueId();var c=this.dataReport.geOperateFun({operationName:T.fI[t]});v.size<=g&&v.set(u.id,{rpt:c,requestName:T.fI[t]}),u.from=this.context.jid,u.to={domain:"@easemob.com"},u.ns=3,u.payload=o;var l=this.root.lookup("easemob.pb.CommSyncUL"),f=l.decode(r);f.meta=u,f=l.encode(f).finish();var p=this.root.lookup("easemob.pb.MSync"),d=p.decode(r);if(d.version=this.version,d.encryptType=[0],d.command=0,d.guid=this.jid,d.payload=f,d=p.encode(d).finish(),"miniCore"===this.name)this.sock.send(d);else{var h=this.mSync.base64transform(d);this.sock.send(h)}},handleRosterMsg:function(e){var t,r,n,o,i,a,u=this.root.lookup("easemob.pb.RosterBody").decode(e.payload),c={type:"",to:u.to[0].name,from:u.from.name,status:u.reason};switch(u.operation){case 2:c.type="subscribe",this.onContactInvited&&this.onContactInvited(c),null===(t=this.eventHandler)||void 0===t||t.dispatch("onContactInvited",c);break;case 3:c.type="unsubscribed",this.onContactDeleted&&this.onContactDeleted(c),null===(r=this.eventHandler)||void 0===r||r.dispatch("onContactDeleted",c);break;case 4:c.type="subscribed",this.onContactAdded&&this.onContactAdded(c),null===(n=this.eventHandler)||void 0===n||n.dispatch("onContactAdded",c);break;case 5:c.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(c),null===(o=this.eventHandler)||void 0===o||o.dispatch("onContactRefuse",c);break;case 6:case 7:this.getBlacklist();break;case 8:c.type="subscribed",this.onContactAgreed&&this.onContactAgreed(c),null===(i=this.eventHandler)||void 0===i||i.dispatch("onContactAgreed",c);break;case 9:c.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(c),null===(a=this.eventHandler)||void 0===a||a.dispatch("onContactRefuse",c);break;default:s.kg.error("handleRosterMsg:",u)}this.onPresence&&c.type&&this.onPresence(c)}},I=function(){function e(e){this.type=e.type,this.message=e.message,this.data=e.data}return e.create=function(t){return new e(t)},e}(),C=function(e){var t,r,n,o,i,a,u=this.root.lookup("easemob.pb.StatisticsBody").decode(e.payload);switch(u.operation){case 0:this.onStatisticMessage&&this.onStatisticMessage(u),null===(t=this.eventHandler)||void 0===t||t.dispatch("onStatisticMessage",u);break;case 1:a=I.create({type:c.E.WEBIM_CONNCTION_USER_REMOVED,message:"user has been removed"}),this.logOut=!0,this.onError&&this.onError(a),null===(r=this.eventHandler)||void 0===r||r.dispatch("onError",a);break;case 2:a=I.create({type:c.E.WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE,message:"the user is already logged on another device"}),this.logOut=!0,this.onError&&this.onError(a),null===(n=this.eventHandler)||void 0===n||n.dispatch("onError",a);break;case 3:a=I.create({type:c.E.WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD,message:"the user was kicked by changing password"}),this.logOut=!0,this.onError&&this.onError(a),null===(o=this.eventHandler)||void 0===o||o.dispatch("onError",a);break;case 4:a=I.create({type:c.E.WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE,message:"the user was kicked by other device"}),this.logOut=!0,this.onError&&this.onError(a),null===(i=this.eventHandler)||void 0===i||i.dispatch("onError",a);break;default:s.kg.error("handleStatisticsMsg:",u)}};function N(e){var t,r=[],n=[];e.data&&e.data.values&&e.data.values.forEach((function(e){Object.entries(e.status).forEach((function(e){n.push({device:e[0],status:Number(e[1])})})),r.push({userId:e.uid,lastTime:Number(e.last_time),expire:Number(e.expiry),ext:e.ext,statusDetails:n})})),this.onPresenceStatusChange&&this.onPresenceStatusChange(r),null===(t=this.eventHandler)||void 0===t||t.dispatch("onPresenceStatusChange",r)}function b(e){var t=this;e.data.forEach((function(e){var r,n={from:e.from,to:e.to,chatType:"chat"===e.channel_type?"singleChat":"groupChat",messageId:e.messageId,reactions:e.reactions,ts:e.ts};null===(r=t.eventHandler)||void 0===r||r.dispatch("onReactionChange",n)}))}function S(e){var t,r,n,o;if(e.data){var i=e.data,s={id:i.id||"",name:i.name||"",parentId:i.muc_parent_id||"",messageId:i.msg_parent_id||"",timestamp:i.timestamp||0,operator:i.from||"",operation:""};switch(i.operation){case"create":s.operation="create",s.createTimestamp=s.timestamp,s.messageCount=0,null===(t=this.eventHandler)||void 0===t||t.dispatch("onChatThreadChange",s);break;case"update_msg":s.operation="update",s.messageCount=i.message_count,i.last_message&&"{}"!==JSON.stringify(i.last_message)?s.lastMessage=f(i.last_message):"{}"===JSON.stringify(i.last_message)&&(s.lastMessage={}),null===(r=this.eventHandler)||void 0===r||r.dispatch("onChatThreadChange",s);break;case"update":s.operation="update",s.messageCount=i.message_count,null===(n=this.eventHandler)||void 0===n||n.dispatch("onChatThreadChange",s);break;case"delete":s.operation="destroy",null===(o=this.eventHandler)||void 0===o||o.dispatch("onChatThreadChange",s)}}}__webpack_require__(7665);var A=function(e){var t=i.P6.parseNotify(e.payload);switch(e.from.name,e.to.name,t.type){case"presence":N.call(this,t);break;case"reaction":b.call(this,t);break;case"thread":S.call(this,t);break;default:s.kg.error("unexpected notify type: ".concat(t.type))}};function M(e){return M="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},M(e)}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w.apply(this,arguments)};function U(){var e="webim",t="",r="",n=[],o=(new Date).valueOf();"webim"===this.deviceId?(r="random_"+o.toString(),e=this.deviceId+"_"+r,t=this.deviceId):e=t=r="webim_"+this.deviceId,this.context.jid&&(this.context.jid.clientResource=e);var i=this.root.lookup("easemob.pb.Provision"),s=i.decode(n);s.compressType=this.compressType,s.encryptType=this.encryptType,s.osType=this.osType,s.version=this.version,s.deviceName=t,s.resource=e,s.deviceUuid=r,s.auth="$t$"+this.token,s.actionVersion="v2.0",s=i.encode(s).finish();var a=this.root.lookup("easemob.pb.MSync"),u=a.decode(n);return u.version=this.version,u.guid=this.context.jid,u.auth="$t$"+this.token,u.command=3,u.deviceId=t,u.serviceId=this.dataReport.getServiceId(),u.encryptType=this.encryptType,u.payload=s,a.encode(u).finish()}function x(e,t){var r=this,n=i.P6.getEnvInfo();if("web"===n.platform||"zfb"===n.platform||"dd"===n.platform){for(var o="",a=0;a<e.length;a++)o+=String.fromCharCode(e[a]);return o=u().btoa(o),"web"===n.platform?o:{data:o,isBuffer:!1,complete:function(){},fail:function(e){"sendSocketMessage:fail taskID not exist"!==e.errMsg&&"SocketTast.send:fail SocketTask.readyState is not OPEN"!==e.errMsg||(s.kg.debug("send message fail and reconnect"),r.reconnect()),t&&r._msgHash&&r._msgHash[t]&&r._msgHash[t].fail({id:t})}}}var c=e;return{data:c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength),fail:function(e){"sendSocketMessage:fail taskID not exist"!==e.errMsg&&"SocketTast.send:fail SocketTask.readyState is not OPEN"!==e.errMsg||r.reconnect(),t&&r._msgHash&&r._msgHash[t]&&r._msgHash[t].fail({id:t})}}}function L(e,t){switch(e.ns){case 0:C.call(this,e);break;case 1:E.call(this,e,t);break;case 2:_.call(this,e);break;case 3:R.handleRosterMsg.call(this,e);break;case 4:this.registerConfrIQHandler&&this.registerConfrIQHandler(e,t,this);break;case 5:A.call(this,e);break;default:s.kg.error("distributeMeta",e)}}function P(e,t){for(var r=function(r){var i=new(n())(e[r].id.low,e[r].id.high,e[r].id.unsigned).toString();if(o._load_msg_cache.some((function(e){return e.msgId===i})))return"continue";var s=e[r].from.name,a=e[r].to?e[r].to.name:"",u=!!e[r].to&&-1!==e[r].to.domain.indexOf("conference");o._load_msg_cache.length<=o.max_cache_length||o._load_msg_cache.shift(),o._load_msg_cache.push({msgId:i,from:s,to:a,isGroup:u}),L.call(o,e[r],t)},o=this,i=0;i<e.length;i++)r(i)}function k(e){var t=this.root.lookup("easemob.pb.CommUnreadDL");if(t=t.decode(e.payload),"agoraToken"===this.grantType){var r=new(n())(t.timestamp.low,t.timestamp.high,t.timestamp.unsigned).toString();this.compareTokenExpireTime(Number(r),this.expirationTime)}if(0===t.unread.length)q.call(this);else for(var o=0;o<t.unread.length;o++)B.call(this,t.unread[o].queue)}function D(){var e=[],t=this.root.lookup("easemob.pb.StatisticsBody"),r=t.decode(e);r.operation=0,r=t.encode(r).finish();var n=this.root.lookup("easemob.pb.Meta").decode(e);n.id=(new Date).valueOf(),n.ns=0,n.payload=r;var o=this.root.lookup("easemob.pb.CommSyncUL"),i=o.decode(e);i.meta=n,i=o.encode(i).finish();var s=this.root.lookup("easemob.pb.MSync"),a=s.decode(e);return a.version=this.version,a.encryptType=[0],a.command=0,a.payload=i,s.encode(a).finish()}function H(e){var t=[],r=this.root.lookup("easemob.pb.CommSyncUL"),n=r.decode(t);n.queue=e,n=r.encode(n).finish();var o=this.root.lookup("easemob.pb.MSync"),i=o.decode(t);return i.version=this.version,i.encryptType=this.encryptType,i.command=0,i.payload=n,o.encode(i).finish()}function B(e){s.kg.debug("sendBackqueue");var t=H.call(this,e);oe.call(this,t)}function G(e,t){var r=[],o=this.root.lookup("easemob.pb.CommSyncUL"),i=o.decode(r);i.queue=t,i.key=new(n())(e.low,e.high,e.unsigned).toString(),i=o.encode(i).finish();var s=this.root.lookup("easemob.pb.MSync"),a=s.decode(r);return a.version=this.version,a.encryptType=this.encryptType,a.command=0,a.payload=i,s.encode(a).finish()}function F(e,t){s.kg.debug("sendLastSession");var r=G.call(this,e,t);oe.call(this,r)}function j(e){var t,r=this.root.lookup("easemob.pb.Provision").decode(e.payload);if(this.context.jid&&(this.context.jid.clientResource=r.resource),this.clientResource=r.resource,0===r.status.errorCode){if(this.onOpened&&this.onOpened(),null===(t=this.eventHandler)||void 0===t||t.dispatch("onConnected"),"agoraToken"===this.grantType){var n=Date.now();this.expiresIn=this.expirationTime-n,this.tokenExpireTimeCountDown(this.expiresIn)}W.call(this),K.call(this),V.call(this),q.call(this)}else this.onError&&this.onError({type:c.E.WEBIM_CONNECTION_ERROR,message:"provision error",data:r})}function W(){if(this.unSendMsgArr.length>0){for(var e=0;e<this.unSendMsgArr.length;e++){var t=this.unSendMsgArr[e];ne.call(this,t)}this.unSendMsgArr=[]}}function q(){var e=D.call(this);oe.call(this,e)}function V(){var e=z.call(this);oe.call(this,e)}function K(){var e=this;J.call(this),this.heartBeatID=setInterval((function(){V.call(e)}),this.heartBeatWait)}function J(){clearInterval(this.heartBeatID)}function z(){var e=this.root.lookup("easemob.pb.MSync"),t=e.decode([]);return t.version=this.version,t.encryptType=this.encryptType,t.command=1,e.encode(t).finish()}function X(e,t){return e.some((function(e){return e.name===t.name}))}function Y(e){var t=this,r=this.root.lookup("easemob.pb.CommNotice").decode(e.payload);X(this._queues,r.queue)||this.clientResource===r.queue.clientResource&&r.queue.name===this.context.userId||(this._queues.push(r.queue),this.qTimer&&clearTimeout(this.qTimer),this.qTimer=setTimeout((function(){var e=r.queue;X(t._queues,e)&&(B.call(t,r.queue),s.kg.debug("⬇q:",e))}),1e4),1===this._queues.length&&B.call(this,r.queue))}function $(e){return t=this,r=void 0,o=function(){var t,r,n,o,a,c,l,f;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(p){switch(p.label){case 0:if(t=i.P6.getEnvInfo(),"miniCore"!==this.name)return[3,7];f=this.root.lookup("easemob.pb.MSync"),r=void 0,p.label=1;case 1:return p.trys.push([1,5,,6]),"[object Blob]"!==Object.prototype.toString.call(e.data)?[3,3]:[4,e.data.arrayBuffer()];case 2:return r=p.sent(),[3,4];case 3:s.kg.debug("received message: ".concat(e.data)),p.label=4;case 4:return[3,6];case 5:throw p.sent(),new Error("decode message fail.");case 6:return n=new Uint8Array(r),[2,f.decode(n)];case 7:if("web"===t.platform||"zfb"===t.platform||"dd"===t.platform){for(o=u().atob(e.data),a=[],c=0,l=o.length;c<l;++c)a.push(o.charCodeAt(c));return[2,(f=this.root.lookup("easemob.pb.MSync")).decode(a)]}return[2,(f=this.root.lookup("easemob.pb.MSync")).decode(e.data)];case 8:return[2]}}))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}u((o=o.apply(t,r||[])).next())}));var t,r,n,o}function Q(e){var t=this;e.then((function(e){switch(e.command){case 0:Z.call(t,e);break;case 1:k.call(t,e);break;case 2:Y.call(t,e);break;case 3:j.call(t,e);break;default:s.kg.error("unexpected msync command: ".concat(e.command))}}))}function Z(e){var t,r,o,i,s,a,u=this.root.lookup("easemob.pb.CommSyncDL");u=u.decode(e.payload);var l=new(n())(u.serverId.low,u.serverId.high,u.serverId.unsigned).toString(),f=new(n())(u.metaId.low,u.metaId.high,u.metaId.unsigned).toString();if(0!==u.metas.length)try{P.call(this,u.metas,u.status)}catch(e){this.onError&&this.onError({type:c.E.WEBIM_LOAD_MSG_ERROR,message:"decode message error",data:e})}finally{if(u.isLast){var p=-1;(y=this._queues.some((function(e,t){return e.name===u.name&&(p=t,!0)})))&&p>0&&this._queues.splice(p,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer))}else F.call(this,u.nextKey,u.queue)}else if(u.isLast){var d=-1;(y=this._queues.some((function(e,t){return e.name===u.queue.name&&(d=t,!0)})))&&this._queues.splice(d,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer))}else if(u.status&&0===u.status.errorCode){var h=-1,y=this._queues.some((function(e,t){var r;return e.name===(null===(r=u.queue)||void 0===r?void 0:r.name)&&(h=t,!0)}));if(y&&this._queues.splice(h,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer)),(g=v.get(f))&&((0,g.rpt)({isEndApi:!0,data:{isSuccess:1,requestName:g.requestName,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.success}}),v.delete(f)),this._msgHash[f]){m.has(f)&&(m.get(f).rpt({isEndApi:!0,data:{isSuccess:1,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.success,msgId:l}}),m.delete(f));try{(null===(t=this._msgHash[f])||void 0===t?void 0:t.resolve)instanceof Function&&this._msgHash[f].resolve({localMsgId:f,serverMsgId:l}),(null===(r=this._msgHash[f])||void 0===r?void 0:r.success)instanceof Function&&this._msgHash[f].success(f,l)}catch(e){this.onError&&this.onError({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"when executing success function error",data:e})}this.onReceivedMessage&&this.onReceivedMessage({id:f,mid:l,to:this._msgHash[f].to,time:0}),null===(o=this.eventHandler)||void 0===o||o.dispatch("onReceivedMessage",{id:f,mid:l,to:this._msgHash[f].to}),delete this._msgHash[f]}}else if(u.status&&15===u.status.errorCode)(null===(i=this._msgHash[f])||void 0===i?void 0:i.fail)instanceof Function&&this._msgHash[f].fail({type:c.E.SERVICE_NOT_ALLOW_MESSAGING_MUTE,reason:"you were muted"}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject({type:c.E.SERVICE_NOT_ALLOW_MESSAGING_MUTE,reason:"you were muted"});else if(u.status&&1===u.status.errorCode){var E=void 0;switch(u.status.reason){case"blocked":E=c.E.PERMISSION_DENIED;break;case"group not found":E=c.E.GROUP_NOT_EXIST;break;case"not in group or chatroom":E=c.E.GROUP_NOT_JOINED;break;case"exceed recall time limit":E=c.E.MESSAGE_RECALL_TIME_LIMIT;break;case"message recall disabled":E=c.E.SERVICE_NOT_ENABLED;break;case"not in group or chatroom white list":E=c.E.SERVICE_NOT_ALLOW_MESSAGING;break;case"nonroster":E=c.E.USER_NOT_FRIEND,u.status.reason="not contact";break;case"group is disabled":E=c.E.GROUP_IS_DISABLED,u.status.reason="group is disabled";break;default:E=u.status.reason.includes("moderation")?c.E.MESSAGE_MODERATION_BLOCKED:c.E.SERVER_UNKNOWN_ERROR}if(this._msgHash[f]){var _=I.create({type:E,message:u.status.reason||"",data:{id:f,mid:l}});this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail({type:E,reason:u.status.reason?u.status.reason:"",data:{id:f,mid:l}})}}else if(u.status&&7===u.status.errorCode)"sensitive words"===u.status.reason&&this._msgHash[f]?(_=I.create({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,message:"sensitive words",data:{id:f,mid:l}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,data:{id:f,mid:l,reason:"sensitive words"}})):"blocked by mod_antispam"===u.status.reason&&this._msgHash[f]?(_=I.create({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,message:"blocked by mod_antispam",data:{id:f,mid:l}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,data:{id:f,mid:l,reason:"blocked by mod_antispam"}})):"user is mute"===u.status.reason&&this._msgHash[f]?(_=I.create({type:c.E.USER_MUTED_BY_ADMIN,message:"user is mute",data:{id:f,mid:l}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail(_)):"traffic limit"===u.status.reason&&this._msgHash[f]&&(_=I.create({type:c.E.MESSAGE_CURRENT_LIMITING,message:"traffic limit",data:{id:f,mid:l}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail(_));else if(u.status&&19===u.status.errorCode)this._msgHash[f]&&(m.has(f)&&(m.get(f).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,codeDesc:u.status.reason||"",msgId:l}}),m.delete(f)),_=I.create({type:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,message:u.status.reason||"",data:{id:f,mid:l}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail({type:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,data:{id:f,mid:l,reason:u.status.reason}}));else if(this._msgHash[f]){m.has(f)&&(m.get(f).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.WEBIM_LOAD_MSG_ERROR,codeDesc:(null===(s=u.status)||void 0===s?void 0:s.reason)||"",msgId:l}}),m.delete(f));try{_=I.create({type:c.E.WEBIM_LOAD_MSG_ERROR,message:(null===(a=u.status)||void 0===a?void 0:a.reason)||"",data:{id:f,mid:l,reason:u.status&&u.status.reason}}),this._msgHash[f].reject instanceof Function&&this._msgHash[f].reject(_),this._msgHash[f].fail instanceof Function&&this._msgHash[f].fail({type:c.E.WEBIM_LOAD_MSG_ERROR,data:{errorCode:u.status&&u.status.errorCode,reason:u.status&&u.status.reason}})}catch(e){this.onError&&this.onError({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"when executing fail function error",data:e})}delete this._msgHash[f]}else{var g;m.has(f)&&(m.get(f).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,codeDesc:"on message error",msgId:l}}),m.delete(f)),(g=v.get(f))&&((0,g.rpt)({isEndApi:!0,data:{isSuccess:0,requestName:g.requestName,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.failed,codeDesc:"on message error"}}),v.delete(f)),this.onError&&this.onError({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"on message error"})}}function ee(e){var t=[],r=this.root.lookup("easemob.pb.KeyValue"),n=[];for(var o in e){var i=r.decode(t);i.key=o,"object"===M(e[o])?(i.type=8,i.stringValue=JSON.stringify(e[o])):"string"==typeof e[o]?(i.type=7,i.stringValue=e[o]):"boolean"==typeof e[o]?(i.type=1,i.varintValue=!0===e[o]?1:0):Number.isInteger(e[o])?(i.type=2,i.varintValue=e[o]):(i.type=6,i.doubleValue=e[o]),n.push(i)}return n}function te(e){var t,r,n=[];if(this.root){var o,i=this.root.lookup("easemob.pb.MessageBody.Content").decode(n);switch(o=!e.group&&"groupchat"!==(null===(t=null==e?void 0:e.chatType)||void 0===t?void 0:t.toLowerCase())||e.roomType?e.group&&e.roomType||"chatroom"===(null===(r=null==e?void 0:e.chatType)||void 0===r?void 0:r.toLowerCase())?"chatRoom":"singleChat":"groupChat",e.type){case"txt":i.type=0,i.text=e.msg;break;case"img":i.type=1,e.body?(i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.size=e.body.size,i.thumbnailDisplayName=e.body.filename):e.file?(i.displayName=e.file.filename,i.remotePath=e.file.url,i.secretKey=e.file.secret,i.fileLength=e.file.file_length,i.size=e.file.size,i.thumbnailDisplayName=e.file.filename):(i.displayName=e.filename,i.remotePath=e.url,i.secretKey=e.secret,i.fileLength=e.file_length,i.size=e.size,i.thumbnailDisplayName=e.filename);break;case"video":i.type=2,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.duration=e.body.length,i.thumbnailDisplayName=e.body.filename;break;case"loc":i.type=3,i.latitude=e.lat,i.longitude=e.lng,i.address=e.addr,i.buildingName=e.buildingName,i.latitude=e.lat;break;case"audio":i.type=4,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.duration=e.body.length,i.thumbnailDisplayName=e.body.filename;break;case"file":i.type=5,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.size=e.body.size,i.thumbnailDisplayName=e.body.filename;break;case"cmd":i.type=6,i.action=e.action;break;case"custom":i.type=7,i.customEvent=e.customEvent,i.customExts=ee.call(this,e.customExts)}var s=[];e.ext&&(s=ee.call(this,e.ext));var a=this.root.lookup("easemob.pb.MessageBody"),u=a.decode(n);u.from={name:this.context.jid.name},u.to={name:e.to},"channel"===e.type?u.type=7:"recall"===e.type?(u.type=6,u.ackMessageId=e.ackId):"delivery"===e.type?(u.type=5,u.ackMessageId=e.ackId):"read"===e.type?(u.type=4,u.ackMessageId=e.ackId,"groupChat"===o&&(u.msgConfig={allowGroupAck:!0},u.ackContent=e.ackContent)):"chatRoom"===o?u.type=3:"groupChat"===o?(u.type=2,e.msgConfig&&(u.msgConfig={allowGroupAck:!0})):"singleChat"===o&&(u.type=1),u.contents=[i],u.ext=s;var l=function(e){var t={};return"translations"in e&&(t.translations=e.translations),"isChatThread"in e&&e.isChatThread&&(t.thread={}),Object.keys(t).length>0?JSON.stringify(t):""}(e);l&&(u.meta=l),u=a.encode(u).finish();var f=this.root.lookup("easemob.pb.Meta").decode(n);f.id=e.id;var p="easemob.com";"chatRoom"!==o&&"groupChat"!==o||(p="conference.easemob.com"),f.to={appKey:this.appKey,name:e.to,domain:p},f.ns=1,f.payload=u;var d=this.root.lookup("easemob.pb.CommSyncUL"),h=d.decode(n);h.meta=f,h=d.encode(h).finish();var y=this.root.lookup("easemob.pb.MSync"),E=y.decode(n);return E.version=this.version,E.encryptType=this.encryptType,E.command=0,E.payload=h,y.encode(E).finish()}e.fail&&e.fail({type:c.E.WEBIM_CONNCTION_CLIENT_OFFLINE,message:"Not logged in"})}function re(e){var t=this;if(!e.file)return e;var r=w({},e);return r.accessToken=this.token,r.appKey=this.appKey,r.apiUrl=this.apiUrl,r.body&&r.body.url?te.call(this,r):new Promise((function(n,o){var s=r.onFileUploadComplete;r.onFileUploadComplete=function(n){var o;if(n.entities[0]["file-metadata"]){var i=n.entities[0]["file-metadata"]["content-length"];r.file_length=i,r.filetype=n.entities[0]["file-metadata"]["content-type"],i>204800&&(r.thumbnail=!0)}r.body={type:r.type||"file",secret:n.entities[0]["share-secret"],filename:r.file.filename||r.filename,url:(t.isHttpDNS?t.apiUrl+n.uri.substr(n.uri.indexOf("/",9)):n.uri)+"/"+n.entities[0].uuid,length:r.length||0,filetype:r.filetype||r.file.filetype,file_length:(null===(o=null==r?void 0:r.ext)||void 0===o?void 0:o.file_length)||0,size:{width:r.width||0,height:r.height||0}},r.file.url=n.uri,e.secret=n.entities[0]["share-secret"];var a=(t.isHttpDNS?t.apiUrl+n.uri.substr(n.uri.indexOf("/",9)):n.uri)+"/"+n.entities[0].uuid;e.url=a,n.url=a,"img"===r.type&&(e.thumb="".concat(a,"?thumbnail=true"),n.thumb="".concat(a,"?thumbnail=true")),s instanceof Function&&s(n,r.id);var u=te.call(t,r);m.size<=g&&m.set(r.id,{rpt:t.dataReport.geOperateFun({operationName:T.fI.SEND_MSG})}),oe.call(t,u)},i.P6.uploadFile.call(t,r,T.fI.UPLOAD_MSG_ATTACH)}))}function ne(e){var t=this;return new Promise((function(r,n){var o,i;if(t.logOut)return n({type:c.E.WEBIM_CONNECTION_CLOSED,message:"not login"});var s="file"===e.type||"img"===e.type||"audio"===e.type||"video"===e.type,a="delivery"===e.type||"read"===e.type||"channel"===e.type;if(e.id&&((!s&&!a||s&&t.useOwnUploadFun)&&m.size<=g&&m.set(e.id,{rpt:t.dataReport.geOperateFun({operationName:"recall"===e.type?T.fI.SEND_RECALL_MSG:T.fI.SEND_MSG})}),t._msgHash[e.id]=w(w({},e),{resolve:r,reject:n})),s&&e.file)return re.call(t,e);if("txt"===e.type&&(null===(o=e.msgConfig)||void 0===o?void 0:o.languages)&&Array.isArray(null===(i=e.msgConfig)||void 0===i?void 0:i.languages)&&e.msgConfig.languages.length>0){var u=t.translateMessage||t.translation.translateMessage;if(!u)throw new Error("there is no method to translate message");u({text:e.msg,languages:e.msgConfig.languages}).then((function(r){var n,o=null===(n=r.data[0])||void 0===n?void 0:n.translations;o=o.map((function(e){return{code:e.to,text:e.text}})),e.translations=o;var i=te.call(t,e);oe.call(t,i,e.id)})).catch((function(e){n(e)}))}else{var l=te.call(t,e);oe.call(t,l,e.id)}}))}function oe(e,t){if(!this.isOpened())return this.unSendMsgArr.push(e),!this.logOut&&this.autoReconnectNumTotal<this.autoReconnectNumMax&&(this.autoReconnectNumTotal<=this.socketHost.length&&this.isHttpDNS||!this.isHttpDNS)&&(s.kg.debug("need to reconnect",this.autoReconnectNumTotal,this.autoReconnectNumMax),this.offLineSendConnecting=!0,this.reconnect()),void(this.onError&&this.onError({type:c.E.WEBIM_CONNCTION_DISCONNECTED,message:"websocket has been disconnected"}));var r;r="miniCore"===this.name?e:x.call(this,e,t),this.sock.send(r)}var ie=function(e,t){return e.send=ne,e.sendMsg=ne,s.kg.debug("init Msync by ".concat(e.name)),{generateProvision:U.bind(e),base64transform:x.bind(e),distributeMeta:L.bind(e),decodeMeta:P.bind(e),decodeUnreadDL:k.bind(e),_rebuild:D.bind(e),_lastsession:G.bind(e),receiveProvision:j.bind(e),isInQueue:X.bind(e),decodeNotice:Y.bind(e),decodeMSync:$.bind(e),distributeMSync:Q.bind(e),encodeChatMsg:te.bind(e),upLoadFile:re.bind(e),send:ne.bind(e),stopHeartBeat:J.bind(e)}},se=function(){function e(e,t,r){this.handlerData={},this.handlerData={},e.addEventHandler=this.addEventHandler.bind(this),e.removeEventHandler=this.removeEventHandler.bind(this)}return e.prototype.addEventHandler=function(e,t){this.handlerData[e]=t},e.prototype.removeEventHandler=function(e){delete this.handlerData[e]},e.prototype.dispatch=function(e,t){for(var r in s.kg.debug("dispatch event: "+e,t||""),this.handlerData){var n=this.handlerData[r][e];n&&n(t)}},e}(),ae={biz:"",debug:!1,token:""},ue="https://data-reporting.agora.io/report",ce="https://data-reporting.sh.agoralab.co/report",le=function(e){var t=Number(T.C8[e]);return t===T.C8.USER_LOGIN?"MANUALLOGIN":t===T.C8.MSYNC_SENDMESSAGE?"SENDMESSAGE":t>T.C8.UNKNOWOPERATION&&t<T.C8.REST_OPERATE?"REST":t>T.C8.REST_OPERATE&&t<T.C8.MSYNC_OPERATE?"MESSAGE":t>T.C8.MSYNC_OPERATE&&t<T.C8.ROSTER_OPERATE?"ROSTER":t>T.C8.ROSTER_OPERATE&&t<T.C8.USER_OPERATE?"USER":t>T.C8.USER_OPERATE&&t<T.C8.GROUP_OPERATE?"GROUP":t>T.C8.GROUP_OPERATE&&t<T.C8.CHATROOM_OPERATE?"CHATROOM":"OPERATION"},fe=function(){return(new Date).getTime()},pe=function(e){return[i.iw.BAIDU,i.iw.WX,i.iw.DD,i.iw.ZFB,i.iw.TT,i.iw.QUICK_APP,i.iw.UNI].includes(e.platform)},de=function(){return e=1,t=99999,e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e;var e,t},he={},ye=1e3,Ee=function(){function e(e){this.eventQueue=[],this.stock=ye,this.config=e,this.governor()}return e.prototype.add=function(e){this.stock<=0?console.warn("Event Report limit ".concat(ye," per minute")):(this.eventQueue.push(e),this.consume(),this.stock-=1)},e.prototype.consume=function(){var e=this;0!==this.eventQueue.length&&(this.timer&&this.eventQueue.length<=10&&clearTimeout(this.timer),this.timer=setTimeout((function(){var t,r=e.eventQueue.splice(0,10),n=r.filter((function(e){return e.appId===r[0].appId})),o=r.filter((function(e){return e.appId!==r[0].appId}));(t=e.eventQueue).unshift.apply(t,o),e.batchSend(n)}),1e3))},e.prototype.governor=function(){var e=this,t=setInterval((function(){e.stock=ye}),6e4);"undefined"!=typeof addEventListener&&addEventListener("beforeunload",(function(){clearInterval(t)}))},e.prototype.batchSend=function(e){var t,r;if(void 0===e&&(e=[]),0!==e.length)try{var n=e.map((function(e){e.biz,e.appId;var t=e.eventId,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["biz","appId","eventId"]);return{eventId:Number(t),body:r}}));!function(e,t){try{var r=t.biz,n=t.appId,o=t.data,s=t.debug,a=t.onSuccess;if(!r)throw new Error("biz is not defined");he.global||(he=i.P6.getEnvInfo());var u=he;if(pe(u)){var c={url:s?ce:ue,data:o,method:"POST",success:function(){null==a||a()},fail:function(){},complete:function(){}},l={token:e,appid:null!=n?n:"",sendts:"".concat(Math.floor((new Date).getTime()/1e3)),biz:r,debug:"".concat(s)};if("zfb"===u.platform||"dd"===u.platform?c.headers=l:c.header=l,"dd"===u.platform)return u.global.httpRequest(c);u.global.request(c)}else{var f=new XMLHttpRequest;f.onreadystatechange=function(){2===f.readyState&&(null==a||a())},f.open("POST",s?ce:ue),f.setRequestHeader("Content-Type","application/json"),f.setRequestHeader("token",e),f.setRequestHeader("appid",null!=n?n:""),f.setRequestHeader("sendts","".concat(Math.floor((new Date).getTime()/1e3))),f.setRequestHeader("biz",r),f.setRequestHeader("debug","".concat(s)),f.send(JSON.stringify(o))}}catch(e){console.error(e)}}(this.config.token,{biz:null===(t=e[0])||void 0===t?void 0:t.biz,appId:null===(r=e[0])||void 0===r?void 0:r.appId,data:n,debug:this.config.debug,onSuccess:this.consume.bind(this)})}catch(e){console.error(e)}},e}(),_e=function(){return _e=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_e.apply(this,arguments)},ve=new(function(){function e(e){this.inited=!1,this.appId="",this.biz="",this.eventQueue={},this.config=ae,e&&this.init(e)}return e.prototype.init=function(e){var t;if(void 0===e&&(e={}),!e.biz||!e.token)throw new Error("Event Report: biz or token is not defined");try{this.appId=null!==(t=e.appId)&&void 0!==t?t:"",this.biz=e.biz,this.config=_e(_e({},ae),e),this.eventQueue=new Ee(this.config),this.log(e),this.inited=!0}catch(e){console.error(e)}},e.prototype.send=function(e,t,r){var n;if(void 0===t&&(t={}),this.inited){var o=_e(_e({},t),{eventId:Number(e),biz:this.biz,appId:null!==(n=null==r?void 0:r.appId)&&void 0!==n?n:this.appId});this.eventQueue.add(o),this.log(o)}else console.error("Event Report: init is not called")},e.prototype.log=function(e){try{if(this.config.debug){var t=e.payload,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["payload"]);console.log("%c Event Report: ".concat(this.config.biz," "),"background: #8A97FC; color: #fff"),console.table(r),t&&(console.info("payload:"),console.table(t))}}catch(e){console.error(e)}},e}()),me=function(){return me=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},me.apply(this,arguments)},ge={requestName:"",subrequestid:"1",requestMethod:"GET",requestUrl:"",requestElapse:0,code:0,codeDesc:"",isLastApi:0,isSuccess:1},Oe=function(){function e(e){this.platform=i.P6.getEnvInfo(),this.isReportDt=e.isReport||!1,this.isCollectDt=!0,pe(this.platform)&&!this.isReportDt&&(this.isCollectDt=!1),this.eventQueue=[],this.accessChannel="direct",this.options=function(e,t){t.platform||(t=i.P6.getEnvInfo());var r=e.org,n=e.appkey,o=e.deviceId,s=e.sdkVersion,a=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"".concat(t.platform,"_mini_program");return{org:r,appkey:n,deviceId:o,sdkServiceId:"sid_".concat(i.P6.getUniqueId(),"_").concat(de()),did:a,sdkVersion:s,os:7,sdkProduct:T.aC.web}}(e,this.platform),this.sid=this.options.sdkServiceId,this.init(e)}return e.getInstance=function(){return e.instance},e.prototype.getServiceId=function(){return this.sid||"sid_0"},e.prototype.setIsReportDt=function(e){this.isReportDt=e,e&&this.rptEventQueue()},e.prototype.setIsCollectDt=function(e){this.isCollectDt=e,e||(this.eventQueue=[])},e.prototype.rptEventQueue=function(){var e=this;this.eventQueue.length&&this.eventQueue.forEach((function(t,r){ve.send(t.eventId,t.dt),r>=e.eventQueue.length-1&&(e.eventQueue=[])}))},e.prototype.init=function(t){e.instance||(e.instance=this,ve.init({biz:"im",token:"32f24ab2ddb74f508aa9286c356cec84",appId:t.appkey,debug:!1}),this.reportInit())},e.prototype.reportInit=function(){if(this.isCollectDt){var e=this.options,t=e.did,r=e.os,n=e.sdkVersion,o=e.deviceId;this.reportData(9674,{did:t,os:r,sdkVersion:n,deviceId:o})}},e.prototype.geOperateFun=function(e){var t=this;if(!this.isCollectDt)return function(){};var r=1,n=0,o="",s=fe(),a=e.uid,u=e.operationName;a&&(this.uid=a);var c={uid:this.uid,operationId:"opr_".concat(i.P6.getUniqueId(),"_").concat(de()),requestid:"req_".concat(i.P6.getUniqueId(),"_").concat(de()),operationName:u};return function(e){var a,l,f,p;if(e.data.isSuccess?(n=0,o=""):(0===e.data.code&&(e.data.code=-1),n=null!==(a=e.data.code)&&void 0!==a?a:n,o=null!==(l=e.data.codeDesc)&&void 0!==l?l:o),(null===(f=e.data)||void 0===f?void 0:f.accessChannel)&&(t.accessChannel=null===(p=e.data)||void 0===p?void 0:p.accessChannel),e.isRetry?(r++,e.data.subrequestid="".concat(r)):(c.requestid="req_".concat(i.P6.getUniqueId(),"_").concat(de()),r=1),e.data.isLastApi){var d=fe();e.data.requestElapse=d-s,e.data.requestMethod="",e.data.subrequestid="0",e.data.code=200===n?0:n,e.data.codeDesc=o}else e.data.requestName||(e.data.requestName=u);e.data.requestElapse||(e.data.requestElapse=fe()-s),t.reportData.call(t,O,me(me(me(me({},ge),c),e.data),{accessChannel:t.accessChannel,operationType:le(u)})),e.isEndApi&&t.reportData.call(t,O,me(me(me({},c),ge),{isSuccess:e.data.isSuccess,isLastApi:1,subrequestid:"0",requestMethod:"",code:200===n?0:n,codeDesc:o,requestElapse:e.data.requestElapse,accessChannel:t.accessChannel,operationType:le(u)}))}},e.prototype.reportData=function(e,t){return r=this,n=void 0,s=function(){var r,n,o,s,a,u,c,l;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),r=fe(),n=0,e!==O?[3,2]:[4,(p=this.platform,new Promise((function(e){var t;p.platform||(p=i.P6.getEnvInfo());var r="";if(p.platform===i.iw.WEB){var n=navigator.connection;(null==n?void 0:n.type)?(null==n||n.type,r=T.td.WIFI):(null==n?void 0:n.effectiveType)&&(r=T.td[n.effectiveType.toLocaleUpperCase()]),e(r)}else p.platform===i.iw.NODE?(r=T.td.UNKNOWN,e(r)):null===(t=p.global)||void 0===t||t.getNetworkType({success:function(t){r=T.td[t.networkType.toLocaleUpperCase()],e(r)}})})))];case 1:n=f.sent(),f.label=2;case 2:return o=this.options,s=o.appkey,a=o.sdkServiceId,u=o.sdkProduct,c=me({lts:r,net:n,appkey:s,sdkServiceId:a,sdkProduct:u},t),this.isReportDt?ve.send(e,c):this.isCollectDt&&this.eventQueue.push({eventId:e,dt:c}),[3,4];case 3:return l=f.sent(),console.warn(l),[3,4];case 4:return[2]}var p}))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{u(s.next(e))}catch(e){t(e)}}function a(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,a)}u((s=s.apply(r,n||[])).next())}));var r,n,o,s},e}();function Te(e){return Te="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},Te(e)}var Re=function(){return Re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)},Ie=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},Ce=function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};t().util.Long=n(),t().configure();var Ne=t().Root.fromJSON({nested:{easemob:{nested:{pb:{nested:{MessageBody:{fields:{type:{type:"Type",id:1},from:{type:"JID",id:2},to:{type:"JID",id:3},contents:{rule:"repeated",type:"Content",id:4},ext:{rule:"repeated",type:"KeyValue",id:5},ackMessageId:{type:"uint64",id:6},msgConfig:{type:"MessageConfig",id:7},ackContent:{type:"string",id:8},meta:{type:"string",id:9}},nested:{Content:{fields:{type:{type:"Type",id:1},text:{type:"string",id:2},latitude:{type:"double",id:3},longitude:{type:"double",id:4},address:{type:"string",id:5},displayName:{type:"string",id:6},remotePath:{type:"string",id:7},secretKey:{type:"string",id:8},fileLength:{type:"int32",id:9},action:{type:"string",id:10},params:{rule:"repeated",type:"KeyValue",id:11},duration:{type:"int32",id:12},size:{type:"Size",id:13},thumbnailRemotePath:{type:"string",id:14},thumbnailSecretKey:{type:"string",id:15},thumbnailDisplayName:{type:"string",id:16},thumbnailFileLength:{type:"int32",id:17},thumbnailSize:{type:"Size",id:18},customEvent:{type:"string",id:19},customExts:{rule:"repeated",type:"KeyValue",id:20},buildingName:{type:"string",id:21}},nested:{Type:{values:{TEXT:0,IMAGE:1,VIDEO:2,LOCATION:3,VOICE:4,FILE:5,COMMAND:6,CUSTOM:7}},Size:{fields:{width:{type:"double",id:1},height:{type:"double",id:2}}}}},Type:{values:{NORMAL:0,CHAT:1,GROUPCHAT:2,CHATROOM:3,READ_ACK:4,DELIVER_ACK:5,RECALL:6,CHANNEL_ACK:7}},MessageConfig:{fields:{allowGroupAck:{type:"bool",id:1}}}}},KeyValue:{oneofs:{value:{oneof:["varintValue","floatValue","doubleValue","stringValue"]}},fields:{key:{type:"string",id:1},type:{type:"ValueType",id:2},varintValue:{type:"int64",id:3},floatValue:{type:"float",id:4},doubleValue:{type:"double",id:5},stringValue:{type:"string",id:6}},nested:{ValueType:{values:{BOOL:1,INT:2,UINT:3,LLINT:4,FLOAT:5,DOUBLE:6,STRING:7,JSON_STRING:8}}}},JID:{fields:{appKey:{type:"string",id:1},name:{type:"string",id:2},domain:{type:"string",id:3},clientResource:{type:"string",id:4}}},ConferenceBody:{fields:{sessionId:{type:"string",id:1},operation:{type:"Operation",id:2},conferenceId:{type:"string",id:3},type:{type:"Type",id:4},content:{type:"string",id:5},network:{type:"string",id:6},version:{type:"string",id:7},identity:{type:"Identity",id:8},duration:{type:"string",id:9},peerName:{type:"string",id:10},endReason:{type:"EndReason",id:11},status:{type:"Status",id:12},isDirect:{type:"bool",id:13},controlType:{type:"StreamControlType",id:14},routeFlag:{type:"int32",id:15},routeKey:{type:"string",id:16}},nested:{Status:{fields:{errorCode:{type:"int32",id:1}}},Operation:{values:{JOIN:0,INITIATE:1,ACCEPT_INITIATE:2,ANSWER:3,TERMINATE:4,REMOVE:5,STREAM_CONTROL:6,MEDIA_REQUEST:7}},Type:{values:{VOICE:0,VIDEO:1}},Identity:{values:{CALLER:0,CALLEE:1}},EndReason:{values:{HANGUP:0,NORESPONSE:1,REJECT:2,BUSY:3,FAIL:4,UNSUPPORTED:5,OFFLINE:6}},StreamControlType:{values:{PAUSE_VOICE:0,RESUME_VOICE:1,PAUSE_VIDEO:2,RESUME_VIDEO:3}}}},MSync:{fields:{version:{type:"Version",id:1,options:{default:"MSYNC_V1"}},guid:{type:"JID",id:2},auth:{type:"string",id:3},compressAlgorimth:{type:"uint32",id:4},crypto:{type:"uint32",id:5},userAgent:{type:"string",id:6},pov:{type:"uint64",id:7},command:{type:"Command",id:8},deviceId:{type:"uint32",id:10},encryptType:{rule:"repeated",type:"EncryptType",id:11,options:{packed:!1}},encryptKey:{type:"string",id:12},payload:{type:"bytes",id:9}},nested:{Version:{values:{MSYNC_V1:0,MSYNC_V2:1}},Command:{values:{SYNC:0,UNREAD:1,NOTICE:2,PROVISION:3}}}},EncryptType:{values:{ENCRYPT_NONE:0,ENCRYPT_AES_128_CBC:1,ENCRYPT_AES_256_CBC:2}},CommSyncUL:{fields:{meta:{type:"Meta",id:1},key:{type:"uint64",id:2},queue:{type:"JID",id:3},isRoam:{type:"bool",id:4},lastFullRoamKey:{type:"uint64",id:5}}},CommSyncDL:{fields:{status:{type:"Status",id:1},metaId:{type:"uint64",id:2},serverId:{type:"uint64",id:3},metas:{rule:"repeated",type:"Meta",id:4},nextKey:{type:"uint64",id:5},queue:{type:"JID",id:6},isLast:{type:"bool",id:7},timestamp:{type:"uint64",id:8},isRoam:{type:"bool",id:9}}},CommNotice:{fields:{queue:{type:"JID",id:1}}},CommUnreadUL:{fields:{}},CommUnreadDL:{fields:{status:{type:"Status",id:1},unread:{rule:"repeated",type:"MetaQueue",id:2},timestamp:{type:"uint64",id:3}}},MetaQueue:{fields:{queue:{type:"JID",id:1},n:{type:"uint32",id:2}}},Meta:{fields:{id:{type:"uint64",id:1},from:{type:"JID",id:2},to:{type:"JID",id:3},timestamp:{type:"uint64",id:4},ns:{type:"NameSpace",id:5},payload:{type:"bytes",id:6},routetype:{type:"RouteType",id:7},ext:{type:"KeyValue",id:8},meta:{type:"bytes",id:9}},nested:{NameSpace:{values:{STATISTIC:0,CHAT:1,MUC:2,ROSTER:3,CONFERENCE:4,NOTIFY:5,QUERY:6}},RouteType:{values:{ROUTE_ALL:0,ROUTE_ONLINE:1}}}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},reason:{type:"string",id:2},redirectInfo:{rule:"repeated",type:"RedirectInfo",id:3}},nested:{ErrorCode:{values:{OK:0,FAIL:1,UNAUTHORIZED:2,MISSING_PARAMETER:3,WRONG_PARAMETER:4,REDIRECT:5,TOKEN_EXPIRED:6,PERMISSION_DENIED:7,NO_ROUTE:8,UNKNOWN_COMMAND:9,PB_PARSER_ERROR:10,BIND_ANOTHER_DEVICE:11,IM_FORBIDDEN:12,TOO_MANY_DEVICES:13,PLATFORM_LIMIT:14,USER_MUTED:15,ENCRYPT_DISABLE:16,ENCRYPT_ENABLE:17,DECRYPT_FAILURE:18,PERMISSION_DENIED_EXTERNAL:19}}}},RedirectInfo:{fields:{host:{type:"string",id:1},port:{type:"uint32",id:2}}},Provision:{fields:{osType:{type:"OsType",id:1},version:{type:"string",id:2},networkType:{type:"NetworkType",id:3},appSign:{type:"string",id:4},compressType:{rule:"repeated",type:"CompressType",id:5,options:{packed:!1}},encryptType:{rule:"repeated",type:"EncryptType",id:6,options:{packed:!1}},encryptKey:{type:"string",id:7},status:{type:"Status",id:8},deviceUuid:{type:"string",id:9},isManualLogin:{type:"bool",id:10},password:{type:"string",id:11},deviceName:{type:"string",id:12},resource:{type:"string",id:13},auth:{type:"string",id:14},serviceId:{type:"string",id:16},actionVersion:{type:"string",id:17}},nested:{OsType:{values:{OS_IOS:0,OS_ANDROID:1,OS_LINUX:2,OS_OSX:3,OS_WIN:4,OS_OTHER:16}},NetworkType:{values:{NETWORK_NONE:0,NETWORK_WIFI:1,NETWORK_4G:2,NETWORK_3G:3,NETWORK_2G:4,NETWORK_WIRE:5}},CompressType:{values:{COMPRESS_NONE:0,COMPRESS_ZLIB:1}}}},MUCBody:{fields:{mucId:{type:"JID",id:1},operation:{type:"Operation",id:2},from:{type:"JID",id:3},to:{rule:"repeated",type:"JID",id:4},setting:{type:"Setting",id:5},reason:{type:"string",id:6},isChatroom:{type:"bool",id:7},status:{type:"Status",id:8},isThread:{type:"bool",id:9},mucParentId:{type:"JID",id:10},mucName:{type:"string",id:11}},nested:{Operation:{values:{CREATE:0,DESTROY:1,JOIN:2,LEAVE:3,APPLY:4,APPLY_ACCEPT:5,APPLY_DECLINE:6,INVITE:7,INVITE_ACCEPT:8,INVITE_DECLINE:9,KICK:10,GET_BLACKLIST:11,BAN:12,ALLOW:13,UPDATE:14,BLOCK:15,UNBLOCK:16,PRESENCE:17,ABSENCE:18,DIRECT_JOINED:19,ASSIGN_OWNER:20,ADD_ADMIN:21,REMOVE_ADMIN:22,ADD_MUTE:23,REMOVE_MUTE:24,UPDATE_ANNOUNCEMENT:25,DELETE_ANNOUNCEMENT:26,UPLOAD_FILE:27,DELETE_FILE:28,ADD_USER_WHITE_LIST:29,REMOVE_USER_WHITE_LIST:30,BAN_GROUP:31,REMOVE_BAN_GROUP:32,THREAD_CREATE:33,THREAD_DESTROY:34,THREAD_JOIN:35,THREAD_LEAVE:36,THREAD_KICK:37,THREAD_UPDATE:38,THREAD_PRESENCE:39,THREAD_ABSENCE:40,DISABLE_GROUP:41,ABLE_GROUP:42,SET_METADATA:43,DELETE_METADATA:44}},Setting:{fields:{name:{type:"string",id:1},desc:{type:"string",id:2},type:{type:"Type",id:3},maxUsers:{type:"int32",id:4},owner:{type:"string",id:5}},nested:{Type:{values:{PRIVATE_OWNER_INVITE:0,PRIVATE_MEMBER_INVITE:1,PUBLIC_JOIN_APPROVAL:2,PUBLIC_JOIN_OPEN:3,PUBLIC_ANONYMOUS:4}}}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},description:{type:"string",id:2}},nested:{ErrorCode:{values:{OK:0,PERMISSION_DENIED:1,WRONG_PARAMETER:2,MUC_NOT_EXIST:3,USER_NOT_EXIST:4,UNKNOWN:5}}}}}},RosterBody:{fields:{operation:{type:"Operation",id:1},status:{type:"Status",id:2},from:{type:"JID",id:3},to:{rule:"repeated",type:"JID",id:4},reason:{type:"string",id:5},rosterVer:{type:"string",id:6},biDirection:{type:"bool",id:7}},nested:{Operation:{values:{GET_ROSTER:0,GET_BLACKLIST:1,ADD:2,REMOVE:3,ACCEPT:4,DECLINE:5,BAN:6,ALLOW:7,REMOTE_ACCEPT:8,REMOTE_DECLINE:9}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},description:{type:"string",id:2}},nested:{ErrorCode:{values:{OK:0,USER_NOT_EXIST:1,USER_ALREADY_FRIEND:2,USER_ALREADY_BLACKLIST:3}}}}}},StatisticsBody:{fields:{operation:{type:"Operation",id:1},os:{type:"OsType",id:2},version:{type:"string",id:3},network:{type:"NetworkType",id:4},imTime:{type:"uint32",id:5},chatTime:{type:"uint32",id:6},location:{type:"string",id:7}},nested:{Operation:{values:{INFORMATION:0,USER_REMOVED:1,USER_LOGIN_ANOTHER_DEVICE:2,USER_KICKED_BY_CHANGE_PASSWORD:3,USER_KICKED_BY_OTHER_DEVICE:4}},OsType:{values:{OS_IOS:0,OS_ANDROID:1,OS_LINUX:2,OS_OSX:3,OS_WIN:4,OS_OTHER:16}},NetworkType:{values:{NETWORK_NONE:0,NETWORK_WIFI:1,NETWORK_4G:2,NETWORK_3G:3,NETWORK_2G:4,NETWORK_WIRE:5}}}}}}}}}}),be=function(){function e(e){var t,r,n;if(this.name="miniCore",this.heartBeatWait=3e4,this.Message=o.Message,this.Code=c.E,this.getUniqueId=i.Ki,this._queues=[],this._load_msg_cache=[],this.max_cache_length=100,this.isReport=!1,this.dnsIndex=0,this.url=null!==(t=e.url)&&void 0!==t?t:"",this.apiUrl=null!==(r=e.apiUrl)&&void 0!==r?r:"",this.isHttpDNS=!!e.isHttpDNS,this.appKey=e.appKey,this.root=Ne,this.isHttpDNS=void 0===e.isHttpDNS||e.isHttpDNS,this.https="undefined"!=typeof window&&"https:"===(null===(n=window.location)||void 0===n?void 0:n.protocol),this.delivery=e.delivery||!1,this.restIndex=0,this.hostIndex=0,this.unSendMsgArr=[],this.logOut=!0,this.dnsArr=["https://rs.easemob.com","https://rs.chat.agora.io","http://59.110.89.59","http://39.97.193.190","http://39.97.193.187"],this.version="4.1.0-mini",this.deviceId=e.deviceId||"webim",this.logOut=!0,this.osType=16,this.compressType=[0],this.encryptType=[0],this._msgHash={},this.context={jid:{appKey:"",clientResource:"",domain:"easemob.com",name:""},userId:"",appKey:"",status:0,restTokenData:"",appName:"",orgName:"",root:{},accessToken:""},this.mSync=this.usePlugin(ie),this.eventHandler=this.usePlugin(se),"string"!=typeof this.appKey||2!==this.appKey.split("#").length)throw Error("Illegal appKey: ".concat(this.appKey));var s=this.appKey.split("#");this.orgName=s[0],this.appName=s[1],this.dataReport=new Oe({appkey:this.appKey,org:this.orgName,sdkVersion:this.version,deviceId:this.deviceId,isReport:this.isReport})}return e.prototype.usePlugin=function(e,t){var r=this;if("function"==typeof e){if(!t)return new e(this);this[t]=new e(this)}else"object"===Te(e)&&(t?(this[t]={},Object.keys(e).forEach((function(n){r[t][n]=e[n].bind(r)}))):Object.assign(this,e))},e.prototype.isOpened=function(){return 1===this.sock.readyState},e.prototype.open=function(e,t){return Ie(this,void 0,void 0,(function(){var r,n,o,a,u,l,f,p,d,h,y,E,_,v,m,g,O,R,C=this;return Ce(this,(function(N){switch(N.label){case 0:if(this.setContext(e),this.logOut=!1,!e.username||"string"!=typeof e.username)throw new Error("Invalid parameter username: ".concat(e.username));return r=this.dataReport.geOperateFun({uid:e.username,operationName:T.fI.LOGIN}),this.isHttpDNS?[4,this.getDNS({rpt:r,isRetry:!!t})]:[3,2];case 1:N.sent(),N.label=2;case 2:return n=this.apiUrl+"/"+this.orgName+"/"+this.appName+"/token",e.agoraToken?(this.grantType="agoraToken",[4,Se(this.getChatToken(e.agoraToken))]):[3,4];case 3:if(o=N.sent(),d=o[0],h=o[1],d)throw a=I.create({type:c.E.WEBIM_CONNCTION_GETROSTER_ERROR,message:"get chat token fail",data:d.data}),u=d.extraInfo,g=u.elapse,m=u.httpCode,E=u.errDesc,O={requestName:T.c.LOGIN_BY_AGORA_TOKEN,requestUrl:n,requestElapse:g,isSuccess:0,code:m,codeDesc:E},r({data:O}),r({data:{isLastApi:1,isSuccess:0}}),delete d.extraInfo,a;return this.grantType="agoraToken",this.user=e.username,this.expirationTime=h.expire_timestamp,this.token=h.access_token,this.context.accessToken=h.access_token,this.context.restTokenData=h.access_token,l=h.extraInfo||{},m=l.httpCode,g=l.elapse,O={requestName:T.c.LOGIN_BY_AGORA_TOKEN,requestUrl:n,requestElapse:g,isSuccess:1,code:m},r({data:O}),[3,7];case 4:return e.password?(f={headers:{"Content-type":"application/json"},url:n,dataType:"json",data:JSON.stringify({grant_type:"password",username:e.username,password:e.password,timestamp:+new Date})},[4,Se(i.P6.ajax(f,T.fI.SDK_INTERNAL))]):[3,6];case 5:if(p=N.sent(),d=p[0],h=p[1],d){if(y=(null==d?void 0:d.extraInfo)||{},g=y.elapse,m=y.httpCode,E=y.errDesc,_={requestName:T.c.LOGIN_BY_PWD,requestElapse:g,requestUrl:n,isSuccess:0,code:m,codeDesc:E},r({isRetry:!1,data:_}),this.isHttpDNS&&this.restIndex+1<this.restTotal)return this.restIndex++,this.setRestUrl(),this.open(e,!0),[2];throw r({data:{isLastApi:1,isSuccess:0}}),this.clear(),delete d.extraInfo,d}if(!h)throw new Error("get token fail.");return this.grantType="accessToken",this.token=h.access_token,this.user=e.username,this.context.accessToken=h.access_token,h.extraInfo&&(v=h.extraInfo,m=v.httpCode,g=v.elapse,O={requestName:T.c.LOGIN_BY_PWD,requestElapse:g,requestUrl:n,isSuccess:1,code:m},r({isRetry:!1,data:O})),[3,7];case 6:if(!e.accessToken)throw new Error("Invalid parameter params: ".concat(e));this.grantType="accessToken",this.token=e.accessToken,this.context.accessToken=e.accessToken,this.context.restTokenData=e.accessToken,this.user=e.username,N.label=7;case 7:return R=new WebSocket(this.url),this.sock=R,R.onopen=function(){var e;r({data:{isLastApi:1,isSuccess:1,accessChannel:null===(e=C.socketHost[C.hostIndex])||void 0===e?void 0:e.channel}});var t=C.mSync.generateProvision();R.send(t)},R.onclose=function(){var e,t;if(!C.logOut&&C.autoReconnectNumTotal<C.autoReconnectNumMax)C.reconnect(),C.autoReconnectNumTotal%C.refreshDNSIntervals==0&&C.isHttpDNS&&(s.kg.debug("refresh dns config when websocket close"),C.getDNS({isRetry:!1}));else if(C.logOut)C.clear(),null===(e=C.eventHandler)||void 0===e||e.dispatch("onDisconnected"),C.mSync.stopHeartBeat(),C.autoReconnectInterval=0,C.times=1,C.autoReconnectNumTotal=0,C.hostIndex=0;else{var r={type:c.E.WEBIM_CONNCTION_DISCONNECTED,message:"websocket has been disconnected"};null===(t=C.eventHandler)||void 0===t||t.dispatch("onDisconnected",r),C.mSync.stopHeartBeat(),s.kg.debug("reconnect fail"),C.autoReconnectInterval=0,C.times=1,C.autoReconnectNumTotal=0,C.hostIndex=0}},R.onmessage=function(e){var t=C.mSync,r=t.decodeMSync,n=t.distributeMSync;i.P6.flow([r,n])(e,!1)},R.onerror=function(){var e;!C.logOut&&C.autoReconnectNumTotal<C.autoReconnectNumMax&&(s.kg.debug("sock.onError reconnect",C.autoReconnectNumTotal,C.autoReconnectNumMax),C.reconnect(),C.autoReconnectNumTotal%C.refreshDNSIntervals==0&&C.isHttpDNS&&(s.kg.debug("refresh dns config when websocket error"),C.getDNS({rpt:r,isRetry:!1}))),r({data:{isLastApi:1,isSuccess:0,accessChannel:null===(e=C.socketHost[C.hostIndex])||void 0===e?void 0:e.channel}})},(0,i.P4)(this.online.bind(this),this.offline.bind(this)),[2]}}))}))},e.prototype.close=function(){this.logOut=!0,this.context.status=404,this.sock&&this.sock.close(),this.stopHeartBeat(),this.context.status=405,this._load_msg_cache=[],this.unSendMsgArr=[],this._queues=[],this._msgHash={},this.mr_cache={}},e.prototype.registerUser=function(e){return Ie(this,void 0,void 0,(function(){var t,r,n,o,s,a,u,c,l,f,p,d,h,y;return Ce(this,(function(E){switch(E.label){case 0:return t=this.dataReport.geOperateFun({uid:e.username,operationName:T.fI.REGISTER}),this.isHttpDNS?[4,this.getDNS({rpt:t,isRetry:!1})]:[3,2];case 1:E.sent(),E.label=2;case 2:return r=this.apiUrl,n=r+"/"+this.orgName+"/"+this.appName+"/users",o=JSON.stringify({username:e.username,password:e.password,nickname:e.nickname||""}),s={headers:{"Content-type":"application/json"},url:n,dataType:"json",data:o},[4,Se(i.P6.ajax(s,T.fI.SDK_INTERNAL))];case 3:if(a=E.sent(),u=a[0],c=a[1],l={requestName:T.c.RESISTER,requestUrl:n},u){if(f=u.extraInfo||{},h=f.httpCode,y=f.elapse,p=f.errDesc,t({isRetry:!1,data:Re(Re({},{requestElapse:y,isSuccess:0,code:h,codeDesc:p}),l)}),!(this.isHttpDNS&&this.restIndex+1<this.restTotal))throw t({data:{isLastApi:1,isSuccess:0}}),delete u.extraInfo,u;return this.restIndex++,this.setRestUrl(),this.registerUser(e),[2,u]}if(!c)throw new Error("register user fail.");return d=c.extraInfo||{},h=d.httpCode,y=d.elapse,t({isEndApi:!0,isRetry:!1,data:Re(Re({},{requestElapse:y,isSuccess:1,code:h}),l)}),[2,{data:null==c?void 0:c.entities[0],type:0}]}}))}))},e.prototype.renewToken=function(e){var t=this;return this.isOpened()?this.getChatToken(e).then((function(e){var r=Date.now();return t.expirationTime=e.expire_timestamp,t.expiresIn=e.expire_timestamp-r,t.token=e.access_token,t.context.accessToken=e.access_token,t.clearTokenTimeout(),t.tokenExpireTimeCountDown(t.expiresIn),{status:!0,token:e.access_token,expire:e.expire_timestamp}})):Promise.reject({status:!1})},e.prototype.getChatToken=function(e){if("string"!=typeof e||""===e)throw Error('Invalid parameter: "agoraToken"');var t=this.context,r=t.orgName,n=t.appName,o={url:this.apiUrl+"/"+r+"/"+n+"/token",dataType:"json",type:"POST",data:JSON.stringify({grant_type:"agora"}),headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"}};return s.kg.debug("Call getChatToken",e),i.P6.ajax(o,T.fI.SDK_INTERNAL)},e.prototype.clearTokenTimeout=function(){s.kg.debug("clearTokenTimeout"),this.tokenWillExpireTimer&&clearTimeout(this.tokenWillExpireTimer),this.tokenExpiredTimer&&clearTimeout(this.tokenExpiredTimer)},e.prototype.compareTokenExpireTime=function(e,t){var r,n=Number(t)-Number(e);s.kg.debug("compareTokenExpireTime",n),n<=this.expiresIn/2&&n>0?(null===(r=this.eventHandler)||void 0===r||r.dispatch("onTokenWillExpire"),s.kg.info("onTokenWillExpire")):n<=0&&(this.closeByTokenExpired(),s.kg.info("closeByTokenExpired"))},e.prototype.closeByTokenExpired=function(){var e;s.kg.info("closed By TokenExpired"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onTokenExpired"),this.close()},e.prototype.tokenExpireTimeCountDown=function(e){var t=this;this.tokenWillExpireTimer=setTimeout((function(){var e;null===(e=t.eventHandler)||void 0===e||e.dispatch("onTokenWillExpire"),s.kg.info("onTokenWillExpire")}),e/2),this.tokenExpiredTimer=setTimeout((function(){var e;s.kg.info("onTokenExpired"),null===(e=t.eventHandler)||void 0===e||e.dispatch("onTokenExpired"),t.close()}),e)},e.prototype.stopHeartBeat=function(){clearInterval(this.heartBeatID)},e.prototype.setContext=function(e){this.context.jid={appKey:this.appKey,name:e.username,domain:this.context.jid.domain,clientResource:this.clientResource};var t=this.appKey.split("#"),r=t[0],n=t[1];this.context.root=this.root,this.context.userId=e.username,this.context.appKey=this.appKey,this.context.appName=n,this.context.orgName=r},e.prototype.getDNS=function(e){return Ie(this,void 0,void 0,(function(){var t,r,n,o,a,u,c,l,f,p,d,h,y,E,_,v,m,g,O,R,I;return Ce(this,(function(C){switch(C.label){case 0:return t=e.rpt,r=e.isRetry,n=this.dnsArr[this.dnsIndex]+"/easemob/server.json",o={url:n,dataType:"json",type:"GET",data:{app_key:encodeURIComponent(this.appKey)}},[4,Se(i.P6.ajax(o,T.fI.SDK_INTERNAL))];case 1:if(a=C.sent(),u=a[0],c=a[1],u){if(l=u.extraInfo||{},f=l.elapse,p=l.httpCode,d=l.errDesc,h={requestUrl:n,requestName:T.c.GET_DNS,isSuccess:0,code:p,codeDesc:d,requestElapse:f},t&&t({isRetry:r,data:h}),s.kg.debug("getHttpDNS fail: "+this.dnsIndex),this.dnsIndex++,this.dnsIndex<this.dnsTotal)return this.getDNS({rpt:t,isRetry:!0}),[2];throw new Error("get DNS config fail.")}if(!c)throw new Error("get DNS config fail.");return y=c.extraInfo||{},E=y.elapse,_=y.httpCode,v={requestUrl:n,requestName:T.c.GET_DNS,requestElapse:E,isSuccess:1,code:_},t&&t({isRetry:r,data:v}),m=c.rest.hosts,g=this.https?"https":"http",O=m.filter((function(e){if(e.protocol===g)return e})),this.restHosts=O,R=c["msync-wx"].hosts,I=R.filter((function(e){if(e.protocol===g)return e})),this.socketHost=I,"true"===(null==c?void 0:c.enableDataReport)?(this.dataReport.setIsCollectDt(!0),this.dataReport.setIsReportDt(!0)):(this.dataReport.setIsReportDt(!1),this.dataReport.setIsCollectDt(!1)),this.setRestUrl(),this.setSocketUrl(),[2]}}))}))},e.prototype.setRestUrl=function(){var e,t;if(this.restIndex>this.restHosts.length)return s.kg.debug("restIndex > restTotal"),"";var r="",n=this.restHosts[this.restIndex],o=n.domain,i=n.ip,a=n.port,u=this.https?"https:":"http:";return i&&"undefined"!=typeof window&&"http:"===(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.protocol)?r=u+"//"+i+":"+a:(r=u+"//"+o,a&&"80"!==a&&"443"!==a&&(r+=":".concat(a)),"undefined"==typeof window||window.location||(r="https://"+o),"undefined"!=typeof window&&window.location&&"file:"===(null===(t=window.location)||void 0===t?void 0:t.protocol)&&(r="https://"+o)),"undefined"==typeof window&&(r=u+"//"+o),this.apiUrl=r,r},e.prototype.setSocketUrl=function(){var e=this.socketHost[this.hostIndex],t=e.domain,r=e.ip,n=e.port,o="";o=t||r,n&&"80"!==n&&"443"!==n&&(o+=":"+n),o&&(this.url="//"+o+"/websocket");var i=this.https?"wss:":"ws:";this.url=i+this.url},e.prototype.online=function(){var e;s.kg.debug("online"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onOnline"),this.sock&&1!==this.sock.readyState&&(s.kg.debug("sock.readyState:",this.sock.readyState),this.reconnect())},e.prototype.offline=function(){var e;s.kg.debug("offline"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onOffline")},e.prototype.reconnect=function(){var e=this;s.kg.info("reconnect times: ",this.times),s.kg.info("reconnect sock.readyState: ",this.sock.readyState),0!==this.sock.readyState&&1!==this.sock.readyState&&(this.isHttpDNS&&(this.hostIndex,this.socketHost.length),this.hostIndex++,this.hostIndex>=this.socketHost.length-1&&(this.hostIndex=this.socketHost.length-1),setTimeout((function(){s.kg.info("login sock.readyState: ",e.sock.readyState),1!==e.sock.readyState&&(e.sock.close(),e.open({username:e.context.userId,accessToken:e.context.accessToken}),e.autoReconnectInterval+=e.times*e.times,e.times++)}),500*this.times),this.autoReconnectNumTotal++)},e.prototype.clear=function(){this.restTotal=0,this.restIndex=0,this.hostIndex=0,this.hostTotal=0},e}(),Se=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e,null]}))},Ae=be}(),__webpack_exports__}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.websdk=t():e.websdk=t()}(this,(function(){return function(){var __webpack_modules__={5317:function(e){"use strict";e.exports=function(e,t){for(var r=new Array(arguments.length-1),n=0,o=2,i=!0;o<arguments.length;)r[n++]=arguments[o++];return new Promise((function(o,s){r[n]=function(e){if(i)if(i=!1,e)s(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,s(e))}}))}},8660:function(e,t){"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var n=new Array(64),o=new Array(123),i=0;i<64;)o[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var o,i=null,s=[],a=0,u=0;t<r;){var c=e[t++];switch(u){case 0:s[a++]=n[c>>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=n[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=n[o|c>>6],s[a++]=n[63&c],u=0}a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=n[o],s[a++]=61,1===u&&(s[a++]=61)),i?(a&&i.push(String.fromCharCode.apply(String,s.slice(0,a))),i.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var n,i=r,a=0,u=0;u<e.length;){var c=e.charCodeAt(u++);if(61===c&&a>1)break;if(void 0===(c=o[c]))throw Error(s);switch(a){case 0:n=c,a=1;break;case 1:t[r++]=n<<2|(48&c)>>4,n=c,a=2;break;case 2:t[r++]=(15&n)<<4|(60&c)>>2,n=c,a=3;break;case 3:t[r++]=(3&n)<<6|c,a=0}}if(1===a)throw Error(s);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},4495:function(e){"use strict";function t(e,r){"string"==typeof e&&(r=e,e=void 0);var n=[];function o(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),u=new Array(s.length),c=0;c<s.length;)a[c]=s[c],u[c]=e[s[c++]];return a[c]=r,Function.apply(null,a).apply(null,u)}return Function(r)()}for(var l=new Array(arguments.length-1),f=0;f<l.length;)l[f]=arguments[++f];if(f=0,e=e.replace(/%([%dfijs])/g,(function(e,t){var r=l[f++];switch(t){case"d":case"f":return String(Number(r));case"i":return String(Math.floor(r));case"j":return JSON.stringify(r);case"s":return String(r)}return"%"})),f!==l.length)throw Error("parameter count mismatch");return n.push(e),o}function i(t){return"function "+(t||r||"")+"("+(e&&e.join(",")||"")+"){\n "+n.join("\n ")+"\n}"}return o.toString=i,o}e.exports=t,t.verbose=!1},3745:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},t.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this}},8551:function(e,t,r){"use strict";e.exports=i;var n=r(5317),o=r(491)("fs");function i(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&o&&o.readFile?o.readFile(e,(function(n,o){return n&&"undefined"!=typeof XMLHttpRequest?i.xhr(e,t,r):n?r(n):r(null,t.binary?o:o.toString("utf8"))})):i.xhr(e,t,r):n(i,this,e,t)}i.xhr=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return r(Error("status "+n.status));if(t.binary){var e=n.response;if(!e){e=[];for(var o=0;o<n.responseText.length;++o)e.push(255&n.responseText.charCodeAt(o))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,n.responseText)}},t.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",e),n.send()}},9059:function(e){"use strict";function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3]}function i(e,n,o){t[0]=e,n[o]=r[3],n[o+1]=r[2],n[o+2]=r[1],n[o+3]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function a(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?o:i,e.writeFloatBE=n?i:o,e.readFloatLE=n?s:a,e.readFloatBE=n?a:s}():function(){function t(e,t,r,n){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function s(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,s=8388607&n;return 255===i?s?NaN:o*(1/0):0===i?1401298464324817e-60*o*s:o*Math.pow(2,i-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,n),e.readFloatLE=s.bind(null,o),e.readFloatBE=s.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function s(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function a(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?s:a,e.readDoubleBE=n?a:s}():function(){function t(e,t,r,n,o,i){var s=n<0?1:0;if(s&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((s<<31|2146435072)>>>0,o,i+r);else{var a;if(n<22250738585072014e-324)e((a=n/5e-324)>>>0,o,i+t),e((s<<31|a/4294967296)>>>0,o,i+r);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=n*Math.pow(2,-u))>>>0,o,i+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,o,i+r)}}}function s(e,t,r,n,o){var i=e(n,o+t),s=e(n,o+r),a=2*(s>>31)+1,u=s>>>20&2047,c=4294967296*(1048575&s)+i;return 2047===u?c?NaN:a*(1/0):0===u?5e-324*a*c:a*Math.pow(2,u-1075)*(c+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,n,4,0),e.readDoubleLE=s.bind(null,o,0,4),e.readDoubleBE=s.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function n(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function o(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},491:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},7460:function(e,t){"use strict";var r=t,n=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},o=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=n(e),o="";r&&(o=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};r.resolve=function(e,t,r){return r||(t=o(t)),n(t)?t:(r||(e=o(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?o(e+"/"+t):t)}},8601:function(e){"use strict";e.exports=function(e,t,r){var n=r||8192,o=n>>>1,i=null,s=n;return function(r){if(r<1||r>o)return e(r);s+r>n&&(i=e(n),s=0);var a=t.call(i,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},8375:function(e,t){"use strict";var r=t;r.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},r.read=function(e,t,r){if(r-t<1)return"";for(var n,o=null,i=[],s=0;t<r;)(n=e[t++])<128?i[s++]=n:n>191&&n<224?i[s++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[s++]=55296+(n>>10),i[s++]=56320+(1023&n)):i[s++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,i.slice(0,s))),o.join("")):String.fromCharCode.apply(String,i.slice(0,s))},r.write=function(e,t,r){for(var n,o,i=r,s=0;s<e.length;++s)(n=e.charCodeAt(s))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(s+1)))?(n=65536+((1023&n)<<10)+(1023&o),++s,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}},5491:function(e,t,r){var n,o,i;!function(s){"use strict";if(null!=t&&"number"!=typeof t.nodeType)e.exports=s();else if(null!=r.amdO)o=[],void 0===(i="function"==typeof(n=s)?n.apply(t,o):n)||(e.exports=i);else{var a=s(),u="undefined"!=typeof self?self:$.global;"function"!=typeof u.btoa&&(u.btoa=a.btoa),"function"!=typeof u.atob&&(u.atob=a.atob)}}((function(){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(e){this.message=e}return t.prototype=new Error,t.prototype.name="InvalidCharacterError",{btoa:function(r){for(var n,o,i=String(r),s=0,a=e,u="";i.charAt(0|s)||(a="=",s%1);u+=a.charAt(63&n>>8-s%1*8)){if((o=i.charCodeAt(s+=3/4))>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|o}return u},atob:function(r){var n=String(r).replace(/[=]+$/,"");if(n.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,s=0,a=0,u="";i=n.charAt(a++);~i&&(o=s%4?64*o+i:i,s++%4)?u+=String.fromCharCode(255&o>>(-2*s&6)):0)i=e.indexOf(i);return u}}}))},3681:function(e,t,r){"use strict";var n,o,i,s,a,u;r.d(t,{C8:function(){return n},aC:function(){return u},c:function(){return i},dd:function(){return a},fI:function(){return o},td:function(){return s}}),function(e){e[e.UNKNOWOPERATION=-1]="UNKNOWOPERATION",e[e.REST_GET_SESSION_LIST=1]="REST_GET_SESSION_LIST",e[e.REST_DEL_SESSION=2]="REST_DEL_SESSION",e[e.REST_GET_HISTORY_MESSAGE=3]="REST_GET_HISTORY_MESSAGE",e[e.REST_OPERATE=10]="REST_OPERATE",e[e.MSYNC_SENDMESSAGE=11]="MSYNC_SENDMESSAGE",e[e.MSYNC_RECALLMESSAGE=12]="MSYNC_RECALLMESSAGE",e[e.MSYNC_OPERATE=20]="MSYNC_OPERATE",e[e.ROSTER_ADD=21]="ROSTER_ADD",e[e.ROSTER_REMOVE=22]="ROSTER_REMOVE",e[e.ROSTER_ACCEPT=23]="ROSTER_ACCEPT",e[e.ROSTER_DECLINE=24]="ROSTER_DECLINE",e[e.ROSTER_BAN=25]="ROSTER_BAN",e[e.ROSTER_ALLOW=26]="ROSTER_ALLOW",e[e.ROSTER_BLACKLIST=27]="ROSTER_BLACKLIST",e[e.ROSTER_CONTACTS=28]="ROSTER_CONTACTS",e[e.ROSTER_OPERATE=30]="ROSTER_OPERATE",e[e.USER_LOGIN=31]="USER_LOGIN",e[e.USER_CREATE=32]="USER_CREATE",e[e.USER_UPDATE_USERINFO=33]="USER_UPDATE_USERINFO",e[e.USER_FETCH_USERINFO=34]="USER_FETCH_USERINFO",e[e.USER_UPDATE_NICK=35]="USER_UPDATE_NICK",e[e.USER_UPLOAD_PUSH_TOKEN=36]="USER_UPLOAD_PUSH_TOKEN",e[e.USER_OPERATE=40]="USER_OPERATE",e[e.GROUP_CREATEGROUP=41]="GROUP_CREATEGROUP",e[e.GROUP_BLOCK_MESSAGE=42]="GROUP_BLOCK_MESSAGE",e[e.GROUP_FETCH_PUBLICGROUPS_WITHCURSOR=43]="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e[e.GROUP_FETCH_USERS_GROUP=44]="GROUP_FETCH_USERS_GROUP",e[e.GROUP_CHANGE_OWNER=45]="GROUP_CHANGE_OWNER",e[e.GROUP_FETCH_SPECIFICATION=46]="GROUP_FETCH_SPECIFICATION",e[e.GROUP_CHANGE_GROUPATTRIBUTE=47]="GROUP_CHANGE_GROUPATTRIBUTE",e[e.GROUP_FETCH_MEMEBERS=48]="GROUP_FETCH_MEMEBERS",e[e.GROUP_GET_ADMIN=49]="GROUP_GET_ADMIN",e[e.GROUP_SET_ADMIN=50]="GROUP_SET_ADMIN",e[e.GROUP_REMOVE_ADMIN=51]="GROUP_REMOVE_ADMIN",e[e.GROUP_DESTOTYGROUP=52]="GROUP_DESTOTYGROUP",e[e.GROUP_LEAVEGROUP=53]="GROUP_LEAVEGROUP",e[e.GROUP_INVITE_TO_GROUP=54]="GROUP_INVITE_TO_GROUP",e[e.GROUP_JOIN_PUBLICGROUP=55]="GROUP_JOIN_PUBLICGROUP",e[e.GROUP_ACCEPT_JOINPUBLICGROUPAPPL=56]="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e[e.GROUP_DECLINE_JOINPUBLICGROUPAPPL=57]="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e[e.GROUP_ACCEPT_INVITATION=58]="GROUP_ACCEPT_INVITATION",e[e.GROUP_DECLINE_INVITATION=59]="GROUP_DECLINE_INVITATION",e[e.GROUP_REMOVE_MEMBER=60]="GROUP_REMOVE_MEMBER",e[e.GROUP_REMOVE_MEMBERS=61]="GROUP_REMOVE_MEMBERS",e[e.GROUP_MUTE_MEMBERS=62]="GROUP_MUTE_MEMBERS",e[e.GROUP_UNMUTE_MEMBERS=63]="GROUP_UNMUTE_MEMBERS",e[e.GROUP_FETCH_MUTES=64]="GROUP_FETCH_MUTES",e[e.GROUP_BLOCK_MEMBER=65]="GROUP_BLOCK_MEMBER",e[e.GROUP_BLOCK_MEMBERS=66]="GROUP_BLOCK_MEMBERS",e[e.GROUP_UNBLOCK_MEMBER=67]="GROUP_UNBLOCK_MEMBER",e[e.GROUP_UNBLOCK_MEMBERS=68]="GROUP_UNBLOCK_MEMBERS",e[e.GROUP_GET_BLOCK_LIST=69]="GROUP_GET_BLOCK_LIST",e[e.GROUP_MUTE_ALLMEMBERS=70]="GROUP_MUTE_ALLMEMBERS",e[e.GROUP_UNMUTE_ALLMEMBERS=71]="GROUP_UNMUTE_ALLMEMBERS",e[e.GROUP_ADD_WHITELIST=72]="GROUP_ADD_WHITELIST",e[e.GROUP_REMOVE_WHITELIST=73]="GROUP_REMOVE_WHITELIST",e[e.GROUP_FETCH_WHITELIST=74]="GROUP_FETCH_WHITELIST",e[e.GROUP_IS_IN_WHITELIST=75]="GROUP_IS_IN_WHITELIST",e[e.GROUP_GET_READ_USERS=76]="GROUP_GET_READ_USERS",e[e.GROUP_FETCH_ANNOUNCEMENT=77]="GROUP_FETCH_ANNOUNCEMENT",e[e.GROUP_UPDATE_ANNOUNCEMENT=78]="GROUP_UPDATE_ANNOUNCEMENT",e[e.GROUP_UPLOAD_SHAREDFILE=79]="GROUP_UPLOAD_SHAREDFILE",e[e.GROUP_DELETE_SHAREDFILE=80]="GROUP_DELETE_SHAREDFILE",e[e.GROUP_FETCH_SHAREDFILE=81]="GROUP_FETCH_SHAREDFILE",e[e.GROUP_DOWNLOAD_SHAREDFILE=82]="GROUP_DOWNLOAD_SHAREDFILE",e[e.GROUP_OPERATE=100]="GROUP_OPERATE",e[e.CHATROOM_FETCH_CHATROOMSWITHPAGE=101]="CHATROOM_FETCH_CHATROOMSWITHPAGE",e[e.CHATROOM_CREATECHATROOM=102]="CHATROOM_CREATECHATROOM",e[e.CHATROOM_DESTORYCHATROOM=103]="CHATROOM_DESTORYCHATROOM",e[e.CHATROOM_FETCH_SPECIFICATION=104]="CHATROOM_FETCH_SPECIFICATION",e[e.CHATROOM_CHANGE_ATTRIBUTE=105]="CHATROOM_CHANGE_ATTRIBUTE",e[e.CHATROOM_REMOVE_MEMBER=106]="CHATROOM_REMOVE_MEMBER",e[e.CHATROOM_REMOVE_MEMBERS=107]="CHATROOM_REMOVE_MEMBERS",e[e.CHATROOM_ADD_MEMBERS=108]="CHATROOM_ADD_MEMBERS",e[e.CHATROOM_JOINCAHTROOM=109]="CHATROOM_JOINCAHTROOM",e[e.CHATROOM_LEAVECAHTROOM=110]="CHATROOM_LEAVECAHTROOM",e[e.CHATROOM_FETCH_MEMBERS=111]="CHATROOM_FETCH_MEMBERS",e[e.CHATROOM_GET_ADMIN=112]="CHATROOM_GET_ADMIN",e[e.CHATROOM_SET_ADMIN=113]="CHATROOM_SET_ADMIN",e[e.CHATROOM_REMOVE_ADMIN=114]="CHATROOM_REMOVE_ADMIN",e[e.CHATROOM_MUTE_USER=115]="CHATROOM_MUTE_USER",e[e.CHATROOM_UNMUTE_USER=116]="CHATROOM_UNMUTE_USER",e[e.CHATROOM_FETCH_MUTES=117]="CHATROOM_FETCH_MUTES",e[e.CHATROOM_BLOCK_USER=118]="CHATROOM_BLOCK_USER",e[e.CHATROOM_BLOCK_USERS=119]="CHATROOM_BLOCK_USERS",e[e.CHATROOM_UNBLOCK_USER=120]="CHATROOM_UNBLOCK_USER",e[e.CHATROOM_UNBLOCK_USERS=121]="CHATROOM_UNBLOCK_USERS",e[e.CHATROOM_FETCH_BANS=122]="CHATROOM_FETCH_BANS",e[e.CHATROOM_MUTE_ALLMEMEBERS=123]="CHATROOM_MUTE_ALLMEMEBERS",e[e.CHATROOM_UNMUTE_ALLMEMEBERS=124]="CHATROOM_UNMUTE_ALLMEMEBERS",e[e.CHATROOM_ADD_WHITELIST=125]="CHATROOM_ADD_WHITELIST",e[e.CHATROOM_REMOVE_WHITELIST=126]="CHATROOM_REMOVE_WHITELIST",e[e.CHATROOM_FETCH_WHITELIST=127]="CHATROOM_FETCH_WHITELIST",e[e.CHATROOM_FETCH_MEMBERIN_WHITELIST=128]="CHATROOM_FETCH_MEMBERIN_WHITELIST",e[e.CHATROOM_FETCH_ANNOUNCEMENT=129]="CHATROOM_FETCH_ANNOUNCEMENT",e[e.CHATROOM_UPDATE_ANNOUNCEMENT=130]="CHATROOM_UPDATE_ANNOUNCEMENT",e[e.CHATROOM_REMOVE_SHARE_FILE=131]="CHATROOM_REMOVE_SHARE_FILE",e[e.CHATROOM_GET_SHARE_FILE_LIST=132]="CHATROOM_GET_SHARE_FILE_LIST",e[e.CHATROOM_UPLOAD_FILE=133]="CHATROOM_UPLOAD_FILE",e[e.CHATROOM_OPERATE=150]="CHATROOM_OPERATE"}(n||(n={})),function(e){e.SDK_INTERNAL="SDK_INTERNAL",e.LOGIN="USER_LOGIN",e.REGISTER="USER_CREATE",e.GET_CHATROOM_LIST="CHATROOM_FETCH_CHATROOMSWITHPAGE",e.CREATE_CHATROOM="CHATROOM_CREATECHATROOM",e.DESTROY_CHATROOM="CHATROOM_DESTORYCHATROOM",e.GET_CHATROOM_DETAIL="CHATROOM_FETCH_SPECIFICATION",e.MODIFY_CHATROOM="CHATROOM_CHANGE_ATTRIBUTE",e.REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBER",e.MULTI_REMOVE_CHATROOM_MEMBER="CHATROOM_REMOVE_MEMBERS",e.ADD_USERS_TO_CHATROOM="CHATROOM_ADD_MEMBERS",e.JOIN_CHATROOM="CHATROOM_JOINCAHTROOM",e.QUIT_CHATROOM="CHATROOM_LEAVECAHTROOM",e.LIST_CHATROOM_MEMBERS="CHATROOM_FETCH_MEMBERS",e.GET_CHATROOM_ADMIN="CHATROOM_GET_ADMIN",e.SET_CHATROOM_ADMIN="CHATROOM_SET_ADMIN",e.REMOVE_CHATROOM_ADMIN="CHATROOM_REMOVE_ADMIN",e.MUTE_CHATROOM_MEMBER="CHATROOM_MUTE_USER",e.REMOVE_MUTE_CHATROOM_MEMBER="CHATROOM_UNMUTE_USER",e.GET_MUTE_CHATROOM_MEMBERS="CHATROOM_FETCH_MUTES",e.SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USER",e.MULTI_SET_CHATROOM_MEMBER_TO_BLACK="CHATROOM_BLOCK_USERS",e.REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USER",e.MULTI_REMOVE_CHATROOM_MEMBER_BLACK="CHATROOM_UNBLOCK_USERS",e.GET_CHATROOM_BLOCK_MEMBERS="CHATROOM_FETCH_BANS",e.DISABLED_CHATROOM_SEND_MSG="CHATROOM_MUTE_ALLMEMEBERS",e.ENABLE_CHATROOM_SEND_MSG="CHATROOM_UNMUTE_ALLMEMEBERS",e.ADD_CHATROOM_WHITE_USERS="CHATROOM_ADD_WHITELIST",e.REMOVE_CHATROOM_WHITE_USERS="CHATROOM_REMOVE_WHITELIST",e.GET_CHATROOM_WHITE_USERS="CHATROOM_FETCH_WHITELIST",e.CHECK_CHATROOM_WHITE_USER="CHATROOM_FETCH_MEMBERIN_WHITELIST",e.GET_CHATROOM_ANN="CHATROOM_FETCH_ANNOUNCEMENT",e.UPDATE_CHATROOM_ANN="CHATROOM_UPDATE_ANNOUNCEMENT",e.DELETE_CHATROOM_FILE="CHATROOM_REMOVE_SHARE_FILE",e.GET_CHATROOM_FILES="CHATROOM_GET_SHARE_FILE_LIST",e.UPLOAD_CHATROOM_FILE="CHATROOM_UPLOAD_FILE",e.CREATE_GROUP="GROUP_CREATEGROUP",e.BLOCK_GROUP="GROUP_BLOCK_MESSAGE",e.LIST_GROUP="GROUP_FETCH_PUBLICGROUPS_WITHCURSOR",e.GET_USER_GROUP="GROUP_FETCH_USERS_GROUP",e.CHANGE_OWNER="GROUP_CHANGE_OWNER",e.GET_GROUP_INFO="GROUP_FETCH_SPECIFICATION",e.MODIFY_GROUP="GROUP_CHANGE_GROUPATTRIBUTE",e.LIST_GROUP_MEMBER="GROUP_FETCH_MEMEBERS",e.GET_GROUP_ADMIN="GROUP_GET_ADMIN",e.SET_GROUP_ADMIN="GROUP_SET_ADMIN",e.REMOVE_GROUP_ADMIN="GROUP_REMOVE_ADMIN",e.DISSOLVE_GROUP="GROUP_DESTOTYGROUP",e.QUIT_GROUP="GROUP_LEAVEGROUP",e.INVITE_TO_GROUP="GROUP_INVITE_TO_GROUP",e.JOIN_GROUP="GROUP_JOIN_PUBLICGROUP",e.AGREE_JOIN_GROUP="GROUP_ACCEPT_JOINPUBLICGROUPAPPL",e.REJECT_JOIN_GROUP="GROUP_DECLINE_JOINPUBLICGROUPAPPL",e.AGREE_INVITE_GROUP="GROUP_ACCEPT_INVITATION",e.REJECT_INVITE_GROUP="GROUP_DECLINE_INVITATION",e.REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBER",e.MULTI_REMOVE_GROUP_MEMBER="GROUP_REMOVE_MEMBERS",e.MUTE_GROUP_MEMBER="GROUP_MUTE_MEMBERS",e.UNMUTE_GROUP_MEMBER="GROUP_UNMUTE_MEMBERS",e.GET_GROUP_MUTE_LIST="GROUP_FETCH_MUTES",e.BLOCK_GROUP_MEMBER="GROUP_BLOCK_MEMBER",e.BLOCK_GROUP_MEMBERS="GROUP_BLOCK_MEMBERS",e.UNBLOCK_GROUP_MEMBER="GROUP_UNBLOCK_MEMBER",e.UNBLOCK_GROUP_MEMBERS="GROUP_UNBLOCK_MEMBERS",e.GET_GROUP_BLACK_LIST="GROUP_GET_BLOCK_LIST",e.DISABLED_SEND_GROUP_MSG="GROUP_MUTE_ALLMEMBERS",e.ENABLE_SEND_GROUP_MSG="GROUP_UNMUTE_ALLMEMBERS",e.ADD_USERS_TO_GROUP_WHITE="GROUP_ADD_WHITELIST",e.REMOVE_GROUP_WHITE_MEMBER="GROUP_REMOVE_WHITELIST",e.GET_GROUP_WHITE_LIST="GROUP_FETCH_WHITELIST",e.IS_IN_GROUP_WHITE_LIST="GROUP_IS_IN_WHITELIST",e.GET_GROUP_MSG_READ_USER="GROUP_GET_READ_USERS",e.GET_GROUP_ANN="GROUP_FETCH_ANNOUNCEMENT",e.UPDATE_GROUP_ANN="GROUP_UPDATE_ANNOUNCEMENT",e.UPLOAD_GROUP_FILE="GROUP_UPLOAD_SHAREDFILE",e.DELETE_GROUP_FILE="GROUP_DELETE_SHAREDFILE",e.GET_GROUP_FILE_LIST="GROUP_FETCH_SHAREDFILE",e.DOWN_GROUP_FILE="GROUP_DOWNLOAD_SHAREDFILE",e.GET_SESSION_LIST="REST_GET_SESSION_LIST",e.DELETE_SESSION="REST_DEL_SESSION",e.GET_HISTORY_MSG="REST_GET_HISTORY_MESSAGE",e.UPDATE_USER_INFO="USER_UPDATE_USERINFO",e.GET_USER_INFO="USER_FETCH_USERINFO",e.UPDATE_USER_NICK="USER_UPDATE_NICK",e.UPLOAD_PUSH_TOKEN="USER_UPLOAD_PUSH_TOKEN",e.GET_BLACK_LIST="ROSTER_BLACKLIST",e.GET_CONTACTS="ROSTER_CONTACTS",e.add="ROSTER_ADD",e.remove="ROSTER_REMOVE",e.accept="ROSTER_ACCEPT",e.decline="ROSTER_DECLINE",e.ban="ROSTER_BAN",e.allow="ROSTER_ALLOW",e.SEND_MSG="MSYNC_SENDMESSAGE",e.UPLOAD_MSG_ATTACH="UPLOAD_MSG_ATTACH",e.SEND_RECALL_MSG="MSYNC_RECALLMESSAGE"}(o||(o={})),function(e){e.GET_DNS="REST_DNSLIST",e.LOGIN_BY_AGORA_TOKEN="LOGIN_BY_AGORA_TOKEN",e.LOGIN_BY_PWD="LOGIN_BY_PWD",e.RESISTER="REGISTER"}(i||(i={})),function(e){e[e["5G"]=7]="5G",e[e["4G"]=7]="4G",e[e["3G"]=7]="3G",e[e["2G"]=7]="2G",e[e["SLOW-2G"]=7]="SLOW-2G",e[e.WIFI=2]="WIFI",e[e.LAN=1]="LAN",e[e.DISCONNECTED=0]="DISCONNECTED",e[e.NONE=0]="NONE",e[e.UNKNOWN=-1]="UNKNOWN",e[e["WEBIM UNABLE TO GET"]=-2]="WEBIM UNABLE TO GET"}(s||(s={})),function(e){e[e.success=200]="success",e[e.failed=500]="failed"}(a||(a={})),function(e){e[e.web=0]="web",e[e.native=1]="native"}(u||(u={}))},6916:function(e,t,r){"use strict";function n(){console.log&&(console.log.apply?console.log.apply(console,Array.prototype.slice.call(arguments)):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}r.d(t,{kg:function(){return h}}),r(2657),r(7095),r(8668),r(3535),r(1685),r(900),r(2486),r(4261),r(4838),r(8385),r(7693),r(9782),r(1008),r(7461),r(1362),r(5980),r(514),r(4201),r(6864);var o="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent);function i(e){return i="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},i(e)}var s,a=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},u=function(){},c={};!function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(s||(s={}));var l=function(){function e(e,t,r){this.name=e||"defaultLogger",this.currentLevel=0,this.useCookiePersist=!1,this.storageLogLevelKey="loglevel",this.levels=s,this.logMethods=["trace","debug","info","warn","error"],this.methodFactory=r||this.defaultMethodFactory;var n=this._getPersistedLevel();null==n&&(n=null===t?"WARN":t),this.logs=[],this.config={useCache:!1,maxCache:3145728,color:"",background:""},this.logBytes=0,this.setLevel(n,!1,"")}return e.prototype.setConfig=function(e){this.config=e},e.prototype.getLevel=function(){return this.currentLevel},e.prototype.setLevel=function(e,t,r){if("string"==typeof e&&(e=s[e]),void 0===e&&(e=0),!("number"==typeof e&&e>=0&&e<=this.levels.SILENT))throw Error("log.setLevel() called with invalid level: "+e);if(this.currentLevel=e,!1!==t&&this._persistLevel(e),this.replaceLoggingMethods(e,r),"undefined"==typeof console&&e<s.SILENT)throw Error("No console available for logging")},e.prototype.setDefaultLevel=function(e){this._getPersistedLevel()||this.setLevel(e,!1,"")},e.prototype.enableAll=function(e){this.setLevel(this.levels.TRACE,!0,"")},e.prototype.disableAll=function(e){this.setLevel(this.levels.SILENT,!0,"")},e.prototype.getLogs=function(){return this.logs},e.prototype.download=function(){if("undefined"!=typeof window&&"undefined"!=typeof document){var e=this.getLogs().join("\n"),t=new Blob([e],{type:"text/plain;charset=UTF-8"}),r=window.URL.createObjectURL(t),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download","sdklog"),document.body.appendChild(n),n.click()}},e.prototype._bindMethod=function(e,t,r){var n=this,o=e[t],i=this.getTime();if(r)return this._cacheLog;if("function"==typeof o.bind)return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=n.getTime();o.call.apply(o,a([e,"".concat(s," IM SDK [").concat("log"===t?"debug":t,"]: ")],r,!1)),n.onLog&&n.onLog({time:s,level:"log"===t?"debug":t,logs:r})};try{return Function.prototype.bind.call(o,e,"".concat(i," IM SDK [").concat("log"===t?"debug":t,"]: "))}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}},e.prototype.getTime=function(){var e=new Date;return e.toTimeString().split(" ")[0]+":"+e.getMilliseconds()},e.prototype._cacheLog=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(new Date).toLocaleString()+": ",n="";e.forEach((function(e){"object"===i(e)?n+=JSON.stringify(e)+" ":n+=e+" "})),this._cacheLogCall(r+n)},e.prototype._cacheLogCall=function(e){var t=f(e),r=this.logBytes+t,n=this.config.maxCache;if(!(t>=n)){if(r<n)this.logBytes+=t;else for(var o=r-n,i=0;i<o;){var s=this.logs.shift();void 0!==s&&(i+=f(s))}this.logs.push(e)}},e.prototype._getPersistedLevel=function(){var e;if("undefined"==typeof window)return 5;if("undefined"===(e=window&&window.localStorage&&window.localStorage[this.storageLogLevelKey])){var t=window.document.cookie,r=t.indexOf(encodeURIComponent(this.storageLogLevelKey));-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}return e||5},e.prototype._persistLevel=function(e){var t=this.logMethods[e]||"SILENT";"undefined"!=typeof window&&(window.localStorage&&(window.localStorage[this.storageLogLevelKey]=t),this.useCookiePersist&&(window.document.cookie=encodeURIComponent(this.storageLogLevelKey)+"="+t+";"))},e.prototype.replaceLoggingMethods=function(e,t){for(var r=0;r<this.logMethods.length;r++){var n=this.logMethods[r];this[n]=r<e?u:this.methodFactory(n,e,t)}this.log=this.debug},e.prototype.defaultMethodFactory=function(e,t,r){return this.realMethod(e)||this.enableLoggingWhenConsoleArrives.apply(this,[e,t,r])},e.prototype.realMethod=function(e){return"debug"===e&&(e="log"),"undefined"!=typeof console&&("trace"===e&&o?n:void 0!==console[e]?this._bindMethod(console,e,this.config.useCache):void 0!==console.log?this._bindMethod(console,"log",this.config.useCache):u)},e.prototype.enableLoggingWhenConsoleArrives=function(e,t,r){return function(){"undefined"!=typeof console&&(this.replaceLoggingMethods.call(this,t,r),this[e].apply(this,arguments))}.bind(this)},e}();function f(e){for(var t=e.length,r=0;r<e.length;r++)e.charCodeAt(r)>255&&t++;return t}var p=new l;p.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");return this};var d="undefined"!=typeof window?window.log:void 0;p.noConflict=function(){return"undefined"!=typeof window&&window.log===p&&(window.log=d),p},p.getLoggers=function(){return c};var h=p},2591:function(e,t,r){"use strict";r.d(t,{Message:function(){return y}});var n=r(7551),o=function(){function e(e){var t=e.id;this.id=t,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.id,type:"read",to:e.to,from:e.from||"",chatType:e.chatType}},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,ackId:e.id,type:"read",to:e.to,from:e.from||"",ackContent:e.ackContent,isChatThread:e.isChatThread}},e}(),i=function(){function e(e){this.id=e.id,this.type=e.type}return e.prototype.set=function(e){this.body={id:this.id,ackId:e.ackId,type:"delivery",to:e.to,from:e.from||""}},e.create=function(e){return{id:n.P6.getUniqueId(),ackId:e.ackId,type:"delivery",to:e.to,from:e.from||"",isChatThread:e.isChatThread}},e}(),s=(r(9046),r(9782),function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"channel",to:e.to,from:e.from||"",time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"channel",chatType:e.chatType||"singleChat",to:e.to,from:e.from||"",time:Date.now(),isChatThread:e.isChatThread}},e}()),a=(r(3529),function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t,this.value=""}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"txt",to:e.to,msg:e.msg,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),isChatThread:e.isChatThread},this.value=e.msg},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){var t,r;return(null===(t=e.msgConfig)||void 0===t?void 0:t.languages)&&Array.isArray(null===(r=e.msgConfig)||void 0===r?void 0:r.languages),{type:"txt",id:n.P6.getUniqueId(),msg:e.msg,to:e.to,from:e.from||"",chatType:e.chatType,ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}()),u=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"cmd",to:e.to,action:e.action,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),type:"cmd",to:e.to,from:e.from||"",chatType:e.chatType||"singleChat",action:e.action,time:Date.now(),ext:e.ext,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),c=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"custom",to:e.to,customEvent:e.customEvent,customExts:e.customExts,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),l=function(){function e(e){var t=e.type,r=e.id;this.id=r||n.P6.getUniqueId(),this.type=t}return e.prototype.set=function(e){this.body={id:this.id,chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now()}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"loc",to:e.to,addr:e.addr,buildingName:e.buildingName,lat:e.lat,lng:e.lng,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),f=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"img",file:e.file,width:e.width,height:e.height,to:e.to,from:e.from||"",roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"img",url:e.url,width:e.width,height:e.height,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),msgConfig:e.msgConfig,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,isChatThread:e.isChatThread}},e}(),p=function(){function e(e){var t=e.type,r=e.id||n.P6.getUniqueId();this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"audio",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType,type:"audio",filename:e.filename,length:e.length,file:e.file,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,file_length:e.file_length,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),d=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),apiUrl:e.apiUrl,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"video",file:e.file,filename:e.filename,length:e.length,file_length:e.file_length,fileInputId:e.fileInputId,to:e.to,from:e.from||"",ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),h=function(){function e(e){var t=e.type,r=e.id;this.id=r,this.type=t}return e.prototype.set=function(e){e.file=e.file||e.fileInputId&&n.P6.getFileUrl(e.fileInputId),this.body={id:this.id,chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,to:e.to,from:e.from,roomType:e.roomType,success:e.success,fail:e.fail,ext:e.ext,time:Date.now(),onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,isChatThread:e.isChatThread}},e.prototype.setChatType=function(e){return!!this.body&&(this.body.chatType=e,!0)},e.prototype.setGroup=function(e){return!!this.body&&(this.body.group=e,!0)},e.create=function(e){return{id:n.P6.getUniqueId(),chatType:e.chatType||"singleChat",type:"file",file:e.file,filename:e.filename,fileInputId:e.fileInputId,to:e.to,from:e.from||"",ext:e.ext,onFileUploadError:e.onFileUploadError,onFileUploadComplete:e.onFileUploadComplete,onFileUploadProgress:e.onFileUploadProgress,body:e.body,time:Date.now(),msgConfig:e.msgConfig,isChatThread:e.isChatThread}},e}(),y=function(){function e(t,r){return this.type=t,this.id=r||n.P6.getUniqueId(),e.createOldMsg({type:t,id:this.id})}return e.createOldMsg=function(e){switch(e.type){case"read":return new o({type:"read",id:e.id});case"delivery":return new i({type:"delivery",id:e.id});case"channel":return new s({type:"channel",id:e.id});case"txt":return new a({type:"txt",id:e.id});case"cmd":return new u({type:"cmd",id:e.id});case"custom":return new c({type:"custom",id:e.id});case"loc":return new l({type:"loc",id:e.id});case"img":return new f({type:"img",id:e.id});case"audio":return new p({type:"audio",id:e.id});case"video":return new d({type:"video",id:e.id});case"file":return new h({type:"file",id:e.id})}},e.create=function(e){return"txt"!==(t=e).type||"version"in t?function(e){return"img"===e.type&&!("version"in e)}(e)?f.create(e):function(e){return"cmd"===e.type&&!("version"in e)}(e)?u.create(e):function(e){return"file"===e.type&&!("version"in e)}(e)?h.create(e):function(e){return"audio"===e.type&&!("version"in e)}(e)?p.create(e):function(e){return"video"===e.type&&!("version"in e)}(e)?d.create(e):function(e){return"custom"===e.type&&!("version"in e)}(e)?c.create(e):function(e){return"loc"===e.type&&!("version"in e)}(e)?l.create(e):function(e){return"channel"===e.type&&!("version"in e)}(e)?s.create(e):function(e){return"delivery"===e.type&&!("version"in e)}(e)?i.create(e):function(e){return"read"===e.type&&!("version"in e)}(e)?o.create(e):{}:a.create(e);var t},e.prototype.set=function(e){},e}()},3365:function(e,t,r){"use strict";var n;r.d(t,{E:function(){return n}}),function(e){e[e.REQUEST_SUCCESS=0]="REQUEST_SUCCESS",e[e.REQUEST_TIMEOUT=-1]="REQUEST_TIMEOUT",e[e.REQUEST_UNKNOWN=-2]="REQUEST_UNKNOWN",e[e.REQUEST_PARAMETER_ERROR=-3]="REQUEST_PARAMETER_ERROR",e[e.REQUEST_ABORT=-4]="REQUEST_ABORT",e[e.WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR=0]="WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_OPEN_ERROR=1]="WEBIM_CONNCTION_OPEN_ERROR",e[e.WEBIM_CONNCTION_AUTH_ERROR=2]="WEBIM_CONNCTION_AUTH_ERROR",e[e.WEBIM_CONNCTION_OPEN_USERGRID_ERROR=3]="WEBIM_CONNCTION_OPEN_USERGRID_ERROR",e[e.WEBIM_CONNCTION_ATTACH_ERROR=4]="WEBIM_CONNCTION_ATTACH_ERROR",e[e.WEBIM_CONNCTION_ATTACH_USERGRID_ERROR=5]="WEBIM_CONNCTION_ATTACH_USERGRID_ERROR",e[e.WEBIM_CONNCTION_REOPEN_ERROR=6]="WEBIM_CONNCTION_REOPEN_ERROR",e[e.WEBIM_CONNCTION_SERVER_CLOSE_ERROR=7]="WEBIM_CONNCTION_SERVER_CLOSE_ERROR",e[e.WEBIM_CONNCTION_SERVER_ERROR=8]="WEBIM_CONNCTION_SERVER_ERROR",e[e.WEBIM_CONNCTION_IQ_ERROR=9]="WEBIM_CONNCTION_IQ_ERROR",e[e.WEBIM_CONNCTION_PING_ERROR=10]="WEBIM_CONNCTION_PING_ERROR",e[e.WEBIM_CONNCTION_NOTIFYVERSION_ERROR=11]="WEBIM_CONNCTION_NOTIFYVERSION_ERROR",e[e.WEBIM_CONNCTION_GETROSTER_ERROR=12]="WEBIM_CONNCTION_GETROSTER_ERROR",e[e.WEBIM_CONNCTION_CROSSDOMAIN_ERROR=13]="WEBIM_CONNCTION_CROSSDOMAIN_ERROR",e[e.WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES=14]="WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES",e[e.WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR=15]="WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR",e[e.WEBIM_CONNCTION_DISCONNECTED=16]="WEBIM_CONNCTION_DISCONNECTED",e[e.WEBIM_CONNCTION_AJAX_ERROR=17]="WEBIM_CONNCTION_AJAX_ERROR",e[e.WEBIM_CONNCTION_JOINROOM_ERROR=18]="WEBIM_CONNCTION_JOINROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOM_ERROR=19]="WEBIM_CONNCTION_GETROOM_ERROR",e[e.WEBIM_CONNCTION_GETROOMINFO_ERROR=20]="WEBIM_CONNCTION_GETROOMINFO_ERROR",e[e.WEBIM_CONNCTION_GETROOMMEMBER_ERROR=21]="WEBIM_CONNCTION_GETROOMMEMBER_ERROR",e[e.WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR=22]="WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR",e[e.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR=23]="WEBIM_CONNCTION_LOAD_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR=24]="WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR",e[e.WEBIM_CONNCTION_JOINCHATROOM_ERROR=25]="WEBIM_CONNCTION_JOINCHATROOM_ERROR",e[e.WEBIM_CONNCTION_QUITCHATROOM_ERROR=26]="WEBIM_CONNCTION_QUITCHATROOM_ERROR",e[e.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR=27]="WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR=28]="WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR=29]="WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR=30]="WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR",e[e.WEBIM_CONNCTION_CALLBACK_INNER_ERROR=31]="WEBIM_CONNCTION_CALLBACK_INNER_ERROR",e[e.WEBIM_CONNCTION_CLIENT_OFFLINE=32]="WEBIM_CONNCTION_CLIENT_OFFLINE",e[e.WEBIM_CONNCTION_CLIENT_LOGOUT=33]="WEBIM_CONNCTION_CLIENT_LOGOUT",e[e.WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR=34]="WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR",e[e.WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP=35]="WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP=36]="WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP",e[e.WEBIM_CONNECTION_ACCEPT_JOIN_GROUP=37]="WEBIM_CONNECTION_ACCEPT_JOIN_GROUP",e[e.WEBIM_CONNECTION_DECLINE_JOIN_GROUP=38]="WEBIM_CONNECTION_DECLINE_JOIN_GROUP",e[e.WEBIM_CONNECTION_CLOSED=39]="WEBIM_CONNECTION_CLOSED",e[e.WEBIM_CONNECTION_ERROR=40]="WEBIM_CONNECTION_ERROR",e[e.MAX_LIMIT=50]="MAX_LIMIT",e[e.MESSAGE_NOT_FOUND=51]="MESSAGE_NOT_FOUND",e[e.NO_PERMISSION=52]="NO_PERMISSION",e[e.OPERATION_UNSUPPORTED=53]="OPERATION_UNSUPPORTED",e[e.OPERATION_NOT_ALLOWED=54]="OPERATION_NOT_ALLOWED",e[e.WEBIM_UPLOADFILE_BROWSER_ERROR=100]="WEBIM_UPLOADFILE_BROWSER_ERROR",e[e.WEBIM_UPLOADFILE_ERROR=101]="WEBIM_UPLOADFILE_ERROR",e[e.WEBIM_UPLOADFILE_NO_LOGIN=102]="WEBIM_UPLOADFILE_NO_LOGIN",e[e.WEBIM_UPLOADFILE_NO_FILE=103]="WEBIM_UPLOADFILE_NO_FILE",e[e.WEBIM_DOWNLOADFILE_ERROR=200]="WEBIM_DOWNLOADFILE_ERROR",e[e.WEBIM_DOWNLOADFILE_NO_LOGIN=201]="WEBIM_DOWNLOADFILE_NO_LOGIN",e[e.WEBIM_DOWNLOADFILE_BROWSER_ERROR=202]="WEBIM_DOWNLOADFILE_BROWSER_ERROR",e[e.USER_NOT_FOUND=204]="USER_NOT_FOUND",e[e.WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE=206]="WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE",e[e.WEBIM_CONNCTION_USER_REMOVED=207]="WEBIM_CONNCTION_USER_REMOVED",e[e.WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD=216]="WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD",e[e.WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE=217]="WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE",e[e.USER_MUTED_BY_ADMIN=219]="USER_MUTED_BY_ADMIN",e[e.USER_NOT_FRIEND=221]="USER_NOT_FRIEND",e[e.WEBIM_MESSAGE_REC_TEXT=300]="WEBIM_MESSAGE_REC_TEXT",e[e.WEBIM_MESSAGE_REC_TEXT_ERROR=301]="WEBIM_MESSAGE_REC_TEXT_ERROR",e[e.WEBIM_MESSAGE_REC_EMOTION=302]="WEBIM_MESSAGE_REC_EMOTION",e[e.WEBIM_MESSAGE_REC_PHOTO=303]="WEBIM_MESSAGE_REC_PHOTO",e[e.WEBIM_MESSAGE_REC_AUDIO=304]="WEBIM_MESSAGE_REC_AUDIO",e[e.WEBIM_MESSAGE_REC_AUDIO_FILE=305]="WEBIM_MESSAGE_REC_AUDIO_FILE",e[e.WEBIM_MESSAGE_REC_VEDIO=306]="WEBIM_MESSAGE_REC_VEDIO",e[e.WEBIM_MESSAGE_REC_VEDIO_FILE=307]="WEBIM_MESSAGE_REC_VEDIO_FILE",e[e.WEBIM_MESSAGE_REC_FILE=308]="WEBIM_MESSAGE_REC_FILE",e[e.WEBIM_MESSAGE_SED_TEXT=309]="WEBIM_MESSAGE_SED_TEXT",e[e.WEBIM_MESSAGE_SED_EMOTION=310]="WEBIM_MESSAGE_SED_EMOTION",e[e.WEBIM_MESSAGE_SED_PHOTO=311]="WEBIM_MESSAGE_SED_PHOTO",e[e.WEBIM_MESSAGE_SED_AUDIO=312]="WEBIM_MESSAGE_SED_AUDIO",e[e.WEBIM_MESSAGE_SED_AUDIO_FILE=313]="WEBIM_MESSAGE_SED_AUDIO_FILE",e[e.WEBIM_MESSAGE_SED_VEDIO=314]="WEBIM_MESSAGE_SED_VEDIO",e[e.WEBIM_MESSAGE_SED_VEDIO_FILE=315]="WEBIM_MESSAGE_SED_VEDIO_FILE",e[e.WEBIM_MESSAGE_SED_FILE=316]="WEBIM_MESSAGE_SED_FILE",e[e.WEBIM_MESSAGE_SED_ERROR=317]="WEBIM_MESSAGE_SED_ERROR",e[e.STATUS_INIT=400]="STATUS_INIT",e[e.STATUS_DOLOGIN_USERGRID=401]="STATUS_DOLOGIN_USERGRID",e[e.STATUS_DOLOGIN_IM=402]="STATUS_DOLOGIN_IM",e[e.STATUS_OPENED=403]="STATUS_OPENED",e[e.STATUS_CLOSING=404]="STATUS_CLOSING",e[e.STATUS_CLOSED=405]="STATUS_CLOSED",e[e.STATUS_ERROR=406]="STATUS_ERROR",e[e.SERVER_BUSY=500]="SERVER_BUSY",e[e.MESSAGE_INCLUDE_ILLEGAL_CONTENT=501]="MESSAGE_INCLUDE_ILLEGAL_CONTENT",e[e.MESSAGE_EXTERNAL_LOGIC_BLOCKED=502]="MESSAGE_EXTERNAL_LOGIC_BLOCKED",e[e.SERVER_UNKNOWN_ERROR=503]="SERVER_UNKNOWN_ERROR",e[e.MESSAGE_RECALL_TIME_LIMIT=504]="MESSAGE_RECALL_TIME_LIMIT",e[e.SERVICE_NOT_ENABLED=505]="SERVICE_NOT_ENABLED",e[e.SERVICE_NOT_ALLOW_MESSAGING=506]="SERVICE_NOT_ALLOW_MESSAGING",e[e.SERVICE_NOT_ALLOW_MESSAGING_MUTE=507]="SERVICE_NOT_ALLOW_MESSAGING_MUTE",e[e.MESSAGE_MODERATION_BLOCKED=508]="MESSAGE_MODERATION_BLOCKED",e[e.MESSAGE_CURRENT_LIMITING=509]="MESSAGE_CURRENT_LIMITING",e[e.GROUP_NOT_EXIST=605]="GROUP_NOT_EXIST",e[e.GROUP_NOT_JOINED=602]="GROUP_NOT_JOINED",e[e.GROUP_MEMBERS_FULL=606]="GROUP_MEMBERS_FULL",e[e.PERMISSION_DENIED=603]="PERMISSION_DENIED",e[e.WEBIM_LOAD_MSG_ERROR=604]="WEBIM_LOAD_MSG_ERROR",e[e.GROUP_ALREADY_JOINED=601]="GROUP_ALREADY_JOINED",e[e.GROUP_MEMBERS_LIMIT=607]="GROUP_MEMBERS_LIMIT",e[e.GROUP_IS_DISABLED=608]="GROUP_IS_DISABLED",e[e.REST_PARAMS_STATUS=700]="REST_PARAMS_STATUS",e[e.CHATROOM_NOT_JOINED=702]="CHATROOM_NOT_JOINED",e[e.CHATROOM_MEMBERS_FULL=704]="CHATROOM_MEMBERS_FULL",e[e.CHATROOM_NOT_EXIST=705]="CHATROOM_NOT_EXIST",e[e.SDK_RUNTIME_ERROR=999]="SDK_RUNTIME_ERROR",e[e.PRESENCE_PARAM_EXCEED=1100]="PRESENCE_PARAM_EXCEED",e[e.REACTION_ALREADY_ADDED=1101]="REACTION_ALREADY_ADDED",e[e.REACTION_CREATING=1102]="REACTION_CREATING",e[e.REACTION_OPERATION_IS_ILLEGAL=1103]="REACTION_OPERATION_IS_ILLEGAL",e[e.TRANSLATION_NOT_VALID=1200]="TRANSLATION_NOT_VALID",e[e.TRANSLATION_TEXT_TOO_LONG=1201]="TRANSLATION_TEXT_TOO_LONG",e[e.TRANSLATION_FAILED=1204]="TRANSLATION_FAILED",e[e.THREAD_NOT_EXIST=1300]="THREAD_NOT_EXIST",e[e.THREAD_ALREADY_EXIST=1301]="THREAD_ALREADY_EXIST"}(n||(n={}))},7551:function(e,t,r){"use strict";r.d(t,{iw:function(){return h},Ki:function(){return f},P4:function(){return y},P6:function(){return g}}),r(8327),r(900),r(3814),r(9782),r(9889),r(2657),r(5980),r(8453),r(937),r(1685),r(2486),r(4261),r(4838),r(8385),r(8668),r(1655),r(1008),r(7461),r(6619);var n=r(3365),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},i=r(3681),s=r(6916),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)},u=function(){};function c(e){return Object.prototype.toString.call(e).slice(8,-1)}function l(e,t){var r=this;return new Promise((function(t,r){var n=e.success||u,o=e.error||u,i=e.type||"POST",s=e.data||null,a="",c=(new Date).getTime(),l=g.getEnvInfo();if("get"===i.toLowerCase()&&s){for(var f in s)s.hasOwnProperty(f)&&(a+=f+"="+s[f]+"&");a=a?a.slice(0,-1):a,e.url+=(e.url.indexOf("?")>0?"&":"?")+(a?a+"&":a)+"_v="+(new Date).getTime(),s=null,a=""}var p={url:e.url,data:e.data,method:i,headers:{},success:function(e){var i,s,a,u,l,f={elapse:(new Date).getTime()-c,httpCode:Number((null===(i=e.statusCode)||void 0===i?void 0:i.toString())||(null===(s=e.status)||void 0===s?void 0:s.toString())),errDesc:(null===(a=null==e?void 0:e.data)||void 0===a?void 0:a.error_description)||""};if("200"===(null===(u=e.statusCode)||void 0===u?void 0:u.toString())||"200"===(null===(l=e.status)||void 0===l?void 0:l.toString())){e.data.extraInfo=f;var p=e.data;n(p),t(p)}else e.extraInfo=f,o(p=e),r(p)},complete:function(){},fail:function(e){o(e),r(e)}};if("zfb"===l.platform||"dd"===l.platform?p.headers=e.headers:p.header=e.headers,"dd"===l.platform)return dd.httpRequest(p);l.global.request(p)})).then((function(o){return r.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:a({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},_(o.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete o.extraInfo,"Object"===c(o)?a(a({},o),{type:n.E.REQUEST_SUCCESS}):{data:o,type:n.E.REQUEST_SUCCESS}})).catch((function(n){throw r.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&r.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:a({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},_(n.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete n.extraInfo,n}))}function f(){this.autoIncrement?this.autoIncrement++:this.autoIncrement=1;var e=new Date,t=new Date(2010,1,1);return(e.getTime()-t.getTime()+this.autoIncrement).toString()}var p,d,h,y=(p=function(e,t){var r=E();if(r.platform!==h.WEB){var n=r.global,o=function(r){r.isConnected?e():t()};n.offNetworkStatusChange&&n.offNetworkStatusChange(o),n.onNetworkStatusChange&&n.onNetworkStatusChange(o)}else"undefined"!=typeof addEventListener&&(window.addEventListener("online",e),window.addEventListener("offline",t))},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!p)return d;d=p.apply(void 0,e),p=null});function E(){return"undefined"!=typeof swan&&v(swan)?{platform:h.BAIDU,global:swan}:"undefined"!=typeof tt&&v(tt)?{platform:h.TT,global:tt}:"undefined"!=typeof dd&&v(dd)?{platform:h.DD,global:dd}:"undefined"!=typeof my&&v(my)?{platform:h.ZFB,global:my}:"undefined"!=typeof wx&&v(wx)?{platform:h.WX,global:wx}:"undefined"!=typeof uni&&v(uni)?{platform:h.UNI,global:uni}:"undefined"!=typeof window&&window.WebSocket?{platform:h.WEB,global:window}:{platform:h.NODE,global:r.g||{}}}function v(e){for(var t=["canIUse","getSystemInfo"],r=0,n=t.length;r<n;r++)if(!e[t[r]])return!1;return!0}function _(e){void 0===e&&(e={});var t=e.elapse,r=void 0===t?0:t,n=e.httpCode,o=void 0===n?0:n,i=e.errDesc;return{requestElapse:r,code:o,codeDesc:void 0===i?"":i}}!function(e){e.WEB="web",e.WX="wx",e.ZFB="zfb",e.DD="dd",e.TT="tt",e.BAIDU="baidu",e.QUICK_APP="quick_app",e.UNI="uni",e.NODE="node"}(h||(h={}));var g={autoIncrement:0,ajaxUnconventionalErrorTimes:0,ajax:function(e,t){var r,f=this;return E().platform===h.WEB?new Promise((function(t,i){var a=e.dataType||"text",c=e.success||u,l=e.error||u,f=new XMLHttpRequest;f.ontimeout=function(){i({type:n.E.REQUEST_TIMEOUT,message:"Request Timeout",errorType:"timeout_error",xhr:f})},f.onerror=function(){i({type:n.E.REQUEST_UNKNOWN,message:"Request Unknow Error",errorType:"onerror",xhr:f})},f.onabort=function(){i({type:n.E.REQUEST_ABORT,message:"Request Abort",errorType:"onabort",xhr:f})},f.onreadystatechange=function(){if(4===f.readyState){var e=(new Date).getTime()-r,u=f.status||0,p={elapse:e,httpCode:u};if(200===u){g.ajaxUnconventionalErrorTimes=0;try{switch(a){case"text":return c(f.responseText),void t(f.responseText);case"json":var d=JSON.parse(f.responseText);return d.extraInfo=p,c(d),void t(d);case"xml":return f.responseXML&&f.responseXML.documentElement?(c(f.responseXML.documentElement),void t(f.responseXML.documentElement)):(l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}),void i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"XHR.responseXML is null or XHR.responseXML.documentElement is null"}));default:l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"}),i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Invalid dataType"})}return t(f.response||f.responseText),void c(f.response||f.responseText,f)}catch(e){i(e)}return}[400,401,403,404,429,500,503].includes(u)||(s.kg.debug("rest api request fail status:",u),g.ajaxUnconventionalErrorTimes++),function(e,t,r,i){var s,a,u,c,l,f,p,d,h,y,E,v,_,g,m,O,T,R,I,N,C=e.response;C&&"string"==typeof C&&(C=JSON.parse(C));var b=e.status,S={elapse:i,httpCode:b,errDesc:null==C?void 0:C.error_description};if(400===b){if(40002===C.error_code)return void t({type:n.E.THREAD_ALREADY_EXIST,message:null==C?void 0:C.error_description,extraInfo:S});if(40009===C.error_code)return void t({type:n.E.OPERATION_UNSUPPORTED,message:null==C?void 0:C.error_description,extraInfo:S});if(60010===C.error_code)return void t({type:n.E.NO_PERMISSION,message:null==C?void 0:C.desc});if(60011===C.error_code)return void t({type:n.E.CHATROOM_NOT_JOINED,message:null==C?void 0:C.desc});if(60012===C.error_code)return void t({type:n.E.MAX_LIMIT,message:null==C?void 0:C.desc});if(null===(s=C.error_description)||void 0===s?void 0:s.includes("are not members of this group"))return(null===(a=e.responseURL)||void 0===a?void 0:a.includes("chatgroups"))?t({type:n.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):t({type:n.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}),void r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==C?void 0:C.error_description,data:e.responseText,extraInfo:S});if("the app not open presence"===(null==C?void 0:C.result))return void t({type:n.E.SERVICE_NOT_ENABLED,message:null==C?void 0:C.result,extraInfo:S});switch(null==C?void 0:C.error_description){case"the user is already operation this message":t({type:n.E.REACTION_ALREADY_ADDED,message:null==C?void 0:C.error_description,extraInfo:S});break;case"The quantity has exceeded the limit!":t({type:n.E.MAX_LIMIT,message:null==C?void 0:C.error_description,extraInfo:S});break;case"The user not in this group!":t({type:n.E.GROUP_NOT_JOINED,message:null==C?void 0:C.error_description,extraInfo:S});break;case"the user operation is illegal!":t({type:n.E.REACTION_OPERATION_IS_ILLEGAL,message:null==C?void 0:C.error_description,extraInfo:S});break;case"this appKey is not open reaction service!":t({type:n.E.SERVICE_NOT_ENABLED,message:null==C?void 0:C.error_description,extraInfo:S});break;case"this message is creating reaction, please try again.":t({type:n.E.REACTION_CREATING,message:null==C?void 0:C.error_description,extraInfo:S});break;case"groupId can not be null!":t({type:n.E.GROUP_NOT_EXIST,message:null==C?void 0:C.error_description,extraInfo:S});break;case"The input text is too long.":t({type:n.E.TRANSLATION_TEXT_TOO_LONG,message:null==C?void 0:C.error_description,extraInfo:S});break;case"The target language is not valid.":t({type:n.E.TRANSLATION_NOT_VALID,message:null==C?void 0:C.error_description,extraInfo:S});break;case"report failed, get message by id failed":t({type:n.E.MESSAGE_NOT_FOUND,message:null==C?void 0:C.error_description,extraInfo:S});break;case"ext is too big ":t({type:n.E.PRESENCE_PARAM_EXCEED,message:null==C?void 0:C.error_description,extraInfo:S});break;case"Request body not readable.Please check content type is correct!":t({type:n.E.REQUEST_PARAMETER_ERROR,message:null==C?void 0:C.error_description,extraInfo:S});break;default:t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==C?void 0:C.error_description,data:e.responseText,extraInfo:S}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,message:null==C?void 0:C.error_description,data:e.responseText,extraInfo:S})}}else if(401===b)40001===C.error_code?t({type:n.E.NO_PERMISSION,message:null==C?void 0:C.error_description,extraInfo:S}):(r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S}),t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S}));else if(403===b)4e4===C.error_code?t({type:n.E.SERVICE_NOT_ENABLED,message:null==C?void 0:C.error_description,extraInfo:S}):40003===C.error_code||40004===C.error_code?t({type:n.E.THREAD_ALREADY_EXIST,message:null==C?void 0:C.error_description,extraInfo:S}):(40005===C.error_code||40007===C.error_code)&&t({type:n.E.MAX_LIMIT,message:null==C?void 0:C.error_description,extraInfo:S}),"group member list is full!"===C.error_description?(null===(u=e.responseURL)||void 0===u?void 0:u.includes("chatgroups"))?t({type:n.E.GROUP_MEMBERS_FULL,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):t({type:n.E.CHATROOM_MEMBERS_FULL,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):(null===(c=C.error_description)||void 0===c?void 0:c.includes(C.error_description.includes("already in group")))?(null===(l=e.responseURL)||void 0===l?void 0:l.includes("chatgroups"))&&t({type:n.E.GROUP_ALREADY_JOINED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):(null===(f=C.error_description)||void 0===f?void 0:f.includes("are not members of this group"))?(null===(p=e.responseURL)||void 0===p?void 0:p.includes("chatgroups"))?t({type:n.E.GROUP_NOT_JOINED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):t({type:n.E.CHATROOM_NOT_JOINED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):(null===(d=C.error_description)||void 0===d?void 0:d.includes("service not open!"))||(null===(h=C.error_description)||void 0===h?void 0:h.includes("message report not open"))||(null===(y=C.error_description)||void 0===y?void 0:y.includes("messageroaming function not open"))?t({type:n.E.SERVICE_NOT_ENABLED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):(null===(E=C.error_description)||void 0===E?void 0:E.includes("members size is greater than max user size !"))?t({type:n.E.GROUP_MEMBERS_LIMIT,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):(null===(v=C.error_description)||void 0===v?void 0:v.includes("can not operate this group, reason: group is disabled"))?t({type:n.E.GROUP_IS_DISABLED,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):t({type:n.E.PERMISSION_DENIED,data:e.response||e.responseText,message:"permission denied",extraInfo:o(o({},S),{errDesc:"permission denied"})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:S});else if(404===b)40011===C.error_code?t({type:n.E.THREAD_NOT_EXIST,message:null==C?void 0:C.error_description,extraInfo:S}):40012===C.error_code&&t({type:n.E.NO_PERMISSION,message:null==C?void 0:C.error_description,extraInfo:S}),(null===(_=C.error_description)||void 0===_?void 0:_.includes("do not find this group"))||(null===(g=C.error_description)||void 0===g?void 0:g.includes("does not exist"))?(null===(m=e.responseURL)||void 0===m?void 0:m.includes("chatgroups"))?t({type:n.E.GROUP_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:o(o({},S),{errDesc:"The chat room dose not exist."})}):t({type:n.E.CHATROOM_NOT_EXIST,data:e.response||e.responseText,message:"The chat room dose not exist.",extraInfo:o(o({},S),{errDesc:"The chat room dose not exist."})}):(null===(O=C.error_description)||void 0===O?void 0:O.includes("username"))&&(null===(T=C.error_description)||void 0===T?void 0:T.includes("doesn't exist!'"))||(null===(R=C.error_description)||void 0===R?void 0:R.includes("user not found"))?t({type:n.E.USER_NOT_FOUND,data:e.response||e.responseText,message:C.error_description,extraInfo:S}):t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:S}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.response||e.responseText,message:e.responseText,extraInfo:S});else if(429===b||503===b){if(null===(I=C.error_description)||void 0===I?void 0:I.includes("The request has reached the maximum limit"))return void t({type:n.E.MAX_LIMIT,message:e.responseText,extraInfo:S});t({type:n.E.SERVER_BUSY,data:e.response||e.responseText,message:"Server is busy.",extraInfo:o(o({},S),{errDesc:"Server is busy."})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"Server is busy.",extraInfo:o(o({},S),{errDesc:"Server is busy."})})}else if(500===b){if((40006===C.error_code||40008===C.error_code||40010===C.error_code)&&t({type:n.E.SERVER_UNKNOWN_ERROR,message:null==C?void 0:C.error_description,extraInfo:S}),null===(N=C.error_description)||void 0===N?void 0:N.includes("translte failed!"))return void t({type:n.E.TRANSLATION_FAILED,message:e.responseText,extraInfo:S});t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:S}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:"",extraInfo:S})}else t({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:o(o({},S),{errDesc:"ajax error"})}),r({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:e.responseText,message:e.responseText,extraInfo:o(o({},S),{errDesc:"ajax error"})})}(f,i,l,e)}0===f.readyState&&(l({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}),i({type:n.E.WEBIM_CONNCTION_AJAX_ERROR,data:f.responseText,message:"Request not initialized"}))},e.responseType&&f.responseType&&(f.responseType=e.responseType),e.mimeType&&f.overrideMimeType(e.mimeType);var p=e.type||"POST",d=e.data||null,h="";if("get"===p.toLowerCase()&&d){for(var y in d)d.hasOwnProperty(y)&&(h+=y+"="+d[y]+"&");h=h?h.slice(0,-1):h,e.url+=(e.url.indexOf("?")>0?"&":"?")+(h?h+"&":h)+"_v="+(new Date).getTime(),d=null,h=""}r=(new Date).getTime(),f.open(p,e.url);var E=e.headers||{};for(var v in E["Content-Type"]||(E["Content-Type"]="application/json"),E)E.hasOwnProperty(v)&&f.setRequestHeader(v,E[v]);f.send(d)})).then((function(r){return f.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&f.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:a({isSuccess:1,requestUrl:e.url,requestName:t,requestMethod:e.type},_(r.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete r.extraInfo,"Object"===c(r)?a(a({},r),{type:n.E.REQUEST_SUCCESS}):{data:r,type:n.E.REQUEST_SUCCESS}})).catch((function(r){throw f.dataReport&&t&&t!==i.fI.SDK_INTERNAL&&f.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:a({isSuccess:0,requestUrl:e.url,requestName:t,requestMethod:e.type},_(r.extraInfo))}),t!==i.fI.SDK_INTERNAL&&delete r.extraInfo,r})):l.call(this,e)},getUniqueId:f,getFileUrl:function(e){var t={url:"",filename:"",filetype:"",data:{}},r="string"==typeof e?document.getElementById(e):e;if(window.URL.createObjectURL){if(!r.files)throw Error("this is not HTMLInputElement");var n=r.files;if(n.length>0){var o=n.item(0);t.data=o,t.url=window.URL.createObjectURL(o),t.filename=(null==o?void 0:o.name)||""}}else{if("string"!=typeof e)throw Error("in IE fileInputId must be string");o=document.getElementById(e).value,t.url=o;var i=o.lastIndexOf("/"),s=o.lastIndexOf("\\"),a=Math.max(i,s);t.filename=a<0?o:o.substring(a+1)}var u=t.filename.lastIndexOf(".");return-1!==u&&(t.filetype=t.filename.substring(u+1).toLowerCase()),t},uploadFile:function(e,t){var r,o,s=this,a=(new Date).getTime(),c=e.accessToken;if(c){var l=e.appKey,f=[],p="",d="";if(l&&(p=(f=l.split("#"))[0],d=f[1]),p||d){var h=e.apiUrl,y=e.uploadUrl||h+"/"+p+"/"+d+"/chatfiles";if((null===(o=null===(r=null==e?void 0:e.file)||void 0===r?void 0:r.data)||void 0===o?void 0:o.size)<=0)e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_ERROR,message:"fileSize must be greater than 0"});else{var E=new XMLHttpRequest;E.upload&&E.upload.addEventListener("progress",e.onFileUploadProgress||u,!1),E.addEventListener("abort",e.onFileUploadCanceled||u,!1),E.addEventListener("error",(function(e){_({type:n.E.WEBIM_UPLOADFILE_ERROR,data:E})}),!1),E.addEventListener("load",(function(r){try{var o=JSON.parse(E.responseText);if(400===E.status)return _({type:n.E.WEBIM_UPLOADFILE_ERROR,data:o}),!1;try{!function(r){var n=(new Date).getTime()-a;s.dataReport&&t&&[i.fI.UPLOAD_MSG_ATTACH,i.fI.UPLOAD_CHATROOM_FILE,i.fI.UPLOAD_GROUP_FILE].includes(t)&&s.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:(null==r?void 0:r.error)?0:1,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:y,code:E.status,codeDesc:(null==r?void 0:r.error_description)||""}}),e.onFileUploadComplete&&e.onFileUploadComplete(r)}(o)}catch(r){_({type:n.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:r})}}catch(r){_({type:n.E.WEBIM_UPLOADFILE_ERROR,data:E.responseText})}}),!1),E.open("POST",y),E.setRequestHeader("restrict-access","true"),E.setRequestHeader("Accept","*/*"),E.setRequestHeader("Authorization","Bearer "+c);var v=new FormData;v.append("file",e.file.data),E.send(v)}}else e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_ERROR,message:"AppKey illegal"})}else e.onFileUploadError&&e.onFileUploadError({type:n.E.WEBIM_UPLOADFILE_NO_LOGIN,message:"AccessToken cannot be empty"});function _(r){var n=(new Date).getTime()-a;s.dataReport&&t&&[i.fI.UPLOAD_MSG_ATTACH,i.fI.UPLOAD_CHATROOM_FILE,i.fI.UPLOAD_GROUP_FILE].includes(t)&&s.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:n,requestUrl:y,code:(null==E?void 0:E.status)||0,codeDesc:"upload file error"}}),e.onFileUploadError&&e.onFileUploadError(r)}},flow:function(e){for(var t=e.length,r=t;r--;)if("function"!=typeof e[r])throw new TypeError("Expected a function");return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var o=0,i=t?e[o].apply(this,r):r[0];++o<t;)i=e[o].call(this,i);return i}},listenNetwork:y,getEnvInfo:E,wxRequest:l,parseDownloadResponse:function(e){if(!window||!window.URL)throw Error("parseDownloadResponse can be used in broswer only");return e&&e.type&&"application/json"===e.type||0>Object.prototype.toString.call(e).indexOf("Blob")?this.url+"?token=":window.URL.createObjectURL(e)},download:function(e,t){e.onFileDownloadComplete=e.onFileDownloadComplete||u,e.onFileDownloadError=e.onFileDownloadError||u;var r=(new Date).getTime(),o=new XMLHttpRequest,s=this;o.addEventListener("load",(function(n){var a=(new Date).getTime()-r;s.dataReport&&t&&t===i.fI.DOWN_GROUP_FILE&&s.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:200===o.status?1:0,requestMethod:"POST",requestName:t,requestElapse:a,requestUrl:null==e?void 0:e.url,code:o.status,codeDesc:200===o.status?"":"download file error"}}),e.onFileDownloadComplete&&e.onFileDownloadComplete(o.response)}),!1),o.addEventListener("error",(function(a){var u=(new Date).getTime()-r;s.dataReport&&t&&t===i.fI.DOWN_GROUP_FILE&&s.dataReport.geOperateFun({operationName:t})({isEndApi:!0,data:{isSuccess:0,requestMethod:"POST",requestName:t,requestElapse:u,requestUrl:null==e?void 0:e.url,code:(null==o?void 0:o.status)||0,codeDesc:"download file error"}}),e.onFileDownloadError&&e.onFileDownloadError({type:n.E.WEBIM_DOWNLOADFILE_ERROR,id:e.id,xhr:o})}),!1);var a=e.method||"GET",c=e.responseType||"blob",l=e.mimeType||"text/plain; charset=x-user-defined";o.open(a,e.url),"undefined"!=typeof Blob?o.responseType=c:o.overrideMimeType(l);var f={"X-Requested-With":"XMLHttpRequest",Accept:"application/octet-stream","share-secret":e.secret,Authorization:"Bearer "+this.context.accessToken},p=e.headers||{};for(var d in p)f[d]=p[d];for(var d in f)f[d]&&o.setRequestHeader(d,f[d]);o.send(null)},parseNotify:function(e){for(var t="",r=0;r<e.length;r++)t+="%"+e[r].toString(16);return JSON.parse(decodeURIComponent(t))},getExtraData:_}},9181:function(e,t,r){var n=r(1045),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a function")}},7345:function(e,t,r){var n=r(8297),o=r(7632),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not a constructor")}},2091:function(e,t,r){var n=r(1045),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},4651:function(e,t,r){var n=r(9140),o=r(5565),i=r(4317).f,s=n("unscopables"),a=Array.prototype;null==a[s]&&i(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},3025:function(e,t,r){"use strict";var n=r(7957).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},9112:function(e,t,r){var n=r(8931),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw o("Incorrect invocation")}},1571:function(e,t,r){var n=r(7809),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(o(e)+" is not an object")}},6280:function(e){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},9042:function(e,t,r){var n=r(4141);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},5861:function(e,t,r){"use strict";var n,o,i,s=r(6280),a=r(2931),u=r(2383),c=r(1045),l=r(7809),f=r(1163),p=r(6837),d=r(7632),h=r(6493),y=r(4405),E=r(4317).f,v=r(8931),_=r(2573),g=r(7046),m=r(9140),O=r(858),T=r(7417),R=T.enforce,I=T.get,N=u.Int8Array,C=N&&N.prototype,b=u.Uint8ClampedArray,S=b&&b.prototype,A=N&&_(N),M=C&&_(C),w=Object.prototype,U=u.TypeError,x=m("toStringTag"),L=O("TYPED_ARRAY_TAG"),P=s&&!!g&&"Opera"!==p(u.opera),k=!1,D={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},H={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=_(e);if(l(t)){var r=I(t);return r&&f(r,"TypedArrayConstructor")?r.TypedArrayConstructor:B(t)}},G=function(e){if(!l(e))return!1;var t=p(e);return f(D,t)||f(H,t)};for(n in D)(i=(o=u[n])&&o.prototype)?R(i).TypedArrayConstructor=o:P=!1;for(n in H)(i=(o=u[n])&&o.prototype)&&(R(i).TypedArrayConstructor=o);if((!P||!c(A)||A===Function.prototype)&&(A=function(){throw U("Incorrect invocation")},P))for(n in D)u[n]&&g(u[n],A);if((!P||!M||M===w)&&(M=A.prototype,P))for(n in D)u[n]&&g(u[n].prototype,M);if(P&&_(S)!==M&&g(S,M),a&&!f(M,x))for(n in k=!0,E(M,x,{get:function(){return l(this)?this[L]:void 0}}),D)u[n]&&h(u[n],L,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:k&&L,aTypedArray:function(e){if(G(e))return e;throw U("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!g||v(A,e)))return e;throw U(d(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(a){if(r)for(var o in D){var i=u[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}M[e]&&!r||y(M,e,r?t:P&&C[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(a){if(g){if(r)for(n in D)if((o=u[n])&&f(o,e))try{delete o[e]}catch(e){}if(A[e]&&!r)return;try{return y(A,e,r?t:P&&A[e]||t)}catch(e){}}for(n in D)!(o=u[n])||o[e]&&!r||y(o,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||f(D,t)||f(H,t)},isTypedArray:G,TypedArray:A,TypedArrayPrototype:M}},4061:function(e,t,r){"use strict";var n=r(2383),o=r(9720),i=r(2931),s=r(6280),a=r(9684),u=r(6493),c=r(4766),l=r(4141),f=r(9112),p=r(152),d=r(2844),h=r(3577),y=r(9074),E=r(2573),v=r(7046),_=r(1242).f,g=r(4317).f,m=r(9732),O=r(9730),T=r(5125),R=r(7417),I=a.PROPER,N=a.CONFIGURABLE,C=R.get,b=R.set,S="ArrayBuffer",A="Wrong index",M=n.ArrayBuffer,w=M,U=w&&w.prototype,x=n.DataView,L=x&&x.prototype,P=Object.prototype,k=n.Array,D=n.RangeError,H=o(m),B=o([].reverse),G=y.pack,F=y.unpack,j=function(e){return[255&e]},W=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},K=function(e){return G(e,23,4)},J=function(e){return G(e,52,8)},z=function(e,t){g(e.prototype,t,{get:function(){return C(this)[t]}})},Y=function(e,t,r,n){var o=h(r),i=C(e);if(o+t>i.byteLength)throw D(A);var s=C(i.buffer).bytes,a=o+i.byteOffset,u=O(s,a,a+t);return n?u:B(u)},X=function(e,t,r,n,o,i){var s=h(r),a=C(e);if(s+t>a.byteLength)throw D(A);for(var u=C(a.buffer).bytes,c=s+a.byteOffset,l=n(+o),f=0;f<t;f++)u[c+f]=l[i?f:t-f-1]};if(s){var $=I&&M.name!==S;if(l((function(){M(1)}))&&l((function(){new M(-1)}))&&!l((function(){return new M,new M(1.5),new M(NaN),1!=M.length||$&&!N})))$&&N&&u(M,"name",S);else{(w=function(e){return f(this,U),new M(h(e))}).prototype=U;for(var Q,Z=_(M),ee=0;Z.length>ee;)(Q=Z[ee++])in w||u(w,Q,M[Q]);U.constructor=w}v&&E(L)!==P&&v(L,P);var te=new x(new w(2)),re=o(L.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||c(L,{setInt8:function(e,t){re(this,e,t<<24>>24)},setUint8:function(e,t){re(this,e,t<<24>>24)}},{unsafe:!0})}else U=(w=function(e){f(this,U);var t=h(e);b(this,{bytes:H(k(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,L=(x=function(e,t,r){f(this,L),f(e,U);var n=C(e).byteLength,o=p(t);if(o<0||o>n)throw D("Wrong offset");if(o+(r=void 0===r?n-o:d(r))>n)throw D("Wrong length");b(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)}).prototype,i&&(z(w,"byteLength"),z(x,"buffer"),z(x,"byteLength"),z(x,"byteOffset")),c(L,{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return V(Y(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return V(Y(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return F(Y(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return F(Y(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){X(this,1,e,j,t)},setUint8:function(e,t){X(this,1,e,j,t)},setInt16:function(e,t){X(this,2,e,W,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){X(this,2,e,W,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){X(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){X(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){X(this,4,e,K,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){X(this,8,e,J,t,arguments.length>2?arguments[2]:void 0)}});T(w,S),T(x,"DataView"),e.exports={ArrayBuffer:w,DataView:x}},5239:function(e,t,r){"use strict";var n=r(4569),o=r(3943),i=r(2398),s=r(6733),a=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),u=i(r),c=o(e,u),l=o(t,u),f=arguments.length>2?arguments[2]:void 0,p=a((void 0===f?u:o(f,u))-l,u-c),d=1;for(l<c&&c<l+p&&(d=-1,l+=p-1,c+=p-1);p-- >0;)l in r?r[c]=r[l]:s(r,c),c+=d,l+=d;return r}},9732:function(e,t,r){"use strict";var n=r(4569),o=r(3943),i=r(2398);e.exports=function(e){for(var t=n(this),r=i(t),s=arguments.length,a=o(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:o(u,r);c>a;)t[a++]=e;return t}},4890:function(e,t,r){"use strict";var n=r(888).forEach,o=r(3070)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},9141:function(e,t,r){var n=r(2398);e.exports=function(e,t){for(var r=0,o=n(t),i=new e(o);o>r;)i[r]=t[r++];return i}},1601:function(e,t,r){"use strict";var n=r(3847),o=r(9107),i=r(4569),s=r(7214),a=r(706),u=r(8297),c=r(2398),l=r(567),f=r(6151),p=r(1328),d=Array;e.exports=function(e){var t=i(e),r=u(this),h=arguments.length,y=h>1?arguments[1]:void 0,E=void 0!==y;E&&(y=n(y,h>2?arguments[2]:void 0));var v,_,g,m,O,T,R=p(t),I=0;if(!R||this===d&&a(R))for(v=c(t),_=r?new this(v):d(v);v>I;I++)T=E?y(t[I],I):t[I],l(_,I,T);else for(O=(m=f(t,R)).next,_=r?new this:[];!(g=o(O,m)).done;I++)T=E?s(m,y,[g.value,I],!0):g.value,l(_,I,T);return _.length=I,_}},7351:function(e,t,r){var n=r(4221),o=r(3943),i=r(2398),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},888:function(e,t,r){var n=r(3847),o=r(9720),i=r(3392),s=r(4569),a=r(2398),u=r(5508),c=o([].push),l=function(e){var t=1==e,r=2==e,o=3==e,l=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,y,E,v){for(var _,g,m=s(h),O=i(m),T=n(y,E),R=a(O),I=0,N=v||u,C=t?N(h,R):r||p?N(h,0):void 0;R>I;I++)if((d||I in O)&&(g=T(_=O[I],I,m),e))if(t)C[I]=g;else if(g)switch(e){case 3:return!0;case 5:return _;case 6:return I;case 2:c(C,_)}else switch(e){case 4:return!1;case 7:c(C,_)}return f?-1:o||l?l:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},1959:function(e,t,r){"use strict";var n=r(7841),o=r(4221),i=r(152),s=r(2398),a=r(3070),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),p=l||!f;e.exports=p?function(e){if(l)return n(c,this,arguments)||0;var t=o(this),r=s(t),a=r-1;for(arguments.length>1&&(a=u(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},3933:function(e,t,r){var n=r(4141),o=r(9140),i=r(583),s=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},3070:function(e,t,r){"use strict";var n=r(4141);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},6653:function(e,t,r){var n=r(9181),o=r(4569),i=r(3392),s=r(2398),a=TypeError,u=function(e){return function(t,r,u,c){n(r);var l=o(t),f=i(l),p=s(l),d=e?p-1:0,h=e?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw a("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(c=r(c,f[d],d,l));return c}};e.exports={left:u(!1),right:u(!0)}},1208:function(e,t,r){"use strict";var n=r(2931),o=r(6833),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(o(e)&&!s(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},9730:function(e,t,r){var n=r(3943),o=r(2398),i=r(567),s=Array,a=Math.max;e.exports=function(e,t,r){for(var u=o(e),c=n(t,u),l=n(void 0===r?u:r,u),f=s(a(l-c,0)),p=0;c<l;c++,p++)i(f,p,e[c]);return f.length=p,f}},942:function(e,t,r){var n=r(9720);e.exports=n([].slice)},5416:function(e,t,r){var n=r(9730),o=Math.floor,i=function(e,t){var r=e.length,u=o(r/2);return r<8?s(e,t):a(e,i(n(e,0,u),t),i(n(e,u),t),t)},s=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},a=function(e,t,r,n){for(var o=t.length,i=r.length,s=0,a=0;s<o||a<i;)e[s+a]=s<o&&a<i?n(t[s],r[a])<=0?t[s++]:r[a++]:s<o?t[s++]:r[a++];return e};e.exports=i},4908:function(e,t,r){var n=r(6833),o=r(8297),i=r(7809),s=r(9140)("species"),a=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(o(t)&&(t===a||n(t.prototype))||i(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},5508:function(e,t,r){var n=r(4908);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},7214:function(e,t,r){var n=r(1571),o=r(6186);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},3802:function(e,t,r){var n=r(9140)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},e(i)}catch(e){}return r}},6027:function(e,t,r){var n=r(9720),o=n({}.toString),i=n("".slice);e.exports=function(e){return i(o(e),8,-1)}},6837:function(e,t,r){var n=r(1247),o=r(1045),i=r(6027),s=r(9140)("toStringTag"),a=Object,u="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:u?i(t):"Object"==(n=i(t))&&o(t.callee)?"Arguments":n}},6675:function(e,t,r){"use strict";var n=r(4317).f,o=r(5565),i=r(4766),s=r(3847),a=r(9112),u=r(7323),c=r(5991),l=r(9719),f=r(8174),p=r(4467),d=r(2931),h=r(6811).fastKey,y=r(7417),E=y.set,v=y.getterFor;e.exports={getConstructor:function(e,t,r,l){var f=e((function(e,n){a(e,p),E(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),u(n)||c(n,e[l],{that:e,AS_ENTRIES:r})})),p=f.prototype,y=v(t),_=function(e,t,r){var n,o,i=y(e),s=g(e,t);return s?s.value=r:(i.last=s={index:o=h(t,!0),key:t,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=s),n&&(n.next=s),d?i.size++:e.size++,"F"!==o&&(i.index[o]=s)),e},g=function(e,t){var r,n=y(e),o=h(t);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==t)return r};return i(p,{clear:function(){for(var e=y(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,r=y(t),n=g(t,e);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),d?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=y(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),i(p,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return _(this,0===e?0:e,t)}}:{add:function(e){return _(this,e=0===e?0:e,e)}}),d&&n(p,"size",{get:function(){return y(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=v(t),i=v(n);l(e,t,(function(e,t){E(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"==t?r.key:"values"==t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(t)}}},6202:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9720),s=r(1122),a=r(4405),u=r(6811),c=r(5991),l=r(9112),f=r(1045),p=r(7323),d=r(7809),h=r(4141),y=r(3802),E=r(5125),v=r(8851);e.exports=function(e,t,r){var _=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),m=_?"set":"add",O=o[e],T=O&&O.prototype,R=O,I={},N=function(e){var t=i(T[e]);a(T,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return g&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!d(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(s(e,!f(O)||!(g||T.forEach&&!h((function(){(new O).entries().next()})))))R=r.getConstructor(t,e,_,m),u.enable();else if(s(e,!0)){var C=new R,b=C[m](g?{}:-0,1)!=C,S=h((function(){C.has(1)})),A=y((function(e){new O(e)})),M=!g&&h((function(){for(var e=new O,t=5;t--;)e[m](t,t);return!e.has(-0)}));A||((R=t((function(e,t){l(e,T);var r=v(new O,e,R);return p(t)||c(t,r[m],{that:r,AS_ENTRIES:_}),r}))).prototype=T,T.constructor=R),(S||M)&&(N("delete"),N("has"),_&&N("get")),(M||b)&&N(m),g&&T.clear&&delete T.clear}return I[e]=R,n({global:!0,constructor:!0,forced:R!=O},I),E(R,e),g||r.setStrong(R,e,_),R}},5751:function(e,t,r){var n=r(1163),o=r(5260),i=r(9097),s=r(4317);e.exports=function(e,t,r){for(var a=o(t),u=s.f,c=i.f,l=0;l<a.length;l++){var f=a[l];n(e,f)||r&&n(r,f)||u(e,f,c(t,f))}}},7849:function(e,t,r){var n=r(9140)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},4667:function(e,t,r){var n=r(4141);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8174:function(e){e.exports=function(e,t){return{value:e,done:t}}},6493:function(e,t,r){var n=r(2931),o=r(4317),i=r(2499);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},2499:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},567:function(e,t,r){"use strict";var n=r(7277),o=r(4317),i=r(2499);e.exports=function(e,t,r){var s=n(t);s in e?o.f(e,s,i(0,r)):e[s]=r}},2886:function(e,t,r){var n=r(2511),o=r(4317);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},4405:function(e,t,r){var n=r(1045),o=r(4317),i=r(2511),s=r(5784);e.exports=function(e,t,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&i(r,c,a),a.global)u?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},4766:function(e,t,r){var n=r(4405);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},5784:function(e,t,r){var n=r(2383),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},6733:function(e,t,r){"use strict";var n=r(7632),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+n(t)+" of "+n(e))}},2931:function(e,t,r){var n=r(4141);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6459:function(e,t,r){var n=r(2383),o=r(7809),i=n.document,s=o(i)&&o(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},7540:function(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},9286:function(e){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},5977:function(e,t,r){var n=r(6459)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},3975:function(e,t,r){var n=r(9376).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},5830:function(e,t,r){var n=r(3954),o=r(4368);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},3954:function(e){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},8482:function(e,t,r){var n=r(9376);e.exports=/MSIE|Trident/.test(n)},3035:function(e,t,r){var n=r(9376),o=r(2383);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},7337:function(e,t,r){var n=r(9376);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4368:function(e,t,r){var n=r(6027),o=r(2383);e.exports="process"==n(o.process)},678:function(e,t,r){var n=r(9376);e.exports=/web0s(?!.*chrome)/i.test(n)},9376:function(e,t,r){var n=r(7300);e.exports=n("navigator","userAgent")||""},583:function(e,t,r){var n,o,i=r(2383),s=r(9376),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},3701:function(e,t,r){var n=r(9376).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},7414:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4866:function(e,t,r){var n=r(2383),o=r(9097).f,i=r(6493),s=r(4405),a=r(5784),u=r(5751),c=r(1122);e.exports=function(e,t){var r,l,f,p,d,h=e.target,y=e.global,E=e.stat;if(r=y?n:E?n[h]||a(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],f=e.dontCallGetSet?(d=o(r,l))&&d.value:r[l],!c(y?l:h+(E?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),s(r,l,p,e)}}},4141:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},2267:function(e,t,r){"use strict";r(1008);var n=r(9720),o=r(4405),i=r(1660),s=r(4141),a=r(9140),u=r(6493),c=a("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var p=a(e),d=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=d&&!s((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!d||!h||r){var y=n(/./[p]),E=t(p,""[e],(function(e,t,r,o,s){var a=n(e),u=t.exec;return u===i||u===l.exec?d&&!s?{done:!0,value:y(t,r,o)}:{done:!0,value:a(r,t,o)}:{done:!1}}));o(String.prototype,e,E[0]),o(l,p,E[1])}f&&u(l[p],"sham",!0)}},2693:function(e,t,r){var n=r(4141);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},7841:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.apply,s=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},3847:function(e,t,r){var n=r(9720),o=r(9181),i=r(1153),s=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?s(e,t):function(){return e.apply(t,arguments)}}},1153:function(e,t,r){var n=r(4141);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8829:function(e,t,r){"use strict";var n=r(9720),o=r(9181),i=r(7809),s=r(1163),a=r(942),u=r(1153),c=Function,l=n([].concat),f=n([].join),p={},d=function(e,t,r){if(!s(p,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";p[t]=c("C,a","return new C("+f(n,",")+")")}return p[t](e,r)};e.exports=u?c.bind:function(e){var t=o(this),r=t.prototype,n=a(arguments,1),s=function(){var r=l(n,a(arguments));return this instanceof s?d(t,r.length,r):t.apply(e,r)};return i(r)&&(s.prototype=r),s}},9107:function(e,t,r){var n=r(1153),o=Function.prototype.call;e.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},9684:function(e,t,r){var n=r(2931),o=r(1163),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&s(i,"name").configurable);e.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},9720:function(e,t,r){var n=r(1153),o=Function.prototype,i=o.bind,s=o.call,a=n&&i.bind(s,s);e.exports=n?function(e){return e&&a(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},7300:function(e,t,r){var n=r(2383),o=r(1045),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},1328:function(e,t,r){var n=r(6837),o=r(466),i=r(7323),s=r(9171),a=r(9140)("iterator");e.exports=function(e){if(!i(e))return o(e,a)||o(e,"@@iterator")||s[n(e)]}},6151:function(e,t,r){var n=r(9107),o=r(9181),i=r(1571),s=r(7632),a=r(1328),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(o(r))return i(n(r,e));throw u(s(e)+" is not iterable")}},466:function(e,t,r){var n=r(9181),o=r(7323);e.exports=function(e,t){var r=e[t];return o(r)?void 0:n(r)}},2383:function(e,t,r){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},1163:function(e,t,r){var n=r(9720),o=r(4569),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},8164:function(e){e.exports={}},1879:function(e,t,r){var n=r(2383);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},4530:function(e,t,r){var n=r(7300);e.exports=n("document","documentElement")},688:function(e,t,r){var n=r(2931),o=r(4141),i=r(6459);e.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9074:function(e){var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,s=Math.LN2;e.exports={pack:function(e,a,u){var c,l,f,p=t(u),d=8*u-a-1,h=(1<<d)-1,y=h>>1,E=23===a?n(2,-24)-n(2,-77):0,v=e<0||0===e&&1/e<0?1:0,_=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,c=h):(c=o(i(e)/s),e*(f=n(2,-c))<1&&(c--,f*=2),(e+=c+y>=1?E/f:E*n(2,1-y))*f>=2&&(c++,f/=2),c+y>=h?(l=0,c=h):c+y>=1?(l=(e*f-1)*n(2,a),c+=y):(l=e*n(2,y-1)*n(2,a),c=0));a>=8;)p[_++]=255&l,l/=256,a-=8;for(c=c<<a|l,d+=a;d>0;)p[_++]=255&c,c/=256,d-=8;return p[--_]|=128*v,p},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,s=(1<<i)-1,a=s>>1,u=i-7,c=o-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)r=256*r+e[c--],u-=8;if(0===f)f=1-a;else{if(f===s)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=a}return(l?-1:1)*r*n(2,f-t)}}},3392:function(e,t,r){var n=r(9720),o=r(4141),i=r(6027),s=Object,a=n("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):s(e)}:s},8851:function(e,t,r){var n=r(1045),o=r(7809),i=r(7046);e.exports=function(e,t,r){var s,a;return i&&n(s=t.constructor)&&s!==r&&o(a=s.prototype)&&a!==r.prototype&&i(e,a),e}},4554:function(e,t,r){var n=r(9720),o=r(1045),i=r(4480),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},6811:function(e,t,r){var n=r(4866),o=r(9720),i=r(8164),s=r(7809),a=r(1163),u=r(4317).f,c=r(1242),l=r(6584),f=r(1773),p=r(858),d=r(2693),h=!1,y=p("meta"),E=0,v=function(e){u(e,y,{value:{objectID:"O"+E++,weakData:{}}})},_=e.exports={enable:function(){_.enable=function(){},h=!0;var e=c.f,t=o([].splice),r={};r[y]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;o<i;o++)if(n[o]===y){t(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,y)){if(!f(e))return"F";if(!t)return"E";v(e)}return e[y].objectID},getWeakData:function(e,t){if(!a(e,y)){if(!f(e))return!0;if(!t)return!1;v(e)}return e[y].weakData},onFreeze:function(e){return d&&h&&f(e)&&!a(e,y)&&v(e),e}};i[y]=!0},7417:function(e,t,r){var n,o,i,s=r(1849),a=r(2383),u=r(9720),c=r(7809),l=r(6493),f=r(1163),p=r(4480),d=r(6033),h=r(8164),y="Object already initialized",E=a.TypeError,v=a.WeakMap;if(s||p.state){var _=p.state||(p.state=new v),g=u(_.get),m=u(_.has),O=u(_.set);n=function(e,t){if(m(_,e))throw E(y);return t.facade=e,O(_,e,t),t},o=function(e){return g(_,e)||{}},i=function(e){return m(_,e)}}else{var T=d("state");h[T]=!0,n=function(e,t){if(f(e,T))throw E(y);return t.facade=e,l(e,T,t),t},o=function(e){return f(e,T)?e[T]:{}},i=function(e){return f(e,T)}}e.exports={set:n,get:o,has:i,enforce:function(e){return i(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=o(t)).type!==e)throw E("Incompatible receiver, "+e+" required");return r}}}},706:function(e,t,r){var n=r(9140),o=r(9171),i=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||s[i]===e)}},6833:function(e,t,r){var n=r(6027);e.exports=Array.isArray||function(e){return"Array"==n(e)}},2318:function(e,t,r){var n=r(6837),o=r(9720)("".slice);e.exports=function(e){return"Big"===o(n(e),0,3)}},1045:function(e){e.exports=function(e){return"function"==typeof e}},8297:function(e,t,r){var n=r(9720),o=r(4141),i=r(1045),s=r(6837),a=r(7300),u=r(4554),c=function(){},l=[],f=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),h=!p.exec(c),y=function(e){if(!i(e))return!1;try{return f(c,l,e),!0}catch(e){return!1}},E=function(e){if(!i(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(p,u(e))}catch(e){return!0}};E.sham=!0,e.exports=!f||o((function(){var e;return y(y.call)||!y(Object)||!y((function(){e=!0}))||e}))?E:y},1122:function(e,t,r){var n=r(4141),o=r(1045),i=/#|\.prototype\./,s=function(e,t){var r=u[a(e)];return r==l||r!=c&&(o(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},u=s.data={},c=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},6121:function(e,t,r){var n=r(7809),o=Math.floor;e.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&o(e)===e}},7323:function(e){e.exports=function(e){return null==e}},7809:function(e,t,r){var n=r(1045),o="object"==typeof document&&document.all,i=void 0===o&&void 0!==o;e.exports=i?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},4726:function(e){e.exports=!1},3265:function(e,t,r){var n=r(7809),o=r(6027),i=r(9140)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},6894:function(e,t,r){var n=r(7300),o=r(1045),i=r(8931),s=r(2048),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,a(e))}},5991:function(e,t,r){var n=r(3847),o=r(9107),i=r(1571),s=r(7632),a=r(706),u=r(2398),c=r(8931),l=r(6151),f=r(1328),p=r(6186),d=TypeError,h=function(e,t){this.stopped=e,this.result=t},y=h.prototype;e.exports=function(e,t,r){var E,v,_,g,m,O,T,R=r&&r.that,I=!(!r||!r.AS_ENTRIES),N=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),b=!(!r||!r.INTERRUPTED),S=n(t,R),A=function(e){return E&&p(E,"normal",e),new h(!0,e)},M=function(e){return I?(i(e),b?S(e[0],e[1],A):S(e[0],e[1])):b?S(e,A):S(e)};if(N)E=e.iterator;else if(C)E=e;else{if(!(v=f(e)))throw d(s(e)+" is not iterable");if(a(v)){for(_=0,g=u(e);g>_;_++)if((m=M(e[_]))&&c(y,m))return m;return new h(!1)}E=l(e,v)}for(O=N?e.next:E.next;!(T=o(O,E)).done;){try{m=M(T.value)}catch(e){p(E,"throw",e)}if("object"==typeof m&&m&&c(y,m))return m}return new h(!1)}},6186:function(e,t,r){var n=r(9107),o=r(1571),i=r(466);e.exports=function(e,t,r){var s,a;o(e);try{if(!(s=i(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return o(s),r}},9437:function(e,t,r){"use strict";var n=r(9549).IteratorPrototype,o=r(5565),i=r(2499),s=r(5125),a=r(9171),u=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),s(e,l,!1,!0),a[l]=u,e}},9719:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(4726),s=r(9684),a=r(1045),u=r(9437),c=r(2573),l=r(7046),f=r(5125),p=r(6493),d=r(4405),h=r(9140),y=r(9171),E=r(9549),v=s.PROPER,_=s.CONFIGURABLE,g=E.IteratorPrototype,m=E.BUGGY_SAFARI_ITERATORS,O=h("iterator"),T="keys",R="values",I="entries",N=function(){return this};e.exports=function(e,t,r,s,h,E,C){u(r,t,s);var b,S,A,M=function(e){if(e===h&&P)return P;if(!m&&e in x)return x[e];switch(e){case T:case R:case I:return function(){return new r(this,e)}}return function(){return new r(this)}},w=t+" Iterator",U=!1,x=e.prototype,L=x[O]||x["@@iterator"]||h&&x[h],P=!m&&L||M(h),k="Array"==t&&x.entries||L;if(k&&(b=c(k.call(new e)))!==Object.prototype&&b.next&&(i||c(b)===g||(l?l(b,g):a(b[O])||d(b,O,N)),f(b,w,!0,!0),i&&(y[w]=N)),v&&h==R&&L&&L.name!==R&&(!i&&_?p(x,"name",R):(U=!0,P=function(){return o(L,this)})),h)if(S={values:M(R),keys:E?P:M(T),entries:M(I)},C)for(A in S)(m||U||!(A in x))&&d(x,A,S[A]);else n({target:t,proto:!0,forced:m||U},S);return i&&!C||x[O]===P||d(x,O,P,{name:h}),y[t]=P,S}},9549:function(e,t,r){"use strict";var n,o,i,s=r(4141),a=r(1045),u=r(7809),c=r(5565),l=r(2573),f=r(4405),p=r(9140),d=r(4726),h=p("iterator"),y=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):y=!0),!u(n)||s((function(){var e={};return n[h].call(e)!==e}))?n={}:d&&(n=c(n)),a(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:y}},9171:function(e){e.exports={}},2398:function(e,t,r){var n=r(2844);e.exports=function(e){return n(e.length)}},2511:function(e,t,r){var n=r(4141),o=r(1045),i=r(1163),s=r(2931),a=r(9684).CONFIGURABLE,u=r(4554),c=r(7417),l=c.enforce,f=c.get,p=Object.defineProperty,d=s&&!n((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),y=e.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!i(e,"name")||a&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),d&&r&&i(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&i(r,"constructor")&&r.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=l(e);return i(n,"source")||(n.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=y((function(){return o(this)&&f(this).source||u(this)}),"toString")},3709:function(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5418:function(e,t,r){var n,o,i,s,a,u,c,l,f=r(2383),p=r(3847),d=r(9097).f,h=r(5515).set,y=r(7337),E=r(3035),v=r(678),_=r(4368),g=f.MutationObserver||f.WebKitMutationObserver,m=f.document,O=f.process,T=f.Promise,R=d(f,"queueMicrotask"),I=R&&R.value;I||(n=function(){var e,t;for(_&&(e=O.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?s():i=void 0,e}}i=void 0,e&&e.enter()},y||_||v||!g||!m?!E&&T&&T.resolve?((c=T.resolve(void 0)).constructor=T,l=p(c.then,c),s=function(){l(n)}):_?s=function(){O.nextTick(n)}:(h=p(h,f),s=function(){h(n)}):(a=!0,u=m.createTextNode(""),new g(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),e.exports=I||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,s()),i=t}},9636:function(e,t,r){"use strict";var n=r(9181),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},1271:function(e,t,r){var n=r(3265),o=TypeError;e.exports=function(e){if(n(e))throw o("The method doesn't accept regular expressions");return e}},7411:function(e,t,r){"use strict";var n=r(2931),o=r(9720),i=r(9107),s=r(4141),a=r(3555),u=r(6920),c=r(7225),l=r(4569),f=r(3392),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||s((function(){if(n&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[r]||a(p({},t)).join("")!=o}))?function(e,t){for(var r=l(e),o=arguments.length,s=1,p=u.f,d=c.f;o>s;)for(var y,E=f(arguments[s++]),v=p?h(a(E),p(E)):a(E),_=v.length,g=0;_>g;)y=v[g++],n&&!i(d,E,y)||(r[y]=E[y]);return r}:p},5565:function(e,t,r){var n,o=r(1571),i=r(3633),s=r(7414),a=r(8164),u=r(4530),c=r(6459),l=r(6033)("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&n?d(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):d(n);for(var r=s.length;r--;)delete h.prototype[s[r]];return h()};a[l]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f.prototype=o(e),r=new f,f.prototype=null,r[l]=e):r=h(),void 0===t?r:i.f(r,t)}},3633:function(e,t,r){var n=r(2931),o=r(5957),i=r(4317),s=r(1571),a=r(4221),u=r(3555);t.f=n&&!o?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),o=u(t),c=o.length,l=0;c>l;)i.f(e,r=o[l++],n[r]);return e}},4317:function(e,t,r){var n=r(2931),o=r(688),i=r(5957),s=r(1571),a=r(7277),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=n?i?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9097:function(e,t,r){var n=r(2931),o=r(9107),i=r(7225),s=r(2499),a=r(4221),u=r(7277),c=r(1163),l=r(688),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=a(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return s(!o(i.f,e,t),e[t])}},6584:function(e,t,r){var n=r(6027),o=r(4221),i=r(1242).f,s=r(9730),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return s(a)}}(e):i(o(e))}},1242:function(e,t,r){var n=r(6984),o=r(7414).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},6920:function(e,t){t.f=Object.getOwnPropertySymbols},2573:function(e,t,r){var n=r(1163),o=r(1045),i=r(4569),s=r(6033),a=r(4667),u=s("IE_PROTO"),c=Object,l=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=i(e);if(n(t,u))return t[u];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},1773:function(e,t,r){var n=r(4141),o=r(7809),i=r(6027),s=r(9042),a=Object.isExtensible,u=n((function(){a(1)}));e.exports=u||s?function(e){return!!o(e)&&(!s||"ArrayBuffer"!=i(e))&&(!a||a(e))}:a},8931:function(e,t,r){var n=r(9720);e.exports=n({}.isPrototypeOf)},6984:function(e,t,r){var n=r(9720),o=r(1163),i=r(4221),s=r(7351).indexOf,a=r(8164),u=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(a,r)&&o(n,r)&&u(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~s(l,r)||u(l,r));return l}},3555:function(e,t,r){var n=r(6984),o=r(7414);e.exports=Object.keys||function(e){return n(e,o)}},7225:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7046:function(e,t,r){var n=r(9720),o=r(1571),i=r(2091);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},8389:function(e,t,r){var n=r(2931),o=r(9720),i=r(3555),s=r(4221),a=o(r(7225).f),u=o([].push),c=function(e){return function(t){for(var r,o=s(t),c=i(o),l=c.length,f=0,p=[];l>f;)r=c[f++],n&&!a(o,r)||u(p,e?[r,o[r]]:o[r]);return p}};e.exports={entries:c(!0),values:c(!1)}},4757:function(e,t,r){"use strict";var n=r(1247),o=r(6837);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},8434:function(e,t,r){var n=r(9107),o=r(1045),i=r(7809),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&o(r=e.toString)&&!i(a=n(r,e)))return a;if(o(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&o(r=e.toString)&&!i(a=n(r,e)))return a;throw s("Can't convert object to primitive value")}},5260:function(e,t,r){var n=r(7300),o=r(9720),i=r(1242),s=r(6920),a=r(1571),u=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=s.f;return r?u(t,r(e)):t}},5096:function(e,t,r){var n=r(2383);e.exports=n},4393:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},8583:function(e,t,r){var n=r(2383),o=r(7587),i=r(1045),s=r(1122),a=r(4554),u=r(9140),c=r(5830),l=r(3954),f=r(4726),p=r(583),d=o&&o.prototype,h=u("species"),y=!1,E=i(n.PromiseRejectionEvent),v=s("Promise",(function(){var e=a(o),t=e!==String(o);if(!t&&66===p)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!p||p<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(y=r.then((function(){}))instanceof n))return!0}return!t&&(c||l)&&!E}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:E,SUBCLASSING:y}},7587:function(e,t,r){var n=r(2383);e.exports=n.Promise},6401:function(e,t,r){var n=r(1571),o=r(7809),i=r(9636);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},5431:function(e,t,r){var n=r(7587),o=r(3802),i=r(8583).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},1072:function(e){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},2146:function(e,t,r){var n=r(9107),o=r(1571),i=r(1045),s=r(6027),a=r(1660),u=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=n(r,e,t);return null!==c&&o(c),c}if("RegExp"===s(e))return n(a,e,t);throw u("RegExp#exec called on incompatible receiver")}},1660:function(e,t,r){"use strict";var n,o,i=r(9107),s=r(9720),a=r(9274),u=r(5316),c=r(4233),l=r(6402),f=r(5565),p=r(7417).get,d=r(5629),h=r(2231),y=l("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,v=E,_=s("".charAt),g=s("".indexOf),m=s("".replace),O=s("".slice),T=(o=/b*/g,i(E,n=/a/,"a"),i(E,o,"a"),0!==n.lastIndex||0!==o.lastIndex),R=c.BROKEN_CARET,I=void 0!==/()??/.exec("")[1];(T||I||R||d||h)&&(v=function(e){var t,r,n,o,s,c,l,d=this,h=p(d),N=a(e),C=h.raw;if(C)return C.lastIndex=d.lastIndex,t=i(v,C,N),d.lastIndex=C.lastIndex,t;var b=h.groups,S=R&&d.sticky,A=i(u,d),M=d.source,w=0,U=N;if(S&&(A=m(A,"y",""),-1===g(A,"g")&&(A+="g"),U=O(N,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==_(N,d.lastIndex-1))&&(M="(?: "+M+")",U=" "+U,w++),r=new RegExp("^(?:"+M+")",A)),I&&(r=new RegExp("^"+M+"$(?!\\s)",A)),T&&(n=d.lastIndex),o=i(E,S?r:d,U),S?o?(o.input=O(o.input,w),o[0]=O(o[0],w),o.index=d.lastIndex,d.lastIndex+=o[0].length):d.lastIndex=0:T&&o&&(d.lastIndex=d.global?o.index+o[0].length:n),I&&o&&o.length>1&&i(y,o[0],r,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(o[s]=void 0)})),o&&b)for(o.groups=c=f(null),s=0;s<b.length;s++)c[(l=b[s])[0]]=o[l[1]];return o}),e.exports=v},5316:function(e,t,r){"use strict";var n=r(1571);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},8040:function(e,t,r){var n=r(9107),o=r(1163),i=r(8931),s=r(5316),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||o(e,"flags")||!i(a,e)?t:n(s,e)}},4233:function(e,t,r){var n=r(4141),o=r(2383).RegExp,i=n((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:i}},5629:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},2231:function(e,t,r){var n=r(4141),o=r(2383).RegExp;e.exports=n((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},6827:function(e,t,r){var n=r(7323),o=TypeError;e.exports=function(e){if(n(e))throw o("Can't call method on "+e);return e}},3257:function(e,t,r){var n=r(2383),o=r(7841),i=r(1045),s=r(9376),a=r(942),u=r(248),c=/MSIE .\./.test(s),l=n.Function,f=function(e){return c?function(t,r){var n=u(arguments.length,1)>2,s=i(t)?t:l(t),c=n?a(arguments,2):void 0;return e(n?function(){o(s,this,c)}:s,r)}:e};e.exports={setTimeout:f(n.setTimeout),setInterval:f(n.setInterval)}},4467:function(e,t,r){"use strict";var n=r(7300),o=r(4317),i=r(9140),s=r(2931),a=i("species");e.exports=function(e){var t=n(e),r=o.f;s&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},5125:function(e,t,r){var n=r(4317).f,o=r(1163),i=r(9140)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},6033:function(e,t,r){var n=r(6402),o=r(858),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},4480:function(e,t,r){var n=r(2383),o=r(5784),i="__core-js_shared__",s=n[i]||o(i,{});e.exports=s},6402:function(e,t,r){var n=r(4726),o=r(4480);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.1/LICENSE",source:"https://github.com/zloirock/core-js"})},543:function(e,t,r){var n=r(1571),o=r(7345),i=r(7323),s=r(9140)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||i(r=n(a)[s])?t:o(r)}},7957:function(e,t,r){var n=r(9720),o=r(152),i=r(9274),s=r(6827),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(e){return function(t,r){var n,l,f=i(s(t)),p=o(r),d=f.length;return p<0||p>=d?e?"":void 0:(n=u(f,p))<55296||n>56319||p+1===d||(l=u(f,p+1))<56320||l>57343?e?a(f,p):n:e?c(f,p,p+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},9492:function(e,t,r){"use strict";var n=r(9720),o=2147483647,i=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",u=RangeError,c=n(s.exec),l=Math.floor,f=String.fromCharCode,p=n("".charCodeAt),d=n([].join),h=n([].push),y=n("".replace),E=n("".split),v=n("".toLowerCase),_=function(e){return e+22+75*(e<26)},g=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},m=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=p(e,r++);if(o>=55296&&o<=56319&&r<n){var i=p(e,r++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),r--)}else h(t,o)}return t}(e);var r,n,i=e.length,s=128,c=0,y=72;for(r=0;r<e.length;r++)(n=e[r])<128&&h(t,f(n));var E=t.length,v=E;for(E&&h(t,"-");v<i;){var m=o;for(r=0;r<e.length;r++)(n=e[r])>=s&&n<m&&(m=n);var O=v+1;if(m-s>l((o-c)/O))throw u(a);for(c+=(m-s)*O,s=m,r=0;r<e.length;r++){if((n=e[r])<s&&++c>o)throw u(a);if(n==s){for(var T=c,R=36;;){var I=R<=y?1:R>=y+26?26:R-y;if(T<I)break;var N=T-I,C=36-I;h(t,f(_(I+N%C))),T=l(N/C),R+=36}h(t,f(_(T))),y=g(c,O,v==E),c=0,v++}}c++,s++}return d(t,"")};e.exports=function(e){var t,r,n=[],o=E(y(v(e),s,"."),".");for(t=0;t<o.length;t++)r=o[t],h(n,c(i,r)?"xn--"+m(r):r);return d(n,".")}},3379:function(e,t,r){var n=r(9720),o=r(6827),i=r(9274),s=r(6342),a=n("".replace),u="["+s+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(e){return function(t){var r=i(o(t));return 1&e&&(r=a(r,c,"")),2&e&&(r=a(r,l,"")),r}};e.exports={start:f(1),end:f(2),trim:f(3)}},5793:function(e,t,r){var n=r(583),o=r(4141);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3706:function(e,t,r){var n=r(9107),o=r(7300),i=r(9140),s=r(4405);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return n(r,this)}),{arity:1})}},6125:function(e,t,r){var n=r(5793);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},5515:function(e,t,r){var n,o,i,s,a=r(2383),u=r(7841),c=r(3847),l=r(1045),f=r(1163),p=r(4141),d=r(4530),h=r(942),y=r(6459),E=r(248),v=r(7337),_=r(4368),g=a.setImmediate,m=a.clearImmediate,O=a.process,T=a.Dispatch,R=a.Function,I=a.MessageChannel,N=a.String,C=0,b={};try{n=a.location}catch(e){}var S=function(e){if(f(b,e)){var t=b[e];delete b[e],t()}},A=function(e){return function(){S(e)}},M=function(e){S(e.data)},w=function(e){a.postMessage(N(e),n.protocol+"//"+n.host)};g&&m||(g=function(e){E(arguments.length,1);var t=l(e)?e:R(e),r=h(arguments,1);return b[++C]=function(){u(t,void 0,r)},o(C),C},m=function(e){delete b[e]},_?o=function(e){O.nextTick(A(e))}:T&&T.now?o=function(e){T.now(A(e))}:I&&!v?(s=(i=new I).port2,i.port1.onmessage=M,o=c(s.postMessage,s)):a.addEventListener&&l(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(w)?(o=w,a.addEventListener("message",M,!1)):o="onreadystatechange"in y("script")?function(e){d.appendChild(y("script")).onreadystatechange=function(){d.removeChild(this),S(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:g,clear:m}},5890:function(e,t,r){var n=r(9720);e.exports=n(1..valueOf)},3943:function(e,t,r){var n=r(152),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},7386:function(e,t,r){var n=r(55),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},3577:function(e,t,r){var n=r(152),o=r(2844),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw i("Wrong length or index");return r}},4221:function(e,t,r){var n=r(3392),o=r(6827);e.exports=function(e){return n(o(e))}},152:function(e,t,r){var n=r(3709);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},2844:function(e,t,r){var n=r(152),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},4569:function(e,t,r){var n=r(6827),o=Object;e.exports=function(e){return o(n(e))}},5276:function(e,t,r){var n=r(8090),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw o("Wrong offset");return r}},8090:function(e,t,r){var n=r(152),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw o("The argument can't be less than 0");return t}},55:function(e,t,r){var n=r(9107),o=r(7809),i=r(6894),s=r(466),a=r(8434),u=r(9140),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,u=s(e,l);if(u){if(void 0===t&&(t="default"),r=n(u,e,t),!o(r)||i(r))return r;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},7277:function(e,t,r){var n=r(55),o=r(6894);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},1247:function(e,t,r){var n={};n[r(9140)("toStringTag")]="z",e.exports="[object z]"===String(n)},9274:function(e,t,r){var n=r(6837),o=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},7632:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},7466:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9107),s=r(2931),a=r(4412),u=r(5861),c=r(4061),l=r(9112),f=r(2499),p=r(6493),d=r(6121),h=r(2844),y=r(3577),E=r(5276),v=r(7277),_=r(1163),g=r(6837),m=r(7809),O=r(6894),T=r(5565),R=r(8931),I=r(7046),N=r(1242).f,C=r(8607),b=r(888).forEach,S=r(4467),A=r(4317),M=r(9097),w=r(7417),U=r(8851),x=w.get,L=w.set,P=w.enforce,k=A.f,D=M.f,H=Math.round,B=o.RangeError,G=c.ArrayBuffer,F=G.prototype,j=c.DataView,W=u.NATIVE_ARRAY_BUFFER_VIEWS,q=u.TYPED_ARRAY_TAG,V=u.TypedArray,K=u.TypedArrayPrototype,J=u.aTypedArrayConstructor,z=u.isTypedArray,Y="BYTES_PER_ELEMENT",X="Wrong length",$=function(e,t){J(e);for(var r=0,n=t.length,o=new e(n);n>r;)o[r]=t[r++];return o},Q=function(e,t){k(e,t,{get:function(){return x(this)[t]}})},Z=function(e){var t;return R(F,e)||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},ee=function(e,t){return z(e)&&!O(t)&&t in e&&d(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?f(2,e[t]):D(e,t)},re=function(e,t,r){return t=v(t),!(ee(e,t)&&m(r)&&_(r,"value"))||_(r,"get")||_(r,"set")||r.configurable||_(r,"writable")&&!r.writable||_(r,"enumerable")&&!r.enumerable?k(e,t,r):(e[t]=r.value,e)};s?(W||(M.f=te,A.f=re,Q(K,"buffer"),Q(K,"byteOffset"),Q(K,"byteLength"),Q(K,"length")),n({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var s=e.match(/\d+$/)[0]/8,u=e+(r?"Clamped":"")+"Array",c="get"+e,f="set"+e,d=o[u],v=d,_=v&&v.prototype,g={},O=function(e,t){k(e,t,{get:function(){return function(e,t){var r=x(e);return r.view[c](t*s+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=x(e);r&&(n=(n=H(n))<0?0:n>255?255:255&n),o.view[f](t*s+o.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};W?a&&(v=t((function(e,t,r,n){return l(e,_),U(m(t)?Z(t)?void 0!==n?new d(t,E(r,s),n):void 0!==r?new d(t,E(r,s)):new d(t):z(t)?$(v,t):i(C,v,t):new d(y(t)),e,v)})),I&&I(v,V),b(N(d),(function(e){e in v||p(v,e,d[e])})),v.prototype=_):(v=t((function(e,t,r,n){l(e,_);var o,a,u,c=0,f=0;if(m(t)){if(!Z(t))return z(t)?$(v,t):i(C,v,t);o=t,f=E(r,s);var p=t.byteLength;if(void 0===n){if(p%s)throw B(X);if((a=p-f)<0)throw B(X)}else if((a=h(n)*s)+f>p)throw B(X);u=a/s}else u=y(t),o=new G(a=u*s);for(L(e,{buffer:o,byteOffset:f,byteLength:a,length:u,view:new j(o)});c<u;)O(e,c++)})),I&&I(v,V),_=v.prototype=T(K)),_.constructor!==v&&p(_,"constructor",v),P(_).TypedArrayConstructor=v,q&&p(_,q,u);var R=v!=d;g[u]=v,n({global:!0,constructor:!0,forced:R,sham:!W},g),Y in v||p(v,Y,s),Y in _||p(_,Y,s),S(u)}):e.exports=function(){}},4412:function(e,t,r){var n=r(2383),o=r(4141),i=r(3802),s=r(5861).NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,u=n.Int8Array;e.exports=!s||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||o((function(){return 1!==new u(new a(2),1,void 0).length}))},1390:function(e,t,r){var n=r(9141),o=r(7106);e.exports=function(e,t){return n(o(e),t)}},8607:function(e,t,r){var n=r(3847),o=r(9107),i=r(7345),s=r(4569),a=r(2398),u=r(6151),c=r(1328),l=r(706),f=r(2318),p=r(5861).aTypedArrayConstructor,d=r(7386);e.exports=function(e){var t,r,h,y,E,v,_,g,m=i(this),O=s(e),T=arguments.length,R=T>1?arguments[1]:void 0,I=void 0!==R,N=c(O);if(N&&!l(N))for(g=(_=u(O,N)).next,O=[];!(v=o(g,_)).done;)O.push(v.value);for(I&&T>2&&(R=n(R,arguments[2])),r=a(O),h=new(p(m))(r),y=f(h),t=0;r>t;t++)E=I?R(O[t],t):O[t],h[t]=y?d(E):+E;return h}},7106:function(e,t,r){var n=r(5861),o=r(543),i=n.aTypedArrayConstructor,s=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,s(e)))}},858:function(e,t,r){var n=r(9720),o=0,i=Math.random(),s=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+i,36)}},9677:function(e,t,r){var n=r(4141),o=r(9140),i=r(4726),s=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},2048:function(e,t,r){var n=r(5793);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5957:function(e,t,r){var n=r(2931),o=r(4141);e.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},248:function(e){var t=TypeError;e.exports=function(e,r){if(e<r)throw t("Not enough arguments");return e}},1849:function(e,t,r){var n=r(2383),o=r(1045),i=n.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},8225:function(e,t,r){var n=r(5096),o=r(1163),i=r(7216),s=r(4317).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||s(t,e,{value:i.f(e)})}},7216:function(e,t,r){var n=r(9140);t.f=n},9140:function(e,t,r){var n=r(2383),o=r(6402),i=r(1163),s=r(858),a=r(5793),u=r(2048),c=o("wks"),l=n.Symbol,f=l&&l.for,p=u?l:l&&l.withoutSetter||s;e.exports=function(e){if(!i(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&i(l,e)?c[e]=l[e]:c[e]=u&&f?f(t):p(t)}return c[e]}},6342:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},863:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(4141),s=r(4061),a=r(1571),u=r(3943),c=r(2844),l=r(543),f=s.ArrayBuffer,p=s.DataView,d=p.prototype,h=o(f.prototype.slice),y=o(d.getUint8),E=o(d.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(a(this),e);for(var r=a(this).byteLength,n=u(e,r),o=u(void 0===t?r:t,r),i=new(l(this,f))(c(o-n)),s=new p(this),d=new p(i),v=0;n<o;)E(d,v++,y(s,n++));return i}})},7095:function(e,t,r){"use strict";var n=r(4866),o=r(4141),i=r(6833),s=r(7809),a=r(4569),u=r(2398),c=r(7540),l=r(567),f=r(5508),p=r(3933),d=r(9140),h=r(583),y=d("isConcatSpreadable"),E=h>=51||!o((function(){var e=[];return e[y]=!1,e.concat()[0]!==e})),v=p("concat"),_=function(e){if(!s(e))return!1;var t=e[y];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!E||!v},{concat:function(e){var t,r,n,o,i,s=a(this),p=f(s,0),d=0;for(t=-1,n=arguments.length;t<n;t++)if(_(i=-1===t?s:arguments[t]))for(o=u(i),c(d+o),r=0;r<o;r++,d++)r in i&&l(p,d,i[r]);else c(d+1),l(p,d++,i);return p.length=d,p}})},7521:function(e,t,r){"use strict";var n=r(4866),o=r(888).filter;n({target:"Array",proto:!0,forced:!r(3933)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},1362:function(e,t,r){"use strict";var n=r(4866),o=r(4890);n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},9889:function(e,t,r){"use strict";var n=r(4866),o=r(7351).includes,i=r(4141),s=r(4651);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},5980:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(7351).indexOf,s=r(3070),a=o([].indexOf),u=!!a&&1/a([1],1,-0)<0,c=s("indexOf");n({target:"Array",proto:!0,forced:u||!c},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?a(this,e,t)||0:i(this,e,t)}})},3529:function(e,t,r){r(4866)({target:"Array",stat:!0},{isArray:r(6833)})},1685:function(e,t,r){"use strict";var n=r(4221),o=r(4651),i=r(9171),s=r(7417),a=r(4317).f,u=r(9719),c=r(8174),l=r(4726),f=r(2931),p="Array Iterator",d=s.set,h=s.getterFor(p);e.exports=u(Array,"Array",(function(e,t){d(this,{type:p,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var y=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==y.name)try{a(y,"name",{value:"values"})}catch(e){}},3535:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(3392),s=r(4221),a=r(3070),u=o([].join),c=i!=Object,l=a("join",",");n({target:"Array",proto:!0,forced:c||!l},{join:function(e){return u(s(this),void 0===e?",":e)}})},1655:function(e,t,r){var n=r(4866),o=r(1959);n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},7118:function(e,t,r){"use strict";var n=r(4866),o=r(888).map;n({target:"Array",proto:!0,forced:!r(3933)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},2657:function(e,t,r){"use strict";var n=r(4866),o=r(6833),i=r(8297),s=r(7809),a=r(3943),u=r(2398),c=r(4221),l=r(567),f=r(9140),p=r(3933),d=r(942),h=p("slice"),y=f("species"),E=Array,v=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,p=c(this),h=u(p),_=a(e,h),g=a(void 0===t?h:t,h);if(o(p)&&(r=p.constructor,(i(r)&&(r===E||o(r.prototype))||s(r)&&null===(r=r[y]))&&(r=void 0),r===E||void 0===r))return d(p,_,g);for(n=new(void 0===r?E:r)(v(g-_,0)),f=0;_<g;_++,f++)_ in p&&l(n,f,p[_]);return n.length=f,n}})},351:function(e,t,r){"use strict";var n=r(4866),o=r(888).some;n({target:"Array",proto:!0,forced:!r(3070)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},3022:function(e,t,r){"use strict";var n=r(4866),o=r(4569),i=r(3943),s=r(152),a=r(2398),u=r(1208),c=r(7540),l=r(5508),f=r(567),p=r(6733),d=r(3933)("splice"),h=Math.max,y=Math.min;n({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var r,n,d,E,v,_,g=o(this),m=a(g),O=i(e,m),T=arguments.length;for(0===T?r=n=0:1===T?(r=0,n=m-O):(r=T-2,n=y(h(s(t),0),m-O)),c(m+r-n),d=l(g,n),E=0;E<n;E++)(v=O+E)in g&&f(d,E,g[v]);if(d.length=n,r<n){for(E=O;E<m-n;E++)_=E+r,(v=E+n)in g?g[_]=g[v]:p(g,_);for(E=m;E>m-n+r;E--)p(g,E-1)}else if(r>n)for(E=m-n;E>O;E--)_=E+r-1,(v=E+n-1)in g?g[_]=g[v]:p(g,_);for(E=0;E<r;E++)g[E+O]=arguments[E+2];return u(g,m-n+r),d}})},9046:function(e,t,r){var n=r(4866),o=r(9720),i=Date,s=o(i.prototype.getTime);n({target:"Date",stat:!0},{now:function(){return s(new i)}})},9782:function(e,t,r){var n=r(9720),o=r(4405),i=Date.prototype,s="Invalid Date",a=n(i.toString),u=n(i.getTime);String(new Date(NaN))!=s&&o(i,"toString",(function(){var e=u(this);return e==e?a(this):s}))},7693:function(e,t,r){var n=r(4866),o=r(8829);n({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},8668:function(e,t,r){var n=r(2931),o=r(9684).EXISTS,i=r(9720),s=r(4317).f,a=Function.prototype,u=i(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(c.exec);n&&!o&&s(a,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},7675:function(e,t,r){var n=r(4866),o=r(7300),i=r(7841),s=r(9107),a=r(9720),u=r(4141),c=r(6833),l=r(1045),f=r(7809),p=r(6894),d=r(942),h=r(5793),y=o("JSON","stringify"),E=a(/./.exec),v=a("".charAt),_=a("".charCodeAt),g=a("".replace),m=a(1..toString),O=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,R=/^[\uDC00-\uDFFF]$/,I=!h||u((function(){var e=o("Symbol")();return"[null]"!=y([e])||"{}"!=y({a:e})||"{}"!=y(Object(e))})),N=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),C=function(e,t){var r=d(arguments),n=t;if((f(t)||void 0!==e)&&!p(e))return c(t)||(t=function(e,t){if(l(n)&&(t=s(n,this,e,t)),!p(t))return t}),r[1]=t,i(y,null,r)},b=function(e,t,r){var n=v(r,t-1),o=v(r,t+1);return E(T,e)&&!E(R,o)||E(R,e)&&!E(T,n)?"\\u"+m(_(e,0),16):e};y&&n({target:"JSON",stat:!0,arity:3,forced:I||N},{stringify:function(e,t,r){var n=d(arguments),o=i(I?C:y,null,n);return N&&"string"==typeof o?g(o,O,b):o}})},5303:function(e,t,r){"use strict";r(6202)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(6675))},5724:function(e,t,r){r(5303)},8453:function(e,t,r){"use strict";var n=r(2931),o=r(2383),i=r(9720),s=r(1122),a=r(4405),u=r(1163),c=r(8851),l=r(8931),f=r(6894),p=r(55),d=r(4141),h=r(1242).f,y=r(9097).f,E=r(4317).f,v=r(5890),_=r(3379).trim,g="Number",m=o.Number,O=m.prototype,T=o.TypeError,R=i("".slice),I=i("".charCodeAt),N=function(e){var t=p(e,"number");return"bigint"==typeof t?t:C(t)},C=function(e){var t,r,n,o,i,s,a,u,c=p(e,"number");if(f(c))throw T("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=_(c),43===(t=I(c,0))||45===t){if(88===(r=I(c,2))||120===r)return NaN}else if(48===t){switch(I(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(s=(i=R(c,2)).length,a=0;a<s;a++)if((u=I(i,a))<48||u>o)return NaN;return parseInt(i,n)}return+c};if(s(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var b,S=function(e){var t=arguments.length<1?0:m(N(e)),r=this;return l(O,r)&&d((function(){v(r)}))?c(Object(t),r,S):t},A=n?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;A.length>M;M++)u(m,b=A[M])&&!u(S,b)&&E(S,b,y(m,b));S.prototype=O,O.constructor=S,a(o,g,S,{constructor:!0})}},1538:function(e,t,r){r(4866)({target:"Number",stat:!0},{isInteger:r(6121)})},8327:function(e,t,r){var n=r(4866),o=r(7411);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},7665:function(e,t,r){var n=r(4866),o=r(8389).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},954:function(e,t,r){var n=r(4866),o=r(5793),i=r(4141),s=r(6920),a=r(4569);n({target:"Object",stat:!0,forced:!o||i((function(){s.f(1)}))},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},3786:function(e,t,r){var n=r(4866),o=r(4569),i=r(3555);n({target:"Object",stat:!0,forced:r(4141)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},900:function(e,t,r){var n=r(1247),o=r(4405),i=r(4757);n||o(Object.prototype,"toString",i,{unsafe:!0})},9273:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),s=r(9636),a=r(4393),u=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1;u(e,(function(e){var i=a++,u=!1;l++,o(r,t,e).then((function(e){u||(u=!0,s[i]=e,--l||n(s))}),c)})),--l||n(s)}));return l.error&&c(l.value),r.promise}})},359:function(e,t,r){"use strict";var n=r(4866),o=r(4726),i=r(8583).CONSTRUCTOR,s=r(7587),a=r(7300),u=r(1045),c=r(4405),l=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&u(s)){var f=a("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},5137:function(e,t,r){"use strict";var n,o,i,s=r(4866),a=r(4726),u=r(4368),c=r(2383),l=r(9107),f=r(4405),p=r(7046),d=r(5125),h=r(4467),y=r(9181),E=r(1045),v=r(7809),_=r(9112),g=r(543),m=r(5515).set,O=r(5418),T=r(1879),R=r(4393),I=r(1072),N=r(7417),C=r(7587),b=r(8583),S=r(9636),A="Promise",M=b.CONSTRUCTOR,w=b.REJECTION_EVENT,U=b.SUBCLASSING,x=N.getterFor(A),L=N.set,P=C&&C.prototype,k=C,D=P,H=c.TypeError,B=c.document,G=c.process,F=S.f,j=F,W=!!(B&&B.createEvent&&c.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!v(e)||!E(t=e.then))&&t},K=function(e,t){var r,n,o,i=t.value,s=1==t.state,a=s?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{a?(s||(2===t.rejection&&$(t),t.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===e.promise?c(H("Promise-chain cycle")):(n=V(r))?l(n,r,u,c):u(r)):c(i)}catch(e){f&&!o&&f.exit(),c(e)}},J=function(e,t){e.notified||(e.notified=!0,O((function(){for(var r,n=e.reactions;r=n.get();)K(r,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},z=function(e,t,r){var n,o;W?((n=B.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!w&&(o=c["on"+e])?o(n):e===q&&T("Unhandled promise rejection",r)},Y=function(e){l(m,c,(function(){var t,r=e.facade,n=e.value;if(X(e)&&(t=R((function(){u?G.emit("unhandledRejection",n,r):z(q,r,n)})),e.rejection=u||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},$=function(e){l(m,c,(function(){var t=e.facade;u?G.emit("rejectionHandled",t):z("rejectionhandled",t,e.value)}))},Q=function(e,t,r){return function(n){e(t,n,r)}},Z=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,J(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw H("Promise can't be resolved itself");var n=V(t);n?O((function(){var r={done:!1};try{l(n,t,Q(ee,r,e),Q(Z,r,e))}catch(t){Z(r,t,e)}})):(e.value=t,e.state=1,J(e,!1))}catch(t){Z({done:!1},t,e)}}};if(M&&(D=(k=function(e){_(this,D),y(e),l(n,this);var t=x(this);try{e(Q(ee,t),Q(Z,t))}catch(e){Z(t,e)}}).prototype,(n=function(e){L(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:0,value:void 0})}).prototype=f(D,"then",(function(e,t){var r=x(this),n=F(g(this,k));return r.parent=!0,n.ok=!E(e)||e,n.fail=E(t)&&t,n.domain=u?G.domain:void 0,0==r.state?r.reactions.add(n):O((function(){K(n,r)})),n.promise})),o=function(){var e=new n,t=x(e);this.promise=e,this.resolve=Q(ee,t),this.reject=Q(Z,t)},S.f=F=function(e){return e===k||void 0===e?new o(e):j(e)},!a&&E(C)&&P!==Object.prototype)){i=P.then,U||f(P,"then",(function(e,t){var r=this;return new k((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete P.constructor}catch(e){}p&&p(P,D)}s({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:k}),d(k,A,!1,!0),h(A)},3814:function(e,t,r){r(5137),r(9273),r(359),r(5886),r(5465),r(1118)},5886:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9181),s=r(9636),a=r(4393),u=r(5991);n({target:"Promise",stat:!0,forced:r(5431)},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a((function(){var s=i(t.resolve);u(e,(function(e){o(s,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},5465:function(e,t,r){"use strict";var n=r(4866),o=r(9107),i=r(9636);n({target:"Promise",stat:!0,forced:r(8583).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},1118:function(e,t,r){"use strict";var n=r(4866),o=r(7300),i=r(4726),s=r(7587),a=r(8583).CONSTRUCTOR,u=r(6401),c=o("Promise"),l=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(e){return u(l&&this===c?s:this,e)}})},1008:function(e,t,r){"use strict";var n=r(4866),o=r(1660);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},937:function(e,t,r){"use strict";var n=r(9684).PROPER,o=r(4405),i=r(1571),s=r(9274),a=r(4141),u=r(8040),c="toString",l=RegExp.prototype.toString,f=a((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=n&&l.name!=c;(f||p)&&o(RegExp.prototype,c,(function(){var e=i(this);return"/"+s(e.source)+"/"+s(u(e))}),{unsafe:!0})},6619:function(e,t,r){"use strict";var n=r(4866),o=r(9720),i=r(1271),s=r(6827),a=r(9274),u=r(7849),c=o("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(a(s(this)),a(i(e)),arguments.length>1?arguments[1]:void 0)}})},2486:function(e,t,r){"use strict";var n=r(7957).charAt,o=r(9274),i=r(7417),s=r(9719),a=r(8174),u="String Iterator",c=i.set,l=i.getterFor(u);s(String,"String",(function(e){c(this,{type:u,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?a(void 0,!0):(e=n(r,o),t.index+=e.length,a(e,!1))}))},7461:function(e,t,r){"use strict";var n=r(7841),o=r(9107),i=r(9720),s=r(2267),a=r(1571),u=r(7323),c=r(3265),l=r(6827),f=r(543),p=r(3025),d=r(2844),h=r(9274),y=r(466),E=r(9730),v=r(2146),_=r(1660),g=r(4233),m=r(4141),O=g.UNSUPPORTED_Y,T=4294967295,R=Math.min,I=[].push,N=i(/./.exec),C=i(I),b=i("".slice),S=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));s("split",(function(e,t,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var i=h(l(this)),s=void 0===r?T:r>>>0;if(0===s)return[];if(void 0===e)return[i];if(!c(e))return o(t,i,e,s);for(var a,u,f,p=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,v=new RegExp(e.source,d+"g");(a=o(_,v,i))&&!((u=v.lastIndex)>y&&(C(p,b(i,y,a.index)),a.length>1&&a.index<i.length&&n(I,p,E(a,1)),f=a[0].length,y=u,p.length>=s));)v.lastIndex===a.index&&v.lastIndex++;return y===i.length?!f&&N(v,"")||C(p,""):C(p,b(i,y)),p.length>s?E(p,0,s):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:o(t,this,e,r)}:t,[function(t,r){var n=l(this),s=u(t)?void 0:y(t,e);return s?o(s,t,n,r):o(i,h(n),t,r)},function(e,n){var o=a(this),s=h(e),u=r(i,o,s,n,i!==t);if(u.done)return u.value;var c=f(o,RegExp),l=o.unicode,y=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(O?"g":"y"),E=new c(O?"^(?:"+o.source+")":o,y),_=void 0===n?T:n>>>0;if(0===_)return[];if(0===s.length)return null===v(E,s)?[s]:[];for(var g=0,m=0,I=[];m<s.length;){E.lastIndex=O?0:m;var N,S=v(E,O?b(s,m):s);if(null===S||(N=R(d(E.lastIndex+(O?m:0)),s.length))===g)m=p(s,m,l);else{if(C(I,b(s,g,m)),I.length===_)return I;for(var A=1;A<=S.length-1;A++)if(C(I,S[A]),I.length===_)return I;m=g=N}}return C(I,b(s,g)),I}]}),!S,O)},9172:function(e,t,r){"use strict";var n=r(4866),o=r(2383),i=r(9107),s=r(9720),a=r(4726),u=r(2931),c=r(5793),l=r(4141),f=r(1163),p=r(8931),d=r(1571),h=r(4221),y=r(7277),E=r(9274),v=r(2499),_=r(5565),g=r(3555),m=r(1242),O=r(6584),T=r(6920),R=r(9097),I=r(4317),N=r(3633),C=r(7225),b=r(4405),S=r(6402),A=r(6033),M=r(8164),w=r(858),U=r(9140),x=r(7216),L=r(8225),P=r(3706),k=r(5125),D=r(7417),H=r(888).forEach,B=A("hidden"),G="Symbol",F=D.set,j=D.getterFor(G),W=Object.prototype,q=o.Symbol,V=q&&q.prototype,K=o.TypeError,J=o.QObject,z=R.f,Y=I.f,X=O.f,$=C.f,Q=s([].push),Z=S("symbols"),ee=S("op-symbols"),te=S("wks"),re=!J||!J.prototype||!J.prototype.findChild,ne=u&&l((function(){return 7!=_(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=z(W,t);n&&delete W[t],Y(e,t,r),n&&e!==W&&Y(W,t,n)}:Y,oe=function(e,t){var r=Z[e]=_(V);return F(r,{type:G,tag:e,description:t}),u||(r.description=t),r},ie=function(e,t,r){e===W&&ie(ee,t,r),d(e);var n=y(t);return d(r),f(Z,n)?(r.enumerable?(f(e,B)&&e[B][n]&&(e[B][n]=!1),r=_(r,{enumerable:v(0,!1)})):(f(e,B)||Y(e,B,v(1,{})),e[B][n]=!0),ne(e,n,r)):Y(e,n,r)},se=function(e,t){d(e);var r=h(t),n=g(r).concat(le(r));return H(n,(function(t){u&&!i(ae,r,t)||ie(e,t,r[t])})),e},ae=function(e){var t=y(e),r=i($,this,t);return!(this===W&&f(Z,t)&&!f(ee,t))&&(!(r||!f(this,t)||!f(Z,t)||f(this,B)&&this[B][t])||r)},ue=function(e,t){var r=h(e),n=y(t);if(r!==W||!f(Z,n)||f(ee,n)){var o=z(r,n);return!o||!f(Z,n)||f(r,B)&&r[B][n]||(o.enumerable=!0),o}},ce=function(e){var t=X(h(e)),r=[];return H(t,(function(e){f(Z,e)||f(M,e)||Q(r,e)})),r},le=function(e){var t=e===W,r=X(t?ee:h(e)),n=[];return H(r,(function(e){!f(Z,e)||t&&!f(W,e)||Q(n,Z[e])})),n};c||(q=function(){if(p(V,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?E(arguments[0]):void 0,t=w(e),r=function(e){this===W&&i(r,ee,e),f(this,B)&&f(this[B],t)&&(this[B][t]=!1),ne(this,t,v(1,e))};return u&&re&&ne(W,t,{configurable:!0,set:r}),oe(t,e)},b(V=q.prototype,"toString",(function(){return j(this).tag})),b(q,"withoutSetter",(function(e){return oe(w(e),e)})),C.f=ae,I.f=ie,N.f=se,R.f=ue,m.f=O.f=ce,T.f=le,x.f=function(e){return oe(U(e),e)},u&&(Y(V,"description",{configurable:!0,get:function(){return j(this).description}}),a||b(W,"propertyIsEnumerable",ae,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),H(g(te),(function(e){L(e)})),n({target:G,stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?_(e):se(_(e),t)},defineProperty:ie,defineProperties:se,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ce}),P(),k(q,G),M[B]=!0},4201:function(e,t,r){"use strict";var n=r(4866),o=r(2931),i=r(2383),s=r(9720),a=r(1163),u=r(1045),c=r(8931),l=r(9274),f=r(4317).f,p=r(5751),d=i.Symbol,h=d&&d.prototype;if(o&&u(d)&&(!("description"in h)||void 0!==d().description)){var y={},E=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(h,this)?new d(e):void 0===e?d():d(e);return""===e&&(y[t]=!0),t};p(E,d),E.prototype=h,h.constructor=E;var v="Symbol(test)"==String(d("test")),_=s(h.valueOf),g=s(h.toString),m=/^Symbol\((.*)\)[^)]+$/,O=s("".replace),T=s("".slice);f(h,"description",{configurable:!0,get:function(){var e=_(this);if(a(y,e))return"";var t=g(e),r=v?T(t,7,-1):O(t,m,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:E})}},2718:function(e,t,r){var n=r(4866),o=r(7300),i=r(1163),s=r(9274),a=r(6402),u=r(6125),c=a("string-to-symbol-registry"),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=s(e);if(i(c,t))return c[t];var r=o("Symbol")(t);return c[t]=r,l[r]=t,r}})},6864:function(e,t,r){r(8225)("iterator")},514:function(e,t,r){r(9172),r(2718),r(2183),r(7675),r(954)},2183:function(e,t,r){var n=r(4866),o=r(1163),i=r(6894),s=r(7632),a=r(6402),u=r(6125),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!i(e))throw TypeError(s(e)+" is not a symbol");if(o(c,e))return c[e]}})},8548:function(e,t,r){"use strict";var n=r(9720),o=r(5861),i=n(r(5239)),s=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},6921:function(e,t,r){"use strict";var n=r(5861),o=r(888).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},8346:function(e,t,r){"use strict";var n=r(5861),o=r(9732),i=r(7386),s=r(6837),a=r(9107),u=r(9720),c=r(4141),l=n.aTypedArray,f=n.exportTypedArrayMethod,p=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===p(s(this),0,3)?i(e):+e;return a(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},3849:function(e,t,r){"use strict";var n=r(5861),o=r(888).filter,i=r(1390),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(s(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},2728:function(e,t,r){"use strict";var n=r(5861),o=r(888).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},6781:function(e,t,r){"use strict";var n=r(5861),o=r(888).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},3039:function(e,t,r){"use strict";var n=r(5861),o=r(888).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2258:function(e,t,r){"use strict";var n=r(5861),o=r(7351).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},316:function(e,t,r){"use strict";var n=r(5861),o=r(7351).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2446:function(e,t,r){"use strict";var n=r(2383),o=r(4141),i=r(9720),s=r(5861),a=r(1685),u=r(9140)("iterator"),c=n.Uint8Array,l=i(a.values),f=i(a.keys),p=i(a.entries),d=s.aTypedArray,h=s.exportTypedArrayMethod,y=c&&c.prototype,E=!o((function(){y[u].call([1])})),v=!!y&&y.values&&y[u]===y.values&&"values"===y.values.name,_=function(){return l(d(this))};h("entries",(function(){return p(d(this))}),E),h("keys",(function(){return f(d(this))}),E),h("values",_,E||!v,{name:"values"}),h(u,_,E||!v,{name:"values"})},695:function(e,t,r){"use strict";var n=r(5861),o=r(9720),i=n.aTypedArray,s=n.exportTypedArrayMethod,a=o([].join);s("join",(function(e){return a(i(this),e)}))},6776:function(e,t,r){"use strict";var n=r(5861),o=r(7841),i=r(1959),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,s(this),t>1?[e,arguments[1]]:[e])}))},1922:function(e,t,r){"use strict";var n=r(5861),o=r(888).map,i=r(7106),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(s(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},7146:function(e,t,r){"use strict";var n=r(5861),o=r(6653).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},8844:function(e,t,r){"use strict";var n=r(5861),o=r(6653).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},3641:function(e,t,r){"use strict";var n=r(5861),o=n.aTypedArray,i=n.exportTypedArrayMethod,s=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=s(r/2),i=0;i<n;)e=t[i],t[i++]=t[--r],t[r]=e;return t}))},650:function(e,t,r){"use strict";var n=r(2383),o=r(9107),i=r(5861),s=r(2398),a=r(5276),u=r(4569),c=r(4141),l=n.RangeError,f=n.Int8Array,p=f&&f.prototype,d=p&&p.set,h=i.aTypedArray,y=i.exportTypedArrayMethod,E=!c((function(){var e=new Uint8ClampedArray(2);return o(d,e,{length:1,0:3},1),3!==e[1]})),v=E&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));y("set",(function(e){h(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=u(e);if(E)return o(d,this,r,t);var n=this.length,i=s(r),c=0;if(i+t>n)throw l("Wrong length");for(;c<i;)this[t+c]=r[c++]}),!E||v)},9951:function(e,t,r){"use strict";var n=r(5861),o=r(7106),i=r(4141),s=r(942),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",(function(e,t){for(var r=s(a(this),e,t),n=o(this),i=0,u=r.length,c=new n(u);u>i;)c[i]=r[i++];return c}),i((function(){new Int8Array(1).slice()})))},2426:function(e,t,r){"use strict";var n=r(5861),o=r(888).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},5488:function(e,t,r){"use strict";var n=r(2383),o=r(9720),i=r(4141),s=r(9181),a=r(5416),u=r(5861),c=r(3975),l=r(8482),f=r(583),p=r(3701),d=u.aTypedArray,h=u.exportTypedArrayMethod,y=n.Uint16Array,E=y&&o(y.prototype.sort),v=!(!E||i((function(){E(new y(2),null)}))&&i((function(){E(new y(2),{})}))),_=!!E&&!i((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(p)return p<602;var e,t,r=new y(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(E(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&s(e),_?E(this,e):a(d(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!_||v)},8542:function(e,t,r){"use strict";var n=r(5861),o=r(2844),i=r(3943),s=r(7106),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=a(this),n=r.length,u=i(e,n);return new(s(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-u))}))},4740:function(e,t,r){"use strict";var n=r(2383),o=r(7841),i=r(5861),s=r(4141),a=r(942),u=n.Int8Array,c=i.aTypedArray,l=i.exportTypedArrayMethod,f=[].toLocaleString,p=!!u&&s((function(){f.call(new u(1))}));l("toLocaleString",(function(){return o(f,p?a(c(this)):c(this),a(arguments))}),s((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!s((function(){u.prototype.toLocaleString.call([1,2])})))},4822:function(e,t,r){"use strict";var n=r(5861).exportTypedArrayMethod,o=r(4141),i=r(2383),s=r(9720),a=i.Uint8Array,u=a&&a.prototype||{},c=[].toString,l=s([].join);o((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;n("toString",c,f)},3536:function(e,t,r){r(7466)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},7988:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),s=r(4890),a=r(6493),u=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in o)o[c]&&u(n[c]&&n[c].prototype);u(i)},4261:function(e,t,r){var n=r(2383),o=r(9286),i=r(5977),s=r(1685),a=r(6493),u=r(9140),c=u("iterator"),l=u("toStringTag"),f=s.values,p=function(e,t){if(e){if(e[c]!==f)try{a(e,c,f)}catch(t){e[c]=f}if(e[l]||a(e,l,t),o[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(t){e[r]=s[r]}}};for(var d in o)p(n[d]&&n[d].prototype,d);p(i,"DOMTokenList")},8259:function(e,t,r){var n=r(4866),o=r(2383),i=r(3257).setInterval;n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},2606:function(e,t,r){var n=r(4866),o=r(2383),i=r(3257).setTimeout;n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},6181:function(e,t,r){r(8259),r(2606)},5709:function(e,t,r){"use strict";r(1685);var n=r(4866),o=r(2383),i=r(9107),s=r(9720),a=r(2931),u=r(9677),c=r(4405),l=r(4766),f=r(5125),p=r(9437),d=r(7417),h=r(9112),y=r(1045),E=r(1163),v=r(3847),_=r(6837),g=r(1571),m=r(7809),O=r(9274),T=r(5565),R=r(2499),I=r(6151),N=r(1328),C=r(248),b=r(9140),S=r(5416),A=b("iterator"),M="URLSearchParams",w="URLSearchParamsIterator",U=d.set,x=d.getterFor(M),L=d.getterFor(w),P=Object.getOwnPropertyDescriptor,k=function(e){if(!a)return o[e];var t=P(o,e);return t&&t.value},D=k("fetch"),H=k("Request"),B=k("Headers"),G=H&&H.prototype,F=B&&B.prototype,j=o.RegExp,W=o.TypeError,q=o.decodeURIComponent,V=o.encodeURIComponent,K=s("".charAt),J=s([].join),z=s([].push),Y=s("".replace),X=s([].shift),$=s([].splice),Q=s("".split),Z=s("".slice),ee=/\+/g,te=Array(4),re=function(e){return te[e-1]||(te[e-1]=j("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return q(e)}catch(t){return e}},oe=function(e){var t=Y(e,ee," "),r=4;try{return q(t)}catch(e){for(;r;)t=Y(t,re(r--),ne);return t}},ie=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return se[e]},ue=function(e){return Y(V(e),ie,ae)},ce=p((function(e,t){U(this,{type:w,iterator:I(x(e).entries),kind:t})}),"Iterator",(function(){var e=L(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(m(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?Z(e,1):e:O(e)))};le.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,s,a,u,c=N(e);if(c)for(r=(t=I(e,c)).next;!(n=i(r,t)).done;){if(s=(o=I(g(n.value))).next,(a=i(s,o)).done||(u=i(s,o)).done||!i(s,o).done)throw W("Expected sequence with length 2");z(this.entries,{key:O(a.value),value:O(u.value)})}else for(var l in e)E(e,l)&&z(this.entries,{key:l,value:O(e[l])})},parseQuery:function(e){if(e)for(var t,r,n=Q(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=Q(t,"="),z(this.entries,{key:oe(X(r)),value:oe(J(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],z(r,ue(e.key)+"="+ue(e.value));return J(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){h(this,pe);var e=arguments.length>0?arguments[0]:void 0;U(this,new le(e))},pe=fe.prototype;if(l(pe,{append:function(e,t){C(arguments.length,2);var r=x(this);z(r.entries,{key:O(e),value:O(t)}),r.updateURL()},delete:function(e){C(arguments.length,1);for(var t=x(this),r=t.entries,n=O(e),o=0;o<r.length;)r[o].key===n?$(r,o,1):o++;t.updateURL()},get:function(e){C(arguments.length,1);for(var t=x(this).entries,r=O(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){C(arguments.length,1);for(var t=x(this).entries,r=O(e),n=[],o=0;o<t.length;o++)t[o].key===r&&z(n,t[o].value);return n},has:function(e){C(arguments.length,1);for(var t=x(this).entries,r=O(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){C(arguments.length,1);for(var r,n=x(this),o=n.entries,i=!1,s=O(e),a=O(t),u=0;u<o.length;u++)(r=o[u]).key===s&&(i?$(o,u--,1):(i=!0,r.value=a));i||z(o,{key:s,value:a}),n.updateURL()},sort:function(){var e=x(this);S(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=x(this).entries,n=v(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(pe,A,pe.entries,{name:"entries"}),c(pe,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),f(fe,M),n({global:!0,constructor:!0,forced:!u},{URLSearchParams:fe}),!u&&y(B)){var de=s(F.has),he=s(F.set),ye=function(e){if(m(e)){var t,r=e.body;if(_(r)===M)return t=e.headers?new B(e.headers):new B,de(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(e,{body:R(0,O(r)),headers:R(0,t)})}return e};if(y(D)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return D(e,arguments.length>1?ye(arguments[1]):{})}}),y(H)){var Ee=function(e){return h(this,G),new H(e,arguments.length>1?ye(arguments[1]):{})};G.constructor=Ee,Ee.prototype=G,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ee})}}e.exports={URLSearchParams:fe,getState:x}},8385:function(e,t,r){r(5709)},1672:function(e,t,r){"use strict";r(2486);var n,o=r(4866),i=r(2931),s=r(9677),a=r(2383),u=r(3847),c=r(9720),l=r(4405),f=r(2886),p=r(9112),d=r(1163),h=r(7411),y=r(1601),E=r(9730),v=r(7957).codeAt,_=r(9492),g=r(9274),m=r(5125),O=r(248),T=r(5709),R=r(7417),I=R.set,N=R.getterFor("URL"),C=T.URLSearchParams,b=T.getState,S=a.URL,A=a.TypeError,M=a.parseInt,w=Math.floor,U=Math.pow,x=c("".charAt),L=c(/./.exec),P=c([].join),k=c(1..toString),D=c([].pop),H=c([].push),B=c("".replace),G=c([].shift),F=c("".split),j=c("".slice),W=c("".toLowerCase),q=c([].unshift),V="Invalid scheme",K="Invalid host",J="Invalid port",z=/[a-z]/i,Y=/[\d+-.a-z]/i,X=/\d/,$=/^0x/i,Q=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)q(t,e%256),e=w(e/256);return P(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=k(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},se={},ae=h({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),ue=h({},ae,{"#":1,"?":1,"{":1,"}":1}),ce=h({},ue,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var r=v(e,0);return r>32&&r<127&&!d(t,e)?e:encodeURIComponent(e)},fe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2==e.length&&L(z,x(e,0))&&(":"==(r=x(e,1))||!t&&"|"==r)},de=function(e){var t;return e.length>1&&pe(j(e,0,2))&&(2==e.length||"/"===(t=x(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===W(e)},ye={},Ee={},ve={},_e={},ge={},me={},Oe={},Te={},Re={},Ie={},Ne={},Ce={},be={},Se={},Ae={},Me={},we={},Ue={},xe={},Le={},Pe={},ke=function(e,t,r){var n,o,i,s=g(e);if(t){if(o=this.parse(s))throw A(o);this.searchParams=null}else{if(void 0!==r&&(n=new ke(r,!0)),o=this.parse(s,null,n))throw A(o);(i=b(new C)).bindURL(this),this.searchParams=i}};ke.prototype={type:"URL",parse:function(e,t,r){var o,i,s,a,u,c=this,l=t||ye,f=0,p="",h=!1,v=!1,_=!1;for(e=g(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,ne,"")),e=B(e,oe,""),o=y(e);f<=o.length;){switch(i=o[f],l){case ye:if(!i||!L(z,i)){if(t)return V;l=ve;continue}p+=W(i),l=Ee;break;case Ee:if(i&&(L(Y,i)||"+"==i||"-"==i||"."==i))p+=W(i);else{if(":"!=i){if(t)return V;p="",l=ve,f=0;continue}if(t&&(c.isSpecial()!=d(fe,p)||"file"==p&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=p,t)return void(c.isSpecial()&&fe[c.scheme]==c.port&&(c.port=null));p="","file"==c.scheme?l=Se:c.isSpecial()&&r&&r.scheme==c.scheme?l=_e:c.isSpecial()?l=Te:"/"==o[f+1]?(l=ge,f++):(c.cannotBeABaseURL=!0,H(c.path,""),l=xe)}break;case ve:if(!r||r.cannotBeABaseURL&&"#"!=i)return V;if(r.cannotBeABaseURL&&"#"==i){c.scheme=r.scheme,c.path=E(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Pe;break}l="file"==r.scheme?Se:me;continue;case _e:if("/"!=i||"/"!=o[f+1]){l=me;continue}l=Re,f++;break;case ge:if("/"==i){l=Ie;break}l=Ue;continue;case me:if(c.scheme=r.scheme,i==n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query=r.query;else if("/"==i||"\\"==i&&c.isSpecial())l=Oe;else if("?"==i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query="",l=Le;else{if("#"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.path.length--,l=Ue;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=E(r.path),c.query=r.query,c.fragment="",l=Pe}break;case Oe:if(!c.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Ue;continue}l=Ie}else l=Re;break;case Te:if(l=Re,"/"!=i||"/"!=x(p,f+1))continue;f++;break;case Re:if("/"!=i&&"\\"!=i){l=Ie;continue}break;case Ie:if("@"==i){h&&(p="%40"+p),h=!0,s=y(p);for(var m=0;m<s.length;m++){var O=s[m];if(":"!=O||_){var T=le(O,ce);_?c.password+=T:c.username+=T}else _=!0}p=""}else if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(h&&""==p)return"Invalid authority";f-=y(p).length+1,p="",l=Ne}else p+=i;break;case Ne:case Ce:if(t&&"file"==c.scheme){l=Me;continue}if(":"!=i||v){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()){if(c.isSpecial()&&""==p)return K;if(t&&""==p&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(p))return a;if(p="",l=we,t)return;continue}"["==i?v=!0:"]"==i&&(v=!1),p+=i}else{if(""==p)return K;if(a=c.parseHost(p))return a;if(p="",l=be,t==Ce)return}break;case be:if(!L(X,i)){if(i==n||"/"==i||"?"==i||"#"==i||"\\"==i&&c.isSpecial()||t){if(""!=p){var R=M(p,10);if(R>65535)return J;c.port=c.isSpecial()&&R===fe[c.scheme]?null:R,p=""}if(t)return;l=we;continue}return J}p+=i;break;case Se:if(c.scheme="file","/"==i||"\\"==i)l=Ae;else{if(!r||"file"!=r.scheme){l=Ue;continue}if(i==n)c.host=r.host,c.path=E(r.path),c.query=r.query;else if("?"==i)c.host=r.host,c.path=E(r.path),c.query="",l=Le;else{if("#"!=i){de(P(E(o,f),""))||(c.host=r.host,c.path=E(r.path),c.shortenPath()),l=Ue;continue}c.host=r.host,c.path=E(r.path),c.query=r.query,c.fragment="",l=Pe}}break;case Ae:if("/"==i||"\\"==i){l=Me;break}r&&"file"==r.scheme&&!de(P(E(o,f),""))&&(pe(r.path[0],!0)?H(c.path,r.path[0]):c.host=r.host),l=Ue;continue;case Me:if(i==n||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(p))l=Ue;else if(""==p){if(c.host="",t)return;l=we}else{if(a=c.parseHost(p))return a;if("localhost"==c.host&&(c.host=""),t)return;p="",l=we}continue}p+=i;break;case we:if(c.isSpecial()){if(l=Ue,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=n&&(l=Ue,"/"!=i))continue}else c.fragment="",l=Pe;else c.query="",l=Le;break;case Ue:if(i==n||"/"==i||"\\"==i&&c.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(u=W(u=p))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==i||"\\"==i&&c.isSpecial()||H(c.path,"")):he(p)?"/"==i||"\\"==i&&c.isSpecial()||H(c.path,""):("file"==c.scheme&&!c.path.length&&pe(p)&&(c.host&&(c.host=""),p=x(p,0)+":"),H(c.path,p)),p="","file"==c.scheme&&(i==n||"?"==i||"#"==i))for(;c.path.length>1&&""===c.path[0];)G(c.path);"?"==i?(c.query="",l=Le):"#"==i&&(c.fragment="",l=Pe)}else p+=le(i,ue);break;case xe:"?"==i?(c.query="",l=Le):"#"==i?(c.fragment="",l=Pe):i!=n&&(c.path[0]+=le(i,se));break;case Le:t||"#"!=i?i!=n&&("'"==i&&c.isSpecial()?c.query+="%27":c.query+="#"==i?"%23":le(i,se)):(c.fragment="",l=Pe);break;case Pe:i!=n&&(c.fragment+=le(i,ae))}f++}},parseHost:function(e){var t,r,n;if("["==x(e,0)){if("]"!=x(e,e.length-1))return K;if(t=function(e){var t,r,n,o,i,s,a,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,p=function(){return x(e,f)};if(":"==p()){if(":"!=x(e,1))return;f+=2,l=++c}for(;p();){if(8==c)return;if(":"!=p()){for(t=r=0;r<4&&L(ee,p());)t=16*t+M(p(),16),f++,r++;if("."==p()){if(0==r)return;if(f-=r,c>6)return;for(n=0;p();){if(o=null,n>0){if(!("."==p()&&n<4))return;f++}if(!L(X,p()))return;for(;L(X,p());){if(i=M(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;f++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(s=c-l,c=7;0!=c&&s>0;)a=u[c],u[c--]=u[l+s-1],u[l+--s]=a;else if(8!=c)return;return u}(j(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=_(e),L(te,e))return K;if(t=function(e){var t,r,n,o,i,s,a,u=F(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==x(o,0)&&(i=L($,o)?16:8,o=j(o,8==i?1:2)),""===o)s=0;else{if(!L(10==i?Z:8==i?Q:ee,o))return e;s=M(o,i)}H(r,s)}for(n=0;n<t;n++)if(s=r[n],n==t-1){if(s>=U(256,5-t))return null}else if(s>255)return null;for(a=D(r),n=0;n<r.length;n++)a+=r[n]*U(256,3-n);return a}(e),null===t)return K;this.host=t}else{if(L(re,e))return K;for(t="",r=y(e),n=0;n<r.length;n++)t+=le(r[n],se);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(fe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,s=e.path,a=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=ie(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?s[0]:s.length?"/"+P(s,"/"):"",null!==a&&(c+="?"+a),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new De(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(g(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=y(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=le(t[r],ce)}},getPassword:function(){return this.password},setPassword:function(e){var t=y(g(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=le(t[r],ce)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Ne)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":g(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=g(e))?this.port=null:this.parse(e,be))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+P(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,we))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=g(e))?this.query=null:("?"==x(e,0)&&(e=j(e,1)),this.query="",this.parse(e,Le)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=g(e))?("#"==x(e,0)&&(e=j(e,1)),this.fragment="",this.parse(e,Pe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var De=function(e){var t=p(this,He),r=O(arguments.length,1)>1?arguments[1]:void 0,n=I(t,new ke(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},He=De.prototype,Be=function(e,t){return{get:function(){return N(this)[e]()},set:t&&function(e){return N(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(He,"href",Be("serialize","setHref")),f(He,"origin",Be("getOrigin")),f(He,"protocol",Be("getProtocol","setProtocol")),f(He,"username",Be("getUsername","setUsername")),f(He,"password",Be("getPassword","setPassword")),f(He,"host",Be("getHost","setHost")),f(He,"hostname",Be("getHostname","setHostname")),f(He,"port",Be("getPort","setPort")),f(He,"pathname",Be("getPathname","setPathname")),f(He,"search",Be("getSearch","setSearch")),f(He,"searchParams",Be("getSearchParams")),f(He,"hash",Be("getHash","setHash"))),l(He,"toJSON",(function(){return N(this).serialize()}),{enumerable:!0}),l(He,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),S){var Ge=S.createObjectURL,Fe=S.revokeObjectURL;Ge&&l(De,"createObjectURL",u(Ge,S)),Fe&&l(De,"revokeObjectURL",u(Fe,S))}m(De,"URL"),o({global:!0,constructor:!0,forced:!s,sham:!i},{URL:De})},4838:function(e,t,r){r(1672)},9168:function(e){e.exports=r;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var o={},i={};function s(e,t){var r,n,s;return t?(s=0<=(e>>>=0)&&e<256)&&(n=i[e])?n:(r=u(e,(0|e)<0?-1:0,!0),s&&(i[e]=r),r):(s=-128<=(e|=0)&&e<128)&&(n=o[e])?n:(r=u(e,e<0?-1:0,!1),s&&(o[e]=r),r)}function a(e,t){if(isNaN(e))return t?v:E;if(t){if(e<0)return v;if(e>=d)return T}else{if(e<=-h)return R;if(e+1>=h)return O}return e<0?a(-e,t).neg():u(e%p|0,e/p|0,t)}function u(e,t,n){return new r(e,t,n)}r.fromInt=s,r.fromNumber=a,r.fromBits=u;var c=Math.pow;function l(e,t,r){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return E;if("number"==typeof t?(r=t,t=!1):t=!!t,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return l(e.substring(1),t,r).neg();for(var o=a(c(r,8)),i=E,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),f=parseInt(e.substring(s,s+u),r);if(u<8){var p=a(c(r,u));i=i.mul(p).add(a(f))}else i=(i=i.mul(o)).add(a(f))}return i.unsigned=t,i}function f(e,t){return"number"==typeof e?a(e,t):"string"==typeof e?l(e,t):u(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=l,r.fromValue=f;var p=4294967296,d=p*p,h=d/2,y=s(1<<24),E=s(0);r.ZERO=E;var v=s(0,!0);r.UZERO=v;var _=s(1);r.ONE=_;var g=s(1,!0);r.UONE=g;var m=s(-1);r.NEG_ONE=m;var O=u(-1,2147483647,!1);r.MAX_VALUE=O;var T=u(-1,-1,!0);r.MAX_UNSIGNED_VALUE=T;var R=u(0,-2147483648,!1);r.MIN_VALUE=R;var I=r.prototype;I.toInt=function(){return this.unsigned?this.low>>>0:this.low},I.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},I.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(R)){var t=a(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=a(c(e,6),this.unsigned),i=this,s="";;){var u=i.div(o),l=(i.sub(u.mul(o)).toInt()>>>0).toString(e);if((i=u).isZero())return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}},I.getHighBits=function(){return this.high},I.getHighBitsUnsigned=function(){return this.high>>>0},I.getLowBits=function(){return this.low},I.getLowBitsUnsigned=function(){return this.low>>>0},I.getNumBitsAbs=function(){if(this.isNegative())return this.eq(R)?64:this.neg().getNumBitsAbs();for(var 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},I.isZero=function(){return 0===this.high&&0===this.low},I.eqz=I.isZero,I.isNegative=function(){return!this.unsigned&&this.high<0},I.isPositive=function(){return this.unsigned||this.high>=0},I.isOdd=function(){return 1==(1&this.low)},I.isEven=function(){return 0==(1&this.low)},I.equals=function(e){return n(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},I.eq=I.equals,I.notEquals=function(e){return!this.eq(e)},I.neq=I.notEquals,I.ne=I.notEquals,I.lessThan=function(e){return this.comp(e)<0},I.lt=I.lessThan,I.lessThanOrEqual=function(e){return this.comp(e)<=0},I.lte=I.lessThanOrEqual,I.le=I.lessThanOrEqual,I.greaterThan=function(e){return this.comp(e)>0},I.gt=I.greaterThan,I.greaterThanOrEqual=function(e){return this.comp(e)>=0},I.gte=I.greaterThanOrEqual,I.ge=I.greaterThanOrEqual,I.compare=function(e){if(n(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&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},I.comp=I.compare,I.negate=function(){return!this.unsigned&&this.eq(R)?R:this.not().add(_)},I.neg=I.negate,I.add=function(e){n(e)||(e=f(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,c=e.low>>>16,l=0,p=0,d=0,h=0;return d+=(h+=i+(65535&e.low))>>>16,p+=(d+=o+c)>>>16,l+=(p+=r+a)>>>16,l+=t+s,u((d&=65535)<<16|(h&=65535),(l&=65535)<<16|(p&=65535),this.unsigned)},I.subtract=function(e){return n(e)||(e=f(e)),this.add(e.neg())},I.sub=I.subtract,I.multiply=function(e){if(this.isZero())return E;if(n(e)||(e=f(e)),t)return u(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return E;if(this.eq(R))return e.isOdd()?R:E;if(e.eq(R))return this.isOdd()?R:E;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return a(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,s=65535&this.low,c=e.high>>>16,l=65535&e.high,p=e.low>>>16,d=65535&e.low,h=0,v=0,_=0,g=0;return _+=(g+=s*d)>>>16,v+=(_+=i*d)>>>16,_&=65535,v+=(_+=s*p)>>>16,h+=(v+=o*d)>>>16,v&=65535,h+=(v+=i*p)>>>16,v&=65535,h+=(v+=s*l)>>>16,h+=r*d+o*p+i*l+s*c,u((_&=65535)<<16|(g&=65535),(h&=65535)<<16|(v&=65535),this.unsigned)},I.mul=I.multiply,I.divide=function(e){if(n(e)||(e=f(e)),e.isZero())throw Error("division by zero");var r,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?u((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:E;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return v;if(e.gt(this.shru(1)))return g;i=v}else{if(this.eq(R))return e.eq(_)||e.eq(m)?R:e.eq(R)?_:(r=this.shr(1).div(e).shl(1)).eq(E)?e.isNegative()?_:m:(o=this.sub(e.mul(r)),i=r.add(o.div(e)));if(e.eq(R))return this.unsigned?v:E;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();i=E}for(o=this;o.gte(e);){r=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),l=s<=48?1:c(2,s-48),p=a(r),d=p.mul(e);d.isNegative()||d.gt(o);)d=(p=a(r-=l,this.unsigned)).mul(e);p.isZero()&&(p=_),i=i.add(p),o=o.sub(d)}return i},I.div=I.divide,I.modulo=function(e){return n(e)||(e=f(e)),t?u((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},I.mod=I.modulo,I.rem=I.modulo,I.not=function(){return u(~this.low,~this.high,this.unsigned)},I.and=function(e){return n(e)||(e=f(e)),u(this.low&e.low,this.high&e.high,this.unsigned)},I.or=function(e){return n(e)||(e=f(e)),u(this.low|e.low,this.high|e.high,this.unsigned)},I.xor=function(e){return n(e)||(e=f(e)),u(this.low^e.low,this.high^e.high,this.unsigned)},I.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):u(0,this.low<<e-32,this.unsigned)},I.shl=I.shiftLeft,I.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?u(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):u(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},I.shr=I.shiftRight,I.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?u(this.low>>>e|t<<32-e,t>>>e,this.unsigned):u(32===e?t:t>>>e-32,0,this.unsigned)},I.shru=I.shiftRightUnsigned,I.shr_u=I.shiftRightUnsigned,I.toSigned=function(){return this.unsigned?u(this.low,this.high,!1):this},I.toUnsigned=function(){return this.unsigned?this:u(this.low,this.high,!0)},I.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},I.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},I.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},453:function(e,t,r){"use strict";e.exports=r(2833)},4759:function(e){"use strict";e.exports=n;var t,r=/\/|\./;function n(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),n[e]=t}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:t}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(e){return n[e]||null}},1622:function(e,t,r){"use strict";var n=t,o=r(8052),i=r(3218);function s(e,t,r,n){if(t.resolvedType)if(t.resolvedType instanceof o){e("switch(d%s){",n);for(var i=t.resolvedType.values,s=Object.keys(i),a=0;a<s.length;++a)t.repeated&&i[s[a]]===t.typeDefault&&e("default:"),e("case%j:",s[a])("case %i:",i[s[a]])("m%s=%j",n,i[s[a]])("break");e("}")}else e('if(typeof d%s!=="object")',n)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",n,r,n);else{var u=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",n,n);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",n,n,u)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length)",n)("m%s=d%s",n,n);break;case"string":e("m%s=String(d%s)",n,n);break;case"bool":e("m%s=Boolean(d%s)",n,n)}}return e}function a(e,t,r,n){if(t.resolvedType)t.resolvedType instanceof o?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",n,r,n,n):e("d%s=types[%i].toObject(m%s,o)",n,r,n);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,i?"true":"",n);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:e("d%s=m%s",n,n)}}return e}n.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var n=0;n<t.length;++n){var a=t[n].resolve(),u=i.safeProp(a.name);a.map?(r("if(d%s){",u)('if(typeof d%s!=="object")',u)("throw TypeError(%j)",a.fullName+": object expected")("m%s={}",u)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",u),s(r,a,n,u+"[ks[i]]")("}")("}")):a.repeated?(r("if(d%s){",u)("if(!Array.isArray(d%s))",u)("throw TypeError(%j)",a.fullName+": array expected")("m%s=[]",u)("for(var i=0;i<d%s.length;++i){",u),s(r,a,n,u+"[i]")("}")("}")):(a.resolvedType instanceof o||r("if(d%s!=null){",u),s(r,a,n,u),a.resolvedType instanceof o||r("}"))}return r("return m")},n.toObject=function(e){var t=e.fieldsArray.slice().sort(i.compareFieldsById);if(!t.length)return i.codegen()("return {}");for(var r=i.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),n=[],s=[],u=[],c=0;c<t.length;++c)t[c].partOf||(t[c].resolve().repeated?n:t[c].map?s:u).push(t[c]);if(n.length){for(r("if(o.arrays||o.defaults){"),c=0;c<n.length;++c)r("d%s=[]",i.safeProp(n[c].name));r("}")}if(s.length){for(r("if(o.objects||o.defaults){"),c=0;c<s.length;++c)r("d%s={}",i.safeProp(s[c].name));r("}")}if(u.length){for(r("if(o.defaults){"),c=0;c<u.length;++c){var l=u[c],f=i.safeProp(l.name);if(l.resolvedType instanceof o)r("d%s=o.enums===String?%j:%j",f,l.resolvedType.valuesById[l.typeDefault],l.typeDefault);else if(l.long)r("if(util.Long){")("var n=new util.Long(%i,%i,%j)",l.typeDefault.low,l.typeDefault.high,l.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",f)("}else")("d%s=o.longs===String?%j:%i",f,l.typeDefault.toString(),l.typeDefault.toNumber());else if(l.bytes){var p="["+Array.prototype.slice.call(l.typeDefault).join(",")+"]";r("if(o.bytes===String)d%s=%j",f,String.fromCharCode.apply(String,l.typeDefault))("else{")("d%s=%s",f,p)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",f,f)("}")}else r("d%s=%j",f,l.typeDefault)}r("}")}var d=!1;for(c=0;c<t.length;++c){l=t[c];var h=e._fieldsArray.indexOf(l);f=i.safeProp(l.name),l.map?(d||(d=!0,r("var ks2")),r("if(m%s&&(ks2=Object.keys(m%s)).length){",f,f)("d%s={}",f)("for(var j=0;j<ks2.length;++j){"),a(r,l,h,f+"[ks2[j]]")("}")):l.repeated?(r("if(m%s&&m%s.length){",f,f)("d%s=[]",f)("for(var j=0;j<m%s.length;++j){",f),a(r,l,h,f+"[j]")("}")):(r("if(m%s!=null&&m.hasOwnProperty(%j)){",f,l.name),a(r,l,h,f),l.partOf&&r("if(o.oneofs)")("d%s=%j",i.safeProp(l.partOf.name),l.name)),r("}")}return r("return d")}},4514:function(e,t,r){"use strict";e.exports=function(e){var t=i.codegen(["r","l"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter((function(e){return e.map})).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");e.group&&t("if((t&7)===4)")("break"),t("switch(t>>>3){");for(var r=0;r<e.fieldsArray.length;++r){var a=e._fieldsArray[r].resolve(),u=a.resolvedType instanceof n?"int32":a.type,c="m"+i.safeProp(a.name);t("case %i:",a.id),a.map?(t("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),void 0!==o.defaults[a.keyType]?t("k=%j",o.defaults[a.keyType]):t("k=null"),void 0!==o.defaults[u]?t("value=%j",o.defaults[u]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===o.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):t("%s[k]=value",c)):a.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),void 0!==o.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,u)("}else"),void 0===o.basic[u]?t(a.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",c,r):t("%s.push(r.%s())",c,u)):void 0===o.basic[u]?t(a.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",c,r):t("%s=r.%s()",c,u),t("break")}for(t("default:")("r.skipType(t&7)")("break")("}")("}"),r=0;r<e._fieldsArray.length;++r){var l=e._fieldsArray[r];l.required&&t("if(!m.hasOwnProperty(%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",s(l))}return t("return m")};var n=r(8052),o=r(7767),i=r(3218);function s(e){return"missing required '"+e.name+"'"}},5701:function(e,t,r){"use strict";e.exports=function(e){for(var t,r=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(i.compareFieldsById),u=0;u<a.length;++u){var c=a[u].resolve(),l=e._fieldsArray.indexOf(c),f=c.resolvedType instanceof n?"int32":c.type,p=o.basic[f];t="m"+i.safeProp(c.name),c.map?(r("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",t,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",t)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|o.mapKey[c.keyType],c.keyType),void 0===p?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,f,t),r("}")("}")):c.repeated?(r("if(%s!=null&&%s.length){",t,t),c.packed&&void 0!==o.packed[f]?r("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",f,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===p?s(r,c,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,f,t)),r("}")):(c.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,c.name),void 0===p?s(r,c,l,t):r("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,f,t))}return r("return w")};var n=r(8052),o=r(7767),i=r(3218);function s(e,t,r,n){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}},8052:function(e,t,r){"use strict";e.exports=s;var n=r(8059);((s.prototype=Object.create(n.prototype)).constructor=s).className="Enum";var o=r(4072),i=r(3218);function s(e,t,r,o,i){if(n.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.reserved=void 0,t)for(var s=Object.keys(t),a=0;a<s.length;++a)"number"==typeof t[s[a]]&&(this.valuesById[this.values[s[a]]=t[s[a]]]=s[a])}s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["options",this.options,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this},s.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)}},1676:function(e,t,r){"use strict";e.exports=c;var n=r(8059);((c.prototype=Object.create(n.prototype)).constructor=c).className="Field";var o,i=r(8052),s=r(7767),a=r(3218),u=/^required|optional|repeated$/;function c(e,t,r,o,i,c,l){if(a.isObject(o)?(l=i,c=o,o=i=void 0):a.isObject(i)&&(l=c,c=i,i=void 0),n.call(this,e,c),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!u.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!a.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.required="required"===o,this.optional=!this.required,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=l}c.fromJSON=function(e,t){return new c(e,t.id,t.type,t.rule,t.extend,t.options,t.comment)},Object.defineProperty(c.prototype,"packed",{get:function(){return null===this._packed&&(this._packed=!1!==this.getOption("packed")),this._packed}}),c.prototype.setOption=function(e,t,r){return"packed"===e&&(this._packed=null),n.prototype.setOption.call(this,e,t,r)},c.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},c.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])&&(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(!0!==this.options.packed&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i)||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},c.d=function(e,t,r,n){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(o,i){a.decorateType(o.constructor).add(new c(i,e,t,r,{default:n}))}},c._configure=function(e){o=e}},1062:function(e,t,r){"use strict";var n=e.exports=r(1585);n.build="light",n.load=function(e,t,r){return"function"==typeof t?(r=t,t=new n.Root):t||(t=new n.Root),t.load(e,r)},n.loadSync=function(e,t){return t||(t=new n.Root),t.loadSync(e)},n.encoder=r(5701),n.decoder=r(4514),n.verifier=r(7227),n.converter=r(1622),n.ReflectionObject=r(8059),n.Namespace=r(4072),n.Root=r(2393),n.Enum=r(8052),n.Type=r(3084),n.Field=r(1676),n.OneOf=r(2631),n.MapField=r(8447),n.Service=r(7484),n.Method=r(3169),n.Message=r(5192),n.wrappers=r(6599),n.types=r(7767),n.util=r(3218),n.ReflectionObject._configure(n.Root),n.Namespace._configure(n.Type,n.Service,n.Enum),n.Root._configure(n.Type),n.Field._configure(n.Type)},1585:function(e,t,r){"use strict";var n=t;function o(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=r(7168),n.BufferWriter=r(4023),n.Reader=r(3124),n.BufferReader=r(8170),n.util=r(1986),n.rpc=r(531),n.roots=r(6742),n.configure=o,o()},2833:function(e,t,r){"use strict";var n=e.exports=r(1062);n.build="full",n.tokenize=r(4993),n.parse=r(9357),n.common=r(4759),n.Root._configure(n.Type,n.parse,n.common)},8447:function(e,t,r){"use strict";e.exports=s;var n=r(1676);((s.prototype=Object.create(n.prototype)).constructor=s).className="MapField";var o=r(7767),i=r(3218);function s(e,t,r,o,s,a){if(n.call(this,e,t,o,void 0,void 0,s,a),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===o.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return n.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(n,o){i.decorateType(n.constructor).add(new s(o,e,t,r))}}},5192:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}o.create=function(e){return this.$type.create(e)},o.encode=function(e,t){return this.$type.encode(e,t)},o.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},o.decode=function(e){return this.$type.decode(e)},o.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},o.verify=function(e){return this.$type.verify(e)},o.fromObject=function(e){return this.$type.fromObject(e)},o.toObject=function(e,t){return this.$type.toObject(e,t)},o.prototype.toJSON=function(){return this.$type.toObject(this,n.toJSONOptions)}},3169:function(e,t,r){"use strict";e.exports=i;var n=r(8059);((i.prototype=Object.create(n.prototype)).constructor=i).className="Method";var o=r(3218);function i(e,t,r,i,s,a,u,c,l){if(o.isObject(s)?(u=s,s=a=void 0):o.isObject(a)&&(u=a,a=void 0),void 0!==t&&!o.isString(t))throw TypeError("type must be a string");if(!o.isString(r))throw TypeError("requestType must be a string");if(!o.isString(i))throw TypeError("responseType must be a string");n.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=i,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=c,this.parsedOptions=l}i.fromJSON=function(e,t){return new i(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},i.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),n.prototype.resolve.call(this))}},4072:function(e,t,r){"use strict";e.exports=f;var n=r(8059);((f.prototype=Object.create(n.prototype)).constructor=f).className="Namespace";var o,i,s,a=r(1676),u=r(2631),c=r(3218);function l(e,t){if(e&&e.length){for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}}function f(e,t){n.call(this,e,t),this.nested=void 0,this._nestedArray=null}function p(e){return e._nestedArray=null,e}f.fromJSON=function(e,t){return new f(e,t.options).addJSON(t.nested)},f.arrayToJSON=l,f.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0;return!1},f.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(f.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=c.toArray(this.nested))}}),f.prototype.toJSON=function(e){return c.toObject(["options",this.options,"nested",l(this.nestedArray,e)])},f.prototype.addJSON=function(e){if(e)for(var t,r=Object.keys(e),n=0;n<r.length;++n)t=e[r[n]],this.add((void 0!==t.fields?o.fromJSON:void 0!==t.values?s.fromJSON:void 0!==t.methods?i.fromJSON:void 0!==t.id?a.fromJSON:f.fromJSON)(r[n],t));return this},f.prototype.get=function(e){return this.nested&&this.nested[e]||null},f.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof s)return this.nested[e].values;throw Error("no such enum: "+e)},f.prototype.add=function(e){if(!(e instanceof a&&void 0!==e.extend||e instanceof o||e instanceof s||e instanceof i||e instanceof f||e instanceof u))throw TypeError("object must be a valid nested object");if(this.nested){var t=this.get(e.name);if(t){if(!(t instanceof f&&e instanceof f)||t instanceof o||t instanceof i)throw Error("duplicate name '"+e.name+"' in "+this);for(var r=t.nestedArray,n=0;n<r.length;++n)e.add(r[n]);this.remove(t),this.nested||(this.nested={}),e.setOptions(t.options,!0)}}else this.nested={};return this.nested[e.name]=e,e.onAdd(this),p(this)},f.prototype.remove=function(e){if(!(e instanceof n))throw TypeError("object must be a ReflectionObject");if(e.parent!==this)throw Error(e+" is not a member of "+this);return delete this.nested[e.name],Object.keys(this.nested).length||(this.nested=void 0),e.onRemove(this),p(this)},f.prototype.define=function(e,t){if(c.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof f))throw Error("path conflicts with non-namespace objects")}else r.add(r=new f(n))}return t&&r.addJSON(t),r},f.prototype.resolveAll=function(){for(var e=this.nestedArray,t=0;t<e.length;)e[t]instanceof f?e[t++].resolveAll():e[t++].resolve();return this.resolve()},f.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),c.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.get(e[0]);if(n){if(1===e.length){if(!t||t.indexOf(n.constructor)>-1)return n}else if(n instanceof f&&(n=n.lookup(e.slice(1),t,!0)))return n}else for(var o=0;o<this.nestedArray.length;++o)if(this._nestedArray[o]instanceof f&&(n=this._nestedArray[o].lookup(e,t,!0)))return n;return null===this.parent||r?null:this.parent.lookup(e,t)},f.prototype.lookupType=function(e){var t=this.lookup(e,[o]);if(!t)throw Error("no such type: "+e);return t},f.prototype.lookupEnum=function(e){var t=this.lookup(e,[s]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},f.prototype.lookupTypeOrEnum=function(e){var t=this.lookup(e,[o,s]);if(!t)throw Error("no such Type or Enum '"+e+"' in "+this);return t},f.prototype.lookupService=function(e){var t=this.lookup(e,[i]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},f._configure=function(e,t,r){o=e,i=t,s=r}},8059:function(e,t,r){"use strict";e.exports=i,i.className="ReflectionObject";var n,o=r(3218);function i(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(i.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),i.prototype.toJSON=function(){throw Error()},i.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},i.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},i.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},i.prototype.getOption=function(e){if(this.options)return this.options[e]},i.prototype.setOption=function(e,t,r){return r&&this.options&&void 0!==this.options[e]||((this.options||(this.options={}))[e]=t),this},i.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var n=this.parsedOptions;if(r){var i=n.find((function(t){return Object.prototype.hasOwnProperty.call(t,e)}));if(i){var s=i[e];o.setProperty(s,r,t)}else(i={})[e]=o.setProperty({},r,t),n.push(i)}else{var a={};a[e]=t,n.push(a)}return this},i.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},i.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},i._configure=function(e){n=e}},2631:function(e,t,r){"use strict";e.exports=s;var n=r(8059);((s.prototype=Object.create(n.prototype)).constructor=s).className="OneOf";var o=r(1676),i=r(3218);function s(e,t,r,o){if(Array.isArray(t)||(r=t,t=void 0),n.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=o}function a(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}s.fromJSON=function(e,t){return new s(e,t.oneof,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return i.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},s.prototype.add=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,a(this),this},s.prototype.remove=function(e){if(!(e instanceof o))throw TypeError("field must be a Field");var t=this.fieldsArray.indexOf(e);if(t<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(t,1),(t=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){n.prototype.onAdd.call(this,e);for(var t=0;t<this.oneof.length;++t){var r=e.get(this.oneof[t]);r&&!r.partOf&&(r.partOf=this,this.fieldsArray.push(r))}a(this)},s.prototype.onRemove=function(e){for(var t,r=0;r<this.fieldsArray.length;++r)(t=this.fieldsArray[r]).parent&&t.parent.remove(t);n.prototype.onRemove.call(this,e)},s.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,r){i.decorateType(t.constructor).add(new s(r,e)),Object.defineProperty(t,r,{get:i.oneOfGetter(e),set:i.oneOfSetter(e)})}}},9357:function(e,t,r){"use strict";e.exports=I,I.filename=null,I.defaults={keepCase:!1};var n=r(4993),o=r(2393),i=r(3084),s=r(1676),a=r(8447),u=r(2631),c=r(8052),l=r(7484),f=r(3169),p=r(7767),d=r(3218),h=/^[1-9][0-9]*$/,y=/^-?[1-9][0-9]*$/,E=/^0[x][0-9a-fA-F]+$/,v=/^-?0[x][0-9a-fA-F]+$/,_=/^0[0-7]+$/,g=/^-?0[0-7]+$/,m=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,T=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,R=/^(?:\.[a-zA-Z_][a-zA-Z_0-9]*)+$/;function I(e,t,r){t instanceof o||(r=t,t=new o),r||(r=I.defaults);var N,C,b,S,A,M=r.preferTrailingComment||!1,w=n(e,r.alternateCommentMode||!1),U=w.next,x=w.push,L=w.peek,P=w.skip,k=w.cmnt,D=!0,H=!1,B=t,G=r.keepCase?function(e){return e}:d.camelCase;function F(e,t,r){var n=I.filename;return r||(I.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+w.line+")")}function j(){var e,t=[];do{if('"'!==(e=U())&&"'"!==e)throw F(e);t.push(U()),P(e),e=L()}while('"'===e||"'"===e);return t.join("")}function W(e){var t=U();switch(t){case"'":case'"':return x(t),j();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(h.test(e))return r*parseInt(e,10);if(E.test(e))return r*parseInt(e,16);if(_.test(e))return r*parseInt(e,8);if(m.test(e))return r*parseFloat(e);throw F(e,"number",!0)}(t)}catch(r){if(e&&T.test(t))return t;throw F(t,"value")}}function q(e,t){var r,n;do{!t||'"'!==(r=L())&&"'"!==r?e.push([n=V(U()),P("to",!0)?V(U()):n]):e.push(j())}while(P(",",!0));P(";")}function V(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw F(e,"id");if(y.test(e))return parseInt(e,10);if(v.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw F(e,"id")}function K(){if(void 0!==N)throw F("package");if(N=U(),!T.test(N))throw F(N,"name");B=B.define(N),P(";")}function J(){var e,t=L();switch(t){case"weak":e=b||(b=[]),U();break;case"public":U();default:e=C||(C=[])}t=j(),P(";"),e.push(t)}function z(){if(P("="),S=j(),!(H="proto3"===S)&&"proto2"!==S)throw F(S,"syntax");P(";")}function Y(e,t){switch(t){case"option":return Q(e,t),P(";"),!0;case"message":return function(e,t){if(!O.test(t=U()))throw F(t,"type name");var r=new i(t);X(r,(function(e){if(!Y(r,e))switch(e){case"map":!function(e){P("<");var t=U();if(void 0===p.mapKey[t])throw F(t,"type");P(",");var r=U();if(!T.test(r))throw F(r,"type");P(">");var n=U();if(!O.test(n))throw F(n,"name");P("=");var o=new a(G(n),V(U()),t,r);X(o,(function(e){if("option"!==e)throw F(e);Q(o,e),P(";")}),(function(){te(o)})),e.add(o)}(r);break;case"required":case"repeated":$(r,e);break;case"optional":$(r,H?"proto3_optional":"optional");break;case"oneof":!function(e,t){if(!O.test(t=U()))throw F(t,"name");var r=new u(G(t));X(r,(function(e){"option"===e?(Q(r,e),P(";")):(x(e),$(r,"optional"))})),e.add(r)}(r,e);break;case"extensions":q(r.extensions||(r.extensions=[]));break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:if(!H||!T.test(e))throw F(e);x(e),$(r,"optional")}})),e.add(r)}(e,t),!0;case"enum":return function(e,t){if(!O.test(t=U()))throw F(t,"name");var r=new c(t);X(r,(function(e){switch(e){case"option":Q(r,e),P(";");break;case"reserved":q(r.reserved||(r.reserved=[]),!0);break;default:!function(e,t){if(!O.test(t))throw F(t,"name");P("=");var r=V(U(),!0),n={};X(n,(function(e){if("option"!==e)throw F(e);Q(n,e),P(";")}),(function(){te(n)})),e.add(t,r,n.comment)}(r,e)}})),e.add(r)}(e,t),!0;case"service":return function(e,t){if(!O.test(t=U()))throw F(t,"service name");var r=new l(t);X(r,(function(e){if(!Y(r,e)){if("rpc"!==e)throw F(e);!function(e,t){var r=k(),n=t;if(!O.test(t=U()))throw F(t,"name");var o,i,s,a,u=t;if(P("("),P("stream",!0)&&(i=!0),!T.test(t=U()))throw F(t);if(o=t,P(")"),P("returns"),P("("),P("stream",!0)&&(a=!0),!T.test(t=U()))throw F(t);s=t,P(")");var c=new f(u,n,o,s,i,a);c.comment=r,X(c,(function(e){if("option"!==e)throw F(e);Q(c,e),P(";")})),e.add(c)}(r,e)}})),e.add(r)}(e,t),!0;case"extend":return function(e,t){if(!T.test(t=U()))throw F(t,"reference");var r=t;X(null,(function(t){switch(t){case"required":case"repeated":$(e,t,r);break;case"optional":$(e,H?"proto3_optional":"optional",r);break;default:if(!H||!T.test(t))throw F(t);x(t),$(e,"optional",r)}}))}(e,t),!0}return!1}function X(e,t,r){var n=w.line;if(e&&("string"!=typeof e.comment&&(e.comment=k()),e.filename=I.filename),P("{",!0)){for(var o;"}"!==(o=U());)t(o);P(";",!0)}else r&&r(),P(";"),e&&("string"!=typeof e.comment||M)&&(e.comment=k(n)||e.comment)}function $(e,t,r){var n=U();if("group"!==n){if(!T.test(n))throw F(n,"type");var o=U();if(!O.test(o))throw F(o,"name");o=G(o),P("=");var a=new s(o,V(U()),n,t,r);if(X(a,(function(e){if("option"!==e)throw F(e);Q(a,e),P(";")}),(function(){te(a)})),"proto3_optional"===t){var c=new u("_"+o);a.setOption("proto3_optional",!0),c.add(a),e.add(c)}else e.add(a);H||!a.repeated||void 0===p.packed[n]&&void 0!==p.basic[n]||a.setOption("packed",!1,!0)}else!function(e,t){var r=U();if(!O.test(r))throw F(r,"name");var n=d.lcFirst(r);r===n&&(r=d.ucFirst(r)),P("=");var o=V(U()),a=new i(r);a.group=!0;var u=new s(n,o,r,t);u.filename=I.filename,X(a,(function(e){switch(e){case"option":Q(a,e),P(";");break;case"required":case"repeated":$(a,e);break;case"optional":$(a,H?"proto3_optional":"optional");break;default:throw F(e)}})),e.add(a).add(u)}(e,t)}function Q(e,t){var r=P("(",!0);if(!T.test(t=U()))throw F(t,"name");var n,o=t,i=o;r&&(P(")"),i=o="("+o+")",t=L(),R.test(t)&&(n=t.substr(1),o+=t,U())),P("="),function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,i,Z(e,o),n)}function Z(e,t){if(P("{",!0)){for(var r={};!P("}",!0);){if(!O.test(A=U()))throw F(A,"name");var n,o=A;"{"===L()?n=Z(e,t+"."+A):(P(":"),"{"===L()?n=Z(e,t+"."+A):(n=W(!0),ee(e,t+"."+A,n)));var i=r[o];i&&(n=[].concat(i).concat(n)),r[o]=n,P(",",!0)}return r}var s=W(!0);return ee(e,t,s),s}function ee(e,t,r){e.setOption&&e.setOption(t,r)}function te(e){if(P("[",!0)){do{Q(e,"option")}while(P(",",!0));P("]")}return e}for(;null!==(A=U());)switch(A){case"package":if(!D)throw F(A);K();break;case"import":if(!D)throw F(A);J();break;case"syntax":if(!D)throw F(A);z();break;case"option":Q(B,A),P(";");break;default:if(Y(B,A)){D=!1;continue}throw F(A)}return I.filename=null,{package:N,imports:C,weakImports:b,syntax:S,root:t}}},3124:function(e,t,r){"use strict";e.exports=u;var n,o=r(1986),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var c,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},f=function(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new n(e):l(e)})(e)}:l};function p(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}u.create=f(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return c;if(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return d(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|d(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,r):t===r?new this.buf.constructor(0):this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){n=e,u.create=f(),n._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},8170:function(e,t,r){"use strict";e.exports=i;var n=r(3124);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(1986);function i(e){n.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},2393:function(e,t,r){"use strict";e.exports=f;var n=r(4072);((f.prototype=Object.create(n.prototype)).constructor=f).className="Root";var o,i,s,a=r(1676),u=r(8052),c=r(2631),l=r(3218);function f(e){n.call(this,"",e),this.deferred=[],this.files=[]}function p(){}f.fromJSON=function(e,t){return t||(t=new f),e.options&&t.setOptions(e.options),t.addJSON(e.nested)},f.prototype.resolvePath=l.path.resolve,f.prototype.fetch=l.fetch,f.prototype.load=function e(t,r,n){"function"==typeof r&&(n=r,r=void 0);var o=this;if(!n)return l.asPromise(e,o,t,r);var a=n===p;function u(e,t){if(n){var r=n;if(n=null,a)throw e;r(e,t)}}function c(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function f(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){i.filename=e;var n,s=i(t,o,r),f=0;if(s.imports)for(;f<s.imports.length;++f)(n=c(s.imports[f])||o.resolvePath(e,s.imports[f]))&&d(n);if(s.weakImports)for(f=0;f<s.weakImports.length;++f)(n=c(s.weakImports[f])||o.resolvePath(e,s.weakImports[f]))&&d(n,!0)}else o.setOptions(t.options).addJSON(t.nested)}catch(e){u(e)}a||h||u(null,o)}function d(e,t){if(!(o.files.indexOf(e)>-1))if(o.files.push(e),e in s)a?f(e,s[e]):(++h,setTimeout((function(){--h,f(e,s[e])})));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}f(e,r)}else++h,o.fetch(e,(function(r,i){--h,n&&(r?t?h||u(null,o):u(r):f(e,i))}))}var h=0;l.isString(t)&&(t=[t]);for(var y,E=0;E<t.length;++E)(y=o.resolvePath("",t[E]))&&d(y);if(a)return o;h||u(null,o)},f.prototype.loadSync=function(e,t){if(!l.isNode)throw Error("not supported");return this.load(e,t,p)},f.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map((function(e){return"'extend "+e.extend+"' in "+e.parent.fullName})).join(", "));return n.prototype.resolveAll.call(this)};var d=/^[A-Z]/;function h(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new a(t.fullName,t.id,t.type,t.rule,void 0,t.options);return n.declaringField=t,t.extensionField=n,r.add(n),!0}return!1}f.prototype._handleAdd=function(e){if(e instanceof a)void 0===e.extend||e.extensionField||h(0,e)||this.deferred.push(e);else if(e instanceof u)d.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof c)){if(e instanceof o)for(var t=0;t<this.deferred.length;)h(0,this.deferred[t])?this.deferred.splice(t,1):++t;for(var r=0;r<e.nestedArray.length;++r)this._handleAdd(e._nestedArray[r]);d.test(e.name)&&(e.parent[e.name]=e)}},f.prototype._handleRemove=function(e){if(e instanceof a){if(void 0!==e.extend)if(e.extensionField)e.extensionField.parent.remove(e.extensionField),e.extensionField=null;else{var t=this.deferred.indexOf(e);t>-1&&this.deferred.splice(t,1)}}else if(e instanceof u)d.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r<e.nestedArray.length;++r)this._handleRemove(e._nestedArray[r]);d.test(e.name)&&delete e.parent[e.name]}},f._configure=function(e,t,r){o=e,i=t,s=r}},6742:function(e){"use strict";e.exports={}},531:function(e,t,r){"use strict";t.Service=r(9180)},9180:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(o.prototype=Object.create(n.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function e(t,r,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return n.asPromise(e,a,t,r,o,i);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof o))try{r=o[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7484:function(e,t,r){"use strict";e.exports=a;var n=r(4072);((a.prototype=Object.create(n.prototype)).constructor=a).className="Service";var o=r(3169),i=r(3218),s=r(531);function a(e,t){n.call(this,e,t),this.methods={},this._methodsArray=null}function u(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var n=Object.keys(t.methods),i=0;i<n.length;++i)r.add(o.fromJSON(n[i],t.methods[n[i]]));return t.nested&&r.addJSON(t.nested),r.comment=t.comment,r},a.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return i.toObject(["options",t&&t.options||void 0,"methods",n.arrayToJSON(this.methodsArray,e)||{},"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},Object.defineProperty(a.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}}),a.prototype.get=function(e){return this.methods[e]||n.prototype.get.call(this,e)},a.prototype.resolveAll=function(){for(var e=this.methodsArray,t=0;t<e.length;++t)e[t].resolve();return n.prototype.resolve.call(this)},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof o?(this.methods[e.name]=e,e.parent=this,u(this)):n.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof o){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return n.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var n,o=new s.Service(e,t,r),a=0;a<this.methodsArray.length;++a){var u=i.lcFirst((n=this._methodsArray[a]).resolve().name).replace(/[^$\w_]/g,"");o[u]=i.codegen(["r","c"],i.isReserved(u)?u+"_":u)("return this.rpcCall(m,q,s,r,c)")({m:n,q:n.resolvedRequestType.ctor,s:n.resolvedResponseType.ctor})}return o}},4993:function(e){"use strict";e.exports=f;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,n=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,o=/^ *[*/]+ */,i=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,c={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,(function(e,t){switch(t){case"\\":case"":return t;default:return c[t]||""}}))}function f(e,u){e=e.toString();var c=0,f=e.length,p=1,d=null,h=null,y=0,E=!1,v=!1,_=[],g=null;function m(e){return Error("illegal "+e+" (line "+p+")")}function O(t){return e.charAt(t)}function T(t,r,n){d=e.charAt(t++),y=p,E=!1,v=n;var a,c=t-(u?2:3);do{if(--c<0||"\n"===(a=e.charAt(c))){E=!0;break}}while(" "===a||"\t"===a);for(var l=e.substring(t,r).split(s),f=0;f<l.length;++f)l[f]=l[f].replace(u?i:o,"").trim();h=l.join("\n").trim()}function R(t){var r=I(t),n=e.substring(t,r);return/^\s*\/{1,2}/.test(n)}function I(e){for(var t=e;t<f&&"\n"!==O(t);)t++;return t}function N(){if(_.length>0)return _.shift();if(g)return function(){var t="'"===g?n:r;t.lastIndex=c-1;var o=t.exec(e);if(!o)throw m("string");return c=t.lastIndex,C(g),g=null,l(o[1])}();var o,i,s,d,h,y=0===c;do{if(c===f)return null;for(o=!1;a.test(s=O(c));)if("\n"===s&&(y=!0,++p),++c===f)return null;if("/"===O(c)){if(++c===f)throw m("comment");if("/"===O(c))if(u){if(d=c,h=!1,R(c)){h=!0;do{if((c=I(c))===f)break;c++}while(R(c))}else c=Math.min(f,I(c)+1);h&&T(d,c,y),p++,o=!0}else{for(h="/"===O(d=c+1);"\n"!==O(++c);)if(c===f)return null;++c,h&&T(d,c-1,y),++p,o=!0}else{if("*"!==(s=O(c)))return"/";d=c+1,h=u||"*"===O(d);do{if("\n"===s&&++p,++c===f)throw m("comment");i=s,s=O(c)}while("*"!==i||"/"!==s);++c,h&&T(d,c-2,y),o=!0}}}while(o);var E=c;if(t.lastIndex=0,!t.test(O(E++)))for(;E<f&&!t.test(O(E));)++E;var v=e.substring(c,c=E);return'"'!==v&&"'"!==v||(g=v),v}function C(e){_.push(e)}function b(){if(!_.length){var e=N();if(null===e)return null;C(e)}return _[0]}return Object.defineProperty({next:N,peek:b,push:C,skip:function(e,t){var r=b();if(r===e)return N(),!0;if(!t)throw m("token '"+r+"', '"+e+"' expected");return!1},cmnt:function(e){var t=null;return void 0===e?y===p-1&&(u||"*"===d||E)&&(t=v?h:null):(y<e&&b(),y!==e||E||!u&&"/"!==d||(t=v?null:h)),t}},"line",{get:function(){return p}})}f.unescape=l},3084:function(e,t,r){"use strict";e.exports=_;var n=r(4072);((_.prototype=Object.create(n.prototype)).constructor=_).className="Type";var o=r(8052),i=r(2631),s=r(1676),a=r(8447),u=r(7484),c=r(5192),l=r(3124),f=r(7168),p=r(3218),d=r(5701),h=r(4514),y=r(7227),E=r(1622),v=r(6599);function _(e,t){n.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function g(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(_.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=p.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=p.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=_.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof c||((e.prototype=new c).constructor=e,p.merge(e.prototype,t)),e.$type=e.prototype.$type=this,p.merge(e,c,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var n={};for(r=0;r<this.oneofsArray.length;++r)n[this._oneofsArray[r].resolve().name]={get:p.oneOfGetter(this._oneofsArray[r].oneof),set:p.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,n)}}}),_.generateConstructor=function(e){for(var t,r=p.codegen(["p"],e.name),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",p.safeProp(t.name)):t.repeated&&r("this%s=[]",p.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},_.fromJSON=function(e,t){var r=new _(e,t.options);r.extensions=t.extensions,r.reserved=t.reserved;for(var c=Object.keys(t.fields),l=0;l<c.length;++l)r.add((void 0!==t.fields[c[l]].keyType?a.fromJSON:s.fromJSON)(c[l],t.fields[c[l]]));if(t.oneofs)for(c=Object.keys(t.oneofs),l=0;l<c.length;++l)r.add(i.fromJSON(c[l],t.oneofs[c[l]]));if(t.nested)for(c=Object.keys(t.nested),l=0;l<c.length;++l){var f=t.nested[c[l]];r.add((void 0!==f.id?s.fromJSON:void 0!==f.fields?_.fromJSON:void 0!==f.values?o.fromJSON:void 0!==f.methods?u.fromJSON:n.fromJSON)(c[l],f))}return t.extensions&&t.extensions.length&&(r.extensions=t.extensions),t.reserved&&t.reserved.length&&(r.reserved=t.reserved),t.group&&(r.group=!0),t.comment&&(r.comment=t.comment),r},_.prototype.toJSON=function(e){var t=n.prototype.toJSON.call(this,e),r=!!e&&Boolean(e.keepComments);return p.toObject(["options",t&&t.options||void 0,"oneofs",n.arrayToJSON(this.oneofsArray,e),"fields",n.arrayToJSON(this.fieldsArray.filter((function(e){return!e.declaringField})),e)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",t&&t.nested||void 0,"comment",r?this.comment:void 0])},_.prototype.resolveAll=function(){for(var e=this.fieldsArray,t=0;t<e.length;)e[t++].resolve();var r=this.oneofsArray;for(t=0;t<r.length;)r[t++].resolve();return n.prototype.resolveAll.call(this)},_.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},_.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),g(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),g(this)):n.prototype.add.call(this,e)},_.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),g(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),g(this)}return n.prototype.remove.call(this,e)},_.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},_.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)},_.prototype.create=function(e){return new this.ctor(e)},_.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=d(this)({Writer:f,types:t,util:p}),this.decode=h(this)({Reader:l,types:t,util:p}),this.verify=y(this)({types:t,util:p}),this.fromObject=E.fromObject(this)({types:t,util:p}),this.toObject=E.toObject(this)({types:t,util:p});var n=v[e];if(n){var o=Object.create(this);o.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(o),o.toObject=this.toObject,this.toObject=n.toObject.bind(o)}return this},_.prototype.encode=function(e,t){return this.setup().encode(e,t)},_.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},_.prototype.decode=function(e,t){return this.setup().decode(e,t)},_.prototype.decodeDelimited=function(e){return e instanceof l||(e=l.create(e)),this.decode(e,e.uint32())},_.prototype.verify=function(e){return this.setup().verify(e)},_.prototype.fromObject=function(e){return this.setup().fromObject(e)},_.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},_.d=function(e){return function(t){p.decorateType(t,e)}}},7767:function(e,t,r){"use strict";var n=t,o=r(3218),i=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,n={};for(t|=0;r<e.length;)n[i[r+t]]=e[r++];return n}n.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),n.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",o.emptyArray,null]),n.long=s([0,0,0,1,1],7),n.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),n.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])},3218:function(e,t,r){"use strict";var n,o,i=e.exports=r(1986),s=r(6742);i.codegen=r(4495),i.fetch=r(8551),i.path=r(7460),i.fs=i.inquire("fs"),i.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},i.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],o=e[r++];void 0!==o&&(t[n]=o)}return t};var a=/\\/g,u=/"/g;i.isReserved=function(e){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(e)},i.safeProp=function(e){return!/^[$\w_]+$/.test(e)||i.isReserved(e)?'["'+e.replace(a,"\\\\").replace(u,'\\"')+'"]':"."+e},i.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var c=/_([a-z])/g;i.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(c,(function(e,t){return t.toUpperCase()}))},i.compareFieldsById=function(e,t){return e.id-t.id},i.decorateType=function(e,t){if(e.$type)return t&&e.$type.name!==t&&(i.decorateRoot.remove(e.$type),e.$type.name=t,i.decorateRoot.add(e.$type)),e.$type;n||(n=r(3084));var o=new n(t||e.name);return i.decorateRoot.add(o),o.ctor=e,Object.defineProperty(e,"$type",{value:o,enumerable:!1}),Object.defineProperty(e.prototype,"$type",{value:o,enumerable:!1}),o};var l=0;i.decorateEnum=function(e){if(e.$type)return e.$type;o||(o=r(8052));var t=new o("Enum"+l++,e);return i.decorateRoot.add(t),Object.defineProperty(e,"$type",{value:t,enumerable:!1}),t},i.setProperty=function(e,t,r){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,n){var o=r.shift();if("__proto__"===o)return t;if(r.length>0)t[o]=e(t[o]||{},r,n);else{var i=t[o];i&&(n=[].concat(i).concat(n)),t[o]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(2393)))}})},2969:function(e,t,r){"use strict";e.exports=o;var n=r(1986);function o(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=o.zero=new o(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,n=(e-r)/4294967296>>>0;return t&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new o(r,n)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(n.isString(e)){if(!n.Long)return o.fromNumber(parseInt(e,10));e=n.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return n.Long?new n.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;o.fromHash=function(e){return e===s?i:new o((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},1986:function(e,t,r){"use strict";var n=t;function o(e,t,r){for(var n=Object.keys(t),o=0;o<n.length;++o)void 0!==e[n[o]]&&r||(e[n[o]]=t[n[o]]);return e}function i(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),r&&o(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}n.asPromise=r(5317),n.base64=r(8660),n.EventEmitter=r(3745),n.float=r(9059),n.inquire=r(491),n.utf8=r(8375),n.pool=r(8601),n.LongBits=r(2969),n.isNode=Boolean(void 0!==r.g&&r.g&&r.g.process&&r.g.process.versions&&r.g.process.versions.node),n.global=n.isNode&&r.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},n.isString=function(e){return"string"==typeof e||e instanceof String},n.isObject=function(e){return e&&"object"==typeof e},n.isset=n.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},n.Buffer=function(){try{var e=n.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(e){return"number"==typeof e?n.Buffer?n._Buffer_allocUnsafe(e):new n.Array(e):n.Buffer?n._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(e){return e?n.LongBits.from(e).toHash():n.LongBits.zeroHash},n.longFromHash=function(e,t){var r=n.LongBits.fromHash(e);return n.Long?n.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},n.merge=o,n.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},n.newError=i,n.ProtocolError=i("ProtocolError"),n.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},n.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var e=n.Buffer;e?(n._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,r){return new e(t,r)},n._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):n._Buffer_from=n._Buffer_allocUnsafe=null}},7227:function(e,t,r){"use strict";e.exports=function(e){var t=o.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r={};e.oneofsArray.length&&t("var p={}");for(var n=0;n<e.fieldsArray.length;++n){var u=e._fieldsArray[n].resolve(),c="m"+o.safeProp(u.name);if(u.optional&&t("if(%s!=null&&m.hasOwnProperty(%j)){",c,u.name),u.map)t("if(!util.isObject(%s))",c)("return%j",i(u,"object"))("var k=Object.keys(%s)",c)("for(var i=0;i<k.length;++i){"),a(t,u,"k[i]"),s(t,u,n,c+"[k[i]]")("}");else if(u.repeated)t("if(!Array.isArray(%s))",c)("return%j",i(u,"array"))("for(var i=0;i<%s.length;++i){",c),s(t,u,n,c+"[i]")("}");else{if(u.partOf){var l=o.safeProp(u.partOf.name);1===r[u.partOf.name]&&t("if(p%s===1)",l)("return%j",u.partOf.name+": multiple values"),r[u.partOf.name]=1,t("p%s=1",l)}s(t,u,n,c)}u.optional&&t("}")}return t("return null")};var n=r(8052),o=r(3218);function i(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function s(e,t,r,o){if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(%s){",o)("default:")("return%j",i(t,"enum value"));for(var s=Object.keys(t.resolvedType.values),a=0;a<s.length;++a)e("case %i:",t.resolvedType.values[s[a]]);e("break")("}")}else e("{")("var e=types[%i].verify(%s);",r,o)("if(e)")("return%j+e",t.name+".")("}");else switch(t.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.isInteger(%s))",o)("return%j",i(t,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",o,o,o,o)("return%j",i(t,"integer|Long"));break;case"float":case"double":e('if(typeof %s!=="number")',o)("return%j",i(t,"number"));break;case"bool":e('if(typeof %s!=="boolean")',o)("return%j",i(t,"boolean"));break;case"string":e("if(!util.isString(%s))",o)("return%j",i(t,"string"));break;case"bytes":e('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',o,o,o)("return%j",i(t,"buffer"))}return e}function a(e,t,r){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",r)("return%j",i(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",r)("return%j",i(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",r)("return%j",i(t,"boolean key"))}return e}},6599:function(e,t,r){"use strict";var n=t,o=r(5192);n[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].substr(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",n="";if(t&&t.json&&e.type_url&&e.value){n=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var i=this.lookup(n);i&&(e=i.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof o){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),n=r+("."===e.$type.fullName[0]?e.$type.fullName.substr(1):e.$type.fullName),s["@type"]=n,s}return this.toObject(e,t)}}},7168:function(e,t,r){"use strict";e.exports=f;var n,o=r(1986),i=o.LongBits,s=o.base64,a=o.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new u(c,0,0),this.tail=this.head,this.states=null}var p=function(){return o.Buffer?function(){return(f.create=function(){return new n})()}:function(){return new f}};function d(e,t,r){t[r]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function y(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function E(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}f.create=p(),f.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(f.alloc=o.pool(f.alloc,o.Array.prototype.subarray)),f.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},h.prototype=Object.create(u.prototype),h.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(y,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(y,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(y,t.length(),t)},f.prototype.bool=function(e){return this._push(d,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(E,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(E,4,t.lo)._push(E,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var v=o.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(d,1,0);if(o.isString(e)){var r=f.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(v,t,e)},f.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(d,1,0)},f.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(c,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},f._configure=function(e){n=e,f.create=p(),n._configure()}},4023:function(e,t,r){"use strict";e.exports=i;var n=r(7168);(i.prototype=Object.create(n.prototype)).constructor=i;var o=r(1986);function i(){n.call(this)}function s(e,t,r){e.length<40?o.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},i.prototype.bytes=function(e){o.isString(e)&&(e=o._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.amdO={},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=function(e,t){for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:function(){return Ae}}),__webpack_require__(8327),__webpack_require__(900),__webpack_require__(3814),__webpack_require__(514),__webpack_require__(4201),__webpack_require__(6864),__webpack_require__(1685),__webpack_require__(2486),__webpack_require__(4261),__webpack_require__(8668),__webpack_require__(1008),__webpack_require__(7461),__webpack_require__(1362),__webpack_require__(7988),__webpack_require__(3786),__webpack_require__(7693),__webpack_require__(9782),__webpack_require__(9046),__webpack_require__(8453),__webpack_require__(6181),__webpack_require__(7521);var e=__webpack_require__(453),t=__webpack_require__.n(e),r=__webpack_require__(9168),n=__webpack_require__.n(r),o=__webpack_require__(2591),i=__webpack_require__(7551),s=__webpack_require__(6916),a=(__webpack_require__(937),__webpack_require__(2657),__webpack_require__(351),__webpack_require__(5980),__webpack_require__(863),__webpack_require__(3536),__webpack_require__(8548),__webpack_require__(6921),__webpack_require__(8346),__webpack_require__(3849),__webpack_require__(6781),__webpack_require__(2728),__webpack_require__(3039),__webpack_require__(2258),__webpack_require__(316),__webpack_require__(2446),__webpack_require__(695),__webpack_require__(6776),__webpack_require__(1922),__webpack_require__(8844),__webpack_require__(7146),__webpack_require__(3641),__webpack_require__(650),__webpack_require__(9951),__webpack_require__(2426),__webpack_require__(5488),__webpack_require__(8542),__webpack_require__(4740),__webpack_require__(4822),__webpack_require__(3022),__webpack_require__(9889),__webpack_require__(6619),__webpack_require__(1538),__webpack_require__(3529),__webpack_require__(7118),__webpack_require__(5491)),u=__webpack_require__.n(a),c=__webpack_require__(3365),l=(__webpack_require__(7095),function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});function f(e){var t,r,n=e.id,o=e.payload,i=e.timestamp,a=e.to,u=o.bodies&&o.bodies.length>0?o.bodies[0]:{},c={},f={},p=o.type?o.type:a.indexOf("@conference.easemob.com")>-1?"groupChat":"singleChat";switch(u.type){case"txt":c={id:n,type:"txt",chatType:p,msg:u.msg||"",to:o.to||"",from:o.from,time:i,ext:o.ext};break;case"img":c={id:n,type:"img",chatType:p,to:o.to,from:o.from,time:i,ext:o.ext,width:(null===(t=u.size)||void 0===t?void 0:t.width)||0,height:(null===(r=u.size)||void 0===r?void 0:r.height)||0,secret:u.secret||"",url:(null==u?void 0:u.url)||"",file:{}};break;case"video":c={id:n,type:"video",chatType:p,from:o.from,to:o.to,url:(null==u?void 0:u.url)||"",secret:u.secret||"",filename:u.filename,length:u.length||0,file:{},file_length:u.fileLength||0,filetype:o.ext.file_type||"",ext:o.ext,time:i};break;case"loc":c={id:n,type:"loc",chatType:p,from:o.from,to:o.to,buildingName:u.buildingName||"",addr:u.addr,lat:u.lat,lng:u.lng,ext:o.ext,time:i};break;case"audio":c={id:n,type:"audio",chatType:p,from:o.from,to:o.to,secret:u.secret||"",ext:o.ext,time:i,url:(null==u?void 0:u.url)||"",file:{},filename:u.filename,length:o.ext.duration||0,file_length:u.fileLength||0,filetype:o.ext.file_type||""};break;case"file":c={id:n,type:"file",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,url:(null==u?void 0:u.url)||"",secret:u.secret||"",file:{},filename:u.filename||"",length:u.length||0,file_length:u.file_length||0,filetype:o.ext.file_type||""};break;case"cmd":c={id:n,type:"cmd",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,action:u.action||""};break;case"custom":c={id:n,type:"custom",chatType:p,from:o.from,to:o.to,ext:o.ext,time:i,customEvent:u.customEvent||""};break;default:s.kg.error("unexpected message: ".concat(e))}if(o.msgConfig&&(f.msgConfig=o.msgConfig),null==o?void 0:o.meta){var d=o.meta;d.thread&&(f.chatThread={messageId:d.thread.msg_parent_id,parentId:d.thread.muc_parent_id,chatThreadName:d.thread.thread_name}),d.reactions&&(f.reactions=d.reactions),d.translations&&(f.translations=d.translations)}return l(l({},c),f)}var p={0:"TEXT",1:"IMAGE",2:"VIDEO",3:"LOCATION",4:"VOICE",5:"FILE",6:"COMMAND",7:"CUSTOM"};function d(e){for(var t={},r=0;r<e.length;r++)if(8===e[r].type)t[e[r].key]=JSON.parse(e[r].stringValue);else if(7===e[r].type)t[e[r].key]=e[r].stringValue;else if(6===e[r].type)t[e[r].key]=e[r].doubleValue;else if(5===e[r].type)t[e[r].key]=e[r].floatValue;else if(1===e[r].type){var o=e[r].varintValue,i=new(n())(o.low,o.high,o.unsigned).toString();t[e[r].key]=0!==Number(i)}else 2!==e[r].type&&3!==e[r].type&&4!==e[r].type||(o=e[r].varintValue,i=new(n())(o.low,o.high,o.unsigned).toString(),t[e[r].key]=Number(i));return t}function h(e,t,r){if(this.delivery&&e!==t){var n=this.getUniqueId(),i=new o.Message("delivery",n);i.set({ackId:r,to:e}),s.kg.debug("send delivery ack"),this.send(i.body)}}var y,E=function(e,t,r,o){var a,u,c,l,y,E,v,_=new(n())(e.timestamp.low,e.timestamp.high,e.timestamp.unsigned).toString(),g=this.root.lookup("easemob.pb.MessageBody").decode(e.payload),m=1;if(e.meta&&e.meta.length)switch(i.P6.parseNotify(e.meta).is_online){case 0:m=0;break;case 1:m=1;break;default:m=2}else m=3;var O,T=new(n())(e.id.low,e.id.high,e.id.unsigned).toString(),R=g.ackMessageId?new(n())(g.ackMessageId.low,g.ackMessageId.high,g.ackMessageId.unsigned).toString():"",I="",N=g.from&&g.from.name,C=g.to&&g.to.name;switch(s.kg.debug("thirdMessage:",g),g.type){case 1:I="chat","agoraToken"===this.grantType&&(I="singleChat"),this.delivery&&h.call(this,N,C,T);break;case 2:I="groupchat","agoraToken"===this.grantType&&(I="groupChat");break;case 3:I="chatroom","agoraToken"===this.grantType&&(I="chatRoom"),m=1;break;case 4:I="read_ack";var b=void 0;return g.ext[0]&&JSON.parse(g.ext[0].stringValue)?(b={id:T,type:"read",from:N,to:C,mid:R,groupReadCount:g.ext[0]&&JSON.parse(g.ext[0].stringValue),ackContent:g.ackContent,onlineState:m},this.onReadMessage&&this.onReadMessage(b),void(null===(a=this.eventHandler)||void 0===a||a.dispatch("onReadMessage",b))):(b={id:T,type:"read",from:N,to:C,mid:R,onlineState:m},this.onReadMessage&&this.onReadMessage(b),void(null===(u=this.eventHandler)||void 0===u||u.dispatch("onReadMessage",b)));case 5:I="deliver_ack",this.onDeliveredMessage&&this.onDeliveredMessage({id:T,type:"delivery",from:N,to:C,mid:R,onlineState:m});var S={id:T,type:"delivery",from:N,to:C,mid:R,onlineState:m};return void(null===(c=this.eventHandler)||void 0===c||c.dispatch("onDeliveredMessage",S));case 6:I="recall";var A={id:T,from:N||"admin",to:C,mid:R,onlineState:m};return this.onRecallMessage&&this.onRecallMessage(A),void(null===(l=this.eventHandler)||void 0===l||l.dispatch("onRecallMessage",A));case 7:this.onChannelMessage&&this.onChannelMessage({id:T,type:"channel",chatType:"singleChat",from:N,to:C,time:Number(_),onlineState:m});var M={id:T,type:"channel",chatType:"singleChat",from:N,to:C,time:Number(_),onlineState:m};return void(null===(y=this.eventHandler)||void 0===y||y.dispatch("onChannelMessage",M));default:return void s.kg.error("unexpected message type: ".concat(g.type))}"chat"===I.toLowerCase()||"singleChat"===I?O="singleChat":"groupchat"===I.toLowerCase()||"groupChat"===I?O="groupChat":(O="chatRoom",m=1);for(var w=0;w<g.contents.length;w++){var U={},x={},L=t.errorCode>0,P=t.errorCode,k=t.reason,D=g.contents[w],H={},B=[],G=[],F=null,j=null,W=void 0;if(g.ext&&(H=d(g.ext)),g.meta&&"string"==typeof g.meta){var q=JSON.parse(g.meta);q.reaction&&(B=q.reaction).forEach((function(e){e.isAddedBySelf=e.state,delete e.state})),q.translations&&(G=q.translations),q.thread&&"{}"!==JSON.stringify(q.thread)&&(F={messageId:q.thread.msg_parent_id,parentId:q.thread.muc_parent_id,chatThreadName:q.thread.thread_name}),q.thread_overview&&"{}"!==JSON.stringify(q.thread_overview)&&(j={id:q.thread_overview.id,parentId:q.thread_overview.muc_parent_id,name:q.thread_overview.name,lastMessage:f(q.thread_overview.last_message),createTimestamp:q.thread_overview.create_timestamp,updateTimestamp:q.thread_overview.update_timestamp,messageCount:q.thread_overview.message_count})}switch(D.type){case 0:!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,data:D.text,ext:H,sourceMsg:D.text,time:_,msgConfig:g.msgConfig,onlineState:m}).msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onTextMessage&&this.onTextMessage(U);var V={id:T,type:"txt",chatType:O,msg:D.text,to:C,from:N,ext:H,time:Number(_),onlineState:m};U.msgConfig&&(V.msgConfig=U.msgConfig),B.length>0&&(V.reactions=B),F&&(V.chatThread=F),j&&(V.chatThreadOverview=j),G.length>0&&(V.translations=G),x=V,!r&&this.eventHandler&&this.eventHandler.dispatch("onTextMessage",V);break;case 1:var K=(null===(E=null==D?void 0:D.size)||void 0===E?void 0:E.width)||0,J=(null===(v=null==D?void 0:D.size)||void 0===v?void 0:v.height)||0;W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,url:W,secret:D.secretKey,filename:D.displayName,thumb:this.useOwnUploadFun?"":"".concat(W,"&thumbnail=true"),thumb_secret:D.secretKey,file_length:D.fileLength||"",width:K,height:J,filetype:D.filetype||"",accessToken:this.token,ext:H,time:_,msgConfig:g.msgConfig,onlineState:m}).delay&&delete U.delay,!U.msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onPictureMessage&&this.onPictureMessage(U);var z={id:T,type:"img",chatType:O,from:N,to:C,url:W||"",file:{},width:K,height:J,secret:D.secretKey||"",thumb:this.useOwnUploadFun?"":"".concat(W,"&thumbnail=true"),thumb_secret:D.secretKey,ext:H,time:Number(_),onlineState:m};U.msgConfig&&(z.msgConfig=U.msgConfig),B.length>0&&(z.reactions=B),F&&(z.chatThread=F),j&&(z.chatThreadOverview=j),x=z,!r&&this.eventHandler&&this.eventHandler.dispatch("onImageMessage",z);break;case 2:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,url:W,secret:D.secretKey,filename:D.displayName,length:D.duration||"",file_length:D.fileLength||"",filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:_,msgConfig:g.msgConfig,onlineState:m}).delay&&delete U.delay,!U.msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onVideoMessage&&this.onVideoMessage(U);var Y={id:T,type:"video",chatType:O,from:N,to:C,url:W,secret:D.secretKey,filename:D.displayName,length:D.duration||0,file:{},file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(_),onlineState:m};U.msgConfig&&(Y.msgConfig=U.msgConfig),B.length>0&&(Y.reactions=B),F&&(Y.chatThread=F),j&&(Y.chatThreadOverview=j),x=Y,!r&&this.eventHandler&&this.eventHandler.dispatch("onVideoMessage",Y);break;case 3:!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,addr:D.address,buildingName:D.buildingName,lat:D.latitude,lng:D.longitude,ext:H,time:_,msgConfig:g.msgConfig,onlineState:m}).delay&&delete U.delay,!U.msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onLocationMessage&&this.onLocationMessage(U);var X={id:T,type:"loc",chatType:O,from:N,to:C,buildingName:D.buildingName,addr:D.address,lat:D.latitude,lng:D.longitude,ext:H,time:Number(_),onlineState:m};U.msgConfig&&(X.msgConfig=U.msgConfig),B.length>0&&(X.reactions=B),F&&(X.chatThread=F),j&&(X.chatThreadOverview=j),x=X,!r&&this.eventHandler&&this.eventHandler.dispatch("onLocationMessage",X);break;case 4:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,url:W,secret:D.secretKey,filename:D.displayName,file_length:D.fileLength||"",accessToken:this.token||"",ext:H,length:D.duration,time:_,msgConfig:g.msgConfig,onlineState:m}).delay&&delete U.delay,!U.msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onAudioMessage&&this.onAudioMessage(U);var $={id:T,type:"audio",chatType:O,from:N,to:C,url:W,secret:D.secretKey,file:{},filename:D.displayName,length:D.duration||0,file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(_),onlineState:m};U.msgConfig&&($.msgConfig=U.msgConfig),B.length>0&&($.reactions=B),F&&($.chatThread=F),j&&($.chatThreadOverview=j),x=$,!r&&this.eventHandler&&this.eventHandler.dispatch("onAudioMessage",$);break;case 5:W=this.useOwnUploadFun?D.remotePath:(D.remotePath&&this.apiUrl+D.remotePath.substr(D.remotePath.indexOf("/",9)))+"?em-redirect=true",D.secretKey&&!this.useOwnUploadFun&&(W="".concat(W,"&share-secret=").concat(D.secretKey)),!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,url:W,secret:D.secretKey,filename:D.displayName,file_length:D.fileLength,accessToken:this.token||"",ext:H,time:_,msgConfig:g.msgConfig,onlineState:m}).delay&&delete U.delay,!U.msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onFileMessage&&this.onFileMessage(U);var Q={id:T,type:"file",chatType:O,from:N,to:C,url:W,secret:D.secretKey,file:{},filename:D.displayName,length:D.duration||0,file_length:D.fileLength||0,filetype:D.filetype||"",accessToken:this.token||"",ext:H,time:Number(_),onlineState:m};U.msgConfig&&(Q.msgConfig=U.msgConfig),B.length>0&&(Q.reactions=B),F&&(Q.chatThread=F),j&&(Q.chatThreadOverview=j),x=Q,!r&&this.eventHandler&&this.eventHandler.dispatch("onFileMessage",Q);break;case 6:!(U={id:T,type:I,contentsType:p[D.type],from:N,to:C,action:D.action,ext:H,time:_,msgConfig:g.msgConfig,onlineState:m}).msgConfig&&delete g.msgConfig,U.error=L,U.errorText=k,U.errorCode=P,!r&&this.onCmdMessage&&this.onCmdMessage(U);var Z={id:T,type:"cmd",chatType:O,from:N,to:C,action:D.action,ext:H,time:Number(_),onlineState:m};U.msgConfig&&(Z.msgConfig=U.msgConfig),B.length>0&&(Z.reactions=B),F&&(Z.chatThread=F),j&&(Z.chatThreadOverview=j),x=Z,!r&&this.eventHandler&&this.eventHandler.dispatch("onCmdMessage",Z);break;case 7:var ee={},te={};g.contents[0].customExts&&(ee=d(g.contents[0].customExts)),g.contents[0].params&&(te=d(g.contents[0].params)),U={id:T,type:I,contentsType:p[D.type],from:N,to:C,customEvent:D.customEvent,params:te,customExts:ee,ext:H,time:_,onlineState:m},!r&&this.onCustomMessage&&this.onCustomMessage(U);var re={id:T,type:"custom",chatType:O,from:N,to:C,customEvent:D.customEvent,params:te,customExts:ee,ext:H,time:Number(_),onlineState:m};U.msgConfig&&(re.msgConfig=U.msgConfig),B.length>0&&(re.reactions=B),F&&(re.chatThread=F),j&&(re.chatThreadOverview=j),x=re,!r&&this.eventHandler&&this.eventHandler.dispatch("onCustomMessage",re);break;default:s.kg.error("Unknow message type, message:",D)}return o?x:U}},v=function(e){var t=this.root.lookup("easemob.pb.MUCBody").decode(e.payload),r=t.operation;s.kg.debug("onMucMessage",t),console.log("onMucMessage",t),function(e){var r,n,o,i,s,a,u=this;return t.isThread?(o={id:t.mucId.name,name:t.mucName,operation:"",parentId:t.mucParentId.name,operator:t.from.name,userName:t.to.length?t.to[0].name:""},i={chatThreadId:t.mucId.name,chatThreadName:t.mucName,operation:"",parentId:t.mucParentId.name}):(n={type:"",owner:t.from.name,gid:t.mucId.name,from:t.from.name,fromJid:t.from,to:t.to.length?t.to[0].name:"",toJid:t.to,chatroom:t.isChatroom,status:t.status},s={operation:"",id:t.mucId.name,from:t.from.name},t.isChatroom&&(null===(r=null==t?void 0:t.eventInfo)||void 0===r?void 0:r.ext)&&(a=JSON.parse(t.eventInfo.ext))),({44:function(){var e;s.operation="removeChatRoomAttributes",s.attributes=a.result.successKeys,a.result.successKeys.length>0&&(null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomEvent",s))},43:function(){var e;s.operation="updateChatRoomAttributes";var t={};a.result.successKeys.forEach((function(e){t[e]=a.properties[e]})),s.attributes=t,a.result.successKeys.length>0&&(null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomEvent",s))},42:function(){},41:function(){},40:function(){},39:function(){},38:function(){var e;i.operation="chatThreadNameUpdate",null===(e=u.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},37:function(){var e;o.operation="userRemove",null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatThreadChange",o)},36:function(){var e;i.operation="chatThreadLeave",null===(e=u.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},35:function(){var e;i.operation="chatThreadJoin",null===(e=u.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},34:function(){var e;i.operation="chatThreadDestroy",null===(e=u.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},33:function(){var e;i.operation="chatThreadCreate",null===(e=u.eventHandler)||void 0===e||e.dispatch("onMultiDeviceEvent",i)},32:function(){var e,r,o,i;n.type=t.isChatroom?"rmChatRoomMute":"rmGroupMute",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unmuteAllMembers",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},31:function(){var e,r,o,i;n.type=t.isChatroom?"muteChatRoom":"muteGroup",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="muteAllMembers",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},30:function(){var e,r,o,i;n.type=t.isChatroom?"rmUserFromChatRoomWhiteList":"rmUserFromGroupWhiteList",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeAllowlistMember",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},29:function(){var e,r,o,i;n.type=t.isChatroom?"addUserToChatRoomWhiteList":"addUserToGroupWhiteList",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="addUserToAllowlist",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},28:function(){var e,r,o,i;n.type="deleteFile",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="deleteFile",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},27:function(){var e,r,o,i;n.type="uploadFile",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="uploadFile",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},26:function(){var e,r,o,i;n.type="deleteAnnouncement",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="deleteAnnouncement",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},25:function(){var e,r,o,i;n.type="updateAnnouncement",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="updateAnnouncement",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},24:function(){var e,r,o,i;n.type="removeMute",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unmuteMember",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},23:function(){var e,r,o,i;n.type="addMute",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="muteMember",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},22:function(){var e,r,o,i;n.type="removeAdmin",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeAdmin",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},21:function(){var e,r,o,i;n.type="addAdmin",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="setAdmin",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},20:function(){var e,r,o,i;n.type="changeOwner",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="changeOwner",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},19:function(){var e,r,o,i;n.type="direct_joined",n.groupName=t.mucName,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="directJoined",s.name=t.mucName,t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},18:function(){var e,r,o,i;n.type=t.isChatroom?"leaveChatRoom":"leaveGroup",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="memberAbsence",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},17:function(){var e,r,o,i;n.type=t.isChatroom?"memberJoinChatRoomSuccess":"memberJoinPublicGroupSuccess",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="memberPresence",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},16:function(){var e,r;n.type="unblock",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},15:function(){var e,r;n.type="block",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},14:function(){var e,r,o,i;n.type="update",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="updateInfo",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},13:function(){var e,r,o,i;n.type="allow",n.reason=t.reason,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="unblockMember",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},12:function(){var e,r;n.type="ban",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},11:function(){var e,r;n.type="getBlackList",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},10:function(){var e,r,o,i;n.type="removedFromGroup",n.kicked=n.to,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="removeMember",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},9:function(){var e,r,o,i;n.type="invite_decline",n.kicked=n.to,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="rejectInvite",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},8:function(){var e,r,o,i;n.type="invite_accept",n.kicked=n.to,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="acceptInvite",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},7:function(){var e,r,o,i;n.type="invite",n.kicked=n.to,n.groupName=t.mucName,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="inviteToJoin",s.name=t.mucName,t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},6:function(){var e,r;n.type="joinPublicGroupDeclined",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},5:function(){var e,r,o,i;n.type="joinPublicGroupSuccess",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="acceptRequest",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},4:function(){var e,r,o,i;n.type="joinGroupNotifications",n.reason=t.reason,u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="requestToJoin",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)},3:function(){var e,r;n.type="leave",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},2:function(){var e,r;n.type="join",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n)},1:function(){var e,r,o,i;n.type="deleteGroupChat",u.onPresence&&u.onPresence(n),t.isChatroom?null===(e=u.eventHandler)||void 0===e||e.dispatch("onChatroomChange",n):null===(r=u.eventHandler)||void 0===r||r.dispatch("onGroupChange",n),s.operation="destroy",t.isChatroom?null===(o=u.eventHandler)||void 0===o||o.dispatch("onChatroomEvent",s):null===(i=u.eventHandler)||void 0===i||i.dispatch("onGroupEvent",s)}}[e]||function(){console.error("No match operation ".concat(e))})()}.call(this,r)},_=(__webpack_require__(5724),new Map),g=new Map,m=1e3,O=9675,T=__webpack_require__(3681);!function(e){e[e.Add=2]="Add",e[e.Remove=3]="Remove",e[e.Accept=4]="Accept",e[e.Decline=5]="Decline",e[e.Ban=6]="Ban",e[e.Allow=7]="Allow"}(y||(y={}));var R={operatRoster:function(e,t){var r=[],n=this.root.lookup("easemob.pb.RosterBody"),o=n.decode(r);switch(t){case"add":o.operation=y.Add;break;case"remove":o.operation=y.Remove;break;case"accept":o.operation=y.Accept;break;case"decline":o.operation=y.Decline;break;case"ban":o.operation=y.Ban;break;case"allow":o.operation=y.Allow;break;default:s.kg.error("operatRoster:",t)}o.from=this.context.jid;var i=[];if("string"==typeof e.to)i.push({appKey:this.appKey||this.context.appKey,name:e.to,domain:"easemob.com"});else if(e.to instanceof Array)for(var a=0;a<e.to.length;a++)i.push({appKey:this.appKey,name:e.to[a],domain:"easemob.com"});o.to=i,o.reason=e.message||"",o=n.encode(o).finish();var u=this.root.lookup("easemob.pb.Meta").decode(r);u.id=e.id||this.getUniqueId();var c=this.dataReport.geOperateFun({operationName:T.fI[t]});_.size<=m&&_.set(u.id,{rpt:c,requestName:T.fI[t]}),u.from=this.context.jid,u.to={domain:"@easemob.com"},u.ns=3,u.payload=o;var l=this.root.lookup("easemob.pb.CommSyncUL"),f=l.decode(r);f.meta=u,f=l.encode(f).finish();var p=this.root.lookup("easemob.pb.MSync"),d=p.decode(r);if(d.version=this.version,d.encryptType=[0],d.command=0,d.guid=this.jid,d.payload=f,d=p.encode(d).finish(),"miniCore"===this.name)this.sock.send(d);else{var h=this.mSync.base64transform(d);this.sock.send(h)}},handleRosterMsg:function(e){var t,r,n,o,i,a,u=this.root.lookup("easemob.pb.RosterBody").decode(e.payload),c={type:"",to:u.to[0].name,from:u.from.name,status:u.reason};switch(u.operation){case 2:c.type="subscribe",this.onContactInvited&&this.onContactInvited(c),null===(t=this.eventHandler)||void 0===t||t.dispatch("onContactInvited",c);break;case 3:c.type="unsubscribed",this.onContactDeleted&&this.onContactDeleted(c),null===(r=this.eventHandler)||void 0===r||r.dispatch("onContactDeleted",c);break;case 4:c.type="subscribed",this.onContactAdded&&this.onContactAdded(c),null===(n=this.eventHandler)||void 0===n||n.dispatch("onContactAdded",c);break;case 5:c.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(c),null===(o=this.eventHandler)||void 0===o||o.dispatch("onContactRefuse",c);break;case 6:case 7:this.getBlacklist();break;case 8:c.type="subscribed",this.onContactAgreed&&this.onContactAgreed(c),null===(i=this.eventHandler)||void 0===i||i.dispatch("onContactAgreed",c);break;case 9:c.type="unsubscribed",this.onContactRefuse&&this.onContactRefuse(c),null===(a=this.eventHandler)||void 0===a||a.dispatch("onContactRefuse",c);break;default:s.kg.error("handleRosterMsg:",u)}this.onPresence&&c.type&&this.onPresence(c)}},I=function(){function e(e){this.type=e.type,this.message=e.message,this.data=e.data}return e.create=function(t){return new e(t)},e}(),N=function(e){var t,r,n,o,i,a,u=this.root.lookup("easemob.pb.StatisticsBody").decode(e.payload);switch(u.operation){case 0:this.onStatisticMessage&&this.onStatisticMessage(u),null===(t=this.eventHandler)||void 0===t||t.dispatch("onStatisticMessage",u);break;case 1:a=I.create({type:c.E.WEBIM_CONNCTION_USER_REMOVED,message:"user has been removed"}),this.logOut=!0,this.onError&&this.onError(a),null===(r=this.eventHandler)||void 0===r||r.dispatch("onError",a);break;case 2:a=I.create({type:c.E.WEBIM_CONNCTION_USER_LOGIN_ANOTHER_DEVICE,message:"the user is already logged on another device"}),this.logOut=!0,this.onError&&this.onError(a),null===(n=this.eventHandler)||void 0===n||n.dispatch("onError",a);break;case 3:a=I.create({type:c.E.WEBIM_CONNCTION_USER_KICKED_BY_CHANGE_PASSWORD,message:"the user was kicked by changing password"}),this.logOut=!0,this.onError&&this.onError(a),null===(o=this.eventHandler)||void 0===o||o.dispatch("onError",a);break;case 4:a=I.create({type:c.E.WEBIM_CONNCTION_USER_KICKED_BY_OTHER_DEVICE,message:"the user was kicked by other device"}),this.logOut=!0,this.onError&&this.onError(a),null===(i=this.eventHandler)||void 0===i||i.dispatch("onError",a);break;default:s.kg.error("handleStatisticsMsg:",u)}};function C(e){var t,r=[],n=[];e.data&&e.data.values&&e.data.values.forEach((function(e){Object.entries(e.status).forEach((function(e){n.push({device:e[0],status:Number(e[1])})})),r.push({userId:e.uid,lastTime:Number(e.last_time),expire:Number(e.expiry),ext:e.ext,statusDetails:n})})),this.onPresenceStatusChange&&this.onPresenceStatusChange(r),null===(t=this.eventHandler)||void 0===t||t.dispatch("onPresenceStatusChange",r)}function b(e){var t=this;e.data.forEach((function(e){var r,n={from:e.from,to:e.to,chatType:"chat"===e.channel_type?"singleChat":"groupChat",messageId:e.messageId,reactions:e.reactions,ts:e.ts};null===(r=t.eventHandler)||void 0===r||r.dispatch("onReactionChange",n)}))}function S(e){var t,r,n,o;if(e.data){var i=e.data,s={id:i.id||"",name:i.name||"",parentId:i.muc_parent_id||"",messageId:i.msg_parent_id||"",timestamp:i.timestamp||0,operator:i.from||"",operation:""};switch(i.operation){case"create":s.operation="create",s.createTimestamp=s.timestamp,s.messageCount=0,null===(t=this.eventHandler)||void 0===t||t.dispatch("onChatThreadChange",s);break;case"update_msg":s.operation="update",s.messageCount=i.message_count,i.last_message&&"{}"!==JSON.stringify(i.last_message)?s.lastMessage=f(i.last_message):"{}"===JSON.stringify(i.last_message)&&(s.lastMessage={}),null===(r=this.eventHandler)||void 0===r||r.dispatch("onChatThreadChange",s);break;case"update":s.operation="update",s.messageCount=i.message_count,null===(n=this.eventHandler)||void 0===n||n.dispatch("onChatThreadChange",s);break;case"delete":s.operation="destroy",null===(o=this.eventHandler)||void 0===o||o.dispatch("onChatThreadChange",s)}}}__webpack_require__(7665);var A=function(e){var t=i.P6.parseNotify(e.payload);switch(e.from.name,e.to.name,t.type){case"presence":C.call(this,t);break;case"reaction":b.call(this,t);break;case"thread":S.call(this,t);break;default:s.kg.error("unexpected notify type: ".concat(t.type))}};function M(e){return M="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},M(e)}var w=function(){return w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},w.apply(this,arguments)};function U(){var e="webim",t="",r="",n=[],o=(new Date).valueOf();"webim"===this.deviceId?(r="random_"+o.toString(),e=this.deviceId+"_"+r,t=this.deviceId):e=t=r="webim_"+this.deviceId,this.context.jid&&(this.context.jid.clientResource=e);var i=this.root.lookup("easemob.pb.Provision"),s=i.decode(n);s.compressType=this.compressType,s.encryptType=this.encryptType,s.osType=this.osType,s.version=this.version,s.deviceName=t,s.resource=e,s.deviceUuid=r,s.auth="$t$"+this.token,s.actionVersion="v2.0",s=i.encode(s).finish();var a=this.root.lookup("easemob.pb.MSync"),u=a.decode(n);return u.version=this.version,u.guid=this.context.jid,u.auth="$t$"+this.token,u.command=3,u.deviceId=t,u.serviceId=this.dataReport.getServiceId(),u.encryptType=this.encryptType,u.payload=s,a.encode(u).finish()}function x(e,t){var r=this,n=i.P6.getEnvInfo();if("web"===n.platform||"zfb"===n.platform||"dd"===n.platform){for(var o="",a=0;a<e.length;a++)o+=String.fromCharCode(e[a]);return o=u().btoa(o),"web"===n.platform?o:{data:o,isBuffer:!1,complete:function(){},fail:function(e){"sendSocketMessage:fail taskID not exist"!==e.errMsg&&"SocketTast.send:fail SocketTask.readyState is not OPEN"!==e.errMsg||(s.kg.debug("send message fail and reconnect"),r.reconnect()),t&&r._msgHash&&r._msgHash[t]&&r._msgHash[t].fail({id:t})}}}var c=e;return{data:c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength),fail:function(e){"sendSocketMessage:fail taskID not exist"!==e.errMsg&&"SocketTast.send:fail SocketTask.readyState is not OPEN"!==e.errMsg||r.reconnect(),t&&r._msgHash&&r._msgHash[t]&&r._msgHash[t].fail({id:t})}}}function L(e,t){switch(e.ns){case 0:N.call(this,e);break;case 1:E.call(this,e,t);break;case 2:v.call(this,e);break;case 3:R.handleRosterMsg.call(this,e);break;case 4:this.registerConfrIQHandler&&this.registerConfrIQHandler(e,t,this);break;case 5:A.call(this,e);break;default:s.kg.error("distributeMeta",e)}}function P(e,t){for(var r=function(r){var i=new(n())(e[r].id.low,e[r].id.high,e[r].id.unsigned).toString();if(o._load_msg_cache.some((function(e){return e.msgId===i})))return"continue";var s=e[r].from.name,a=e[r].to?e[r].to.name:"",u=!!e[r].to&&-1!==e[r].to.domain.indexOf("conference");o._load_msg_cache.length<=o.max_cache_length||o._load_msg_cache.shift(),o._load_msg_cache.push({msgId:i,from:s,to:a,isGroup:u}),L.call(o,e[r],t)},o=this,i=0;i<e.length;i++)r(i)}function k(e){var t=this.root.lookup("easemob.pb.CommUnreadDL");if(t=t.decode(e.payload),"agoraToken"===this.grantType){var r=new(n())(t.timestamp.low,t.timestamp.high,t.timestamp.unsigned).toString();this.compareTokenExpireTime(Number(r),this.expirationTime)}if(0===t.unread.length)q.call(this);else for(var o=0;o<t.unread.length;o++)B.call(this,t.unread[o].queue)}function D(){var e=[],t=this.root.lookup("easemob.pb.StatisticsBody"),r=t.decode(e);r.operation=0,r=t.encode(r).finish();var n=this.root.lookup("easemob.pb.Meta").decode(e);n.id=(new Date).valueOf(),n.ns=0,n.payload=r;var o=this.root.lookup("easemob.pb.CommSyncUL"),i=o.decode(e);i.meta=n,i=o.encode(i).finish();var s=this.root.lookup("easemob.pb.MSync"),a=s.decode(e);return a.version=this.version,a.encryptType=[0],a.command=0,a.payload=i,s.encode(a).finish()}function H(e){var t=[],r=this.root.lookup("easemob.pb.CommSyncUL"),n=r.decode(t);n.queue=e,n=r.encode(n).finish();var o=this.root.lookup("easemob.pb.MSync"),i=o.decode(t);return i.version=this.version,i.encryptType=this.encryptType,i.command=0,i.payload=n,o.encode(i).finish()}function B(e){s.kg.debug("sendBackqueue");var t=H.call(this,e);oe.call(this,t)}function G(e,t){var r=[],o=this.root.lookup("easemob.pb.CommSyncUL"),i=o.decode(r);i.queue=t,i.key=new(n())(e.low,e.high,e.unsigned).toString(),i=o.encode(i).finish();var s=this.root.lookup("easemob.pb.MSync"),a=s.decode(r);return a.version=this.version,a.encryptType=this.encryptType,a.command=0,a.payload=i,s.encode(a).finish()}function F(e,t){s.kg.debug("sendLastSession");var r=G.call(this,e,t);oe.call(this,r)}function j(e){var t,r=this.root.lookup("easemob.pb.Provision").decode(e.payload);if(this.context.jid&&(this.context.jid.clientResource=r.resource),this.clientResource=r.resource,0===r.status.errorCode){if(this.onOpened&&this.onOpened(),null===(t=this.eventHandler)||void 0===t||t.dispatch("onConnected"),"agoraToken"===this.grantType){var n=Date.now();this.expiresIn=this.expirationTime-n,this.tokenExpireTimeCountDown(this.expiresIn)}W.call(this),K.call(this),V.call(this),q.call(this)}else this.onError&&this.onError({type:c.E.WEBIM_CONNECTION_ERROR,message:"provision error",data:r})}function W(){if(this.unSendMsgArr.length>0){for(var e=0;e<this.unSendMsgArr.length;e++){var t=this.unSendMsgArr[e];ne.call(this,t)}this.unSendMsgArr=[]}}function q(){var e=D.call(this);oe.call(this,e)}function V(){var e=z.call(this);oe.call(this,e)}function K(){var e=this;J.call(this),this.heartBeatID=setInterval((function(){V.call(e)}),this.heartBeatWait)}function J(){clearInterval(this.heartBeatID)}function z(){var e=this.root.lookup("easemob.pb.MSync"),t=e.decode([]);return t.version=this.version,t.encryptType=this.encryptType,t.command=1,e.encode(t).finish()}function Y(e,t){return e.some((function(e){return e.name===t.name}))}function X(e){var t=this,r=this.root.lookup("easemob.pb.CommNotice").decode(e.payload);Y(this._queues,r.queue)||this.clientResource===r.queue.clientResource&&r.queue.name===this.context.userId||(this._queues.push(r.queue),this.qTimer&&clearTimeout(this.qTimer),this.qTimer=setTimeout((function(){var e=r.queue;Y(t._queues,e)&&(B.call(t,r.queue),s.kg.debug("⬇q:",e))}),1e4),1===this._queues.length&&B.call(this,r.queue))}function $(e){return t=this,r=void 0,o=function(){var t,r,n,o,a,c,l,f;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(p){switch(p.label){case 0:if(t=i.P6.getEnvInfo(),"miniCore"!==this.name)return[3,7];f=this.root.lookup("easemob.pb.MSync"),r=void 0,p.label=1;case 1:return p.trys.push([1,5,,6]),"[object Blob]"!==Object.prototype.toString.call(e.data)?[3,3]:[4,e.data.arrayBuffer()];case 2:return r=p.sent(),[3,4];case 3:s.kg.debug("received message: ".concat(e.data)),p.label=4;case 4:return[3,6];case 5:throw p.sent(),new Error("decode message fail.");case 6:return n=new Uint8Array(r),[2,f.decode(n)];case 7:if("web"===t.platform||"zfb"===t.platform||"dd"===t.platform){for(o=u().atob(e.data),a=[],c=0,l=o.length;c<l;++c)a.push(o.charCodeAt(c));return[2,(f=this.root.lookup("easemob.pb.MSync")).decode(a)]}return[2,(f=this.root.lookup("easemob.pb.MSync")).decode(e.data)];case 8:return[2]}}))},new((n=void 0)||(n=Promise))((function(e,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(s,a)}u((o=o.apply(t,r||[])).next())}));var t,r,n,o}function Q(e){var t=this;e.then((function(e){switch(e.command){case 0:Z.call(t,e);break;case 1:k.call(t,e);break;case 2:X.call(t,e);break;case 3:j.call(t,e);break;default:s.kg.error("unexpected msync command: ".concat(e.command))}}))}function Z(e){var t,r,o,i,s,a,u,l,f,p,d=this.root.lookup("easemob.pb.CommSyncDL");d=d.decode(e.payload);var h=new(n())(d.serverId.low,d.serverId.high,d.serverId.unsigned).toString(),y=new(n())(d.metaId.low,d.metaId.high,d.metaId.unsigned).toString();if(0!==d.metas.length)try{P.call(this,d.metas,d.status)}catch(e){var E=I.create({type:c.E.WEBIM_LOAD_MSG_ERROR,message:"decode message error",data:e});this.onError&&this.onError(E),null===(t=this.eventHandler)||void 0===t||t.dispatch("onError",E)}finally{if(d.isLast){var v=-1;(R=this._queues.some((function(e,t){return e.name===d.name&&(v=t,!0)})))&&v>0&&this._queues.splice(v,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer))}else F.call(this,d.nextKey,d.queue)}else if(d.isLast){var m=-1;(R=this._queues.some((function(e,t){return e.name===d.queue.name&&(m=t,!0)})))&&this._queues.splice(m,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer))}else if(d.status&&0===d.status.errorCode){var O=-1,R=this._queues.some((function(e,t){var r;return e.name===(null===(r=d.queue)||void 0===r?void 0:r.name)&&(O=t,!0)}));if(R&&this._queues.splice(O,1),this._queues.length>0&&(B.call(this,this._queues[0]),this.qTimer&&clearTimeout(this.qTimer)),(b=_.get(y))&&((0,b.rpt)({isEndApi:!0,data:{isSuccess:1,requestName:b.requestName,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.success}}),_.delete(y)),this._msgHash[y]){g.has(y)&&(g.get(y).rpt({isEndApi:!0,data:{isSuccess:1,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.success,msgId:h}}),g.delete(y));try{(null===(r=this._msgHash[y])||void 0===r?void 0:r.resolve)instanceof Function&&this._msgHash[y].resolve({localMsgId:y,serverMsgId:h}),(null===(o=this._msgHash[y])||void 0===o?void 0:o.success)instanceof Function&&this._msgHash[y].success(y,h)}catch(e){E=I.create({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"when executing success function error",data:e}),this.onError&&this.onError(E),null===(i=this.eventHandler)||void 0===i||i.dispatch("onError",E)}this.onReceivedMessage&&this.onReceivedMessage({id:y,mid:h,to:this._msgHash[y].to,time:0}),null===(s=this.eventHandler)||void 0===s||s.dispatch("onReceivedMessage",{id:y,mid:h,to:this._msgHash[y].to}),delete this._msgHash[y]}}else if(d.status&&15===d.status.errorCode)(null===(a=this._msgHash[y])||void 0===a?void 0:a.fail)instanceof Function&&this._msgHash[y].fail({type:c.E.SERVICE_NOT_ALLOW_MESSAGING_MUTE,reason:"you were muted"}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject({type:c.E.SERVICE_NOT_ALLOW_MESSAGING_MUTE,reason:"you were muted"});else if(d.status&&1===d.status.errorCode){var N=void 0;switch(d.status.reason){case"blocked":N=c.E.PERMISSION_DENIED;break;case"group not found":N=c.E.GROUP_NOT_EXIST;break;case"not in group or chatroom":N=c.E.GROUP_NOT_JOINED;break;case"exceed recall time limit":N=c.E.MESSAGE_RECALL_TIME_LIMIT;break;case"message recall disabled":N=c.E.SERVICE_NOT_ENABLED;break;case"not in group or chatroom white list":N=c.E.SERVICE_NOT_ALLOW_MESSAGING;break;case"nonroster":N=c.E.USER_NOT_FRIEND,d.status.reason="not contact";break;case"group is disabled":N=c.E.GROUP_IS_DISABLED,d.status.reason="group is disabled";break;default:N=d.status.reason.includes("moderation")?c.E.MESSAGE_MODERATION_BLOCKED:c.E.SERVER_UNKNOWN_ERROR}if(this._msgHash[y]){var C=I.create({type:N,message:d.status.reason||"",data:{id:y,mid:h}});this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail({type:N,reason:d.status.reason?d.status.reason:"",data:{id:y,mid:h}})}}else if(d.status&&7===d.status.errorCode)"sensitive words"===d.status.reason&&this._msgHash[y]?(C=I.create({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,message:"sensitive words",data:{id:y,mid:h}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,data:{id:y,mid:h,reason:"sensitive words"}})):"blocked by mod_antispam"===d.status.reason&&this._msgHash[y]?(C=I.create({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,message:"blocked by mod_antispam",data:{id:y,mid:h}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail({type:c.E.MESSAGE_INCLUDE_ILLEGAL_CONTENT,data:{id:y,mid:h,reason:"blocked by mod_antispam"}})):"user is mute"===d.status.reason&&this._msgHash[y]?(C=I.create({type:c.E.USER_MUTED_BY_ADMIN,message:"user is mute",data:{id:y,mid:h}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail(C)):"traffic limit"===d.status.reason&&this._msgHash[y]&&(C=I.create({type:c.E.MESSAGE_CURRENT_LIMITING,message:"traffic limit",data:{id:y,mid:h}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail(C));else if(d.status&&19===d.status.errorCode)this._msgHash[y]&&(g.has(y)&&(g.get(y).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,codeDesc:d.status.reason||"",msgId:h}}),g.delete(y)),C=I.create({type:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,message:d.status.reason||"",data:{id:y,mid:h}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail({type:c.E.MESSAGE_EXTERNAL_LOGIC_BLOCKED,data:{id:y,mid:h,reason:d.status.reason}}));else if(this._msgHash[y]){g.has(y)&&(g.get(y).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.WEBIM_LOAD_MSG_ERROR,codeDesc:(null===(u=d.status)||void 0===u?void 0:u.reason)||"",msgId:h}}),g.delete(y));try{C=I.create({type:c.E.WEBIM_LOAD_MSG_ERROR,message:(null===(l=d.status)||void 0===l?void 0:l.reason)||"",data:{id:y,mid:h,reason:d.status&&d.status.reason}}),this._msgHash[y].reject instanceof Function&&this._msgHash[y].reject(C),this._msgHash[y].fail instanceof Function&&this._msgHash[y].fail({type:c.E.WEBIM_LOAD_MSG_ERROR,data:{errorCode:d.status&&d.status.errorCode,reason:d.status&&d.status.reason}})}catch(e){E=I.create({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"when executing fail function error",data:e}),this.onError&&this.onError(E),null===(f=this.eventHandler)||void 0===f||f.dispatch("onError",E)}delete this._msgHash[y]}else{var b;g.has(y)&&(g.get(y).rpt({isEndApi:!0,data:{isSuccess:0,requestMethod:"WEBSOCKET",requestUrl:this.url,code:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,codeDesc:"on message error",msgId:h}}),g.delete(y)),(b=_.get(y))&&((0,b.rpt)({isEndApi:!0,data:{isSuccess:0,requestName:b.requestName,requestMethod:"WEBSOCKET",requestUrl:this.url,code:T.dd.failed,codeDesc:"on message error"}}),_.delete(y)),E=I.create({type:c.E.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,message:"on message error"}),this.onError&&this.onError(E),null===(p=this.eventHandler)||void 0===p||p.dispatch("onError",E)}}function ee(e){var t=[],r=this.root.lookup("easemob.pb.KeyValue"),n=[];for(var o in e){var i=r.decode(t);i.key=o,"object"===M(e[o])?(i.type=8,i.stringValue=JSON.stringify(e[o])):"string"==typeof e[o]?(i.type=7,i.stringValue=e[o]):"boolean"==typeof e[o]?(i.type=1,i.varintValue=!0===e[o]?1:0):Number.isInteger(e[o])?(i.type=2,i.varintValue=e[o]):(i.type=6,i.doubleValue=e[o]),n.push(i)}return n}function te(e){var t,r,n=[];if(this.root){var o,i=this.root.lookup("easemob.pb.MessageBody.Content").decode(n);switch(o=!e.group&&"groupchat"!==(null===(t=null==e?void 0:e.chatType)||void 0===t?void 0:t.toLowerCase())||e.roomType?e.group&&e.roomType||"chatroom"===(null===(r=null==e?void 0:e.chatType)||void 0===r?void 0:r.toLowerCase())?"chatRoom":"singleChat":"groupChat",e.type){case"txt":i.type=0,i.text=e.msg;break;case"img":i.type=1,e.body?(i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.size=e.body.size,i.thumbnailDisplayName=e.body.filename):e.file?(i.displayName=e.file.filename,i.remotePath=e.file.url,i.secretKey=e.file.secret,i.fileLength=e.file.file_length,i.size=e.file.size,i.thumbnailDisplayName=e.file.filename):(i.displayName=e.filename,i.remotePath=e.url,i.secretKey=e.secret,i.fileLength=e.file_length,i.size=e.size,i.thumbnailDisplayName=e.filename);break;case"video":i.type=2,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.duration=e.body.length,i.thumbnailDisplayName=e.body.filename;break;case"loc":i.type=3,i.latitude=e.lat,i.longitude=e.lng,i.address=e.addr,i.buildingName=e.buildingName,i.latitude=e.lat;break;case"audio":i.type=4,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.duration=e.body.length,i.thumbnailDisplayName=e.body.filename;break;case"file":i.type=5,i.displayName=e.body.filename,i.remotePath=e.body.url,i.secretKey=e.body.secret,i.fileLength=e.body.file_length,i.size=e.body.size,i.thumbnailDisplayName=e.body.filename;break;case"cmd":i.type=6,i.action=e.action;break;case"custom":i.type=7,i.customEvent=e.customEvent,i.customExts=ee.call(this,e.customExts)}var s=[];e.ext&&(s=ee.call(this,e.ext));var a=this.root.lookup("easemob.pb.MessageBody"),u=a.decode(n);u.from={name:this.context.jid.name},u.to={name:e.to},"channel"===e.type?u.type=7:"recall"===e.type?(u.type=6,u.ackMessageId=e.ackId):"delivery"===e.type?(u.type=5,u.ackMessageId=e.ackId):"read"===e.type?(u.type=4,u.ackMessageId=e.ackId,"groupChat"===o&&(u.msgConfig={allowGroupAck:!0},u.ackContent=e.ackContent)):"chatRoom"===o?u.type=3:"groupChat"===o?(u.type=2,e.msgConfig&&(u.msgConfig={allowGroupAck:!0})):"singleChat"===o&&(u.type=1),u.contents=[i],u.ext=s;var l=function(e){var t={};return"translations"in e&&(t.translations=e.translations),"isChatThread"in e&&e.isChatThread&&(t.thread={}),Object.keys(t).length>0?JSON.stringify(t):""}(e);l&&(u.meta=l),u=a.encode(u).finish();var f=this.root.lookup("easemob.pb.Meta").decode(n);f.id=e.id;var p="easemob.com";"chatRoom"!==o&&"groupChat"!==o||(p="conference.easemob.com"),f.to={appKey:this.appKey,name:e.to,domain:p},f.ns=1,f.payload=u;var d=this.root.lookup("easemob.pb.CommSyncUL"),h=d.decode(n);h.meta=f,h=d.encode(h).finish();var y=this.root.lookup("easemob.pb.MSync"),E=y.decode(n);return E.version=this.version,E.encryptType=this.encryptType,E.command=0,E.payload=h,y.encode(E).finish()}e.fail&&e.fail({type:c.E.WEBIM_CONNCTION_CLIENT_OFFLINE,message:"Not logged in"})}function re(e){var t=this;if(!e.file)return e;var r=w({},e);return r.accessToken=this.token,r.appKey=this.appKey,r.apiUrl=this.apiUrl,r.body&&r.body.url?te.call(this,r):new Promise((function(n,o){var s=r.onFileUploadComplete;r.onFileUploadComplete=function(n){var o;if(n.entities[0]["file-metadata"]){var i=n.entities[0]["file-metadata"]["content-length"];r.file_length=i,r.filetype=n.entities[0]["file-metadata"]["content-type"],i>204800&&(r.thumbnail=!0)}r.body={type:r.type||"file",secret:n.entities[0]["share-secret"],filename:r.file.filename||r.filename,url:(t.isHttpDNS?t.apiUrl+n.uri.substr(n.uri.indexOf("/",9)):n.uri)+"/"+n.entities[0].uuid,length:r.length||0,filetype:r.filetype||r.file.filetype,file_length:(null===(o=null==r?void 0:r.ext)||void 0===o?void 0:o.file_length)||0,size:{width:r.width||0,height:r.height||0}},r.file.url=n.uri,e.secret=n.entities[0]["share-secret"];var a=(t.isHttpDNS?t.apiUrl+n.uri.substr(n.uri.indexOf("/",9)):n.uri)+"/"+n.entities[0].uuid;e.url=a,n.url=a,"img"===r.type&&(e.thumb="".concat(a,"?thumbnail=true"),n.thumb="".concat(a,"?thumbnail=true")),s instanceof Function&&s(n,r.id);var u=te.call(t,r);g.size<=m&&g.set(r.id,{rpt:t.dataReport.geOperateFun({operationName:T.fI.SEND_MSG})}),oe.call(t,u)},i.P6.uploadFile.call(t,r,T.fI.UPLOAD_MSG_ATTACH)}))}function ne(e){var t=this;return new Promise((function(r,n){var o,i;if(t.logOut)return n({type:c.E.WEBIM_CONNECTION_CLOSED,message:"not login"});var s="file"===e.type||"img"===e.type||"audio"===e.type||"video"===e.type,a="delivery"===e.type||"read"===e.type||"channel"===e.type;if(e.id&&((!s&&!a||s&&t.useOwnUploadFun)&&g.size<=m&&g.set(e.id,{rpt:t.dataReport.geOperateFun({operationName:"recall"===e.type?T.fI.SEND_RECALL_MSG:T.fI.SEND_MSG})}),t._msgHash[e.id]=w(w({},e),{resolve:r,reject:n})),s&&e.file)return re.call(t,e);if("txt"===e.type&&(null===(o=e.msgConfig)||void 0===o?void 0:o.languages)&&Array.isArray(null===(i=e.msgConfig)||void 0===i?void 0:i.languages)&&e.msgConfig.languages.length>0){var u=t.translateMessage||t.translation.translateMessage;if(!u)throw new Error("there is no method to translate message");u({text:e.msg,languages:e.msgConfig.languages}).then((function(r){var n,o=null===(n=r.data[0])||void 0===n?void 0:n.translations;o=o.map((function(e){return{code:e.to,text:e.text}})),e.translations=o;var i=te.call(t,e);oe.call(t,i,e.id)})).catch((function(e){n(e)}))}else{var l=te.call(t,e);oe.call(t,l,e.id)}}))}function oe(e,t){if(!this.isOpened())return this.unSendMsgArr.push(e),!this.logOut&&this.autoReconnectNumTotal<this.autoReconnectNumMax&&(this.autoReconnectNumTotal<=this.socketHost.length&&this.isHttpDNS||!this.isHttpDNS)&&(s.kg.debug("need to reconnect",this.autoReconnectNumTotal,this.autoReconnectNumMax),this.offLineSendConnecting=!0,this.reconnect()),void(this.onError&&this.onError({type:c.E.WEBIM_CONNCTION_DISCONNECTED,message:"websocket has been disconnected"}));var r;r="miniCore"===this.name?e:x.call(this,e,t),this.sock.send(r)}var ie=function(e,t){return e.send=ne,e.sendMsg=ne,s.kg.debug("init Msync by ".concat(e.name)),{generateProvision:U.bind(e),base64transform:x.bind(e),distributeMeta:L.bind(e),decodeMeta:P.bind(e),decodeUnreadDL:k.bind(e),_rebuild:D.bind(e),_lastsession:G.bind(e),receiveProvision:j.bind(e),isInQueue:Y.bind(e),decodeNotice:X.bind(e),decodeMSync:$.bind(e),distributeMSync:Q.bind(e),encodeChatMsg:te.bind(e),upLoadFile:re.bind(e),send:ne.bind(e),stopHeartBeat:J.bind(e)}},se=function(){function e(e,t,r){this.handlerData={},this.handlerData={},e.addEventHandler=this.addEventHandler.bind(this),e.removeEventHandler=this.removeEventHandler.bind(this)}return e.prototype.addEventHandler=function(e,t){this.handlerData[e]=t},e.prototype.removeEventHandler=function(e){delete this.handlerData[e]},e.prototype.dispatch=function(e,t){for(var r in s.kg.debug("dispatch event: "+e,t||""),this.handlerData){var n=this.handlerData[r][e];n&&n(t)}},e}(),ae={biz:"",debug:!1,token:""},ue="https://data-reporting.agora.io/report",ce="https://data-reporting.sh.agoralab.co/report",le=function(e){var t=Number(T.C8[e]);return t===T.C8.USER_LOGIN?"MANUALLOGIN":t===T.C8.MSYNC_SENDMESSAGE?"SENDMESSAGE":t>T.C8.UNKNOWOPERATION&&t<T.C8.REST_OPERATE?"REST":t>T.C8.REST_OPERATE&&t<T.C8.MSYNC_OPERATE?"MESSAGE":t>T.C8.MSYNC_OPERATE&&t<T.C8.ROSTER_OPERATE?"ROSTER":t>T.C8.ROSTER_OPERATE&&t<T.C8.USER_OPERATE?"USER":t>T.C8.USER_OPERATE&&t<T.C8.GROUP_OPERATE?"GROUP":t>T.C8.GROUP_OPERATE&&t<T.C8.CHATROOM_OPERATE?"CHATROOM":"OPERATION"},fe=function(){return(new Date).getTime()},pe=function(e){return[i.iw.BAIDU,i.iw.WX,i.iw.DD,i.iw.ZFB,i.iw.TT,i.iw.QUICK_APP,i.iw.UNI].includes(e.platform)},de=function(){return e=1,t=99999,e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e))+e;var e,t},he={},ye=1e3,Ee=function(){function e(e){this.eventQueue=[],this.stock=ye,this.config=e,this.governor()}return e.prototype.add=function(e){this.stock<=0?console.warn("Event Report limit ".concat(ye," per minute")):(this.eventQueue.push(e),this.consume(),this.stock-=1)},e.prototype.consume=function(){var e=this;0!==this.eventQueue.length&&(this.timer&&this.eventQueue.length<=10&&clearTimeout(this.timer),this.timer=setTimeout((function(){var t,r=e.eventQueue.splice(0,10),n=r.filter((function(e){return e.appId===r[0].appId})),o=r.filter((function(e){return e.appId!==r[0].appId}));(t=e.eventQueue).unshift.apply(t,o),e.batchSend(n)}),1e3))},e.prototype.governor=function(){var e=this,t=setInterval((function(){e.stock=ye}),6e4);"undefined"!=typeof addEventListener&&addEventListener("beforeunload",(function(){clearInterval(t)}))},e.prototype.batchSend=function(e){var t,r;if(void 0===e&&(e=[]),0!==e.length)try{var n=e.map((function(e){e.biz,e.appId;var t=e.eventId,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["biz","appId","eventId"]);return{eventId:Number(t),body:r}}));!function(e,t){try{var r=t.biz,n=t.appId,o=t.data,s=t.debug,a=t.onSuccess;if(!r)throw new Error("biz is not defined");he.global||(he=i.P6.getEnvInfo());var u=he;if(pe(u)){var c={url:s?ce:ue,data:o,method:"POST",success:function(){null==a||a()},fail:function(){},complete:function(){}},l={token:e,appid:null!=n?n:"",sendts:"".concat(Math.floor((new Date).getTime()/1e3)),biz:r,debug:"".concat(s)};if("zfb"===u.platform||"dd"===u.platform?c.headers=l:c.header=l,"dd"===u.platform)return u.global.httpRequest(c);u.global.request(c)}else{var f=new XMLHttpRequest;f.onreadystatechange=function(){2===f.readyState&&(null==a||a())},f.open("POST",s?ce:ue),f.setRequestHeader("Content-Type","application/json"),f.setRequestHeader("token",e),f.setRequestHeader("appid",null!=n?n:""),f.setRequestHeader("sendts","".concat(Math.floor((new Date).getTime()/1e3))),f.setRequestHeader("biz",r),f.setRequestHeader("debug","".concat(s)),f.send(JSON.stringify(o))}}catch(e){console.error(e)}}(this.config.token,{biz:null===(t=e[0])||void 0===t?void 0:t.biz,appId:null===(r=e[0])||void 0===r?void 0:r.appId,data:n,debug:this.config.debug,onSuccess:this.consume.bind(this)})}catch(e){console.error(e)}},e}(),ve=function(){return ve=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ve.apply(this,arguments)},_e=new(function(){function e(e){this.inited=!1,this.appId="",this.biz="",this.eventQueue={},this.config=ae,e&&this.init(e)}return e.prototype.init=function(e){var t;if(void 0===e&&(e={}),!e.biz||!e.token)throw new Error("Event Report: biz or token is not defined");try{this.appId=null!==(t=e.appId)&&void 0!==t?t:"",this.biz=e.biz,this.config=ve(ve({},ae),e),this.eventQueue=new Ee(this.config),this.log(e),this.inited=!0}catch(e){console.error(e)}},e.prototype.send=function(e,t,r){var n;if(void 0===t&&(t={}),this.inited){var o=ve(ve({},t),{eventId:Number(e),biz:this.biz,appId:null!==(n=null==r?void 0:r.appId)&&void 0!==n?n:this.appId});this.eventQueue.add(o),this.log(o)}else console.error("Event Report: init is not called")},e.prototype.log=function(e){try{if(this.config.debug){var t=e.payload,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["payload"]);console.log("%c Event Report: ".concat(this.config.biz," "),"background: #8A97FC; color: #fff"),console.table(r),t&&(console.info("payload:"),console.table(t))}}catch(e){console.error(e)}},e}()),ge=function(){return ge=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ge.apply(this,arguments)},me={requestName:"",subrequestid:"1",requestMethod:"GET",requestUrl:"",requestElapse:0,code:0,codeDesc:"",isLastApi:0,isSuccess:1},Oe=function(){function e(e){this.platform=i.P6.getEnvInfo(),this.isReportDt=e.isReport||!1,this.isCollectDt=!0,pe(this.platform)&&!this.isReportDt&&(this.isCollectDt=!1),this.eventQueue=[],this.accessChannel="direct",this.options=function(e,t){t.platform||(t=i.P6.getEnvInfo());var r=e.org,n=e.appkey,o=e.deviceId,s=e.sdkVersion,a=(null===navigator||void 0===navigator?void 0:navigator.userAgent)||"".concat(t.platform,"_mini_program");return{org:r,appkey:n,deviceId:o,sdkServiceId:"sid_".concat(i.P6.getUniqueId(),"_").concat(de()),did:a,sdkVersion:s,os:7,sdkProduct:T.aC.web}}(e,this.platform),this.sid=this.options.sdkServiceId,this.init(e)}return e.getInstance=function(){return e.instance},e.prototype.getServiceId=function(){return this.sid||"sid_0"},e.prototype.setIsReportDt=function(e){this.isReportDt=e,e&&this.rptEventQueue()},e.prototype.setIsCollectDt=function(e){this.isCollectDt=e,e||(this.eventQueue=[])},e.prototype.rptEventQueue=function(){var e=this;this.eventQueue.length&&this.eventQueue.forEach((function(t,r){_e.send(t.eventId,t.dt),r>=e.eventQueue.length-1&&(e.eventQueue=[])}))},e.prototype.init=function(t){e.instance||(e.instance=this,_e.init({biz:"im",token:"32f24ab2ddb74f508aa9286c356cec84",appId:t.appkey,debug:!1}),this.reportInit())},e.prototype.reportInit=function(){if(this.isCollectDt){var e=this.options,t=e.did,r=e.os,n=e.sdkVersion,o=e.deviceId;this.reportData(9674,{did:t,os:r,sdkVersion:n,deviceId:o})}},e.prototype.geOperateFun=function(e){var t=this;if(!this.isCollectDt)return function(){};var r=1,n=0,o="",s=fe(),a=e.uid,u=e.operationName;a&&(this.uid=a);var c={uid:this.uid,operationId:"opr_".concat(i.P6.getUniqueId(),"_").concat(de()),requestid:"req_".concat(i.P6.getUniqueId(),"_").concat(de()),operationName:u};return function(e){var a,l,f,p;if(e.data.isSuccess?(n=0,o=""):(0===e.data.code&&(e.data.code=-1),n=null!==(a=e.data.code)&&void 0!==a?a:n,o=null!==(l=e.data.codeDesc)&&void 0!==l?l:o),(null===(f=e.data)||void 0===f?void 0:f.accessChannel)&&(t.accessChannel=null===(p=e.data)||void 0===p?void 0:p.accessChannel),e.isRetry?(r++,e.data.subrequestid="".concat(r)):(c.requestid="req_".concat(i.P6.getUniqueId(),"_").concat(de()),r=1),e.data.isLastApi){var d=fe();e.data.requestElapse=d-s,e.data.requestMethod="",e.data.subrequestid="0",e.data.code=200===n?0:n,e.data.codeDesc=o}else e.data.requestName||(e.data.requestName=u);e.data.requestElapse||(e.data.requestElapse=fe()-s),t.reportData.call(t,O,ge(ge(ge(ge({},me),c),e.data),{accessChannel:t.accessChannel,operationType:le(u)})),e.isEndApi&&t.reportData.call(t,O,ge(ge(ge({},c),me),{isSuccess:e.data.isSuccess,isLastApi:1,subrequestid:"0",requestMethod:"",code:200===n?0:n,codeDesc:o,requestElapse:e.data.requestElapse,accessChannel:t.accessChannel,operationType:le(u)}))}},e.prototype.reportData=function(e,t){return r=this,n=void 0,s=function(){var r,n,o,s,a,u,c,l;return function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),r=fe(),n=0,e!==O?[3,2]:[4,(p=this.platform,new Promise((function(e){var t;p.platform||(p=i.P6.getEnvInfo());var r="";if(p.platform===i.iw.WEB){var n=navigator.connection;(null==n?void 0:n.type)?(null==n||n.type,r=T.td.WIFI):(null==n?void 0:n.effectiveType)&&(r=T.td[n.effectiveType.toLocaleUpperCase()]),e(r)}else p.platform===i.iw.NODE?(r=T.td.UNKNOWN,e(r)):null===(t=p.global)||void 0===t||t.getNetworkType({success:function(t){r=T.td[t.networkType.toLocaleUpperCase()],e(r)}})})))];case 1:n=f.sent(),f.label=2;case 2:return o=this.options,s=o.appkey,a=o.sdkServiceId,u=o.sdkProduct,c=ge({lts:r,net:n,appkey:s,sdkServiceId:a,sdkProduct:u},t),this.isReportDt?_e.send(e,c):this.isCollectDt&&this.eventQueue.push({eventId:e,dt:c}),[3,4];case 3:return l=f.sent(),console.warn(l),[3,4];case 4:return[2]}var p}))},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{u(s.next(e))}catch(e){t(e)}}function a(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(i,a)}u((s=s.apply(r,n||[])).next())}));var r,n,o,s},e}();function Te(e){return Te="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},Te(e)}var Re=function(){return Re=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)},Ie=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))},Ne=function(e,t){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}};t().util.Long=n(),t().configure();var Ce=t().Root.fromJSON({nested:{easemob:{nested:{pb:{nested:{MessageBody:{fields:{type:{type:"Type",id:1},from:{type:"JID",id:2},to:{type:"JID",id:3},contents:{rule:"repeated",type:"Content",id:4},ext:{rule:"repeated",type:"KeyValue",id:5},ackMessageId:{type:"uint64",id:6},msgConfig:{type:"MessageConfig",id:7},ackContent:{type:"string",id:8},meta:{type:"string",id:9}},nested:{Content:{fields:{type:{type:"Type",id:1},text:{type:"string",id:2},latitude:{type:"double",id:3},longitude:{type:"double",id:4},address:{type:"string",id:5},displayName:{type:"string",id:6},remotePath:{type:"string",id:7},secretKey:{type:"string",id:8},fileLength:{type:"int32",id:9},action:{type:"string",id:10},params:{rule:"repeated",type:"KeyValue",id:11},duration:{type:"int32",id:12},size:{type:"Size",id:13},thumbnailRemotePath:{type:"string",id:14},thumbnailSecretKey:{type:"string",id:15},thumbnailDisplayName:{type:"string",id:16},thumbnailFileLength:{type:"int32",id:17},thumbnailSize:{type:"Size",id:18},customEvent:{type:"string",id:19},customExts:{rule:"repeated",type:"KeyValue",id:20},buildingName:{type:"string",id:21}},nested:{Type:{values:{TEXT:0,IMAGE:1,VIDEO:2,LOCATION:3,VOICE:4,FILE:5,COMMAND:6,CUSTOM:7}},Size:{fields:{width:{type:"double",id:1},height:{type:"double",id:2}}}}},Type:{values:{NORMAL:0,CHAT:1,GROUPCHAT:2,CHATROOM:3,READ_ACK:4,DELIVER_ACK:5,RECALL:6,CHANNEL_ACK:7}},MessageConfig:{fields:{allowGroupAck:{type:"bool",id:1}}}}},KeyValue:{oneofs:{value:{oneof:["varintValue","floatValue","doubleValue","stringValue"]}},fields:{key:{type:"string",id:1},type:{type:"ValueType",id:2},varintValue:{type:"int64",id:3},floatValue:{type:"float",id:4},doubleValue:{type:"double",id:5},stringValue:{type:"string",id:6}},nested:{ValueType:{values:{BOOL:1,INT:2,UINT:3,LLINT:4,FLOAT:5,DOUBLE:6,STRING:7,JSON_STRING:8}}}},JID:{fields:{appKey:{type:"string",id:1},name:{type:"string",id:2},domain:{type:"string",id:3},clientResource:{type:"string",id:4}}},ConferenceBody:{fields:{sessionId:{type:"string",id:1},operation:{type:"Operation",id:2},conferenceId:{type:"string",id:3},type:{type:"Type",id:4},content:{type:"string",id:5},network:{type:"string",id:6},version:{type:"string",id:7},identity:{type:"Identity",id:8},duration:{type:"string",id:9},peerName:{type:"string",id:10},endReason:{type:"EndReason",id:11},status:{type:"Status",id:12},isDirect:{type:"bool",id:13},controlType:{type:"StreamControlType",id:14},routeFlag:{type:"int32",id:15},routeKey:{type:"string",id:16}},nested:{Status:{fields:{errorCode:{type:"int32",id:1}}},Operation:{values:{JOIN:0,INITIATE:1,ACCEPT_INITIATE:2,ANSWER:3,TERMINATE:4,REMOVE:5,STREAM_CONTROL:6,MEDIA_REQUEST:7}},Type:{values:{VOICE:0,VIDEO:1}},Identity:{values:{CALLER:0,CALLEE:1}},EndReason:{values:{HANGUP:0,NORESPONSE:1,REJECT:2,BUSY:3,FAIL:4,UNSUPPORTED:5,OFFLINE:6}},StreamControlType:{values:{PAUSE_VOICE:0,RESUME_VOICE:1,PAUSE_VIDEO:2,RESUME_VIDEO:3}}}},MSync:{fields:{version:{type:"Version",id:1,options:{default:"MSYNC_V1"}},guid:{type:"JID",id:2},auth:{type:"string",id:3},compressAlgorimth:{type:"uint32",id:4},crypto:{type:"uint32",id:5},userAgent:{type:"string",id:6},pov:{type:"uint64",id:7},command:{type:"Command",id:8},deviceId:{type:"uint32",id:10},encryptType:{rule:"repeated",type:"EncryptType",id:11,options:{packed:!1}},encryptKey:{type:"string",id:12},payload:{type:"bytes",id:9}},nested:{Version:{values:{MSYNC_V1:0,MSYNC_V2:1}},Command:{values:{SYNC:0,UNREAD:1,NOTICE:2,PROVISION:3}}}},EncryptType:{values:{ENCRYPT_NONE:0,ENCRYPT_AES_128_CBC:1,ENCRYPT_AES_256_CBC:2}},CommSyncUL:{fields:{meta:{type:"Meta",id:1},key:{type:"uint64",id:2},queue:{type:"JID",id:3},isRoam:{type:"bool",id:4},lastFullRoamKey:{type:"uint64",id:5}}},CommSyncDL:{fields:{status:{type:"Status",id:1},metaId:{type:"uint64",id:2},serverId:{type:"uint64",id:3},metas:{rule:"repeated",type:"Meta",id:4},nextKey:{type:"uint64",id:5},queue:{type:"JID",id:6},isLast:{type:"bool",id:7},timestamp:{type:"uint64",id:8},isRoam:{type:"bool",id:9}}},CommNotice:{fields:{queue:{type:"JID",id:1}}},CommUnreadUL:{fields:{}},CommUnreadDL:{fields:{status:{type:"Status",id:1},unread:{rule:"repeated",type:"MetaQueue",id:2},timestamp:{type:"uint64",id:3}}},MetaQueue:{fields:{queue:{type:"JID",id:1},n:{type:"uint32",id:2}}},Meta:{fields:{id:{type:"uint64",id:1},from:{type:"JID",id:2},to:{type:"JID",id:3},timestamp:{type:"uint64",id:4},ns:{type:"NameSpace",id:5},payload:{type:"bytes",id:6},routetype:{type:"RouteType",id:7},ext:{type:"KeyValue",id:8},meta:{type:"bytes",id:9}},nested:{NameSpace:{values:{STATISTIC:0,CHAT:1,MUC:2,ROSTER:3,CONFERENCE:4,NOTIFY:5,QUERY:6}},RouteType:{values:{ROUTE_ALL:0,ROUTE_ONLINE:1}}}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},reason:{type:"string",id:2},redirectInfo:{rule:"repeated",type:"RedirectInfo",id:3}},nested:{ErrorCode:{values:{OK:0,FAIL:1,UNAUTHORIZED:2,MISSING_PARAMETER:3,WRONG_PARAMETER:4,REDIRECT:5,TOKEN_EXPIRED:6,PERMISSION_DENIED:7,NO_ROUTE:8,UNKNOWN_COMMAND:9,PB_PARSER_ERROR:10,BIND_ANOTHER_DEVICE:11,IM_FORBIDDEN:12,TOO_MANY_DEVICES:13,PLATFORM_LIMIT:14,USER_MUTED:15,ENCRYPT_DISABLE:16,ENCRYPT_ENABLE:17,DECRYPT_FAILURE:18,PERMISSION_DENIED_EXTERNAL:19}}}},RedirectInfo:{fields:{host:{type:"string",id:1},port:{type:"uint32",id:2}}},Provision:{fields:{osType:{type:"OsType",id:1},version:{type:"string",id:2},networkType:{type:"NetworkType",id:3},appSign:{type:"string",id:4},compressType:{rule:"repeated",type:"CompressType",id:5,options:{packed:!1}},encryptType:{rule:"repeated",type:"EncryptType",id:6,options:{packed:!1}},encryptKey:{type:"string",id:7},status:{type:"Status",id:8},deviceUuid:{type:"string",id:9},isManualLogin:{type:"bool",id:10},password:{type:"string",id:11},deviceName:{type:"string",id:12},resource:{type:"string",id:13},auth:{type:"string",id:14},serviceId:{type:"string",id:16},actionVersion:{type:"string",id:17}},nested:{OsType:{values:{OS_IOS:0,OS_ANDROID:1,OS_LINUX:2,OS_OSX:3,OS_WIN:4,OS_OTHER:16}},NetworkType:{values:{NETWORK_NONE:0,NETWORK_WIFI:1,NETWORK_4G:2,NETWORK_3G:3,NETWORK_2G:4,NETWORK_WIRE:5}},CompressType:{values:{COMPRESS_NONE:0,COMPRESS_ZLIB:1}}}},MUCBody:{fields:{mucId:{type:"JID",id:1},operation:{type:"Operation",id:2},from:{type:"JID",id:3},to:{rule:"repeated",type:"JID",id:4},setting:{type:"Setting",id:5},reason:{type:"string",id:6},isChatroom:{type:"bool",id:7},status:{type:"Status",id:8},isThread:{type:"bool",id:9},mucParentId:{type:"JID",id:10},mucName:{type:"string",id:11},eventInfo:{type:"EventInfo",id:12}},nested:{Operation:{values:{CREATE:0,DESTROY:1,JOIN:2,LEAVE:3,APPLY:4,APPLY_ACCEPT:5,APPLY_DECLINE:6,INVITE:7,INVITE_ACCEPT:8,INVITE_DECLINE:9,KICK:10,GET_BLACKLIST:11,BAN:12,ALLOW:13,UPDATE:14,BLOCK:15,UNBLOCK:16,PRESENCE:17,ABSENCE:18,DIRECT_JOINED:19,ASSIGN_OWNER:20,ADD_ADMIN:21,REMOVE_ADMIN:22,ADD_MUTE:23,REMOVE_MUTE:24,UPDATE_ANNOUNCEMENT:25,DELETE_ANNOUNCEMENT:26,UPLOAD_FILE:27,DELETE_FILE:28,ADD_USER_WHITE_LIST:29,REMOVE_USER_WHITE_LIST:30,BAN_GROUP:31,REMOVE_BAN_GROUP:32,THREAD_CREATE:33,THREAD_DESTROY:34,THREAD_JOIN:35,THREAD_LEAVE:36,THREAD_KICK:37,THREAD_UPDATE:38,THREAD_PRESENCE:39,THREAD_ABSENCE:40,DISABLE_GROUP:41,ABLE_GROUP:42,SET_METADATA:43,DELETE_METADATA:44}},Setting:{fields:{name:{type:"string",id:1},desc:{type:"string",id:2},type:{type:"Type",id:3},maxUsers:{type:"int32",id:4},owner:{type:"string",id:5}},nested:{Type:{values:{PRIVATE_OWNER_INVITE:0,PRIVATE_MEMBER_INVITE:1,PUBLIC_JOIN_APPROVAL:2,PUBLIC_JOIN_OPEN:3,PUBLIC_ANONYMOUS:4}}}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},description:{type:"string",id:2}},nested:{ErrorCode:{values:{OK:0,PERMISSION_DENIED:1,WRONG_PARAMETER:2,MUC_NOT_EXIST:3,USER_NOT_EXIST:4,UNKNOWN:5}}}},EventInfo:{fields:{eventType:{type:"EventType",id:1,options:{default:"EVENT_NONE"}},ext:{type:"string",id:2}},nested:{EventType:{values:{EVENT_NONE:0,CIRCLE_CHANNEL:1}}}}}},RosterBody:{fields:{operation:{type:"Operation",id:1},status:{type:"Status",id:2},from:{type:"JID",id:3},to:{rule:"repeated",type:"JID",id:4},reason:{type:"string",id:5},rosterVer:{type:"string",id:6},biDirection:{type:"bool",id:7}},nested:{Operation:{values:{GET_ROSTER:0,GET_BLACKLIST:1,ADD:2,REMOVE:3,ACCEPT:4,DECLINE:5,BAN:6,ALLOW:7,REMOTE_ACCEPT:8,REMOTE_DECLINE:9}},Status:{fields:{errorCode:{type:"ErrorCode",id:1},description:{type:"string",id:2}},nested:{ErrorCode:{values:{OK:0,USER_NOT_EXIST:1,USER_ALREADY_FRIEND:2,USER_ALREADY_BLACKLIST:3}}}}}},StatisticsBody:{fields:{operation:{type:"Operation",id:1},os:{type:"OsType",id:2},version:{type:"string",id:3},network:{type:"NetworkType",id:4},imTime:{type:"uint32",id:5},chatTime:{type:"uint32",id:6},location:{type:"string",id:7}},nested:{Operation:{values:{INFORMATION:0,USER_REMOVED:1,USER_LOGIN_ANOTHER_DEVICE:2,USER_KICKED_BY_CHANGE_PASSWORD:3,USER_KICKED_BY_OTHER_DEVICE:4}},OsType:{values:{OS_IOS:0,OS_ANDROID:1,OS_LINUX:2,OS_OSX:3,OS_WIN:4,OS_OTHER:16}},NetworkType:{values:{NETWORK_NONE:0,NETWORK_WIFI:1,NETWORK_4G:2,NETWORK_3G:3,NETWORK_2G:4,NETWORK_WIRE:5}}}}}}}}}}),be=function(){function e(e){var t,r,n;if(this.name="miniCore",this.heartBeatWait=3e4,this.Message=o.Message,this.Code=c.E,this.getUniqueId=i.Ki,this._queues=[],this._load_msg_cache=[],this.max_cache_length=100,this.isReport=!1,this.dnsIndex=0,this.autoReconnectNumTotal=0,this.times=1,this.url=null!==(t=e.url)&&void 0!==t?t:"",this.apiUrl=null!==(r=e.apiUrl)&&void 0!==r?r:"",this.isHttpDNS=!!e.isHttpDNS,this.appKey=e.appKey,this.root=Ce,this.isHttpDNS=void 0===e.isHttpDNS||e.isHttpDNS,this.https="undefined"!=typeof window&&"https:"===(null===(n=window.location)||void 0===n?void 0:n.protocol),this.delivery=e.delivery||!1,this.restIndex=0,this.hostIndex=0,this.autoReconnectNumMax=e.autoReconnectNumMax||5,this.refreshDNSIntervals=this.autoReconnectNumMax<5?this.autoReconnectNumMax:5,this.unSendMsgArr=[],this.socketHost=[],this.logOut=!0,this.dnsArr=["https://rs.easemob.com","https://rs.chat.agora.io","http://59.110.89.59","http://39.97.193.190","http://39.97.193.187"],this.version="4.1.1-mini",this.deviceId=e.deviceId||"webim",this.logOut=!0,this.osType=16,this.compressType=[0],this.encryptType=[0],this._msgHash={},this.context={jid:{appKey:"",clientResource:"",domain:"easemob.com",name:""},userId:"",appKey:"",status:0,restTokenData:"",appName:"",orgName:"",root:{},accessToken:""},this.mSync=this.usePlugin(ie),this.eventHandler=this.usePlugin(se),"string"!=typeof this.appKey||2!==this.appKey.split("#").length)throw Error("Illegal appKey: ".concat(this.appKey));var s=this.appKey.split("#");this.orgName=s[0],this.appName=s[1],this.dataReport=new Oe({appkey:this.appKey,org:this.orgName,sdkVersion:this.version,deviceId:this.deviceId,isReport:this.isReport})}return e.prototype.usePlugin=function(e,t){var r=this;if("function"==typeof e){if(!t)return new e(this);this[t]=new e(this)}else"object"===Te(e)&&(t?(this[t]={},Object.keys(e).forEach((function(n){r[t][n]=e[n].bind(r)}))):Object.assign(this,e))},e.prototype.isOpened=function(){return this.sock&&1===this.sock.readyState||!1},e.prototype.open=function(e){return Ie(this,void 0,void 0,(function(){return Ne(this,(function(t){if(this.isOpened.call(this))throw I.create({type:c.E.WEBIM_CONNCTION_OPEN_ERROR,message:"You are already logged in"});return[2,this._open(e)]}))}))},e.prototype._open=function(e,t){return Ie(this,void 0,void 0,(function(){var r,n,o,s,a,u,l,f,p,d,h,y,E,v,_,g,m,O;return Ne(this,(function(R){switch(R.label){case 0:if(this.setContext(e),this.logOut=!1,!e.username||"string"!=typeof e.username)throw new Error("Invalid parameter username: ".concat(e.username));return r=this.dataReport.geOperateFun({uid:e.username,operationName:T.fI.LOGIN}),!this.isHttpDNS||t?[3,2]:[4,this.getDNS({rpt:r,isRetry:!!t})];case 1:R.sent(),R.label=2;case 2:return n=this.apiUrl+"/"+this.orgName+"/"+this.appName+"/token",e.agoraToken?(this.grantType="agoraToken",[4,Se(this.getChatToken(e.agoraToken))]):[3,4];case 3:if(o=R.sent(),p=o[0],d=o[1],p)throw s=I.create({type:c.E.WEBIM_CONNCTION_GETROSTER_ERROR,message:"get chat token fail",data:p.data}),a=p.extraInfo,g=a.elapse,_=a.httpCode,y=a.errDesc,m={requestName:T.c.LOGIN_BY_AGORA_TOKEN,requestUrl:n,requestElapse:g,isSuccess:0,code:_,codeDesc:y},r({data:m}),r({data:{isLastApi:1,isSuccess:0}}),delete p.extraInfo,s;return this.grantType="agoraToken",this.user=e.username,this.expirationTime=d.expire_timestamp,this.token=d.access_token,this.context.accessToken=d.access_token,this.context.restTokenData=d.access_token,u=d.extraInfo||{},_=u.httpCode,g=u.elapse,m={requestName:T.c.LOGIN_BY_AGORA_TOKEN,requestUrl:n,requestElapse:g,isSuccess:1,code:_},r({data:m}),[3,7];case 4:return e.password?(l={headers:{"Content-type":"application/json"},url:n,dataType:"json",data:JSON.stringify({grant_type:"password",username:e.username,password:e.password,timestamp:+new Date})},[4,Se(i.P6.ajax(l,T.fI.SDK_INTERNAL))]):[3,6];case 5:if(f=R.sent(),p=f[0],d=f[1],p){if(h=(null==p?void 0:p.extraInfo)||{},g=h.elapse,_=h.httpCode,y=h.errDesc,E={requestName:T.c.LOGIN_BY_PWD,requestElapse:g,requestUrl:n,isSuccess:0,code:_,codeDesc:y},r({isRetry:!1,data:E}),this.isHttpDNS&&this.restIndex+1<this.restTotal)return this.restIndex++,this.setRestUrl(),this._open(e,!0),[2];throw r({data:{isLastApi:1,isSuccess:0}}),this.clear(),delete p.extraInfo,p}if(!d)throw new Error("get token fail.");return this.grantType="accessToken",this.token=d.access_token,this.user=e.username,this.context.accessToken=d.access_token,d.extraInfo&&(v=d.extraInfo,_=v.httpCode,g=v.elapse,m={requestName:T.c.LOGIN_BY_PWD,requestElapse:g,requestUrl:n,isSuccess:1,code:_},r({isRetry:!1,data:m})),[3,7];case 6:if(!e.accessToken)throw new Error("Invalid parameter params: ".concat(e));this.grantType="accessToken",this.token=e.accessToken,this.context.accessToken=e.accessToken,this.context.restTokenData=e.accessToken,this.user=e.username,R.label=7;case 7:return O=new WebSocket(this.url),this.sock=O,this.initEventHandle(O,r),[2]}}))}))},e.prototype.initEventHandle=function(e,t){var r=this;e.onopen=function(){var n;t({data:{isLastApi:1,isSuccess:1,accessChannel:null===(n=r.socketHost[r.hostIndex])||void 0===n?void 0:n.channel}}),(0,i.P4)(r.online.bind(r),r.offline.bind(r));var o=r.mSync.generateProvision();e.send(o)},e.onclose=function(){var e,t;if(s.kg.debug("websocket onclose"),!r.logOut&&r.autoReconnectNumTotal<r.autoReconnectNumMax)r.reconnect(),r.autoReconnectNumTotal%r.refreshDNSIntervals==0&&r.isHttpDNS&&(s.kg.debug("refresh dns config when websocket close"),r.getDNS({isRetry:!1}));else if(r.logOut)r.clear(),null===(e=r.eventHandler)||void 0===e||e.dispatch("onDisconnected"),r.mSync.stopHeartBeat(),r.autoReconnectInterval=0,r.times=1,r.autoReconnectNumTotal=0,r.hostIndex=0;else{var n={type:c.E.WEBIM_CONNCTION_DISCONNECTED,message:"websocket has been disconnected"};null===(t=r.eventHandler)||void 0===t||t.dispatch("onDisconnected",n),r.mSync.stopHeartBeat(),s.kg.debug("reconnect fail"),r.autoReconnectInterval=0,r.times=1,r.autoReconnectNumTotal=0,r.hostIndex=0}},e.onmessage=function(e){var t=r.mSync,n=t.decodeMSync,o=t.distributeMSync;i.P6.flow([n,o])(e,!1)},e.onerror=function(e){var n;s.kg.debug("websocket onerror"),!r.logOut&&r.autoReconnectNumTotal<r.autoReconnectNumMax&&3!==r.sock.readyState&&(s.kg.debug("sock.onError reconnect",r.autoReconnectNumTotal,r.autoReconnectNumMax),r.reconnect(),r.autoReconnectNumTotal%r.refreshDNSIntervals==0&&r.isHttpDNS&&(s.kg.debug("refresh dns config when websocket error"),r.getDNS({rpt:t,isRetry:!1}))),t({data:{isLastApi:1,isSuccess:0,accessChannel:null===(n=r.socketHost[r.hostIndex])||void 0===n?void 0:n.channel}})}},e.prototype.close=function(){this.logOut=!0,this.context.status=404,this.sock&&this.sock.close(),this.stopHeartBeat(),this.context.status=405,this._load_msg_cache=[],this.unSendMsgArr=[],this._queues=[],this._msgHash={},this.mr_cache={}},e.prototype.registerUser=function(e){return Ie(this,void 0,void 0,(function(){var t,r,n,o,s,a,u,c,l,f,p,d,h,y;return Ne(this,(function(E){switch(E.label){case 0:return t=this.dataReport.geOperateFun({uid:e.username,operationName:T.fI.REGISTER}),this.isHttpDNS?[4,this.getDNS({rpt:t,isRetry:!1})]:[3,2];case 1:E.sent(),E.label=2;case 2:return r=this.apiUrl,n=r+"/"+this.orgName+"/"+this.appName+"/users",o=JSON.stringify({username:e.username,password:e.password,nickname:e.nickname||""}),s={headers:{"Content-type":"application/json"},url:n,dataType:"json",data:o},[4,Se(i.P6.ajax(s,T.fI.SDK_INTERNAL))];case 3:if(a=E.sent(),u=a[0],c=a[1],l={requestName:T.c.RESISTER,requestUrl:n},u){if(f=u.extraInfo||{},h=f.httpCode,y=f.elapse,p=f.errDesc,t({isRetry:!1,data:Re(Re({},{requestElapse:y,isSuccess:0,code:h,codeDesc:p}),l)}),!(this.isHttpDNS&&this.restIndex+1<this.restTotal))throw t({data:{isLastApi:1,isSuccess:0}}),delete u.extraInfo,u;return this.restIndex++,this.setRestUrl(),this.registerUser(e),[2,u]}if(!c)throw new Error("register user fail.");return d=c.extraInfo||{},h=d.httpCode,y=d.elapse,t({isEndApi:!0,isRetry:!1,data:Re(Re({},{requestElapse:y,isSuccess:1,code:h}),l)}),[2,{data:null==c?void 0:c.entities[0],type:0}]}}))}))},e.prototype.renewToken=function(e){var t=this;return this.isOpened()?this.getChatToken(e).then((function(e){var r=Date.now();return t.expirationTime=e.expire_timestamp,t.expiresIn=e.expire_timestamp-r,t.token=e.access_token,t.context.accessToken=e.access_token,t.clearTokenTimeout(),t.tokenExpireTimeCountDown(t.expiresIn),{status:!0,token:e.access_token,expire:e.expire_timestamp}})):Promise.reject({status:!1})},e.prototype.getChatToken=function(e){if("string"!=typeof e||""===e)throw Error('Invalid parameter: "agoraToken"');var t=this.context,r=t.orgName,n=t.appName,o={url:this.apiUrl+"/"+r+"/"+n+"/token",dataType:"json",type:"POST",data:JSON.stringify({grant_type:"agora"}),headers:{Authorization:"Bearer "+e,"Content-Type":"application/json"}};return s.kg.debug("Call getChatToken",e),i.P6.ajax(o,T.fI.SDK_INTERNAL)},e.prototype.clearTokenTimeout=function(){s.kg.debug("clearTokenTimeout"),this.tokenWillExpireTimer&&clearTimeout(this.tokenWillExpireTimer),this.tokenExpiredTimer&&clearTimeout(this.tokenExpiredTimer)},e.prototype.compareTokenExpireTime=function(e,t){var r,n=Number(t)-Number(e);s.kg.debug("compareTokenExpireTime",n),n<=this.expiresIn/2&&n>0?(null===(r=this.eventHandler)||void 0===r||r.dispatch("onTokenWillExpire"),s.kg.info("onTokenWillExpire")):n<=0&&(this.closeByTokenExpired(),s.kg.info("closeByTokenExpired"))},e.prototype.closeByTokenExpired=function(){var e;s.kg.info("closed By TokenExpired"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onTokenExpired"),this.close()},e.prototype.tokenExpireTimeCountDown=function(e){var t=this;this.tokenWillExpireTimer=setTimeout((function(){var e;null===(e=t.eventHandler)||void 0===e||e.dispatch("onTokenWillExpire"),s.kg.info("onTokenWillExpire")}),e/2),this.tokenExpiredTimer=setTimeout((function(){var e;s.kg.info("onTokenExpired"),null===(e=t.eventHandler)||void 0===e||e.dispatch("onTokenExpired"),t.close()}),e)},e.prototype.stopHeartBeat=function(){clearInterval(this.heartBeatID)},e.prototype.setContext=function(e){this.context.jid={appKey:this.appKey,name:e.username,domain:this.context.jid.domain,clientResource:this.clientResource};var t=this.appKey.split("#"),r=t[0],n=t[1];this.context.root=this.root,this.context.userId=e.username,this.context.appKey=this.appKey,this.context.appName=n,this.context.orgName=r},e.prototype.getDNS=function(e){return Ie(this,void 0,void 0,(function(){var t,r,n,o,a,u,c,l,f,p,d,h,y,E,v,_,g,m,O,R,I;return Ne(this,(function(N){switch(N.label){case 0:return t=e.rpt,r=e.isRetry,n=this.dnsArr[this.dnsIndex]+"/easemob/server.json",o={url:n,dataType:"json",type:"GET",data:{app_key:encodeURIComponent(this.appKey)}},[4,Se(i.P6.ajax(o,T.fI.SDK_INTERNAL))];case 1:if(a=N.sent(),u=a[0],c=a[1],u){if(l=u.extraInfo||{},f=l.elapse,p=l.httpCode,d=l.errDesc,h={requestUrl:n,requestName:T.c.GET_DNS,isSuccess:0,code:p,codeDesc:d,requestElapse:f},t&&t({isRetry:r,data:h}),s.kg.debug("getHttpDNS fail: "+this.dnsIndex),this.dnsIndex++,this.dnsIndex<this.dnsTotal)return this.getDNS({rpt:t,isRetry:!0}),[2];throw new Error("get DNS config fail.")}if(!c)throw new Error("get DNS config fail.");return y=c.extraInfo||{},E=y.elapse,v=y.httpCode,_={requestUrl:n,requestName:T.c.GET_DNS,requestElapse:E,isSuccess:1,code:v},t&&t({isRetry:r,data:_}),g=c.rest.hosts,m=this.https?"https":"http",O=g.filter((function(e){if(e.protocol===m)return e})),this.restHosts=O,R=c["msync-wx"].hosts,I=R.filter((function(e){if(e.protocol===m)return e})),this.socketHost=I,"true"===(null==c?void 0:c.enableDataReport)?(this.dataReport.setIsCollectDt(!0),this.dataReport.setIsReportDt(!0)):(this.dataReport.setIsReportDt(!1),this.dataReport.setIsCollectDt(!1)),this.setRestUrl(),this.setSocketUrl(),[2]}}))}))},e.prototype.setRestUrl=function(){var e,t;if(this.restIndex>this.restHosts.length)return s.kg.debug("restIndex > restTotal"),"";var r="",n=this.restHosts[this.restIndex],o=n.domain,i=n.ip,a=n.port,u=this.https?"https:":"http:";return i&&"undefined"!=typeof window&&"http:"===(null===(e=null===window||void 0===window?void 0:window.location)||void 0===e?void 0:e.protocol)?r=u+"//"+i+":"+a:(r=u+"//"+o,a&&"80"!==a&&"443"!==a&&(r+=":".concat(a)),"undefined"==typeof window||window.location||(r="https://"+o),"undefined"!=typeof window&&window.location&&"file:"===(null===(t=window.location)||void 0===t?void 0:t.protocol)&&(r="https://"+o)),"undefined"==typeof window&&(r=u+"//"+o),this.apiUrl=r,r},e.prototype.setSocketUrl=function(){var e=this.socketHost[this.hostIndex],t=e.domain,r=e.ip,n=e.port,o="";o=t||r,n&&"80"!==n&&"443"!==n&&(o+=":"+n),o&&(this.url="//"+o+"/websocket");var i=this.https?"wss:":"ws:";this.url=i+this.url},e.prototype.online=function(){var e;s.kg.debug("online"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onOnline"),this.sock&&1!==this.sock.readyState&&(s.kg.debug("sock.readyState:",this.sock.readyState),!this.logOut&&this.reconnect())},e.prototype.offline=function(){var e;s.kg.debug("offline"),null===(e=this.eventHandler)||void 0===e||e.dispatch("onOffline")},e.prototype.reconnect=function(){var e=this;s.kg.info("reconnect times: ",this.times),s.kg.info("reconnect sock.readyState: ",this.sock.readyState),0!==this.sock.readyState&&1!==this.sock.readyState&&(this.isHttpDNS&&(this.hostIndex,this.socketHost.length),this.hostIndex++,this.hostIndex>=this.socketHost.length-1&&(this.hostIndex=this.socketHost.length-1),setTimeout((function(){s.kg.info("login sock.readyState: ",e.sock.readyState),1!==e.sock.readyState&&(e.sock.close(),e._open({username:e.context.userId,accessToken:e.context.accessToken},!0),e.autoReconnectInterval+=e.times*e.times,e.times++)}),500*this.times),this.autoReconnectNumTotal++)},e.prototype.clear=function(){this.restTotal=0,this.restIndex=0,this.hostIndex=0,this.hostTotal=0},e}(),Se=function(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e,null]}))},Ae=be}(),__webpack_exports__}()}));
|