!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Eos=t()}(function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var a="function"==typeof require&&require;if(!s&&a)return a(o,!0);if(u)return u(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var h=r[o]={exports:{}};e[o][0].call(h.exports,function(t){var r=e[o][1][t];return i(r||t)},h,h.exports,t,e,r,n)}return r[o].exports}for(var u="function"==typeof require&&require,o=0;oNumber.MAX_SAFE_INTEGER)throw new TypeError("value parameter overflow");t=p.fromString(String(t),e,r)}else if("string"==typeof t)t=p.fromString(t,e,r);else if(!p.isLong(t))throw new TypeError("value parameter is a requied Long, Number or String");return t}function u(t){var e=!(1=n;n++){var i=nn?5:4,o=Number(i).toString(2);if(o.length>u)throw new TypeError("Invalid name "+t);r+=o="0".repeat(u-o.length)+o}var s=p.fromString(r,!0,2),a="",f=e?s.toBytesLE():s.toBytesBE(),h=!0,c=!1,l=void 0;try{for(var d,g=f[Symbol.iterator]();!(h=(d=g.next()).done);h=!0){var y=d.value,b=Number(y).toString(16);a+=(1===b.length?"0":"")+b}}catch(t){c=!0,l=t}finally{try{!h&&g["return"]&&g["return"]()}finally{if(c)throw l}}return p.fromString(a,!0,16).toString().toString()}function o(t){var e=!(1=b;b++)g=d[y.and(0===b?m:l)]+g,y=y.shiftRight(0===b?4:5);return g=g.replace(/\.+$/,"")}function s(t){l(null!=t,"value is required"),t="object"===t&&t.toString?t.toString():String(t);var e=/^-/.test(t);e&&(t=t.substring(1)),"."===t[0]&&(t="0"+t);var r=t.split(".");return l(r.length<=2,"invalid decimal "+t),l(/^\d+(,?\d)*\d*$/.test(r[0]),"invalid decimal "+t),2===r.length&&(l(/^\d*$/.test(r[1]),"invalid decimal "+t),r[1]=r[1].replace(/0+$/,""),""===r[1]&&r.pop()),r[0]=r[0].replace(/^0*/,""),""===r[0]&&(r[0]="0"),(e?"-":"")+r.join(".")}function a(t,e){var r=s(t);if(null==e)return r;l(e>=0&&18>=e,"Precision should be 18 characters or less");var n=r.split(".");if(0===e&&1===n.length)return n[0];if(1===n.length)return n[0]+"."+"0".repeat(e);var i=e-n[1].length;return l(i>=0,"decimal '"+r+"' exceeds precision "+e),n[0]+"."+n[1]+"0".repeat(i)}function f(t){var e=t.amount,r=t.precision,n=t.symbol,i=t.contract;l.equal(void 0===n?"undefined":(0,c["default"])(n),"string","symbol is a required string"),null!=e&&null!=r&&(e=a(e,r));var u=function(t,e){return null==t?"":null==e?"":t+e};return null!=e?u(e," ")+n+u("@",i):u(r,",")+n+u("@",i)}var h=n(t("babel-runtime/helpers/slicedToArray")),c=n(t("babel-runtime/helpers/typeof")),l=t("assert"),p=t("bytebuffer").Long;e.exports={ULong:i,isName:function(t,e){try{return u(t),!0}catch(t){return e&&e(t),!1}},encodeName:u,decodeName:o,encodeNameHex:function(t){return p.fromString(u(t),!0).toString(16)},decodeNameHex:function(t){var e=!(1=0&&18>=e,"Precision should be 18 characters or less");var n=e-t.length;n>0&&(t=""+"0".repeat(n)+t);var i=t.length-e;return t=t.slice(0,i)+"."+t.slice(i),(r?"-":"")+a(t,e)},printAsset:f,parseAsset:function(t){var e=t.split(" "),r=(0,h["default"])(e,1)[0].match(/^(-?[0-9]+(\.[0-9]+)?)( |$)/),n=r?r[1]:null,i=t.match(/(^| )([0-9]+),([A-Z]+)(@|$)/),u=i?Number(i[2]):null,o=n?(n.split(".")[1]||"").length:null,s=null!=u?u:o,a=t.match(/(^| |,)([A-Z]+)(@|$)/),c=a?a[2]:null,p=t.split("@"),d=(0,h["default"])(p,2)[1],m=void 0===d?"":d,g=/^[a-z0-5]+(\.[a-z0-5]+)*$/.test(m)?m:null,y=f({amount:n,precision:s,symbol:c,contract:g});return l.equal(t,y,"Invalid asset string: "+t+" !== "+y),null!=s&&l(s>=0&&18>=s,"Precision should be 18 characters or less"),null!=c&&l(c.length<=7,"Asset symbol is 7 characters or less"),null!=g&&l(g.length<=12,"Contract is 12 characters or less"),{amount:n,precision:s,symbol:c,contract:g}}};var d=".12345abcdefghijklmnopqrstuvwxyz",m=function(t){var e=d.indexOf(t);if(-1===e)throw new TypeError("Invalid character: '"+t+"'");return e}},{assert:11,"babel-runtime/helpers/slicedToArray":16,"babel-runtime/helpers/typeof":17,bytebuffer:46}],3:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}var i=n(t("babel-runtime/regenerator")),u=n(t("babel-runtime/helpers/typeof")),o=t("eosjs-ecc"),s=t("fcbuffer"),a=t("eosjs-api"),f=t("assert"),h=t("./structs"),c=t("./abi-cache"),l=t("./write-api"),p=t("./format"),d=t("./schema"),m=t("./schema/eosio.token.abi.json"),g=t("./schema/eosio.system.abi.json"),y=t("./schema/eosio.null.abi.json"),b=function(){function t(t,e){Object.keys(e).forEach(function(r){void 0===t[r]&&(t[r]=e[r])})}var e=0r;r++)e[r]=arguments[r];return function(t,r,n){var i=e.map(function(e){return e(t,r,n)}),u=r.static_variant(i);return{fromByteBuffer:function(t){return u.fromByteBuffer(t)},appendByteBuffer:function(t,e){Array.isArray(e)||(e=[0,e]),u.appendByteBuffer(t,e)},fromObject:function(t){return Array.isArray(t)||(t=[0,t]),u.fromObject(t)[1]},toObject:function(t){return Array.isArray(t)||(t=[0,t]),u.toObject(t)[1]}}}},A=function(t){return{fromByteBuffer:function(e){var n=e.copy(e.offset,e.offset+33);e.skip(33);var i=r.from(n.toBinary(),"binary");return a.fromBuffer(i).toString(t.keyPrefix)},appendByteBuffer:function(e,r){var n=a.fromStringOrThrow(r,t.keyPrefix).toBuffer();e.append(n.toString("binary"),"binary")},fromObject:function(t){return t},toObject:function(e){return t.defaults&&null==e?(t.keyPrefix?t.keyPrefix:"EOS")+"6MRy..":e}}},B=function(t){return{fromByteBuffer:function(t){var e=t.copy(t.offset,t.offset+8);t.skip(8);var r=e.readUint8(),n=e.toBinary(),i="",u=!0,o=!1,s=void 0;try{for(var a,f=n[Symbol.iterator]();!(u=(a=f.next()).done);u=!0){var h=a.value;if("\x00"==h)break;i+=h}}catch(t){o=!0,s=t}finally{try{!u&&f["return"]&&f["return"]()}finally{if(o)throw s}}return r+","+i},appendByteBuffer:function(t,e){var r=_(e),n=r.symbol,i=r.precision;c(null!=i,"Precision unknown for symbol: "+e); var u="\x00".repeat(7-n.length);t.append(String.fromCharCode(i)+n+u)},fromObject:function(t){c(null!=t,"Symbol is required: "+t);var e=_(t),r=e.symbol,n=e.precision;return null==n?r:n+","+r},toObject:function(e){return t.defaults&&null==e?"SYS":_(e).symbol}}},C=function(t){return{fromByteBuffer:function(t){var e=t.copy(t.offset,t.offset+8);t.skip(8);var r=e.toBinary(),n="",i=!0,u=!1,o=void 0;try{for(var s,a=r[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){var f=s.value;if("\x00"==f)break;n+=f}}catch(t){u=!0,o=t}finally{try{!i&&a["return"]&&a["return"]()}finally{if(u)throw o}}return""+n},appendByteBuffer:function(t,e){var r=_(e).symbol,n="\x00".repeat(8-r.length);t.append(r+n)},fromObject:function(t){return c(null!=t,"Symbol is required: "+t),_(t).symbol},toObject:function(e){return t.defaults&&null==e?"SYS":_(e).symbol}}},F=function(t,e,r){var n=r.symbol(t),o=r.name(t);return{fromByteBuffer:function(t){return n.fromByteBuffer(t)+"@"+o.fromByteBuffer(t)},appendByteBuffer:function(t,e){c.equal(void 0===e?"undefined":(0,u["default"])(e),"string","Invalid extended symbol: "+e);var r=e.split("@"),s=(0,i["default"])(r,2),a=s[0],f=s[1];c(null!=f,"Missing @contract suffix in extended symbol: "+e),n.appendByteBuffer(t,a),o.appendByteBuffer(t,f)},fromObject:function(t){return t},toObject:function(e){return t.defaults&&null==e?"SYS@contract":e}}},x=function(t,e,r){var n=e.int64(t),i=r.symbol(t);return{fromByteBuffer:function(t){var e=n.fromByteBuffer(t);c(null!=e,"amount");var r=i.fromByteBuffer(t),u=_(""+r),o=u.precision,s=u.symbol;return c(null!=o,"precision"),c(null!=s,"symbol"),b(e,o)+" "+s},appendByteBuffer:function(t,e){var r=_(e),u=r.amount,o=r.precision,s=r.symbol;c(null!=u,"amount"),c(null!=o,"precision"),c(null!=s,"symbol"),n.appendByteBuffer(t,y(u,o)),i.appendByteBuffer(t,o+","+s)},fromObject:function(t){var e=_(t),r=e.amount,n=e.precision,i=e.symbol;return c(null!=r,"amount"),c(null!=n,"precision"),c(null!=i,"symbol"),g(r,n)+" "+i},toObject:function(e){if(t.defaults&&null==e)return"0.0001 SYS";var r=_(e),n=r.amount,i=r.precision,u=r.symbol;return c(null!=n,"amount"),c(null!=i,"precision"),c(null!=u,"symbol"),g(n,i)+" "+u}}},D=function(t,e,r){var n=r.asset(t),o=r.name(t);return{fromByteBuffer:function(t){var e=n.fromByteBuffer(t),r=o.fromByteBuffer(t);return _(e+"@"+r)},appendByteBuffer:function(t,e){c.equal(void 0===e?"undefined":(0,u["default"])(e),"object","expecting extended_asset object, got "+(void 0===e?"undefined":(0,u["default"])(e)));var r=v(e),s=r.split("@"),a=(0,i["default"])(s,2)[1];c.equal(void 0===a?"undefined":(0,u["default"])(a),"string","Invalid extended asset: "+e),n.appendByteBuffer(t,r),o.appendByteBuffer(t,a)},fromObject:function(t){var e={};"string"==typeof t?Object.assign(e,_(t)):"object"===(void 0===t?"undefined":(0,u["default"])(t))?Object.assign(e,t):c(!1,"expecting extended_asset, got: "+(void 0===t?"undefined":(0,u["default"])(t)));var r=e.amount,n=e.precision,i=e.symbol,o=e.contract;return c(null!=r,"missing amount"),c(null!=n,"missing precision"),c(null!=i,"missing symbol"),c(null!=o,"missing contract"),{amount:r,precision:n,symbol:i,contract:o}},toObject:function(e){if(t.defaults&&null==e)return{amount:"1.0000",precision:4,symbol:"SYS",contract:"eosio.token"};c.equal(void 0===e?"undefined":(0,u["default"])(e),"object","expecting extended_asset object");var r=e.amount,n=e.precision,i=e.symbol,o=e.contract;return{amount:g(r,n),precision:n,symbol:i,contract:o}}}},S=function(t,e){var r=e.fixed_bytes65(t);return{fromByteBuffer:function(t){var e=r.fromByteBuffer(t);return s.from(e).toString()},appendByteBuffer:function(t,e){var n=s.from(e);r.appendByteBuffer(t,n.toBuffer())},fromObject:function(t){return s.from(t).toString()},toObject:function(e){return t.defaults&&null==e?"SIG_K1_bas58signature..":s.from(e).toString()}}},k=function(t){return{"authority.fromObject":function(e){if(a.fromString(e,t.keyPrefix))return{threshold:1,keys:[{key:e,weight:1}]};if("string"==typeof e){var r=e.split("@"),n=(0,i["default"])(r,2),u=n[0],o=n[1];return{threshold:1,accounts:[{permission:{actor:u,permission:void 0===o?"active":o},weight:1}]}}}}},M=function(t){return{"abi_def.fromObject":function(t){if("string"==typeof t){var e=r.from(t,"hex").toString();return 0===e.length&&(e=r.from(t).toString()),JSON.parse(e)}return r.isBuffer(t)?JSON.parse(t.toString()):null},"setabi.abi.appendByteBuffer":function(e){e.fields;var n=e.object,i=e.b,o=t("abi_def","eosio"),s=new h(h.DEFAULT_CAPACITY,h.LITTLE_ENDIAN);r.isBuffer(n.abi)?s.append(n.abi):"object"==(0,u["default"])(n.abi)&&o.appendByteBuffer(s,n.abi),i.writeVarint32(s.offset),i.append(s.copy(0,s.offset),"binary")}}},T=function(t){return{"setcode.code.fromObject":function(e){var n=e.object,i=e.result;try{var u=n.code.toString();if(/^\s*\(module/.test(u)){var o=t.binaryen;c(null!=o,'required: config.binaryen = require("binaryen")'),t.debug&&console.log("Assembling WASM..");var s=r.from(o.parseText(u).emitBinary());i.code=s}else i.code=n.code}catch(e){throw console.error(e,n.code),e}}}},I=function(t,e){return{"action.data.fromByteBuffer":function(e){var n=e.fields,i=e.object,u=e.b,o=e.config,s=""==(i.name||"")?n.data:t(i.name,i.account);if(s)u.readVarint32(),i.data=s.fromByteBuffer(u,o);else{var a=u.readVarint32(),f=u.copy(u.offset,u.offset+a);u.skip(a),i.data=r.from(f.toBinary(),"binary")}},"action.data.appendByteBuffer":function(e){var n=e.fields,i=e.object,u=e.b,o=""==(i.name||"")?n.data:t(i.name,i.account);if(o){var s=new h(h.DEFAULT_CAPACITY,h.LITTLE_ENDIAN);o.appendByteBuffer(s,i.data),u.writeVarint32(s.offset),u.append(s.copy(0,s.offset),"binary")}else{var a="string"==typeof i.data?r.from(i.data,"hex"):i.data;if(!r.isBuffer(a))throw new TypeError("Unknown struct '"+i.name+"' for contract '"+i.account+"', locate this struct or provide serialized action.data");u.writeVarint32(a.length),u.append(a.toString("binary"),"binary")}},"action.data.fromObject":function(e){var n=e.fields,i=e.object,o=e.result,s=i.data,a=i.name,h=""==(a||"")?n.data:t(a,i.account);if(h)if("object"===(void 0===s?"undefined":(0,u["default"])(s)))o.data=h.fromObject(s);else{if("string"!=typeof s)throw new TypeError("Expecting hex string or object in action.data");var c=r.from(s,"hex");o.data=f.fromBuffer(h,c)}else o.data=s},"action.data.toObject":function(n){var i=n.fields,u=n.object,o=n.result,s=n.config,a=u||{},f=a.data,c=a.name,l=""==(c||"")?i.data:t(c,u.account);if(l){if(e){var p=new h(h.DEFAULT_CAPACITY,h.LITTLE_ENDIAN);return f&&l.appendByteBuffer(p,f),void(o.data=p.copy(0,p.offset).toString("hex"))}o.data=l.toObject(f,s)}else o.data=r.isBuffer(f)?f.toString("hex"):f}}}}).call(this,t("buffer").Buffer)},{"./format":2,"./schema":8,assert:11,"babel-runtime/helpers/slicedToArray":16,"babel-runtime/helpers/typeof":17,buffer:45,bytebuffer:46,"eosjs-ecc":144,fcbuffer:153}],10:[function(t,e,r){(function(r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){var r=t[e],n=r.base,u=r.fields,o={};return n&&""!==n&&Object.assign(o,i(t,n)),Object.assign(o,u),o}var u=n(t("babel-runtime/helpers/slicedToArray")),o=n(t("babel-runtime/regenerator")),s=n(t("babel-runtime/helpers/typeof")),a=t("assert"),f=t("eosjs-ecc"),h=t("fcbuffer"),c=t("create-hash"),l=t("eosjs-api").processArgs;t("./structs"),e.exports=function(t,e,n,y,b){if("string"!=typeof y.chainId)throw new TypeError("config.chainId is required");var v=function(t,e,n,y){function b(t){var e=1d;d++)p[d]=arguments[d];if(0!==p.length){var g={},y=p[p.length-1];"object"===(void 0===y?"undefined":(0,s["default"])(y))&&"object"===(0,s["default"])(y.__optionOverrides)&&Object.assign(g,p.pop().__optionOverrides);var b=l(p,Object.keys(e),t,m),v=b.options,_=b.params,w=b.returnPromise,E=b.callback,A={broadcast:n.broadcast,sign:n.sign};if(v=Object.assign({},A,v,g),g.noCallback&&!w)throw new Error("Callback during a transaction are not supported");var B=[],C=v.authorization?v.authorization:n.authorization,F=null==C;if(C){var x=void 0;"string"==typeof C?x=[C]:Array.isArray(C)&&(x=C),x&&x.forEach(function(t){if("string"==typeof t){var e=t.split("@"),r=(0,u["default"])(e,2),n=r[0],i=r[1],o=void 0===i?"active":i;""===n&&(n=h()),n&&B.push({actor:n,permission:o})}else"object"===(void 0===t?"undefined":(0,s["default"])(t))&&B.push(t)}),a.equal(B.length,x.length,"invalid authorization in: "+JSON.stringify(C))}var D={actions:[{account:o,name:f,authorization:B,data:_}]};if(F){var S=h();S&&D.actions[0].authorization.push({actor:S,permission:"active"})}return D.actions[0].authorization.sort(function(t,e){return t.actor>e.actor?1:t.actori;i++)r[i]=arguments[i];var u=t.apply(void 0,r.concat([{__optionOverrides:{broadcast:!1,messageOnly:!0,noCallback:!0}}]));if(null==u)throw new Error("Callbacks can not be used when creating a multi-action transaction");n.push(u)}};for(var f in r){var h=r[f],c=f.replace(/\./,"_");if("function"==typeof h)i[c]=o(h);else if("object"===(void 0===h?"undefined":(0,s["default"])(h)))for(var l in null==i[c]&&(i[c]={}),h)"transaction"!==l&&(i[c][l]=o(h[l]))}var p=void 0;try{p=t(i)}catch(t){p=Promise.reject(t)}return Promise.resolve(p).then(function(){return Promise.all(n).then(function(t){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var f=s.value,h=(0,u["default"])(f.actions,1),c=h[0];r.push(c)}}catch(t){i=!0,o=t}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw o}}var l={};return l.actions=r,w(l,e)})})}function w(t,i,u){var l,d,m,b,v,_,w,E,A,B,C,F,x,D,S,k;return o["default"].async(function(M){for(;;)switch(M.prev=M.next){case 0:if(l=n.expireInSeconds?n.expireInSeconds:60,d={expireInSeconds:l,broadcast:!0,sign:!0},i=Object.assign({},d,i),m=void 0,"function"!=typeof u&&(m=new Promise(function(t,e){u=function(r,n){r?e(r):t(n)}})),"object"===(void 0===t?"undefined":(0,s["default"])(t))){M.next=7;break}throw new TypeError("First transaction argument should be an object or function");case 7:if(Array.isArray(t.actions)){M.next=9;break}throw new TypeError("Expecting actions array");case 9:if((n.logger.log||n.logger.error)&&(b=u,u=function(t,e){t&&n.logger.error&&n.logger.error(t),n.logger.log&&n.logger.log(JSON.stringify(e)),b(t,e)}),t.actions.forEach(function(t){if(!Array.isArray(t.authorization))throw new TypeError("Expecting action.authorization array",t)}),!i.sign||"function"==typeof n.signProvider){M.next=13;break}throw new TypeError("Expecting config.signProvider function (disable using {sign: false})");case 13:if(v={max_net_usage_words:0,max_cpu_usage_ms:0,delay_sec:0,context_free_actions:[],actions:[],signatures:[],transaction_extensions:[]},!n.transactionHeaders){M.next=25;break}if("object"!==(0,s["default"])(n.transactionHeaders)){M.next=19;break}Object.assign(v,n.transactionHeaders),M.next=25;break;case 19:if("function"!=typeof n.transactionHeaders){M.next=24;break}return M.next=22,o["default"].awrap(n.transactionHeaders(i.expireInSeconds,g(u,n.logger,function(t){return o["default"].async(function(e){for(;;)switch(e.prev=e.next){case 0:a.equal(void 0===t?"undefined":(0,s["default"])(t),"object","expecting transaction header object"),Object.assign(v,t);case 2:case"end":return e.stop()}},null,this)})));case 22:M.next=25;break;case 24:a(!1,"config.transactionHeaders should be an object or function");case 25:for(_=["expiration","ref_block_num","ref_block_prefix","delay_sec","max_net_usage_words","max_cpu_usage_ms"],w=0;w<_.length;w++)void 0!==t[E=_[w]]?v[E]=t[E]:void 0!==i[E]&&(v[E]=i[E]);if(void 0!==v.expiration&&void 0!==v.ref_block_num&&void 0!==v.ref_block_prefix){M.next=31;break}return a(e,"Network is required, provide httpEndpoint or own transaction headers"),M.next=31,o["default"].awrap(new Promise(function(t){e.createTransaction(i.expireInSeconds,g(u,n.logger,function(e){var r,n,i;return o["default"].async(function(u){for(;;)switch(u.prev=u.next){case 0:for(r=["expiration","ref_block_num","ref_block_prefix"],n=0;ni;i++)r[i]=arguments[i];var u,f,h,c,l,p,m,g,y,v,E,A,B,C,F,x,D,S,k,M,T;return o["default"].async(function(t){for(;;)switch(t.prev=t.next){case 0:if(h=f=u=void 0,null==r[r.length-1]&&(r=r.slice(0,r.length-1)),!(c=d(r[0]))){t.next=8;break}u=r[0],r=r.slice(1),t.next=39;break;case 8:if("string"!=typeof r[0]){t.next=13;break}u=[r[0]],r=r.slice(1),t.next=39;break;case 13:if("object"!==(0,s["default"])(r[0])||!Array.isArray(r[0].actions)){t.next=39;break}for(l=new Set,m=!(p=!0),g=void 0,t.prev=18,y=r[0].actions[Symbol.iterator]();!(p=(v=y.next()).done);p=!0)E=v.value,l.add(E.account);t.next=26;break;case 22:t.prev=22,t.t0=t["catch"](18),m=!0,g=t.t0;case 26:t.prev=26,t.prev=27,!p&&y["return"]&&y["return"]();case 29:if(t.prev=29,!m){t.next=32;break}throw g;case 32:return t.finish(29);case 33:return t.finish(26);case 34:return A=[],B=new Set(["eosio","eosio.token","eosio.null"]),l.forEach(function(t){B.has(t)||A.push(n.abiCache.abiAsync(t))}),t.next=39,o["default"].awrap(Promise.all(A));case 39:if(1, transaction, [options], [callback]"),C=r[0],!u){t.next=67;break}for(a(!h,"callback with contracts are not supported"),a.equal("function",void 0===C?"undefined":(0,s["default"])(C),"provide function callback following contracts array parameter"),F=[],D=!(x=!0),S=void 0,t.prev=50,k=u[Symbol.iterator]();!(x=(M=k.next()).done);x=!0)T=M.value,F.push(b(T,e.transaction));t.next=58;break;case 54:t.prev=54,t.t1=t["catch"](50),D=!0,S=t.t1;case 58:t.prev=58,t.prev=59,!x&&k["return"]&&k["return"]();case 61:if(t.prev=61,!D){t.next=64;break}throw S;case 64:return t.finish(61);case 65:return t.finish(58);case 66:return t.abrupt("return",Promise.all(F).then(function(t){var e={};t.forEach(function(t,r){e[u[r]]=t});var r=c?e:e[u[0]];return _(C,f,r)}));case 67:if("function"!=typeof C){t.next=69;break}return t.abrupt("return",_(C,f,e));case 69:if("object"!==(void 0===C?"undefined":(0,s["default"])(C))){t.next=71;break}return t.abrupt("return",w(C,f,h));case 71:throw new Error("first transaction argument unrecognized",C);case 72:case"end":return t.stop()}},null,this,[[18,22,26,34],[27,,29,33],[50,54,58,66],[59,,61,65]])}};return{genTransaction:E,genContractActions:b,genMethod:v}}(0,e,y,n.transaction),_=new Set(["transaction","contract"]),w={};w.transaction=v.genTransaction(n,w);var E=!0,A=!1,B=void 0;try{for(var C,F=b[Symbol.iterator]();!(E=(C=F.next()).done);E=!0){var x=C.value;for(var D in x.schema){var S=x.schema[D];if("string"!=typeof S){a.equal(void 0===S?"undefined":(0,s["default"])(S),"object","abi.schema[type = "+D+"]");var k=S.action;if(void 0!==k){if(_.has(k.name))throw new TypeError("Conflicting Api function: "+D);var M=i(x.schema,D);w[k.name]=v.genMethod(D,M,w.transaction,k.account,k.name)}}}}}catch(t){A=!0,B=t}finally{try{!E&&F["return"]&&F["return"]()}finally{if(A)throw B}}return w.contract=function(){for(var t=arguments.length,e=Array(t),r=0;t>r;r++)e[r]=arguments[r];var n=l(e,["account"],"contract",m),i=n.params,u=(n.options,n.returnPromise),o=n.callback,s=i.account;return v.genContractActions(s).then(function(t){o(null,t)})["catch"](function(t){o(t)}),u},w};var p=f.sign,d=function(t){return Array.isArray(t)&&0i;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return n>r?-1:r>n?1:0}function i(t){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function u(t){return Object.prototype.toString.call(t)}function o(t){return!i(t)&&"function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}function s(t){if(g.isFunction(t)){if(v)return t.name;var e=t.toString().match(w);return e&&e[1]}}function a(t,e){return"string"==typeof t?t.length=0;s--)if(a[s]!==f[s])return!1;for(s=a.length-1;s>=0;s--)if(o=a[s],!l(t[o],e[o],r,n))return!1;return!0}(t,e,r,s))}return r?t===e:t==e}function p(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function d(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function m(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&h(i,r,"Missing expected exception"+n);var u="string"==typeof n,o=!t&&i&&!r;if((!t&&g.isError(i)&&u&&d(i,r)||o)&&h(i,r,"Got unwanted exception"+n),t&&i&&r&&!d(i,r)||!t&&i)throw i}var g=t("util/"),y=Object.prototype.hasOwnProperty,b=Array.prototype.slice,v="foo"===function(){}.name,_=e.exports=c,w=/\s*function\s+([^\(\s]*)\s*/;_.AssertionError=function(t){var e;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(f((e=this).actual),128)+" "+e.operator+" "+a(f(e.expected),128),this.generatedMessage=!0);var r=t.stackStartFunction||h;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,u=s(r),o=i.indexOf("\n"+u);if(o>=0){var c=i.indexOf("\n",o+1);i=i.substring(c+1)}this.stack=i}}},g.inherits(_.AssertionError,Error),_.fail=h,_.ok=c,_.equal=function(t,e,r){t!=e&&h(t,e,r,"==",_.equal)},_.notEqual=function(t,e,r){t==e&&h(t,e,r,"!=",_.notEqual)},_.deepEqual=function(t,e,r){l(t,e,!1)||h(t,e,r,"deepEqual",_.deepEqual)},_.deepStrictEqual=function(t,e,r){l(t,e,!0)||h(t,e,r,"deepStrictEqual",_.deepStrictEqual)},_.notDeepEqual=function(t,e,r){l(t,e,!1)&&h(t,e,r,"notDeepEqual",_.notDeepEqual)},_.notDeepStrictEqual=function A(t,e,r){l(t,e,!0)&&h(t,e,r,"notDeepStrictEqual",A)},_.strictEqual=function(t,e,r){t!==e&&h(t,e,r,"===",_.strictEqual)},_.notStrictEqual=function(t,e,r){t===e&&h(t,e,r,"!==",_.notStrictEqual)},_["throws"]=function(t,e,r){m(!0,t,e,r)},_.doesNotThrow=function(t,e,r){m(!1,t,e,r)},_.ifError=function(t){if(t)throw t};var E=Object.keys||function(t){var e=[];for(var r in t)y.call(t,r)&&e.push(r);return e}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":205}],12:[function(t,e,r){e.exports={"default":t("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":49}],13:[function(t,e,r){e.exports={"default":t("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":50}],14:[function(t,e,r){e.exports={"default":t("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":51}],15:[function(t,e,r){e.exports={"default":t("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":52}],16:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var i=n(t("../core-js/is-iterable")),u=n(t("../core-js/get-iterator"));r["default"]=function(t,e){if(Array.isArray(t))return t;if((0,i["default"])(Object(t)))return function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=(0,u["default"])(t);!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw o}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},{"../core-js/get-iterator":12,"../core-js/is-iterable":13}],17:[function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}r.__esModule=!0;var i=n(t("../core-js/symbol/iterator")),u=n(t("../core-js/symbol")),o="function"==typeof u["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof u["default"]&&t.constructor===u["default"]&&t!==u["default"].prototype?"symbol":typeof t};r["default"]="function"==typeof u["default"]&&"symbol"===o(i["default"])?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof u["default"]&&t.constructor===u["default"]&&t!==u["default"].prototype?"symbol":void 0===t?"undefined":o(t)}},{"../core-js/symbol":14,"../core-js/symbol/iterator":15}],18:[function(t,e,r){e.exports=t("regenerator-runtime")},{"regenerator-runtime":187}],19:[function(t,e,r){var n=t("safe-buffer").Buffer;e.exports=function(t){function e(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return n.allocUnsafe(0);for(var e=[0],o=0;o>=8;for(;f>0;)e.push(255&f),f>>=8}for(var h=0;t[h]===u&&h0;)r.push(s%i),s=s/i|0}for(var a="",f=0;0===e[f]&&f=0;--h)a+=t[r[h]];return a},decodeUnsafe:e,decode:function(t){var r=e(t);if(r)return r;throw new Error("Non-base"+i+" character")}}}},{"safe-buffer":190}],20:[function(t,e,r){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t,e,r){for(var n,i,o=[],s=e;r>s;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}r.byteLength=function(t){return 3*t.length/4-n(t)},r.toByteArray=function(t){var e,r,i,u,a,f=t.length;u=n(t),a=new s(3*f/4-u),r=u>0?f-4:f;var h=0;for(e=0;r>e;e+=4)i=o[t.charCodeAt(e)]<<18|o[t.charCodeAt(e+1)]<<12|o[t.charCodeAt(e+2)]<<6|o[t.charCodeAt(e+3)],a[h++]=i>>16&255,a[h++]=i>>8&255,a[h++]=255&i;return 2===u?(i=o[t.charCodeAt(e)]<<2|o[t.charCodeAt(e+1)]>>4,a[h++]=255&i):1===u&&(i=o[t.charCodeAt(e)]<<10|o[t.charCodeAt(e+1)]<<4|o[t.charCodeAt(e+2)]>>2,a[h++]=i>>8&255,a[h++]=255&i),a},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o="",s=[],a=0,f=r-n;f>a;a+=16383)s.push(i(t,a,a+16383>f?f:a+16383));return 1===n?(e=t[r-1],o+=u[e>>2],o+=u[e<<4&63],o+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],o+=u[e>>10],o+=u[e>>4&63],o+=u[e<<2&63],o+="="),s.push(o),s.join("")};for(var u=[],o=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=a.length;h>f;++f)u[f]=a[f],o[a.charCodeAt(f)]=f;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],21:[function(t,e,r){function n(t,e,r){return this instanceof n?void(null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))):new n(t,e,r)}function i(t){return A.charAt(t)}function u(t,e){var r=B[t.charCodeAt(e)];return null==r?-1:r}function o(t){var e=new n;return e.fromInt(t),e}function s(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function a(t){this.m=t}function f(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function m(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function g(){}function y(t){return t}function b(t){this.r2=new n,this.q3=new n,n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}var v=n.prototype;v.__bigi=t("../package.json").version,n.isBigInteger=function(t,e){return t&&t.__bigi&&(!e||t.__bigi===v.__bigi)},n.prototype.am=function(t,e,r,n,i,u){for(;0<=--u;){var o=e*this[t++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}return i},n.prototype.DB=26,n.prototype.DM=67108863;var _=n.prototype.DV=1<<26;n.prototype.FV=Math.pow(2,52),n.prototype.F1=26,n.prototype.F2=0;var w,E,A="0123456789abcdefghijklmnopqrstuvwxyz",B=new Array;for(w="0".charCodeAt(0),E=0;9>=E;++E)B[w++]=E;for(w="a".charCodeAt(0),E=10;36>E;++E)B[w++]=E;for(w="A".charCodeAt(0),E=10;36>E;++E)B[w++]=E;a.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},a.prototype.revert=function(t){return t},a.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},a.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},a.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},f.prototype.convert=function(t){var e=new n;return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},f.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},f.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},v.fromInt=function(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+_:this.t=0},v.fromString=function(t,e){var r,i=this;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void i.fromRadix(t,e);r=2}i.t=0,i.s=0;for(var o=t.length,s=!1,a=0;0<=--o;){var f=8==r?255&t[o]:u(t,o);0>f?"-"==t.charAt(o)&&(s=!0):(s=!1,0==a?i[i.t++]=f:a+r>i.DB?(i[i.t-1]|=(f&(1<>i.DB-a):i[i.t-1]|=f<=i.DB&&(a-=i.DB))}8==r&&0!=(128&t[0])&&(i.s=-1,a>0&&(i[i.t-1]|=(1<=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},v.drShiftTo=function(t,e){for(var r=t;r=0;--r)e[r+s+1]=n[r]>>u|a,a=(n[r]&o)<=0;--r)e[r]=0; e[s]=a,e.t=n.t+s+1,e.s=n.s,e.clamp()},v.rShiftTo=function(t,e){var r=this;e.s=r.s;var n=Math.floor(t/r.DB);if(n>=r.t)e.t=0;else{var i=t%r.DB,u=r.DB-i,o=(1<>i;for(var s=n+1;s>i;i>0&&(e[r.t-n-1]|=(r.s&o)<n;)i+=r[n]-t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i-=t.s}e.s=0>i?-1:0,-1>i?e[n++]=r.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},v.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),u=r.t;for(e.t=u+i.t;0<=--u;)e[u]=0;for(u=0;u=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}00?(u.lShiftTo(c,a),o.lShiftTo(c,r)):(u.copyTo(a),o.copyTo(r));var l=a.t,p=a[l-1];if(0!=p){var d=p*(1<1?a[l-2]>>i.F2:0),m=i.FV/d,g=(1<0&&r.rShiftTo(c,r),0>f&&n.ZERO.subTo(r,r)}}},v.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},v.isEven=function(){return 0==(04294967295||1>t)return n.ONE;var r=new n,i=new n,u=e.convert(this),o=s(t)-1;for(u.copyTo(r);0<=--o;)if(e.sqrTo(r,i),(t&1<0)e.mulTo(i,u,r);else{var a=r;r=i,i=a}return e.revert(r)},v.toString=function(t){var e,r=this;if(r.s<0)return"-"+r.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return r.toRadix(t);e=2}var n,u=(1<>f)&&(o=!0,s=i(n));a>=0;)e>f?(n=(r[a]&(1<>(f+=r.DB-e)):(n=r[a]>>(f-=e)&u,0>=f&&(f+=r.DB,--a)),n>0&&(o=!0),o&&(s+=i(n));return o?s:"0"},v.negate=function(){var t=new n;return n.ZERO.subTo(this,t),t},v.abs=function(){return this.s<0?this.negate():this},v.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;0<=--r;)if(0!=(e=this[r]-t[r]))return e;return 0},v.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+s(this[this.t-1]^this.s&this.DM)},v.byteLength=function(){return this.bitLength()>>3},v.mod=function(t){var e=new n;return this.abs().divRemTo(t,null,e),this.s<0&&0t||e.isEven()?new a(e):new f(e),this.exp(t,r)},g.prototype.convert=y,g.prototype.revert=y,g.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},g.prototype.sqrTo=function(t,e){t.squareTo(e)},b.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=new n;return t.copyTo(e),this.reduce(e),e},b.prototype.revert=function(t){return t},b.prototype.reduce=function(t){var e=this;for(t.drShiftTo(e.m.t-1,e.r2),t.t>e.m.t+1&&(t.t=e.m.t+1,t.clamp()),e.mu.multiplyUpperTo(e.r2,e.m.t+1,e.q3),e.m.multiplyLowerTo(e.q3,e.m.t+1,e.r2);t.compareTo(e.r2)<0;)t.dAddOffset(1,e.m.t+1);for(t.subTo(e.r2,t);0<=t.compareTo(e.m);)t.subTo(e.m,t)},b.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},b.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var C=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],F=(1<<26)/C[C.length-1];v.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},v.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||2>t||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=o(r),u=new n,s=new n,a="";for(this.divRemTo(i,u,s);0c?"-"==t.charAt(h)&&0==r.signum()&&(s=!0):(f=e*f+c,++a>=i&&(r.dMultiply(o),r.dAddOffset(f,0),f=a=0))}a>0&&(r.dMultiply(Math.pow(e,a)),r.dAddOffset(f,0)),s&&n.ZERO.subTo(r,r)},v.fromNumber=function(t,e,r){var i=this;if("number"==typeof e)if(2>t)i.fromInt(1);else for(i.fromNumber(t,r),i.testBit(t-1)||i.bitwiseTo(n.ONE.shiftLeft(t-1),c,i),i.isEven()&&i.dAddOffset(1,0);!i.isProbablePrime(e);)i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(n.ONE.shiftLeft(t-1),i);else{var u=new Array,o=7&t;u.length=1+(t>>3),e.nextBytes(u),o>0?u[0]&=(1<n;++n)r[n]=e(u[n],t[n]);if(t.tn;)i+=r[n]+t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i+=t.s}e.s=0>i?-1:0,i>0?e[n++]=i:-1>i&&(e[n++]=r.DV+i),e.t=n,e.clamp()},v.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},v.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},v.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;n>i;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);n>i;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},v.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;0<=--n;)r[n]=0;for(n=Math.max(e-this.t,0);n=t)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(0=0;--n)r=(e*r+this[n])%t;return r},v.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(0>=r)return!1;var i=e.shiftRight(r);C.length<(t=t+1>>1)&&(t=C.length);for(var u=new n(null),o=[],s=0;t>s;++s){for(;f=C[Math.floor(Math.random()*C.length)],-1!=o.indexOf(f););o.push(f),u.fromInt(f);var a=u.modPow(i,this);if(0!=a.compareTo(n.ONE)&&0!=a.compareTo(e)){for(var f=1;f++>24},v.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},v.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},v.toByteArray=function(){var t=this,e=t.t,r=new Array;r[0]=t.s;var n,i=t.DB-e*t.DB%8,u=0;if(0>i)!=(t.s&t.DM)>>i&&(r[u++]=n|t.s<=0;)8>i?(n=(t[e]&(1<>(i+=t.DB-8)):(n=t[e]>>(i-=8)&255,0>=i&&(i+=t.DB,--e)),0!=(128&n)&&(n|=-256),0===u&&(128&t.s)!=(128&n)&&++u,(u>0||n!=t.s)&&(r[u++]=n);return r},v.equals=function(t){return 0==this.compareTo(t)},v.min=function(t){return this.compareTo(t)<0?this:t},v.max=function(t){return 0t?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},v.shiftRight=function(t){var e=new n;return 0>t?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},v.getLowestSetBit=function(){for(var t=0;t=this.t?0!=this.s:0!=(this[e]&1<=u)return h;r=18>u?1:48>u?3:144>u?4:768>u?5:6,i=8>u?new a(e):e.isEven()?new b(e):new f(e);var c=new Array,l=3,p=r-1,d=(1<1){var m=new n;for(i.sqrTo(c[1],m);d>=l;)c[l]=new n,i.mulTo(m,c[l-2],c[l]),l+=2}var g,y,v=t.t-1,_=!0,w=new n;for(u=s(t[v])-1;v>=0;){for(u>=p?g=t[v]>>u-p&d:(g=(t[v]&(1<0&&(g|=t[v-1]>>this.DB+u-p)),l=r;0==(1&g);)g>>=1,--l;if((u-=l)<0&&(u+=this.DB,--v),_)c[g].copyTo(h),_=!1;else{for(;l>1;)i.sqrTo(h,w),i.sqrTo(w,h),l-=2;l>0?i.sqrTo(h,w):(y=h,h=w,w=y),i.mulTo(w,c[g],h)}for(;v>=0&&0==(t[v]&1<u)return e;for(u>i&&(u=i),u>0&&(e.rShiftTo(u,e),r.rShiftTo(u,r));00&&r.lShiftTo(u,r),r},v.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=C[C.length-1]){for(e=0;en;)n*=C[i++];for(n=r.modInt(n);i>e;)if(n%C[e++]==0)return!1}return r.millerRabin(t)},v.square=function(){var t=new n;return this.squareTo(t),t},n.ZERO=o(0),n.ONE=o(1),n.valueOf=o,e.exports=n},{"../package.json":24}],22:[function(t,e,r){(function(e){var r=t("assert"),n=t("./bigi");n.fromByteArrayUnsigned=function(t){return new n(128&t[0]?[0].concat(t):t)},n.prototype.toByteArrayUnsigned=function(){var t=this.toByteArray();return 0===t[0]?t.slice(1):t},n.fromDERInteger=function(t){return new n(t)},n.prototype.toDERInteger=n.prototype.toByteArray,n.fromBuffer=function(t){if(128&t[0]){var e=Array.prototype.slice.call(t);return new n([0].concat(e))}return new n(t)},n.fromHex=function(t){return""===t?n.ZERO:(r.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),r.equal(t.length%2,0,"Incomplete hex"),new n(t,16))},n.prototype.toBuffer=function(t){for(var r=this.toByteArrayUnsigned(),n=[],i=t-r.length;n.lengthu;u++){var o=t.charCodeAt(u)-48;n<<=4,n|=o>=49&&54>=o?o-49+10:o>=17&&22>=o?o-17+10:15&o}return n}function s(t,e,r,n){for(var i=0,u=Math.min(t.length,r),o=e;u>o;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}function a(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;n=(r.length=n)-1|0;var i=0|t.words[0],u=0|e.words[0],o=i*u,s=67108863&o,a=o/67108864|0;r.words[0]=s;for(var f=1;n>f;f++){for(var h=a>>>26,c=67108863&a,l=Math.min(f,e.length-1),p=Math.max(0,f-t.length+1);l>=p;p++){var d=f-p|0;h+=(o=(i=0|t.words[d])*(u=0|e.words[p])+c)/67108864|0,c=67108863&o}r.words[f]=0|c,a=0|h}return 0!==a?r.words[f]=0|a:r.length--,r.strip()}function f(t,e,r){return(new h).mulp(t,e,r)}function h(t,e){this.x=t,this.y=e}function c(t,e){this.name=t,this.p=new u(e,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function p(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function d(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function m(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function g(t){if("string"==typeof t){var e=u._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function y(t){g.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}var b;"object"==typeof e?e.exports=u:r.BN=u,(u.BN=u).wordSize=26;try{b=t("buffer").Buffer}catch(e){}u.isBN=function(t){return t instanceof u||null!==t&&"object"==typeof t&&t.constructor.wordSize===u.wordSize&&Array.isArray(t.words)},u.max=function(t,e){return 0=2&&36>=e);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},u.prototype._initNumber=function(t,e,r){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},u.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[u]|=o<>>26-s&67108863,26<=(s+=24)&&(s-=26,u++);else if("le"===r)for(u=i=0;i>>26-s&67108863,26<=(s+=24)&&(s-=26,u++);return this.strip()},u.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=o(t,r,r+6),this.words[n]|=i<>>26-u&4194303,26<=(u+=24)&&(u-=26,n++);r+6!==e&&(i=o(t,e,r+6),this.words[n]|=i<>>26-u&4194303),this.strip()},u.prototype._parseBase=function(t,e,r){this.words=[0];for(var n=0,i=this.length=1;67108863>=i;i*=e)n++;n--,i=i/e|0;for(var u=t.length-r,o=u%n,a=Math.min(u,u-o)+r,f=0,h=r;a>h;h+=n)f=s(t,h,h+n,e),this.imuln(i),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==o){var c=1;for(f=s(t,h,t.length,e),h=0;o>h;h++)c*=e;this.imuln(c),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},u.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e"};var v=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],_=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],w=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,u=0,o=0;o>>24-i&16777215)||o!==this.length-1?v[6-a.length]+a+r:a+r,26<=(i+=2)&&(i-=26,o--)}for(0!==u&&(r=u.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&36>=t){var f=_[t],h=w[t];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var l=c.modn(h).toString(t);r=(c=c.idivn(h)).isZero()?l+r:v[f-l.length]+l+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2=i,"byte array longer than desired length"),n(u>0,"Requested array length <= 0"),this.strip();var o,s,a="le"===e,f=new t(u),h=this.clone();if(a){for(s=0;!h.isZero();s++)o=h.andln(255),h.iushrn(8),f[s]=o;for(;u>s;s++)f[s]=0}else{for(s=0;u-i>s;s++)f[s]=0;for(s=0;!h.isZero();s++)o=h.andln(255),h.iushrn(8),f[u-s-1]=o}return f},u.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},u.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},u.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},u.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},u.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},u.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},u.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},u.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},u.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;e>i;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},u.prototype.notn=function(t){return this.clone().inotn(t)},u.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,u=0;u>>26;for(;0!==i&&u>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ut.length?this.clone().iadd(t):t.clone().iadd(this)},u.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var u=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==u&&o>26,this.words[o]=67108863&e;if(0===u&&o>>13,p=0|o[1],d=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],_=8191&v,w=v>>>13,E=0|o[4],A=8191&E,B=E>>>13,C=0|o[5],F=8191&C,x=C>>>13,D=0|o[6],S=8191&D,k=D>>>13,M=0|o[7],T=8191&M,I=M>>>13,j=0|o[8],O=8191&j,L=j>>>13,U=0|o[9],R=8191&U,N=U>>>13,q=0|s[0],P=8191&q,z=q>>>13,V=0|s[1],Z=8191&V,H=V>>>13,G=0|s[2],K=8191&G,W=G>>>13,X=0|s[3],Y=8191&X,J=X>>>13,$=0|s[4],Q=8191&$,te=$>>>13,ee=0|s[5],re=8191&ee,ne=ee>>>13,ie=0|s[6],ue=8191&ie,oe=ie>>>13,se=0|s[7],ae=8191&se,fe=se>>>13,he=0|s[8],ce=8191&he,le=he>>>13,pe=0|s[9],de=8191&pe,me=pe>>>13;r.negative=t.negative^e.negative,r.length=19;var ge=(f+(n=Math.imul(c,P))|0)+((8191&(i=(i=Math.imul(c,z))+Math.imul(l,P)|0))<<13)|0;f=((u=Math.imul(l,z))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(d,P),i=(i=Math.imul(d,z))+Math.imul(m,P)|0,u=Math.imul(m,z);var ye=(f+(n=n+Math.imul(c,Z)|0)|0)+((8191&(i=(i=i+Math.imul(c,H)|0)+Math.imul(l,Z)|0))<<13)|0;f=((u=u+Math.imul(l,H)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,P),i=(i=Math.imul(y,z))+Math.imul(b,P)|0,u=Math.imul(b,z),n=n+Math.imul(d,Z)|0,i=(i=i+Math.imul(d,H)|0)+Math.imul(m,Z)|0,u=u+Math.imul(m,H)|0;var be=(f+(n=n+Math.imul(c,K)|0)|0)+((8191&(i=(i=i+Math.imul(c,W)|0)+Math.imul(l,K)|0))<<13)|0;f=((u=u+Math.imul(l,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,P),i=(i=Math.imul(_,z))+Math.imul(w,P)|0,u=Math.imul(w,z),n=n+Math.imul(y,Z)|0,i=(i=i+Math.imul(y,H)|0)+Math.imul(b,Z)|0,u=u+Math.imul(b,H)|0,n=n+Math.imul(d,K)|0,i=(i=i+Math.imul(d,W)|0)+Math.imul(m,K)|0,u=u+Math.imul(m,W)|0;var ve=(f+(n=n+Math.imul(c,Y)|0)|0)+((8191&(i=(i=i+Math.imul(c,J)|0)+Math.imul(l,Y)|0))<<13)|0;f=((u=u+Math.imul(l,J)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(A,P),i=(i=Math.imul(A,z))+Math.imul(B,P)|0,u=Math.imul(B,z),n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,Z)|0,u=u+Math.imul(w,H)|0,n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,W)|0)+Math.imul(b,K)|0,u=u+Math.imul(b,W)|0,n=n+Math.imul(d,Y)|0,i=(i=i+Math.imul(d,J)|0)+Math.imul(m,Y)|0,u=u+Math.imul(m,J)|0;var _e=(f+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,te)|0)+Math.imul(l,Q)|0))<<13)|0;f=((u=u+Math.imul(l,te)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(F,P),i=(i=Math.imul(F,z))+Math.imul(x,P)|0,u=Math.imul(x,z),n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(B,Z)|0,u=u+Math.imul(B,H)|0,n=n+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(w,K)|0,u=u+Math.imul(w,W)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,Y)|0,u=u+Math.imul(b,J)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,te)|0)+Math.imul(m,Q)|0,u=u+Math.imul(m,te)|0;var we=(f+(n=n+Math.imul(c,re)|0)|0)+((8191&(i=(i=i+Math.imul(c,ne)|0)+Math.imul(l,re)|0))<<13)|0;f=((u=u+Math.imul(l,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(S,P),i=(i=Math.imul(S,z))+Math.imul(k,P)|0,u=Math.imul(k,z),n=n+Math.imul(F,Z)|0,i=(i=i+Math.imul(F,H)|0)+Math.imul(x,Z)|0,u=u+Math.imul(x,H)|0,n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(B,K)|0,u=u+Math.imul(B,W)|0,n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(w,Y)|0,u=u+Math.imul(w,J)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,te)|0)+Math.imul(b,Q)|0,u=u+Math.imul(b,te)|0,n=n+Math.imul(d,re)|0,i=(i=i+Math.imul(d,ne)|0)+Math.imul(m,re)|0,u=u+Math.imul(m,ne)|0;var Ee=(f+(n=n+Math.imul(c,ue)|0)|0)+((8191&(i=(i=i+Math.imul(c,oe)|0)+Math.imul(l,ue)|0))<<13)|0;f=((u=u+Math.imul(l,oe)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(T,P),i=(i=Math.imul(T,z))+Math.imul(I,P)|0,u=Math.imul(I,z),n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,H)|0)+Math.imul(k,Z)|0,u=u+Math.imul(k,H)|0,n=n+Math.imul(F,K)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(x,K)|0,u=u+Math.imul(x,W)|0,n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(B,Y)|0,u=u+Math.imul(B,J)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,te)|0)+Math.imul(w,Q)|0,u=u+Math.imul(w,te)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(b,re)|0,u=u+Math.imul(b,ne)|0,n=n+Math.imul(d,ue)|0,i=(i=i+Math.imul(d,oe)|0)+Math.imul(m,ue)|0,u=u+Math.imul(m,oe)|0;var Ae=(f+(n=n+Math.imul(c,ae)|0)|0)+((8191&(i=(i=i+Math.imul(c,fe)|0)+Math.imul(l,ae)|0))<<13)|0;f=((u=u+Math.imul(l,fe)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(O,P),i=(i=Math.imul(O,z))+Math.imul(L,P)|0,u=Math.imul(L,z),n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(I,Z)|0,u=u+Math.imul(I,H)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,W)|0)+Math.imul(k,K)|0,u=u+Math.imul(k,W)|0,n=n+Math.imul(F,Y)|0,i=(i=i+Math.imul(F,J)|0)+Math.imul(x,Y)|0,u=u+Math.imul(x,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,te)|0)+Math.imul(B,Q)|0,u=u+Math.imul(B,te)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,u=u+Math.imul(w,ne)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,oe)|0)+Math.imul(b,ue)|0,u=u+Math.imul(b,oe)|0,n=n+Math.imul(d,ae)|0,i=(i=i+Math.imul(d,fe)|0)+Math.imul(m,ae)|0,u=u+Math.imul(m,fe)|0; var Be=(f+(n=n+Math.imul(c,ce)|0)|0)+((8191&(i=(i=i+Math.imul(c,le)|0)+Math.imul(l,ce)|0))<<13)|0;f=((u=u+Math.imul(l,le)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(R,P),i=(i=Math.imul(R,z))+Math.imul(N,P)|0,u=Math.imul(N,z),n=n+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,H)|0)+Math.imul(L,Z)|0,u=u+Math.imul(L,H)|0,n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,W)|0)+Math.imul(I,K)|0,u=u+Math.imul(I,W)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(k,Y)|0,u=u+Math.imul(k,J)|0,n=n+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,te)|0)+Math.imul(x,Q)|0,u=u+Math.imul(x,te)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(B,re)|0,u=u+Math.imul(B,ne)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ue)|0,u=u+Math.imul(w,oe)|0,n=n+Math.imul(y,ae)|0,i=(i=i+Math.imul(y,fe)|0)+Math.imul(b,ae)|0,u=u+Math.imul(b,fe)|0,n=n+Math.imul(d,ce)|0,i=(i=i+Math.imul(d,le)|0)+Math.imul(m,ce)|0,u=u+Math.imul(m,le)|0;var Ce=(f+(n=n+Math.imul(c,de)|0)|0)+((8191&(i=(i=i+Math.imul(c,me)|0)+Math.imul(l,de)|0))<<13)|0;f=((u=u+Math.imul(l,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(R,Z),i=(i=Math.imul(R,H))+Math.imul(N,Z)|0,u=Math.imul(N,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,W)|0)+Math.imul(L,K)|0,u=u+Math.imul(L,W)|0,n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(I,Y)|0,u=u+Math.imul(I,J)|0,n=n+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,te)|0)+Math.imul(k,Q)|0,u=u+Math.imul(k,te)|0,n=n+Math.imul(F,re)|0,i=(i=i+Math.imul(F,ne)|0)+Math.imul(x,re)|0,u=u+Math.imul(x,ne)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(B,ue)|0,u=u+Math.imul(B,oe)|0,n=n+Math.imul(_,ae)|0,i=(i=i+Math.imul(_,fe)|0)+Math.imul(w,ae)|0,u=u+Math.imul(w,fe)|0,n=n+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(b,ce)|0,u=u+Math.imul(b,le)|0;var Fe=(f+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(m,de)|0))<<13)|0;f=((u=u+Math.imul(m,me)|0)+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(R,K),i=(i=Math.imul(R,W))+Math.imul(N,K)|0,u=Math.imul(N,W),n=n+Math.imul(O,Y)|0,i=(i=i+Math.imul(O,J)|0)+Math.imul(L,Y)|0,u=u+Math.imul(L,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,te)|0)+Math.imul(I,Q)|0,u=u+Math.imul(I,te)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(k,re)|0,u=u+Math.imul(k,ne)|0,n=n+Math.imul(F,ue)|0,i=(i=i+Math.imul(F,oe)|0)+Math.imul(x,ue)|0,u=u+Math.imul(x,oe)|0,n=n+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(B,ae)|0,u=u+Math.imul(B,fe)|0,n=n+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,le)|0)+Math.imul(w,ce)|0,u=u+Math.imul(w,le)|0;var xe=(f+(n=n+Math.imul(y,de)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(b,de)|0))<<13)|0;f=((u=u+Math.imul(b,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(R,Y),i=(i=Math.imul(R,J))+Math.imul(N,Y)|0,u=Math.imul(N,J),n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,te)|0)+Math.imul(L,Q)|0,u=u+Math.imul(L,te)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(I,re)|0,u=u+Math.imul(I,ne)|0,n=n+Math.imul(S,ue)|0,i=(i=i+Math.imul(S,oe)|0)+Math.imul(k,ue)|0,u=u+Math.imul(k,oe)|0,n=n+Math.imul(F,ae)|0,i=(i=i+Math.imul(F,fe)|0)+Math.imul(x,ae)|0,u=u+Math.imul(x,fe)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(B,ce)|0,u=u+Math.imul(B,le)|0;var De=(f+(n=n+Math.imul(_,de)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(w,de)|0))<<13)|0;f=((u=u+Math.imul(w,me)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(R,Q),i=(i=Math.imul(R,te))+Math.imul(N,Q)|0,u=Math.imul(N,te),n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(L,re)|0,u=u+Math.imul(L,ne)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(I,ue)|0,u=u+Math.imul(I,oe)|0,n=n+Math.imul(S,ae)|0,i=(i=i+Math.imul(S,fe)|0)+Math.imul(k,ae)|0,u=u+Math.imul(k,fe)|0,n=n+Math.imul(F,ce)|0,i=(i=i+Math.imul(F,le)|0)+Math.imul(x,ce)|0,u=u+Math.imul(x,le)|0;var Se=(f+(n=n+Math.imul(A,de)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(B,de)|0))<<13)|0;f=((u=u+Math.imul(B,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(R,re),i=(i=Math.imul(R,ne))+Math.imul(N,re)|0,u=Math.imul(N,ne),n=n+Math.imul(O,ue)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(L,ue)|0,u=u+Math.imul(L,oe)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,fe)|0)+Math.imul(I,ae)|0,u=u+Math.imul(I,fe)|0,n=n+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,le)|0)+Math.imul(k,ce)|0,u=u+Math.imul(k,le)|0;var ke=(f+(n=n+Math.imul(F,de)|0)|0)+((8191&(i=(i=i+Math.imul(F,me)|0)+Math.imul(x,de)|0))<<13)|0;f=((u=u+Math.imul(x,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(R,ue),i=(i=Math.imul(R,oe))+Math.imul(N,ue)|0,u=Math.imul(N,oe),n=n+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,fe)|0)+Math.imul(L,ae)|0,u=u+Math.imul(L,fe)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(I,ce)|0,u=u+Math.imul(I,le)|0;var Me=(f+(n=n+Math.imul(S,de)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(k,de)|0))<<13)|0;f=((u=u+Math.imul(k,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(R,ae),i=(i=Math.imul(R,fe))+Math.imul(N,ae)|0,u=Math.imul(N,fe),n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,le)|0)+Math.imul(L,ce)|0,u=u+Math.imul(L,le)|0;var Te=(f+(n=n+Math.imul(T,de)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(I,de)|0))<<13)|0;f=((u=u+Math.imul(I,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,ce),i=(i=Math.imul(R,le))+Math.imul(N,ce)|0,u=Math.imul(N,le);var Ie=(f+(n=n+Math.imul(O,de)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(L,de)|0))<<13)|0;f=((u=u+Math.imul(L,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var je=(f+(n=Math.imul(R,de))|0)+((8191&(i=(i=Math.imul(R,me))+Math.imul(N,de)|0))<<13)|0;return f=((u=Math.imul(N,me))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,a[0]=ge,a[1]=ye,a[2]=be,a[3]=ve,a[4]=_e,a[5]=we,a[6]=Ee,a[7]=Ae,a[8]=Be,a[9]=Ce,a[10]=Fe,a[11]=xe,a[12]=De,a[13]=Se,a[14]=ke,a[15]=Me,a[16]=Te,a[17]=Ie,a[18]=je,0!==f&&(a[19]=f,r.length++),r};Math.imul||(E=a),u.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?E(this,t,e):63>r?a(this,t,e):1024>r?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,u=0;u=f;f++){var h=u-f,c=(0|t.words[h])*(0|e.words[f]),l=67108863&c;s=67108863&(l=l+s|0),i+=(o=(o=o+(c/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}r.words[u]=s,n=o,o=i}return 0!==n?r.words[u]=n:r.length--,r.strip()}(this,t,e):f(this,t,e)},h.prototype.makeRBT=function(t){for(var e=new Array(t),r=u.prototype._countBits(t)-1,n=0;t>n;n++)e[n]=this.revBin(n,r,t);return e},h.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;e>i;i++)n|=(1&t)<>=1;return n},h.prototype.permute=function(t,e,r,n,i,u){for(var o=0;u>o;o++)n[o]=e[t[o]],i[o]=r[t[o]]},h.prototype.transform=function(t,e,r,n,i,u){this.permute(u,t,e,r,n,i);for(var o=1;i>o;o<<=1)for(var s=o<<1,a=Math.cos(2*Math.PI/s),f=Math.sin(2*Math.PI/s),h=0;i>h;h+=s)for(var c=a,l=f,p=0;o>p;p++){var d=r[h+p],m=n[h+p],g=r[h+p+o],y=n[h+p+o],b=c*g-l*y;y=c*y+l*g,g=b,r[h+p]=d+g,n[h+p]=m+y,r[h+p+o]=d-g,n[h+p+o]=m-y,p!==s&&(b=a*c-f*l,l=a*l+f*c,c=b)}},h.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<=r))for(var n=0;r/2>n;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},h.prototype.normalize13b=function(t,e){for(var r=0,n=0;e/2>n;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=67108864>i?0:i/67108864|0}return t},h.prototype.convert13b=function(t,e,r,i){for(var u=0,o=0;e>o;o++)u+=0|t[o],r[2*o]=8191&u,u>>>=13,r[2*o+1]=8191&u,u>>>=13;for(o=2*e;i>o;++o)r[o]=0;n(0===u),n(0==(-8192&u))},h.prototype.stub=function(t){for(var e=new Array(t),r=0;t>r;r++)e[r]=0;return e},h.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),u=this.stub(n),o=new Array(n),s=new Array(n),a=new Array(n),f=new Array(n),h=new Array(n),c=new Array(n),l=r.words;l.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,f,n),this.transform(o,u,s,a,n,i),this.transform(f,u,h,c,n,i);for(var p=0;n>p;p++){var d=s[p]*h[p]-a[p]*c[p];a[p]=s[p]*c[p]+a[p]*h[p],s[p]=d}return this.conjugate(s,a,n),this.transform(s,a,l,u,n,i),this.conjugate(l,u,n),this.normalize13b(l,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},u.prototype.mul=function(t){var e=new u(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},u.prototype.mulf=function(t){var e=new u(null);return e.words=new Array(this.length+t.length),f(this,t,e)},u.prototype.imul=function(t){return this.clone().mulTo(t,this)},u.prototype.imuln=function(t){n("number"==typeof t),n(67108864>t);for(var e=0,r=0;r>=26,e+=i/67108864|0,e+=u>>>26,this.words[r]=67108863&u}return 0!==e&&(this.words[r]=e,this.length++),this},u.prototype.muln=function(t){return this.clone().imuln(t)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i}return e}(t);if(0===e.length)return new u(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,u=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(e=0;e>>26-r}o&&(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;i>e;e++)this.words[e]=0;this.length+=i}return this.strip()},u.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},u.prototype.iushrn=function(t,e,r){var i;n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var u=t%26,o=Math.min((t-u)/26,this.length),s=67108863^67108863>>>u<f;f++)a.words[f]=this.words[f];a.length=o}if(0===o);else if(this.length>o)for(this.length-=o,f=0;f=0&&(0!==h||f>=i);f--){var c=0|this.words[f];this.words[f]=h<<26-u|c>>>u,h=c&s}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},u.prototype.shln=function(t){return this.clone().ishln(t)},u.prototype.ushln=function(t){return this.clone().iushln(t)},u.prototype.shrn=function(t){return this.clone().ishrn(t)},u.prototype.ushrn=function(t){return this.clone().iushrn(t)},u.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<t),0>t?this.isubn(-t):0!==this.negative?(1===this.length&&(0|this.words[0])t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[i+r]=67108863&u}for(;i>26,this.words[i+r]=67108863&u;if(0===s)return this.strip();for(n(-1===s),i=s=0;i>26,this.words[i]=67108863&u;return this.negative=1,this.strip()},u.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,a=n.length-i.length;if("mod"!==e){(s=new u(null)).length=a+1,s.words=new Array(s.length);for(var f=0;f=0;c--){var l=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(i,l,c);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);s&&(s.words[c]=l)}return s&&s.strip(),n.strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},u.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.iadd(t)),{div:i,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(o=s.mod.neg(),r&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new u(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new u(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new u(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},u.prototype.div=function(t){return this.divmod(t,"div",!1).div},u.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},u.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},u.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),u=r.cmp(n);return 0>u||1===i&&0===u?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},u.prototype.modn=function(t){n(67108863>=t);for(var e=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},u.prototype.idivn=function(t){n(67108863>=t);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},u.prototype.divn=function(t){return this.clone().idivn(t)},u.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new u(1),o=new u(0),s=new u(0),a=new u(1),f=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++f;for(var h=r.clone(),c=e.clone();!e.isZero();){for(var l=0,p=1;0==(e.words[0]&p)&&26>l;++l,p<<=1);if(l>0)for(e.iushrn(l);0d;++d,m<<=1);if(d>0)for(r.iushrn(d);0f;++f,h<<=1);if(f>0)for(e.iushrn(f);0c;++c,l<<=1);if(c>0)for(r.iushrn(c);0i){var u=e;e=r,r=u}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},u.prototype.invm=function(t){return this.egcd(t).a.umod(t)},u.prototype.isEven=function(){return 0==(1&this.words[0])},u.prototype.isOdd=function(){return 1==(1&this.words[0])},u.prototype.andln=function(t){return this.words[0]&t},u.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==u&&(this.words[o]=u,this.length++),this},u.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},u.prototype.cmpn=function(t){var e,r=0>t;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1=t,"Number is too big");var i=0|this.words[0];e=i===t?0:t>i?-1:1}return 0!==this.negative?0|-e:e},u.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},u.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){i>n?e=-1:n>i&&(e=1);break}}return e},u.prototype.gtn=function(t){return 1===this.cmpn(t)},u.prototype.gt=function(t){return 1===this.cmp(t)},u.prototype.gten=function(t){return 0<=this.cmpn(t)},u.prototype.gte=function(t){return 0<=this.cmp(t)},u.prototype.ltn=function(t){return-1===this.cmpn(t)},u.prototype.lt=function(t){return-1===this.cmp(t)},u.prototype.lten=function(t){return this.cmpn(t)<=0},u.prototype.lte=function(t){return this.cmp(t)<=0},u.prototype.eqn=function(t){return 0===this.cmpn(t)},u.prototype.eq=function(t){return 0===this.cmp(t)},u.red=function(t){return new g(t)},u.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},u.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(t){return this.red=t,this},u.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},u.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},u.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},u.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},u.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},u.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},u.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},u.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},u.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var t=new u(null);return t.words=new Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){for(var e,r=t;this.split(r,this.tmp),(e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=e0?r.isub(this.p):r.strip(),r},c.prototype.split=function(t,e){t.iushrn(this.n,0,e)},c.prototype.imulK=function(t){return t.imul(this.k)},i(l,c),l.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;r>n;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,n=10;n>>22,i=u}i>>>=22,0===(t.words[n-10]=i)&&10>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},u._prime=function(t){if(A[t])return A[t];var e;if("k256"===t)e=new l;else if("p224"===t)e=new p;else if("p192"===t)e=new d;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new m}return A[t]=e},g.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},g.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},g.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},g.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},g.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},g.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return 0<=r.cmp(this.m)&&r.isub(this.m),r},g.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},g.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},g.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},g.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},g.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},g.prototype.isqr=function(t){return this.imul(t,t.clone())},g.prototype.sqr=function(t){return this.mul(t,t)},g.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new u(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new u(1).toRed(this),a=s.redNeg(),f=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new u(2*h*h).toRed(this);0!==this.pow(h,f).cmp(a);)h.redIAdd(a);for(var c=this.pow(h,i),l=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(d>g);var y=this.pow(c,new u(1).iushln(d-g-1));l=l.redMul(y),c=y.redSqr(),p=p.redMul(c),d=g}return l},g.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},g.prototype.pow=function(t,e){if(e.isZero())return new u(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new u(1).toRed(this),r[1]=t;for(var n=2;n=0;n--){for(var f=e.words[n],h=a-1;h>=0;h--){var c=f>>h&1;i!==r[0]&&(i=this.sqr(i)),0!==c||0!==o?(o<<=1,o|=c,(4===++s||0===n&&0===h)&&(i=this.mul(i,r[o]),o=s=0)):s=0}a=26}return i},g.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},g.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},u.mont=function(t){return new y(t)},i(y,g),y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},y.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},y.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),u=i;return 0<=i.cmp(this.m)?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},y.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new u(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:26}],26:[function(t,e,r){},{}],27:[function(t,e,r){function n(t){s.isBuffer(t)||(t=s.from(t));for(var e=t.length/4|0,r=new Array(e),n=0;e>n;n++)r[n]=t.readUInt32BE(4*n);return r}function i(t){for(;0b;b++)u=f[p>>>24]^h[d>>>16&255]^c[m>>>8&255]^l[255&g]^e[y++],o=f[d>>>24]^h[m>>>16&255]^c[g>>>8&255]^l[255&p]^e[y++],s=f[m>>>24]^h[g>>>16&255]^c[p>>>8&255]^l[255&d]^e[y++],a=f[g>>>24]^h[p>>>16&255]^c[d>>>8&255]^l[255&m]^e[y++],p=u,d=o,m=s,g=a;return u=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^e[y++],o=(n[d>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&p])^e[y++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[p>>>8&255]<<8|n[255&d])^e[y++],a=(n[g>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[255&m])^e[y++],[u>>>=0,o>>>=0,s>>>=0,a>>>=0]}function o(t){this._key=n(t),this._reset()}var s=t("safe-buffer").Buffer,a=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var t=new Array(256),e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],u=[[],[],[],[]],o=0,s=0,a=0;256>a;++a){var f=s^s<<1^s<<2^s<<3^s<<4;f=f>>>8^255&f^99;var h=t[n[r[o]=f]=o],c=t[h],l=t[c],p=257*t[f]^16843008*f;i[0][o]=p<<24|p>>>8,i[1][o]=p<<16|p>>>16,i[2][o]=p<<8|p>>>24,i[3][o]=p,p=16843009*l^65537*c^257*h^16843008*o,u[0][f]=p<<24|p>>>8,u[1][f]=p<<16|p>>>16,u[2][f]=p<<8|p>>>24,u[3][f]=p,0===o?o=s=1:(o=h^t[t[t[l^h]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:u}}();o.blockSize=16,o.keySize=32,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],u=0;e>u;u++)i[u]=t[u];for(u=e;n>u;u++){var o=i[u-1];u%e==0?(o=o<<8|o>>>24,o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o],o^=a[u/e|0]<<24):e>6&&u%e==4&&(o=f.SBOX[o>>>24]<<24|f.SBOX[o>>>16&255]<<16|f.SBOX[o>>>8&255]<<8|f.SBOX[255&o]),i[u]=i[u-e]^o}for(var s=[],h=0;n>h;h++){var c=n-h,l=i[c-(h%4?0:4)];s[h]=4>h||4>=c?l:f.INV_SUB_MIX[0][f.SBOX[l>>>24]]^f.INV_SUB_MIX[1][f.SBOX[l>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[l>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},o.prototype.encryptBlockRaw=function(t){return u(t=n(t),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},o.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=s.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},o.prototype.decryptBlock=function(t){var e=(t=n(t))[1];t[1]=t[3],t[3]=e;var r=u(t,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),i=s.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},o.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=o},{"safe-buffer":190}],28:[function(t,e,r){function n(t,e,r,n){o.call(this),this._finID=u.concat([r,u.from([0,0,0,1])]),r=u.concat([r,u.from([0,0,0,2])]),this._cipher=new i.AES(e),this._prev=u.from(r),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=t;var s=u.alloc(4,0);this._ghash=new a(this._cipher.encryptBlock(s)),this._authTag=null,this._called=!1}var i=t("./aes"),u=t("safe-buffer").Buffer,o=t("cipher-base"),s=t("inherits"),a=t("./ghash"),f=t("buffer-xor");s(n,o),n.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;16>e&&(e=u.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},n.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=f(this._ghash["final"](8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;n>i;++i)r+=t[i]^e[i];return r}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},n.prototype.getAuthTag=function(){if(this._decrypt||!u.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},n.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},n.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},e.exports=n},{"./aes":27,"./ghash":32,"buffer-xor":44,"cipher-base":48,inherits:159,"safe-buffer":190}],29:[function(t,e,r){var n=t("./encrypter"),i=t("./decrypter"),u=t("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(u)}},{"./decrypter":30,"./encrypter":31,"./modes/list.json":40}],30:[function(t,e,r){function n(t,e,r){h.call(this),this._cache=new i,this._last=void 0,this._cipher=new c.AES(e),this._prev=s.from(r),this._mode=t,this._autopadding=!0}function i(){this.cache=s.allocUnsafe(0)}function u(t,e,r){var i=a[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=s.from(r)),r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=s.from(e)),e.length!==i.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===i.type?new f(i.module,e,r,!0):"auth"===i.type?new o(i.module,e,r,!0):new n(i.module,e,r)}var o=t("./authCipher"),s=t("safe-buffer").Buffer,a=t("./modes"),f=t("./streamCipher"),h=t("cipher-base"),c=t("./aes"),l=t("evp_bytestokey");t("inherits")(n,h),n.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return s.concat(n)},n.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){for(var e=t[15],r=-1;++r>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function i(t){this.h=t,this.state=u.alloc(16,0),this.cache=u.allocUnsafe(0)}var u=t("safe-buffer").Buffer,o=u.alloc(16,0);i.prototype.ghash=function(t){for(var e=-1;++e0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=i[0]^225<<24)}this.state=n(u)},i.prototype.update=function(t){var e;for(this.cache=u.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},i.prototype["final"]=function(t,e){return this.cache.length&&this.ghash(u.concat([this.cache,o],16)),this.ghash(n([0,t,0,e])),this.state},e.exports=i},{"safe-buffer":190}],33:[function(t,e,r){var n=t("buffer-xor");r.encrypt=function(t,e){var r=n(e,t._prev);return t._prev=t._cipher.encryptBlock(r),t._prev},r.decrypt=function(t,e){var r=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return n(i,r)}},{"buffer-xor":44}],34:[function(t,e,r){function n(t,e,r){var n=e.length,o=u(e,t._cache);return t._cache=t._cache.slice(n),t._prev=i.concat([t._prev,r?e:o]),o}var i=t("safe-buffer").Buffer,u=t("buffer-xor");r.encrypt=function(t,e,r){for(var u,o=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){o=i.concat([o,n(t,e,r)]);break}u=t._cache.length,o=i.concat([o,n(t,e.slice(0,u),r)]),e=e.slice(u)}return o}},{"buffer-xor":44,"safe-buffer":190}],35:[function(t,e,r){function n(t,e,r){for(var n,u,o=-1,s=0;++o<8;)n=e&1<<7-o?128:0,s+=(128&(u=t._cipher.encryptBlock(t._prev)[0]^n))>>o%8,t._prev=i(t._prev,r?n:u);return s}function i(t,e){var r=t.length,n=-1,i=u.allocUnsafe(t.length);for(t=u.concat([t,u.from([e])]);++n>7;return i}var u=t("safe-buffer").Buffer;r.encrypt=function(t,e,r){for(var i=e.length,o=u.allocUnsafe(i),s=-1;++sa;a++){var f=(u=(i=t)._cipher.encryptBlockRaw(i._prev),function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}(i._prev),u),h=s+16*a;t._cache.writeUInt32BE(f[0],h+0),t._cache.writeUInt32BE(f[1],h+4),t._cache.writeUInt32BE(f[2],h+8),t._cache.writeUInt32BE(f[3],h+12)}var c=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,c)}}).call(this,t("buffer").Buffer)},{buffer:45,"buffer-xor":44}],38:[function(t,e,r){r.encrypt=function(t,e){return t._cipher.encryptBlock(e)},r.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},{}],39:[function(t,e,r){var n={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},i=t("./list.json");for(var u in i)i[u].module=n[i[u].mode];e.exports=i},{"./cbc":33,"./cfb":34,"./cfb1":35,"./cfb8":36,"./ctr":37,"./ecb":38,"./list.json":40,"./ofb":41}],40:[function(t,e,r){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],41:[function(t,e,r){(function(e){var n=t("buffer-xor");r.encrypt=function(t,r){for(;t._cache.lengthu;++u)i[u]=e[u]^r[u];return i}}).call(this,t("buffer").Buffer)},{buffer:45}],45:[function(t,e,r){"use strict";function n(t){if(t>L)throw new RangeError("Invalid typed array length");var e=new Uint8Array(t);return e.__proto__=i.prototype,e}function i(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return s(t)}return u(t,e,r)}function u(t,e,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return M(t)?function(t,e,r){if(0>e||t.byteLengtht)throw new RangeError('"size" argument must not be negative')}function s(t){return o(t),n(0>t?0:0|f(t))}function a(t){for(var e=t.length<0?0:0|f(t.length),r=n(e),i=0;e>i;i+=1)r[i]=255&t[i];return r}function f(t){if(t>=L)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L.toString(16)+" bytes");return 0|t}function h(t,e){if(i.isBuffer(t))return t.length;if(T(t)||M(t))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return S(t).length;default:if(n)return D(t).length;e=(""+e).toLowerCase(),n=!0}}function c(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function l(t,e,r,n,u){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:-2147483648>r&&(r=-2147483648),I(r=+r)&&(r=u?0:t.length-1),0>r&&(r=t.length+r),r>=t.length){if(u)return-1;r=t.length-1}else if(0>r){if(!u)return-1;r=0}if("string"==typeof e&&(e=i.from(e,n)),i.isBuffer(e))return 0===e.length?-1:p(t,e,r,n,u);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):p(t,[e],r,n,u);throw new TypeError("val must be string, number or Buffer")}function p(t,e,r,n,i){function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var o,s=1,a=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a/=s=2,f/=2,r/=2}if(i){var h=-1;for(o=r;a>o;o++)if(u(t,o)===u(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===f)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(r+f>a&&(r=a-f),o=r;o>=0;o--){for(var c=!0,l=0;f>l;l++)if(u(t,o+l)!==u(e,l)){c=!1;break}if(c)return o}return-1}function d(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?i<(n=Number(n))&&(n=i):n=i;var u=e.length;if(u%2!=0)throw new TypeError("Invalid hex string");n>u/2&&(n=u/2);for(var o=0;n>o;++o){var s=parseInt(e.substr(2*o,2),16);if(I(s))return o;t[r+o]=s}return o}function m(t,e,r,n){return k(function(t){for(var e=[],r=0;ri;){var u,o,s,a,f=t[i],h=null,c=f>239?4:f>223?3:f>191?2:1;if(r>=i+c)switch(c){case 1:128>f&&(h=f);break;case 2:128==(192&(u=t[i+1]))&&127<(a=(31&f)<<6|63&u)&&(h=a);break;case 3:u=t[i+1],o=t[i+2],128==(192&u)&&128==(192&o)&&2047<(a=(15&f)<<12|(63&u)<<6|63&o)&&(55296>a||a>57343)&&(h=a);break;case 4:u=t[i+1],o=t[i+2],s=t[i+3],128==(192&u)&&128==(192&o)&&128==(192&s)&&65535<(a=(15&f)<<18|(63&u)<<12|(63&o)<<6|63&s)&&1114112>a&&(h=a)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(U>=e)return String.fromCharCode.apply(String,t);for(var r="",n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=U));return r}(n)}function b(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;++i)n+=String.fromCharCode(127&t[i]);return n}function v(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;r>i;++i)n+=String.fromCharCode(t[i]);return n}function _(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var i="",u=e;r>u;++u)i+=x(t[u]);return i}function w(t,e,r){for(var n=t.slice(e,r),i="",u=0;ut)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,n,u,o){if(!i.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||o>e)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function B(t,e,r,n,i,u){if(r+n>t.length)throw new RangeError("Index out of range");if(0>r)throw new RangeError("Index out of range")}function C(t,e,r,n,i){return e=+e,r>>>=0,i||B(t,0,r,4),O.write(t,e,r,n,23,4),r+4}function F(t,e,r,n,i){return e=+e,r>>>=0,i||B(t,0,r,8),O.write(t,e,r,n,52,8),r+8}function x(t){return 16>t?"0"+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,u=[],o=0;n>o;++o){if(55295<(r=t.charCodeAt(o))&&57344>r){if(!i){if(r>56319){-1<(e-=3)&&u.push(239,191,189);continue}if(o+1===n){-1<(e-=3)&&u.push(239,191,189);continue}i=r;continue}if(56320>r){-1<(e-=3)&&u.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&u.push(239,191,189);if(i=null,128>r){if((e-=1)<0)break;u.push(r)}else if(2048>r){if((e-=2)<0)break;u.push(r>>6|192,63&r|128)}else if(65536>r){if((e-=3)<0)break;u.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(1114112>r))throw new Error("Invalid code point");if((e-=4)<0)break;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return u}function S(t){return j.toByteArray(function(t){if((t=t.trim().replace(R,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function k(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function M(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function T(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function I(t){return t!=t}var j=t("base64-js"),O=t("ieee754");r.Buffer=i,r.SlowBuffer=function(t){return+t!=t&&(t=0),i.alloc(+t)},r.INSPECT_MAX_BYTES=50;var L=2147483647;r.kMaxLength=L,(i.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),i.poolSize=8192,i.from=function(t,e,r){return u(t,e,r)},i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,i.alloc=function(t,e,r){return u=e,s=r,o(i=t),0>=i?n(i):void 0!==u?"string"==typeof s?n(i).fill(u,s):n(i).fill(u):n(i);var i,u,s},i.allocUnsafe=function(t){return s(t)},i.allocUnsafeSlow=function(t){return s(t)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,u=0,o=Math.min(r,n);o>u;++u)if(t[u]!==e[u]){r=t[u],n=e[u];break}return n>r?-1:r>n?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return i.alloc(0);var r;if(void 0===e)for(r=e=0;re;e+=2)c(this,e,e+1);return this},i.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;t>e;e+=4)c(this,e,e+3),c(this,e+1,e+2);return this},i.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;t>e;e+=8)c(this,e,e+7),c(this,e+1,e+6),c(this,e+2,e+5),c(this,e+3,e+4);return this},i.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?y(this,0,t):function(t,e,r){var n=!1;if((void 0===e||0>e)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),0>=r)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,r);case"utf8":case"utf-8":return y(this,e,r);case"ascii":return b(this,e,r);case"latin1":case"binary":return v(this,e,r);case"base64":return g(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return 0e&&(t+=" ... ")),""},i.prototype.compare=function(t,e,r,n,u){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===u&&(u=this.length),0>e||r>t.length||0>n||u>this.length)throw new RangeError("out of range index");if(n>=u&&e>=r)return 0;if(n>=u)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(u>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),f=this.slice(n,u),h=t.slice(e,r),c=0;a>c;++c)if(f[c]!==h[c]){o=f[c],s=h[c];break}return s>o?-1:o>s?1:0},i.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},i.prototype.indexOf=function(t,e,r){return l(this,t,e,r,!0)},i.prototype.lastIndexOf=function(t,e,r){return l(this,t,e,r,!1)},i.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),0r||0>e)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u,o,s,a,f,h,c,l,p,g=!1;;)switch(n){case"hex":return d(this,t,e,r);case"utf8":case"utf-8":return l=e,p=r,k(D(t,(c=this).length-l),c,l,p);case"ascii":return m(this,t,e,r);case"latin1":case"binary":return m(this,t,e,r);case"base64":return a=this,f=e,h=r,k(S(t),a,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=e,s=r,k(function(t,e){for(var r,n,i,u=[],o=0;o>8,i=r%256,u.push(i),u.push(n);return u}(t,(u=this).length-o),u,o,s);default:if(g)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),g=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var U=4096;i.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),t>e&&(e=t);var n=this.subarray(t,e);return n.__proto__=i.prototype,n},i.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,u=0;++u>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},i.prototype.readUInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||E(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||E(t,e,this.length);for(var n=this[t],i=1,u=0;++u>>=0,e>>>=0,r||E(t,e,this.length);for(var n=e,i=1,u=this[t+--n];n>0&&(i*=256);)u+=this[t+--n]*i;return(i*=128)<=u&&(u-=Math.pow(2,8*e)),u},i.prototype.readInt8=function(t,e){return t>>>=0,e||E(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt16BE=function(t,e){t>>>=0,e||E(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||E(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return t>>>=0,e||E(t,4,this.length),O.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||E(t,4,this.length),O.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||E(t,8,this.length),O.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||E(t,8,this.length),O.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,u=0;for(this[e]=255&t;++u>>=0,r>>>=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,u=1;for(this[e+i]=255&t;0<=--i&&(u*=256);)this[e+i]=t/u&255;return e+r},i.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var u=0,o=1,s=0;for(this[e]=255&t;++ut&&0===s&&0!==this[e+u-1]&&(s=1),this[e+u]=(t/o>>0)-s&255;return e+r},i.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var u=r-1,o=1,s=0;for(this[e+u]=255&t;0<=--u&&(o*=256);)0>t&&0===s&&0!==this[e+u+1]&&(s=1),this[e+u]=(t/o>>0)-s&255;return e+r},i.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,1,127,-128),0>t&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||A(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeFloatLE=function(t,e,r){return C(this,t,e,!0,r)},i.prototype.writeFloatBE=function(t,e,r){return C(this,t,e,!1,r)},i.prototype.writeDoubleLE=function(t,e,r){return F(this,t,e,!0,r)},i.prototype.writeDoubleBE=function(t,e,r){return F(this,t,e,!1,r)},i.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&r>n&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(0>e)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-er&&n>e)for(i=u-1;i>=0;--i)t[i+e]=this[i+r];else if(1e3>u)for(i=0;u>i;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+u),e);return u},i.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var u=t.charCodeAt(0);256>u&&(t=u)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!i.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(0>e||this.length=r)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;r>o;++o)this[o]=t;else{var s=i.isBuffer(t)?t:new i(t,n),a=s.length;for(o=0;r-e>o;++o)this[o+e]=s[o%a]}return this};var R=/[^+\/0-9A-Za-z-_]/g},{"base64-js":20,ieee754:158}],46:[function(t,e,r){var n,i;n=this,i=function(t){"use strict";function e(t){var e=0;return function(){return e>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,u=p&(1<<-h)-1,p>>=-h,h+=s;h>0;u=256*u+t[e+c],c+=l,h-=8);for(o=u&(1<<-h)-1,u>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=l,h-=8);if(0===u)u=1-f;else{if(u===a)return o?0/0:1/0*(p?-1:1);o+=Math.pow(2,n),u-=f}return(p?-1:1)*o*Math.pow(2,u-n)}function i(t,e,r,n,i,u){var o,s,a,f=8*u-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:u-1,d=n?1:-1,m=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),2<=(e+=o+c>=1?l/a:l*Math.pow(2,1-c))*a&&(o++,a/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(e*a-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,f-=8);t[r+p-d]|=128*m}var u=function(t,e,r){if(void 0===t&&(t=u.DEFAULT_CAPACITY),void 0===e&&(e=u.DEFAULT_ENDIAN),void 0===r&&(r=u.DEFAULT_NOASSERT),!r){if((t|=0)<0)throw RangeError("Illegal capacity");e=!!e,r=!!r}this.buffer=0===t?s:new ArrayBuffer(t),this.view=0===t?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=t,this.littleEndian=e,this.noAssert=r};u.VERSION="5.0.1",u.LITTLE_ENDIAN=!0,u.BIG_ENDIAN=!1,u.DEFAULT_CAPACITY=16,u.DEFAULT_ENDIAN=u.BIG_ENDIAN,u.DEFAULT_NOASSERT=!1,u.Long=t||null;var o=u.prototype;o.__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var s=new ArrayBuffer(0),a=String.fromCharCode;u.accessor=function(){return Uint8Array},u.allocate=function(t,e,r){return new u(t,e,r)},u.concat=function(t,e,r,n){"boolean"!=typeof e&&"string"==typeof e||(n=r,r=e,e=void 0);for(var i,o=0,s=0,a=t.length;a>s;++s)u.isByteBuffer(t[s])||(t[s]=u.wrap(t[s],e)),0<(i=t[s].limit-t[s].offset)&&(o+=i);if(0===o)return new u(0,r,n);var f,h=new u(o,r,n);for(s=0;a>s;)(i=(f=t[s++]).limit-f.offset)<=0||(h.view.set(f.view.subarray(f.offset,f.limit),h.offset),h.offset+=i);return h.limit=h.offset,h.offset=0,h},u.isByteBuffer=function(t){return!0===(t&&t.__isByteBuffer__)},u.type=function(){return ArrayBuffer},u.wrap=function(t,e,r,n){if("string"!=typeof e&&(n=r,r=e,e=void 0),"string"==typeof t)switch(void 0===e&&(e="utf8"),e){case"base64":return u.fromBase64(t,r);case"hex":return u.fromHex(t,r);case"binary":return u.fromBinary(t,r);case"utf8":return u.fromUTF8(t,r);case"debug":return u.fromDebug(t,r);default:throw Error("Unsupported encoding: "+e)}if(null===t||"object"!=typeof t)throw TypeError("Illegal buffer");var i;if(u.isByteBuffer(t))return(i=o.clone.call(t)).markedOffset=-1,i;if(t instanceof Uint8Array)i=new u(0,r,n),0>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n,i=e,u=t.length,o=u>>3,s=0;for(e+=this.writeVarint32(u,e);o--;)n=1&!!t[s++]|(1&!!t[s++])<<1|(1&!!t[s++])<<2|(1&!!t[s++])<<3|(1&!!t[s++])<<4|(1&!!t[s++])<<5|(1&!!t[s++])<<6|(1&!!t[s++])<<7,this.writeByte(n,e++); if(u>s){var a=0;for(n=0;u>s;)n|=(1&!!t[s++])<>3,o=0,s=[];for(t+=n.length;u--;)r=this.readByte(t++),s[o++]=!!(1&r),s[o++]=!!(2&r),s[o++]=!!(4&r),s[o++]=!!(8&r),s[o++]=!!(16&r),s[o++]=!!(32&r),s[o++]=!!(64&r),s[o++]=!!(128&r);if(i>o){var a=0;for(r=this.readByte(t++);i>o;)s[o++]=!!(r>>a++&1)}return e&&(this.offset=t),s},o.readBytes=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+"+t+") <= "+this.buffer.byteLength)}var n=this.slice(e,e+t);return r&&(this.offset+=t),n},o.writeBytes=o.append,o.writeInt8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return 128==(128&r)&&(r=-(255-r+1)),e&&(this.offset+=1),r},o.readByte=o.readInt8,o.writeUint8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},o.writeUInt8=o.writeUint8,o.readUint8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return e&&(this.offset+=1),r},o.readUInt8=o.readUint8,o.writeInt16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),32768==(32768&r)&&(r=-(65535-r+1)),e&&(this.offset+=2),r},o.readShort=o.readInt16,o.writeUint16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},o.writeUInt16=o.writeUint16,o.readUint16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),e&&(this.offset+=2),r},o.readUInt16=o.readUint16,o.writeInt32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),r|=0,e&&(this.offset+=4),r},o.readInt=o.readInt32,o.writeUint32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},o.writeUInt32=o.writeUint32,o.readUint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),e&&(this.offset+=4),r},o.readUInt32=o.readUint32,t&&(o.writeInt64=function(e,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var i=this.buffer.byteLength;r>i&&this.resize((i*=2)>r?i:r),r-=8;var u=e.low,o=e.high;return this.littleEndian?(this.view[r+3]=u>>>24&255,this.view[r+2]=u>>>16&255,this.view[r+1]=u>>>8&255,this.view[r]=255&u,r+=4,this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o):(this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o,r+=4,this.view[r]=u>>>24&255,this.view[r+1]=u>>>16&255,this.view[r+2]=u>>>8&255,this.view[r+3]=255&u),n&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=0,i=0;this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0);var u=new t(n,i,!1);return r&&(this.offset+=8),u},o.readLong=o.readInt64,o.writeUint64=function(e,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var i=this.buffer.byteLength;r>i&&this.resize((i*=2)>r?i:r),r-=8;var u=e.low,o=e.high;return this.littleEndian?(this.view[r+3]=u>>>24&255,this.view[r+2]=u>>>16&255,this.view[r+1]=u>>>8&255,this.view[r]=255&u,r+=4,this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o):(this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o,r+=4,this.view[r]=u>>>24&255,this.view[r+1]=u>>>16&255,this.view[r+2]=u>>>8&255,this.view[r+3]=255&u),n&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=0,i=0;this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0);var u=new t(n,i,!0);return r&&(this.offset+=8),u},o.readUInt64=o.readUint64),o.writeFloat32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,i(this.view,t,e,this.littleEndian,23,4),r&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=n(this.view,t,this.littleEndian,23,4);return e&&(this.offset+=4),r},o.readFloat=o.readFloat32,o.writeFloat64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=8;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=8,i(this.view,t,e,this.littleEndian,52,8),r&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=n(this.view,t,this.littleEndian,52,8);return e&&(this.offset+=8),r},o.readDouble=o.readFloat64,u.MAX_VARINT32_BYTES=5,u.calculateVarint32=function(t){return(t>>>=0)<128?1:16384>t?2:1<<21>t?3:1<<28>t?4:5},u.zigZagEncode32=function(t){return((t|=0)<<1^t>>31)>>>0},u.zigZagDecode32=function(t){return t>>>1^-(1&t)|0},o.writeVarint32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n,i=u.calculateVarint32(t);e+=i;var o=this.buffer.byteLength;for(e>o&&this.resize((o*=2)>e?o:e),e-=i,t>>>=0;t>=128;)n=127&t|128,this.view[e++]=n,t>>>=7;return this.view[e++]=t,r?(this.offset=e,this):i},o.writeVarint32ZigZag=function(t,e){return this.writeVarint32(u.zigZagEncode32(t),e)},o.readVarint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r,n=0,i=0;do{if(!this.noAssert&&t>this.limit){var u=Error("Truncated");throw u.truncated=!0,u}r=this.view[t++],5>n&&(i|=(127&r)<<7*n),++n}while(0!=(128&r));return i|=0,e?(this.offset=t,i):{value:i,length:n}},o.readVarint32ZigZag=function(t){var e=this.readVarint32(t);return"object"==typeof e?e.value=u.zigZagDecode32(e.value):e=u.zigZagDecode32(e),e},t&&(u.MAX_VARINT64_BYTES=10,u.calculateVarint64=function(e){"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e));var r=e.toInt()>>>0,n=e.shiftRightUnsigned(28).toInt()>>>0,i=e.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==n?16384>r?128>r?1:2:1<<21>r?3:4:16384>n?128>n?5:6:1<<21>n?7:8:128>i?9:10},u.zigZagEncode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftLeft(1).xor(e.shiftRight(63)).toUnsigned()},u.zigZagDecode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftRightUnsigned(1).xor(e.and(t.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(e,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned());var i=u.calculateVarint64(e),o=e.toInt()>>>0,s=e.shiftRightUnsigned(28).toInt()>>>0,a=e.shiftRightUnsigned(56).toInt()>>>0;r+=i;var f=this.buffer.byteLength;switch(r>f&&this.resize((f*=2)>r?f:r),r-=i,i){case 10:this.view[r+9]=a>>>7&1;case 9:this.view[r+8]=9!==i?128|a:127&a;case 8:this.view[r+7]=8!==i?s>>>21|128:s>>>21&127;case 7:this.view[r+6]=7!==i?s>>>14|128:s>>>14&127;case 6:this.view[r+5]=6!==i?s>>>7|128:s>>>7&127;case 5:this.view[r+4]=5!==i?128|s:127&s;case 4:this.view[r+3]=4!==i?o>>>21|128:o>>>21&127;case 3:this.view[r+2]=3!==i?o>>>14|128:o>>>14&127;case 2:this.view[r+1]=2!==i?o>>>7|128:o>>>7&127;case 1:this.view[r]=1!==i?128|o:127&o}return n?(this.offset+=i,this):i},o.writeVarint64ZigZag=function(t,e){return this.writeVarint64(u.zigZagEncode64(t),e)},o.readVarint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=e,i=0,u=0,o=0,s=0;if(i=127&(s=this.view[e++]),128&s&&(i|=(127&(s=this.view[e++]))<<7,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[e++]))<<14,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[e++]))<<21,(128&s||this.noAssert&&void 0===s)&&(u=127&(s=this.view[e++]),(128&s||this.noAssert&&void 0===s)&&(u|=(127&(s=this.view[e++]))<<7,(128&s||this.noAssert&&void 0===s)&&(u|=(127&(s=this.view[e++]))<<14,(128&s||this.noAssert&&void 0===s)&&(u|=(127&(s=this.view[e++]))<<21,(128&s||this.noAssert&&void 0===s)&&(o=127&(s=this.view[e++]),(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[e++]))<<7,128&s||this.noAssert&&void 0===s))))))))))throw Error("Buffer overrun");var a=t.fromBits(i|u<<28,u>>>4|o<<24,!1);return r?(this.offset=e,a):{value:a,length:e-n}},o.readVarint64ZigZag=function(e){var r=this.readVarint64(e);return r&&r.value instanceof t?r.value=u.zigZagDecode64(r.value):r=u.zigZagDecode64(r),r}),o.writeCString=function(t,r){var n=void 0===r;n&&(r=this.offset);var i,u=t.length;if(!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");for(i=0;u>i;++i)if(0===t.charCodeAt(i))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}u=c.calculateUTF16asUTF8(e(t))[1],r+=u+1;var o=this.buffer.byteLength;return r>o&&this.resize((o*=2)>r?o:r),r-=u+1,c.encodeUTF16toUTF8(e(t),function(t){this.view[r++]=t}.bind(this)),this.view[r++]=0,n?(this.offset=r,this):u},o.readCString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var n,i=t,u=-1;return c.decodeUTF8toUTF16(function(){if(0===u)return null;if(t>=this.limit)throw RangeError("Illegal range: Truncated data, "+t+" < "+this.limit);return 0===(u=this.view[t++])?null:u}.bind(this),n=r(),!0),e?(this.offset=t,n()):{string:n(),length:t-i}},o.writeIString=function(t,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var i,u=r;i=c.calculateUTF16asUTF8(e(t),this.noAssert)[1],r+=4+i;var o=this.buffer.byteLength;if(r>o&&this.resize((o*=2)>r?o:r),r-=4+i,this.littleEndian?(this.view[r+3]=i>>>24&255,this.view[r+2]=i>>>16&255,this.view[r+1]=i>>>8&255,this.view[r]=255&i):(this.view[r]=i>>>24&255,this.view[r+1]=i>>>16&255,this.view[r+2]=i>>>8&255,this.view[r+3]=255&i),r+=4,c.encodeUTF16toUTF8(e(t),function(t){this.view[r++]=t}.bind(this)),r!==u+4+i)throw RangeError("Illegal range: Truncated data, "+r+" == "+(r+4+i));return n?(this.offset=r,this):r-u},o.readIString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=t,n=this.readUint32(t),i=this.readUTF8String(n,u.METRICS_BYTES,t+=4);return t+=i.length,e?(this.offset=t,i.string):{string:i.string,length:t-r}},u.METRICS_CHARS="c",u.METRICS_BYTES="b",o.writeUTF8String=function(t,r){var n,i=void 0===r;if(i&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var u=r;n=c.calculateUTF16asUTF8(e(t))[1],r+=n;var o=this.buffer.byteLength;return r>o&&this.resize((o*=2)>r?o:r),r-=n,c.encodeUTF16toUTF8(e(t),function(t){this.view[r++]=t}.bind(this)),i?(this.offset=r,this):r-u},o.writeString=o.writeUTF8String,u.calculateUTF8Chars=function(t){return c.calculateUTF16asUTF8(e(t))[0]},u.calculateUTF8Bytes=function(t){return c.calculateUTF16asUTF8(e(t))[1]},u.calculateString=u.calculateUTF8Bytes,o.readUTF8String=function(t,e,n){"number"==typeof e&&(n=e,e=void 0);var i=void 0===n;if(i&&(n=this.offset),void 0===e&&(e=u.METRICS_CHARS),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var o,s=0,a=n;if(e===u.METRICS_CHARS){if(o=r(),c.decodeUTF8(function(){return t>s&&n>>=0)<0||n+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+"+t+") <= "+this.buffer.byteLength)}var f=n+t;if(c.decodeUTF8toUTF16(function(){return f>n?this.view[n++]:null}.bind(this),o=r(),this.noAssert),n!==f)throw RangeError("Illegal range: Truncated data, "+n+" == "+f);return i?(this.offset=n,o()):{string:o(),length:n-a}}throw TypeError("Unsupported metrics: "+e)},o.readString=o.readUTF8String,o.writeVString=function(t,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var i,o,s=r;i=c.calculateUTF16asUTF8(e(t),this.noAssert)[1],o=u.calculateVarint32(i),r+=o+i;var a=this.buffer.byteLength;if(r>a&&this.resize((a*=2)>r?a:r),r-=o+i,r+=this.writeVarint32(i,r),c.encodeUTF16toUTF8(e(t),function(t){this.view[r++]=t}.bind(this)),r!==s+i+o)throw RangeError("Illegal range: Truncated data, "+r+" == "+(r+i+o));return n?(this.offset=r,this):r-s},o.readVString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=t,n=this.readVarint32(t),i=this.readUTF8String(n.value,u.METRICS_BYTES,t+=n.length);return t+=i.length,e?(this.offset=t,i.string):{string:i.string,length:t-r}},o.append=function(t,e,r){"number"!=typeof e&&"string"==typeof e||(r=e,e=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}t instanceof u||(t=u.wrap(t,e));var i=t.limit-t.offset;if(0>=i)return this;r+=i;var o=this.buffer.byteLength;return r>o&&this.resize((o*=2)>r?o:r),r-=i,this.view.set(t.view.subarray(t.offset,t.limit),r),t.offset+=i,n&&(this.offset+=i),this},o.appendTo=function(t,e){return t.append(this,e),this},o.assert=function(t){return this.noAssert=!t,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(t){var e=new u(0,this.littleEndian,this.noAssert);return t?(e.buffer=new ArrayBuffer(this.buffer.byteLength),e.view=new Uint8Array(e.buffer)):(e.buffer=this.buffer,e.view=this.view),e.offset=this.offset,e.markedOffset=this.markedOffset,e.limit=this.limit,e},o.compact=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(0===t&&e===this.buffer.byteLength)return this;var r=e-t;if(0===r)return this.buffer=s,this.view=null,0<=this.markedOffset&&(this.markedOffset-=t),this.offset=0,this.limit=0,this;var n=new ArrayBuffer(r),i=new Uint8Array(n);return i.set(this.view.subarray(t,e)),this.buffer=n,this.view=i,0<=this.markedOffset&&(this.markedOffset-=t),this.offset=0,this.limit=r,this},o.copy=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(t===e)return new u(0,this.littleEndian,this.noAssert);var r=e-t,n=new u(r,this.littleEndian,this.noAssert);return n.offset=0,n.limit=r,0<=n.markedOffset&&(n.markedOffset-=t),this.copyTo(n,0,t,e),n},o.copyTo=function(t,e,r,n){var i,o;if(!this.noAssert&&!u.isByteBuffer(t))throw TypeError("Illegal target: Not a ByteBuffer");if(e=(o=void 0===e)?t.offset:0|e,r=(i=void 0===r)?this.offset:0|r,n=void 0===n?this.limit:0|n,0>e||e>t.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+e+" <= "+t.buffer.byteLength);if(0>r||n>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+r+" <= "+this.buffer.byteLength);var s=n-r;return 0===s?t:(t.ensureCapacity(e+s),t.view.set(this.view.subarray(r,n),e),i&&(this.offset+=s),o&&(t.offset+=s),this)},o.ensureCapacity=function(t){var e=this.buffer.byteLength;return t>e?this.resize((e*=2)>t?e:t):this},o.fill=function(t,e,r){var n=void 0===e;if(n&&(e=this.offset),"string"==typeof t&&0>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,0>e||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(e>=r)return this;for(;r>e;)this.view[e++]=t;return n&&(this.offset=e),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(t){if(t=void 0===t?this.offset:t,!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=t,this},o.order=function(t){if(!this.noAssert&&"boolean"!=typeof t)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!t,this},o.LE=function(t){return this.littleEndian=void 0===t||!!t,this},o.BE=function(t){return this.littleEndian=void 0!==t&&!t,this},o.prepend=function(t,e,r){"number"!=typeof e&&"string"==typeof e||(r=e,e=void 0);var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}t instanceof u||(t=u.wrap(t,e));var i=t.limit-t.offset;if(0>=i)return this;var o=i-r;if(o>0){var s=new ArrayBuffer(this.buffer.byteLength+o),a=new Uint8Array(s);a.set(this.view.subarray(r,this.buffer.byteLength),i),this.buffer=s,this.view=a,this.offset+=o,0<=this.markedOffset&&(this.markedOffset+=o),this.limit+=o,r+=o}else new Uint8Array(this.buffer);return this.view.set(t.view.subarray(t.offset,t.limit),r-i),t.offset=t.limit,n&&(this.offset-=i),this},o.prependTo=function(t,e){return t.prepend(this,e),this},o.printDebug=function(t){"function"!=typeof t&&(t=console.log.bind(console)),t(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return 0<=this.markedOffset?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal capacity: "+t+" (not an integer)");if((t|=0)<0)throw RangeError("Illegal capacity: 0 <= "+t)}if(this.buffer.byteLength>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}return t===e||Array.prototype.reverse.call(this.view.subarray(t,e)),this},o.skip=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");t|=0}var e=this.offset+t;if(!this.noAssert&&(0>e||e>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+t+" <= "+this.buffer.byteLength);return this.offset=e,this},o.slice=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var r=this.clone();return r.offset=t,r.limit=e,r},o.toBuffer=function(t){var e=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,0>e||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(!t&&0===e&&r===this.buffer.byteLength)return this.buffer;if(e===r)return s;var n=new ArrayBuffer(r-e);return new Uint8Array(n).set(new Uint8Array(this.buffer).subarray(e,r),0),n},o.toArrayBuffer=o.toBuffer,o.toString=function(t,e,r){if(void 0===t)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof t&&(r=e=t="utf8"),t){case"utf8":return this.toUTF8(e,r);case"base64":return this.toBase64(e,r);case"hex":return this.toHex(e,r);case"binary":return this.toBinary(e,r);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+t)}};var f=function(){for(var t={},e=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],r=[],n=0,i=e.length;i>n;++n)r[e[n]]=n; return t.encode=function(t,r){for(var n,i;null!==(n=t());)r(e[n>>2&63]),i=(3&n)<<4,null!==(n=t())?(r(e[63&((i|=n>>4&15)|n>>4&15)]),i=(15&n)<<2,null!==(n=t())?(r(e[63&(i|n>>6&3)]),r(e[63&n])):(r(e[63&i]),r(61))):(r(e[63&i]),r(61),r(61))},t.decode=function(t,e){function n(t){throw Error("Illegal character code: "+t)}for(var i,u,o;null!==(i=t());)if(void 0===(u=r[i])&&n(i),null!==(i=t())&&(void 0===(o=r[i])&&n(i),e(u<<2>>>0|(48&o)>>4),null!==(i=t()))){if(void 0===(u=r[i])){if(61===i)break;n(i)}if(e((15&o)<<4>>>0|(60&u)>>2),null!==(i=t())){if(void 0===(o=r[i])){if(61===i)break;n(i)}e((3&u)<<6>>>0|o)}}},t.test=function(t){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(t)},t}();o.toBase64=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity||t>e)throw RangeError("begin, end");var n;return f.encode(function(){return e>t?this.view[t++]:null}.bind(this),n=r()),n()},u.fromBase64=function(t,r){if("string"!=typeof t)throw TypeError("str");var n=new u(t.length/4*3,r),i=0;return f.decode(e(t),function(t){n.view[i++]=t}),n.limit=i,n},u.btoa=function(t){return u.fromBinary(t).toBase64()},u.atob=function(t){return u.fromBase64(t).toBinary()},o.toBinary=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity()||t>e)throw RangeError("begin, end");if(t===e)return"";for(var r=[],n=[];e>t;)r.push(this.view[t++]),1024<=r.length&&(n.push(String.fromCharCode.apply(String,r)),r=[]);return n.join("")+String.fromCharCode.apply(String,r)},u.fromBinary=function(t,e){if("string"!=typeof t)throw TypeError("str");for(var r,n=0,i=t.length,o=new u(i,e);i>n;){if(255<(r=t.charCodeAt(n)))throw RangeError("illegal char code: "+r);o.view[n++]=r}return o.limit=i,o},o.toDebug=function(t){for(var e,r=-1,n=this.buffer.byteLength,i="",u="",o="";n>r;){if(-1!==r&&(i+=(e=this.view[r])<16?"0"+e.toString(16).toUpperCase():e.toString(16).toUpperCase(),t&&(u+=e>32&&127>e?String.fromCharCode(e):".")),++r,t&&r>0&&r%16==0&&r!==n){for(;i.length<51;)i+=" ";o+=i+u+"\n",i=u=""}i+=r===this.offset&&r===this.limit?r===this.markedOffset?"!":"|":r===this.offset?r===this.markedOffset?"[":"<":r===this.limit?r===this.markedOffset?"]":">":r===this.markedOffset?"'":t||0!==r&&r!==n?" ":""}if(t&&" "!==i){for(;i.length<51;)i+=" ";o+=i+u+"\n"}return t?o:i},u.fromDebug=function(t,e,r){for(var n,i,o=t.length,s=new u((o+1)/3|0,e,r),a=0,f=0,h=!1,c=!1,l=!1,p=!1,d=!1;o>a;){switch(n=t.charAt(a++)){case"!":if(!r){if(c||l||p){d=!0;break}c=l=p=!0}s.offset=s.markedOffset=s.limit=f,h=!1;break;case"|":if(!r){if(c||p){d=!0;break}c=p=!0}s.offset=s.limit=f,h=!1;break;case"[":if(!r){if(c||l){d=!0;break}c=l=!0}s.offset=s.markedOffset=f,h=!1;break;case"<":if(!r){if(c){d=!0;break}c=!0}s.offset=f,h=!1;break;case"]":if(!r){if(p||l){d=!0;break}p=l=!0}s.limit=s.markedOffset=f,h=!1;break;case">":if(!r){if(p){d=!0;break}p=!0}s.limit=f,h=!1;break;case"'":if(!r){if(l){d=!0;break}l=!0}s.markedOffset=f,h=!1;break;case" ":h=!1;break;default:if(!r&&h){d=!0;break}if(i=parseInt(n+t.charAt(a++),16),!r&&(isNaN(i)||0>i||i>255))throw TypeError("Illegal str: Not a debug encoded string");s.view[f++]=i,h=!0}if(d)throw TypeError("Illegal str: Invalid symbol at "+a)}if(!r){if(!c||!p)throw TypeError("Illegal str: Missing offset or limit");if(f>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}for(var r,n=new Array(e-t);e>t;)(r=this.view[t++])<16?n.push("0",r.toString(16)):n.push(r.toString(16));return n.join("")},u.fromHex=function(t,e,r){if(!r){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if(t.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var n,i=t.length,o=new u(i/2|0,e),s=0,a=0;i>s;s+=2){if(n=parseInt(t.substring(s,s+2),16),!r&&(!isFinite(n)||0>n||n>255))throw TypeError("Illegal str: Contains non-hex characters");o.view[a++]=n}return o.limit=a,o};var h,c=h={MAX_CODEPOINT:1114111,encodeUTF8:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)128>r?e(127&r):(2048>r?e(r>>6&31|192):(65536>r?e(r>>12&15|224):(e(r>>18&7|240),e(r>>12&63|128)),e(r>>6&63|128)),e(63&r|128)),r=null},decodeUTF8:function(t,e){for(var r,n,i,u,o=function(t){t=t.slice(0,t.indexOf(null));var e=Error(t.toString());throw e.name="TruncatedError",e.bytes=t,e};null!==(r=t());)if(0==(128&r))e(r);else if(192==(224&r))null===(n=t())&&o([r,n]),e((31&r)<<6|63&n);else if(224==(240&r))(null===(n=t())||null===(i=t()))&&o([r,n,i]),e((15&r)<<12|(63&n)<<6|63&i);else{if(240!=(248&r))throw RangeError("Illegal starting byte: "+r);(null===(n=t())||null===(i=t())||null===(u=t()))&&o([r,n,i,u]),e((7&r)<<18|(63&n)<<12|(63&i)<<6|63&u)}},UTF16toUTF8:function(t,e){for(var r,n=null;null!==(r=null!==n?n:t());)r>=55296&&57343>=r&&null!==(n=t())&&n>=56320&&57343>=n?(e(1024*(r-55296)+n-56320+65536),n=null):e(r);null!==n&&e(n)},UTF8toUTF16:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)65535>=r?e(r):(e(55296+((r-=65536)>>10)),e(r%1024+56320)),r=null},encodeUTF16toUTF8:function(t,e){h.UTF16toUTF8(t,function(t){h.encodeUTF8(t,e)})},decodeUTF8toUTF16:function(t,e){h.decodeUTF8(t,function(t){h.UTF8toUTF16(t,e)})},calculateCodePoint:function(t){return 128>t?1:2048>t?2:65536>t?3:4},calculateUTF8:function(t){for(var e,r=0;null!==(e=t());)r+=128>e?1:2048>e?2:65536>e?3:4;return r},calculateUTF16asUTF8:function(t){var e=0,r=0;return h.UTF16toUTF8(t,function(t){++e,r+=128>t?1:2048>t?2:65536>t?3:4}),[e,r]}};return o.toUTF8=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,0>t||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var n;try{c.decodeUTF8toUTF16(function(){return e>t?this.view[t++]:null}.bind(this),n=r())}catch(n){if(t!==e)throw RangeError("Illegal range: Truncated data, "+t+" != "+e)}return n()},u.fromUTF8=function(t,r,n){if(!n&&"string"!=typeof t)throw TypeError("Illegal str: Not a string");var i=new u(c.calculateUTF16asUTF8(e(t),!0)[1],r,n),o=0;return c.encodeUTF16toUTF8(e(t),function(t){i.view[o++]=t}),i.limit=o,i},u},"function"==typeof t&&"object"==typeof e&&e&&e.exports?e.exports=function(){var e;try{e=t("long")}catch(e){}return i(e)}():(n.dcodeIO=n.dcodeIO||{}).ByteBuffer=i(n.dcodeIO.Long)},{"long":163}],47:[function(t,e,r){var n=t("upper-case"),i=t("no-case");e.exports=function(t,e,r){var u=i(t,e);return r||(u=u.replace(/ (?=\d)/g,"_")),u.replace(/ (.)/g,function(t,r){return n(r,e)})}},{"no-case":167,"upper-case":201}],48:[function(t,e,r){function n(t){u.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this["final"]=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=t("safe-buffer").Buffer,u=t("stream").Transform,o=t("string_decoder").StringDecoder;t("inherits")(n,u),n.prototype.update=function(t,e,r){"string"==typeof t&&(t=i.from(t,e));var n=this._update(t);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},n.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},n.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},n.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},e.exports=n},{inherits:159,"safe-buffer":190,stream:199,string_decoder:200}],49:[function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.exports=t("../modules/core.get-iterator")},{"../modules/core.get-iterator":110,"../modules/es6.string.iterator":114,"../modules/web.dom.iterable":118}],50:[function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),e.exports=t("../modules/core.is-iterable")},{"../modules/core.is-iterable":111,"../modules/es6.string.iterator":114,"../modules/web.dom.iterable":118}],51:[function(t,e,r){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),e.exports=t("../../modules/_core").Symbol},{"../../modules/_core":59,"../../modules/es6.object.to-string":113,"../../modules/es6.symbol":115,"../../modules/es7.symbol.async-iterator":116,"../../modules/es7.symbol.observable":117}],52:[function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),e.exports=t("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":107,"../../modules/es6.string.iterator":114,"../../modules/web.dom.iterable":118}],53:[function(t,e,r){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],54:[function(t,e,r){e.exports=function(){}},{}],55:[function(t,e,r){var n=t("./_is-object");e.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":75}],56:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_to-length"),u=t("./_to-absolute-index");e.exports=function(t){return function(e,r,o){var s,a=n(e),f=i(a.length),h=u(o,f);if(t&&r!=r){for(;f>h;)if((s=a[h++])!=s)return!0}else for(;f>h;h++)if((t||h in a)&&a[h]===r)return t||h||0;return!t&&-1}}},{"./_to-absolute-index":99,"./_to-iobject":101,"./_to-length":102}],57:[function(t,e,r){var n=t("./_cof"),i=t("./_wks")("toStringTag"),u="Arguments"==n(function(){return arguments}());e.exports=function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:u?n(e):"Object"==(o=n(e))&&"function"==typeof e.callee?"Arguments":o}},{"./_cof":58,"./_wks":108}],58:[function(t,e,r){var n={}.toString;e.exports=function(t){return n.call(t).slice(8,-1)}},{}],59:[function(t,e,r){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},{}],60:[function(t,e,r){var n=t("./_a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":53}],61:[function(t,e,r){e.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},{}],62:[function(t,e,r){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":67}],63:[function(t,e,r){var n=t("./_is-object"),i=t("./_global").document,u=n(i)&&n(i.createElement);e.exports=function(t){return u?i.createElement(t):{}}},{"./_global":68,"./_is-object":75}],64:[function(t,e,r){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],65:[function(t,e,r){var n=t("./_object-keys"),i=t("./_object-gops"),u=t("./_object-pie");e.exports=function(t){var e=n(t),r=i.f;if(r)for(var o,s=r(t),a=u.f,f=0;s.length>f;)a.call(t,o=s[f++])&&e.push(o);return e}},{"./_object-gops":88,"./_object-keys":91,"./_object-pie":92}],66:[function(t,e,r){var n=t("./_global"),i=t("./_core"),u=t("./_ctx"),o=t("./_hide"),s="prototype",a=function(t,e,r){var f,h,c,l=t&a.F,p=t&a.G,d=t&a.S,m=t&a.P,g=t&a.B,y=t&a.W,b=p?i:i[e]||(i[e]={}),v=b[s],_=p?n:d?n[e]:(n[e]||{})[s];for(f in p&&(r=e),r)(h=!l&&_&&void 0!==_[f])&&f in b||(c=h?_[f]:r[f],b[f]=p&&"function"!=typeof _[f]?r[f]:g&&h?u(c,n):y&&_[f]==c?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[s]=t[s],e}(c):m&&"function"==typeof c?u(Function.call,c):c,m&&((b.virtual||(b.virtual={}))[f]=c,t&a.R&&v&&!v[f]&&o(v,f,c)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,e.exports=a},{"./_core":59,"./_ctx":60,"./_global":68,"./_hide":70}],67:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],68:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],69:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],70:[function(t,e,r){var n=t("./_object-dp"),i=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./_descriptors":62,"./_object-dp":83,"./_property-desc":93}],71:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":68}],72:[function(t,e,r){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":62,"./_dom-create":63,"./_fails":67}],73:[function(t,e,r){var n=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./_cof":58}],74:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":58}],75:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],76:[function(t,e,r){"use strict";var n=t("./_object-create"),i=t("./_property-desc"),u=t("./_set-to-string-tag"),o={};t("./_hide")(o,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n(o,{next:i(1,r)}),u(t,e+" Iterator")}},{"./_hide":70,"./_object-create":82,"./_property-desc":93,"./_set-to-string-tag":95,"./_wks":108}],77:[function(t,e,r){"use strict";var n=t("./_library"),i=t("./_export"),u=t("./_redefine"),o=t("./_hide"),s=t("./_has"),a=t("./_iterators"),f=t("./_iter-create"),h=t("./_set-to-string-tag"),c=t("./_object-gpo"),l=t("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="values",m=function(){return this};e.exports=function(t,e,r,g,y,b,v){f(r,e,g);var _,w,E,A=function(t){if(!p&&t in x)return x[t];switch(t){case"keys":case d:return function(){return new r(this,t)}}return function(){return new r(this,t)}},B=e+" Iterator",C=y==d,F=!1,x=t.prototype,D=x[l]||x["@@iterator"]||y&&x[y],S=D||A(y),k=y?C?A("entries"):S:void 0,M="Array"==e&&x.entries||D;if(M&&(E=c(M.call(new t)))!==Object.prototype&&E.next&&(h(E,B,!0),n||s(E,l)||o(E,l,m)),C&&D&&D.name!==d&&(F=!0,S=function(){return D.call(this)}),n&&!v||!p&&!F&&x[l]||o(x,l,S),a[e]=S,a[B]=m,y)if(_={values:C?S:A(d),keys:b?S:A("keys"),entries:k},v)for(w in _)w in x||u(x,w,_[w]);else i(i.P+i.F*(p||F),e,_);return _}},{"./_export":66,"./_has":69,"./_hide":70,"./_iter-create":76,"./_iterators":79,"./_library":80,"./_object-gpo":89,"./_redefine":94,"./_set-to-string-tag":95,"./_wks":108}],78:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],79:[function(t,e,r){e.exports={}},{}],80:[function(t,e,r){e.exports=!0},{}],81:[function(t,e,r){var n=t("./_uid")("meta"),i=t("./_is-object"),u=t("./_has"),o=t("./_object-dp").f,s=0,a=Object.isExtensible||function(){return!0},f=!t("./_fails")(function(){return a(Object.preventExtensions({}))}),h=function(t){o(t,n,{value:{i:"O"+ ++s,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,n)){if(!a(t))return"F";if(!e)return"E";h(t)}return t[n].i},getWeak:function(t,e){if(!u(t,n)){if(!a(t))return!0;if(!e)return!1;h(t)}return t[n].w},onFreeze:function(t){return f&&c.NEED&&a(t)&&!u(t,n)&&h(t),t}}},{"./_fails":67,"./_has":69,"./_is-object":75,"./_object-dp":83,"./_uid":105}],82:[function(t,e,r){var n=t("./_an-object"),i=t("./_object-dps"),u=t("./_enum-bug-keys"),o=t("./_shared-key")("IE_PROTO"),s=function(){},a="prototype",f=function(){var e,r=t("./_dom-create")("iframe"),n=u.length;for(r.style.display="none",t("./_html").appendChild(r),r.src="javascript:",(e=r.contentWindow.document).open(),e.write(""),e.close(),f=e.F;n--;)delete f[a][u[n]];return f()};e.exports=Object.create||function(t,e){var r;return null!==t?(s[a]=n(t),r=new s,s[a]=null,r[o]=t):r=f(),void 0===e?r:i(r,e)}},{"./_an-object":55,"./_dom-create":63,"./_enum-bug-keys":64,"./_html":71,"./_object-dps":84,"./_shared-key":96}],83:[function(t,e,r){var n=t("./_an-object"),i=t("./_ie8-dom-define"),u=t("./_to-primitive"),o=Object.defineProperty;r.f=t("./_descriptors")?Object.defineProperty:function(t,e,r){if(n(t),e=u(e,!0),n(r),i)try{return o(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},{"./_an-object":55,"./_descriptors":62,"./_ie8-dom-define":72,"./_to-primitive":104}],84:[function(t,e,r){var n=t("./_object-dp"),i=t("./_an-object"),u=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){i(t);for(var r,o=u(e),s=o.length,a=0;s>a;)n.f(t,r=o[a++],e[r]);return t}},{"./_an-object":55,"./_descriptors":62,"./_object-dp":83,"./_object-keys":91}],85:[function(t,e,r){var n=t("./_object-pie"),i=t("./_property-desc"),u=t("./_to-iobject"),o=t("./_to-primitive"),s=t("./_has"),a=t("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;r.f=t("./_descriptors")?f:function(t,e){if(t=u(t),e=o(e,!0),a)try{return f(t,e)}catch(t){}return s(t,e)?i(!n.f.call(t,e),t[e]):void 0}},{"./_descriptors":62,"./_has":69,"./_ie8-dom-define":72,"./_object-pie":92,"./_property-desc":93,"./_to-iobject":101,"./_to-primitive":104}],86:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_object-gopn").f,u={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){return o&&"[object Window]"==u.call(t)?function(t){try{return i(t)}catch(t){return o.slice()}}(t):i(n(t))}},{"./_object-gopn":87,"./_to-iobject":101}],87:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":64,"./_object-keys-internal":90}],88:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],89:[function(t,e,r){var n=t("./_has"),i=t("./_to-object"),u=t("./_shared-key")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,u)?t[u]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?o:null}},{"./_has":69,"./_shared-key":96,"./_to-object":103}],90:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),u=t("./_array-includes")(!1),o=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,s=i(t),a=0,f=[];for(r in s)r!=o&&n(s,r)&&f.push(r);for(;e.length>a;)n(s,r=e[a++])&&(~u(f,r)||f.push(r));return f}},{"./_array-includes":56,"./_has":69,"./_shared-key":96,"./_to-iobject":101}],91:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":64,"./_object-keys-internal":90}],92:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],93:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],94:[function(t,e,r){e.exports=t("./_hide")},{"./_hide":70}],95:[function(t,e,r){var n=t("./_object-dp").f,i=t("./_has"),u=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,u)&&n(t,u,{configurable:!0,value:e})}},{"./_has":69,"./_object-dp":83,"./_wks":108}],96:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":97,"./_uid":105}],97:[function(t,e,r){var n=t("./_global"),i="__core-js_shared__",u=n[i]||(n[i]={});e.exports=function(t){return u[t]||(u[t]={})}},{"./_global":68}],98:[function(t,e,r){var n=t("./_to-integer"),i=t("./_defined");e.exports=function(t){return function(e,r){var u,o,s=String(i(e)),a=n(r),f=s.length;return 0>a||a>=f?t?"":void 0:(u=s.charCodeAt(a))<55296||u>56319||a+1===f||(o=s.charCodeAt(a+1))<56320||o>57343?t?s.charAt(a):u:t?s.slice(a,a+2):o-56320+(u-55296<<10)+65536}}},{"./_defined":61,"./_to-integer":100}],99:[function(t,e,r){var n=t("./_to-integer"),i=Math.max,u=Math.min;e.exports=function(t,e){return(t=n(t))<0?i(t+e,0):u(t,e)}},{"./_to-integer":100}],100:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],101:[function(t,e,r){var n=t("./_iobject"),i=t("./_defined");e.exports=function(t){return n(i(t))}},{"./_defined":61,"./_iobject":73}],102:[function(t,e,r){var n=t("./_to-integer"),i=Math.min;e.exports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./_to-integer":100}],103:[function(t,e,r){var n=t("./_defined");e.exports=function(t){return Object(n(t))}},{"./_defined":61}],104:[function(t,e,r){var n=t("./_is-object");e.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":75}],105:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],106:[function(t,e,r){var n=t("./_global"),i=t("./_core"),u=t("./_library"),o=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=i.Symbol||(i.Symbol=u?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:o.f(t)})}},{"./_core":59,"./_global":68,"./_library":80,"./_object-dp":83,"./_wks-ext":107}],107:[function(t,e,r){r.f=t("./_wks")},{"./_wks":108}],108:[function(t,e,r){var n=t("./_shared")("wks"),i=t("./_uid"),u=t("./_global").Symbol,o="function"==typeof u;(e.exports=function(t){return n[t]||(n[t]=o&&u[t]||(o?u:i)("Symbol."+t))}).store=n},{"./_global":68,"./_shared":97,"./_uid":105}],109:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),u=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){return null!=t?t[i]||t["@@iterator"]||u[n(t)]:void 0}},{"./_classof":57,"./_core":59,"./_iterators":79,"./_wks":108}],110:[function(t,e,r){var n=t("./_an-object"),i=t("./core.get-iterator-method");e.exports=t("./_core").getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},{"./_an-object":55,"./_core":59,"./core.get-iterator-method":109}],111:[function(t,e,r){var n=t("./_classof"),i=t("./_wks")("iterator"),u=t("./_iterators");e.exports=t("./_core").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||u.hasOwnProperty(n(e))}},{"./_classof":57,"./_core":59,"./_iterators":79,"./_wks":108}],112:[function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),i=t("./_iter-step"),u=t("./_iterators"),o=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),u.Arguments=u.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":54,"./_iter-define":77,"./_iter-step":78,"./_iterators":79,"./_to-iobject":101}],113:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{dup:26}],114:[function(t,e,r){"use strict";var n=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":77,"./_string-at":98}],115:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_has"),u=t("./_descriptors"),o=t("./_export"),s=t("./_redefine"),a=t("./_meta").KEY,f=t("./_fails"),h=t("./_shared"),c=t("./_set-to-string-tag"),l=t("./_uid"),p=t("./_wks"),d=t("./_wks-ext"),m=t("./_wks-define"),g=t("./_enum-keys"),y=t("./_is-array"),b=t("./_an-object"),v=t("./_to-iobject"),_=t("./_to-primitive"),w=t("./_property-desc"),E=t("./_object-create"),A=t("./_object-gopn-ext"),B=t("./_object-gopd"),C=t("./_object-dp"),F=t("./_object-keys"),x=B.f,D=C.f,S=A.f,k=n.Symbol,M=n.JSON,T=M&&M.stringify,I="prototype",j=p("_hidden"),O=p("toPrimitive"),L={}.propertyIsEnumerable,U=h("symbol-registry"),R=h("symbols"),N=h("op-symbols"),q=Object[I],P="function"==typeof k,z=n.QObject,V=!z||!z[I]||!z[I].findChild,Z=u&&f(function(){return 7!=E(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=x(q,e);n&&delete q[e],D(t,e,r),n&&t!==q&&D(q,e,n)}:D,H=function(t){var e=R[t]=E(k[I]);return e._k=t,e},G=P&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},K=function(t,e,r){return t===q&&K(N,e,r),b(t),e=_(e,!0),b(r),i(R,e)?(r.enumerable?(i(t,j)&&t[j][e]&&(t[j][e]=!1),r=E(r,{enumerable:w(0,!1)})):(i(t,j)||D(t,j,w(1,{})),t[j][e]=!0),Z(t,e,r)):D(t,e,r)},W=function(t,e){b(t);for(var r,n=g(e=v(e)),i=0,u=n.length;u>i;)K(t,r=n[i++],e[r]);return t},X=function(t){var e=L.call(this,t=_(t,!0));return!(this===q&&i(R,t)&&!i(N,t))&&(!(e||!i(this,t)||!i(R,t)||i(this,j)&&this[j][t])||e)},Y=function(t,e){if(t=v(t),e=_(e,!0),t!==q||!i(R,e)||i(N,e)){var r=x(t,e);return!r||!i(R,e)||i(t,j)&&t[j][e]||(r.enumerable=!0),r}},J=function(t){for(var e,r=S(v(t)),n=[],u=0;r.length>u;)i(R,e=r[u++])||e==j||e==a||n.push(e);return n},$=function(t){for(var e,r=t===q,n=S(r?N:v(t)),u=[],o=0;n.length>o;)!i(R,e=n[o++])||r&&!i(q,e)||u.push(R[e]);return u};P||(s((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=l(0te;)p(Q[te++]);for(var ee=F(p.store),re=0;ee.length>re;)m(ee[re++]);o(o.S+o.F*!P,"Symbol",{"for":function(t){return i(U,t+="")?U[t]:U[t]=k(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!P,"Object",{create:function(t,e){return void 0===e?E(t):W(E(t),e)},defineProperty:K,defineProperties:W,getOwnPropertyDescriptor:Y,getOwnPropertyNames:J,getOwnPropertySymbols:$}),M&&o(o.S+o.F*(!P||f(function(){var t=k();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!G(t)){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);return"function"==typeof(e=n[1])&&(r=e),!r&&y(e)||(e=function(t,e){return r&&(e=r.call(this,t,e)),G(e)?void 0:e}),n[1]=e,T.apply(M,n)}}}),k[I][O]||t("./_hide")(k[I],O,k[I].valueOf),c(k,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},{"./_an-object":55,"./_descriptors":62,"./_enum-keys":65,"./_export":66,"./_fails":67,"./_global":68,"./_has":69,"./_hide":70,"./_is-array":74,"./_library":80,"./_meta":81,"./_object-create":82,"./_object-dp":83,"./_object-gopd":85,"./_object-gopn":87,"./_object-gopn-ext":86,"./_object-gops":88,"./_object-keys":91,"./_object-pie":92,"./_property-desc":93,"./_redefine":94,"./_set-to-string-tag":95,"./_shared":97,"./_to-iobject":101,"./_to-primitive":104,"./_uid":105,"./_wks":108,"./_wks-define":106,"./_wks-ext":107}],116:[function(t,e,r){t("./_wks-define")("asyncIterator")},{"./_wks-define":106}],117:[function(t,e,r){t("./_wks-define")("observable")},{"./_wks-define":106}],118:[function(t,e,r){t("./es6.array.iterator");for(var n=t("./_global"),i=t("./_hide"),u=t("./_iterators"),o=t("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a>>2),u=0,o=0;u>5]|=128<>>9<<4)]=e;for(var r=1732584193,n=-271733879,i=-1732584194,h=271733878,c=0;c>>32-s,r);var o,s}function u(t,e,r,n,u,o,s){return i(e&r|~e&n,t,e,u,o,s)}function o(t,e,r,n,u,o,s){return i(e&n|r&~n,t,e,u,o,s)}function s(t,e,r,n,u,o,s){return i(e^r^n,t,e,u,o,s)}function a(t,e,r,n,u,o,s){return i(r^(e|~n),t,e,u,o,s)}function f(t,e){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}var h=t("./make-hash");e.exports=function(t){return h(t,n)}},{"./make-hash":121}],123:[function(t,e,r){"use strict";function n(t,e){o.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var r="sha512"===t||"sha384"===t?128:64;this._alg=t,(this._key=e).length>r?e=("rmd160"===t?new f:h(t)).update(e).digest():e.lengthu;u++)n[u]=54^e[u],i[u]=92^e[u];this._hash="rmd160"===t?new f:h(t),this._hash.update(n)}var i=t("inherits"),u=t("./legacy"),o=t("cipher-base"),s=t("safe-buffer").Buffer,a=t("create-hash/md5"),f=t("ripemd160"),h=t("sha.js"),c=s.alloc(128);i(n,o),n.prototype._update=function(t){this._hash.update(t)},n.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new f:h(this._alg)).update(this._opad).update(t).digest()},e.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new n("rmd160",e):"md5"===t?new u(a,e):new n(t,e)}},{"./legacy":124,"cipher-base":48,"create-hash/md5":122,inherits:159,ripemd160:189,"safe-buffer":190,"sha.js":192}],124:[function(t,e,r){"use strict";function n(t,e){o.call(this,"digest"),"string"==typeof e&&(e=u.from(e)),this._alg=t,64<(this._key=e).length?e=t(e):e.length<64&&(e=u.concat([e,s],64));for(var r=this._ipad=u.allocUnsafe(64),n=this._opad=u.allocUnsafe(64),i=0;64>i;i++)r[i]=54^e[i],n[i]=92^e[i];this._hash=[r]}var i=t("inherits"),u=t("safe-buffer").Buffer,o=t("cipher-base"),s=u.alloc(128);i(n,o),n.prototype._update=function(t){this._hash.push(t)},n.prototype._final=function(){var t=this._alg(u.concat(this._hash));return this._alg(u.concat([this._opad,t]))},e.exports=n},{"cipher-base":48,inherits:159,"safe-buffer":190}],125:[function(t,e,r){function n(t,e,r,n,i,s,a){this.p=t,this.a=e,this.b=r,this.G=o.fromAffine(this,n,i),this.n=s,this.h=a,this.infinity=new o(this,null,null,u.ZERO),this.pOverFour=t.add(u.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}var i=t("assert"),u=t("bigi"),o=t("./point");n.prototype.pointFromX=function(t,e){var r=e.pow(3).add(this.a.multiply(e)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!t&&(n=this.p.subtract(n)),o.fromAffine(this,e,n)},n.prototype.isInfinity=function(t){return t===this.infinity||0===t.z.signum()&&0!==t.y.signum()},n.prototype.isOnCurve=function(t){if(this.isInfinity(t))return!0;var e=t.affineX,r=t.affineY,n=this.a,i=this.b,u=this.p;if(e.signum()<0||0<=e.compareTo(u))return!1;if(r.signum()<0||0<=r.compareTo(u))return!1;var o=r.square().mod(u),s=e.pow(3).add(n.multiply(e)).add(i).mod(u);return o.equals(s)},n.prototype.validate=function(t){i(!this.isInfinity(t),"Point is at infinity"),i(this.isOnCurve(t),"Point is not on the curve");var e=t.multiply(this.n);return i(this.isInfinity(e),"Point is not a scalar multiple of G"),!0},e.exports=n},{"./point":129,assert:11,bigi:23}],126:[function(t,e,r){e.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},{}],127:[function(t,e,r){var n=t("./point"),i=t("./curve"),u=t("./names");e.exports={Curve:i,Point:n,getCurveByName:u}},{"./curve":125,"./names":128,"./point":129}],128:[function(t,e,r){var n=t("bigi"),i=t("./curves.json"),u=t("./curve");e.exports=function(t){var e=i[t];if(!e)return null;var r=new n(e.p,16),o=new n(e.a,16),s=new n(e.b,16),a=new n(e.n,16),f=new n(e.h,16),h=new n(e.Gx,16),c=new n(e.Gy,16);return new u(r,o,s,h,c,a,f)}},{"./curve":125,"./curves.json":126,bigi:23}],129:[function(t,e,r){function n(t,e,r,n){i.notStrictEqual(n,void 0,"Missing Z coordinate"),this.curve=t,this.x=e,this.y=r,this.z=n,this._zInv=null,this.compressed=!0}var i=t("assert"),u=t("safe-buffer").Buffer,o=t("bigi"),s=o.valueOf(3);Object.defineProperty(n.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(n.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(n.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),n.fromAffine=function(t,e,r){return new n(t,e,r,o.ONE)},n.prototype.equals=function(t){return t===this||(this.curve.isInfinity(this)?this.curve.isInfinity(t):this.curve.isInfinity(t)?this.curve.isInfinity(this):0===t.y.multiply(this.z).subtract(this.y.multiply(t.z)).mod(this.curve.p).signum()&&0===t.x.multiply(this.z).subtract(this.x.multiply(t.z)).mod(this.curve.p).signum())},n.prototype.negate=function(){var t=this.curve.p.subtract(this.y);return new n(this.curve,this.x,t,this.z)},n.prototype.add=function(t){if(this.curve.isInfinity(this))return t;if(this.curve.isInfinity(t))return this;var e=this.x,r=this.y,i=t.x,u=t.y.multiply(this.z).subtract(r.multiply(t.z)).mod(this.curve.p),o=i.multiply(this.z).subtract(e.multiply(t.z)).mod(this.curve.p);if(0===o.signum())return 0===u.signum()?this.twice():this.curve.infinity;var a=o.square(),f=a.multiply(o),h=e.multiply(a),c=u.square().multiply(this.z),l=c.subtract(h.shiftLeft(1)).multiply(t.z).subtract(f).multiply(o).mod(this.curve.p),p=h.multiply(s).multiply(u).subtract(r.multiply(f)).subtract(c.multiply(u)).multiply(t.z).add(u.multiply(f)).mod(this.curve.p),d=f.multiply(this.z).multiply(t.z).mod(this.curve.p);return new n(this.curve,l,p,d)},n.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var t=this.x,e=this.y,r=e.multiply(this.z).mod(this.curve.p),i=r.multiply(e).mod(this.curve.p),u=this.curve.a,o=t.square().multiply(s);0!==u.signum()&&(o=o.add(this.z.square().multiply(u)));var a=(o=o.mod(this.curve.p)).square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.p),f=o.multiply(s).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.pow(3)).mod(this.curve.p),h=r.pow(3).shiftLeft(3).mod(this.curve.p);return new n(this.curve,a,f,h)},n.prototype.multiply=function(t){if(this.curve.isInfinity(this))return this;if(0===t.signum())return this.curve.infinity;for(var e=t,r=e.multiply(s),n=this.negate(),i=this,u=r.bitLength()-2;u>0;--u){var o=r.testBit(u),a=e.testBit(u);i=i.twice(),o!==a&&(i=i.add(o?this:n))}return i},n.prototype.multiplyTwo=function(t,e,r){for(var n=Math.max(t.bitLength(),r.bitLength())-1,i=this.curve.infinity,u=this.add(e);n>=0;){var o=t.testBit(n),s=r.testBit(n);i=i.twice(),o?i=s?i.add(u):i.add(this):s&&(i=i.add(e)),--n}return i},n.prototype.getEncoded=function(t){if(null==t&&(t=this.compressed),this.curve.isInfinity(this))return u.alloc(1,0);var e,r=this.affineX,n=this.affineY,i=this.curve.pLength;return t?(e=u.allocUnsafe(1+i)).writeUInt8(n.isEven()?2:3,0):((e=u.allocUnsafe(1+i+i)).writeUInt8(4,0),n.toBuffer(i).copy(e,1+i)),r.toBuffer(i).copy(e,1),e},n.decodeFrom=function(t,e){var r,u=e.readUInt8(0),s=4!==u,a=Math.floor((t.p.bitLength()+7)/8),f=o.fromBuffer(e.slice(1,1+a));if(s){i.equal(e.length,a+1,"Invalid sequence length"),i(2===u||3===u,"Invalid sequence tag");var h=3===u;r=t.pointFromX(h,f)}else{i.equal(e.length,1+a+a,"Invalid sequence length");var c=o.fromBuffer(e.slice(1+a));r=n.fromAffine(t,f,c)}return r.compressed=s,r},n.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},e.exports=n},{assert:11,bigi:23,"safe-buffer":190}],130:[function(t,e,r){e.exports={get_info:{brief:"Return general network information.",params:null,results:"string"},get_account:{brief:"Fetch a blockchain account",params:{account_name:"name"},results:"string"},get_code:{brief:"Fetch smart contract code",params:{account_name:"name",code_as_wasm:{type:"bool","default":!1}},results:{account_name:"name",wast:"string",wasm:"string",code_hash:"sha256",abi:"optional"}},get_code_hash:{brief:"",params:{account_name:"name"},results:{account_name:"name",code_hash:"sha256"}},get_abi:{params:{account_name:"name"},results:{account_name:"name",abi:"abi_def?"}},get_raw_code_and_abi:{params:{account_name:"name"},results:{account_name:"name",wasm:"bytes",abi:"abi_def?"}},abi_json_to_bin:{brief:"Manually serialize json into binary hex. The binayargs is usually stored in Action.data.",params:{code:"name",action:"name",args:"bytes"},results:{binargs:"bytes"}},abi_bin_to_json:{brief:"Convert bin hex back into Abi json definition.",params:{code:"name",action:"name",binargs:"bytes"},results:{args:"bytes"}},get_required_keys:{params:{transaction:"transaction",available_keys:"set[public_key]"},results:"Set[public_key]"},get_block:{brief:"Fetch a block from the blockchain.",params:{block_num_or_id:"string"},results:"variant",errors:{"unknown block":null}},get_block_header_state:{brief:"Fetch the minimum state necessary to validate transaction headers.",params:{block_num_or_id:"string"},results:"string",errors:{block_id_type_exception:"Invalid block ID",unknown_block_exception:"Could not find reversible block"}},get_table_rows:{brief:"Fetch smart contract data from an account.",params:{json:{type:"bool","default":!1},code:"name",scope:"string",table:"name",table_key:"string",lower_bound:{type:"string","default":"0"},upper_bound:{type:"string","default":"-1"},limit:{type:"uint32","default":"10"},key_type:{type:"string",doc:"The key type of --index, primary only supports (i64), all others support (i64, i128, i256, float64, float128). Special type 'name' indicates an account name."},index_position:{type:"string",doc:"1 - primary (first), 2 - secondary index (in order defined by multi_index), 3 - third index, etc"}},results:{rows:{type:"vector",doc:"One row per item, either encoded as hex String or JSON object"},more:{type:"bool",doc:"True if last element in data is not the end and sizeof data() < limit"}}},get_currency_balance:{params:{code:"name",account:"name",symbol:"optional"},results:"asset[]"},get_currency_stats:{params:{code:"name",symbol:"string"},results:{supply:"asset",max_supply:"asset",issuer:"account_name"}},get_producers:{brief:"Fetch smart contract data from producer.",params:{json:{type:"bool","default":!1},lower_bound:"string",limit:{type:"uint32","default":"50"}},results:{rows:{type:"vector",doc:"one row per item, either encoded as hex String or JSON object"},total_producer_vote_weight:{type:"double",doc:"total vote"},more:{type:"string",doc:"fill lower_bound with this value to fetch more rows"}}},get_producer_schedule:{brief:"",params:{},results:{vector:"active",vector:"pending",vector:"proposed"}},get_scheduled_transactions:{brief:"",params:{json:{type:"bool","default":!1},lower_bound:{type:"string",doc:"timestamp OR transaction ID"},limit:{type:"uint32","default":"50"}},results:{vector:"transactions",more:{type:"string",doc:"fill lower_bound with this to fetch next set of transactions"}}},push_block:{brief:"Append a block to the chain database.",params:{block:"signed_block"},results:null},push_transaction:{brief:"Attempts to push the transaction into the pending queue.",params:{signed_transaction:"signed_transaction"},results:{transaction_id:"fixed_bytes32",processed:"bytes"}},push_transactions:{brief:"Attempts to push transactions into the pending queue.",params:{"signed_transaction[]":"signed_transaction"},results:"vector[push_transaction.results]"}}},{}],131:[function(t,e,r){e.exports={get_actions:{params:{account_name:"account_name",pos:{type:"int32?",doc:"An absolute sequence positon -1 is the end/last action"},offset:{type:"int32?",doc:"The number of actions relative to pos, negative numbers return [pos-offset,pos), positive numbers return [pos,pos+offset)"}},results:{actions:"ordered_action_result[]",last_irreversible_block:"uint32",time_limit_exceeded_error:"bool?"},structs:[{name:"ordered_action_result",fields:{global_action_seq:"uint64",account_action_seq:"int32",block_num:"uint32",block_time:"block_timestamp_type",action_trace:"variant"}}]},get_transaction:{brief:"Retrieve a transaction from the blockchain.",params:{id:"transaction_id_type",block_num_hint:{type:"uint32?","default":0,doc:"A non-zero block number allows shorter transaction IDs (8 hex, 4 bytes)"}},results:{id:"transaction_id_type",trx:"variant",block_time:"block_timestamp_type",block_num:"uint32",last_irreversible_block:"uint32",traces:"variant[]"}},get_key_accounts:{params:{public_key:"public_key_type"},results:{account_names:"account_name[]"}},get_controlled_accounts:{params:{controlling_account:"account_name"},results:{controlled_accounts:"account_name[]"}}}},{}],132:[function(t,e,r){"use strict";e.exports={chain:t("./chain.json"),history:t("./history.json")}},{"./chain.json":130,"./history.json":131}],133:[function(t,e,r){"use strict";function n(t,e,r,n){var i=n.logger;return function(){for(var u=arguments.length,s=Array(u),a=0;u>a;a++)s[a]=arguments[a];if(0!==s.length){var f=o(s,Object.keys(r.params||[]),t,function(t){return"boolean"==typeof t?{broadcast:t}:void 0}),h=f.params,c=(f.options,f.returnPromise),l=f.callback,p=JSON.stringify(h);i.log&&i.log("api >","post"," ",e,p);var d={body:p,method:"POST"};return Object.assign(d,n.fetchConfiguration),fetch(e,d).then(function(t){return 200<=t.status&&t.status<300?t.json():t.text().then(function(e){var r=new Error(e);throw r.status=t.status,r.statusText=t.statusText,r})}).then(function(t){i.log&&i.log("api <","response"," ",e,JSON.stringify(t));try{l(null,t)}catch(t){i.error&&i.error("api <","result callback",":",t)}})["catch"](function(t){var r="";try{r=JSON.parse(t.message).error.details[0]}catch(t){}i.error&&(i.error("api <","error"," ",r,e,p),i.error(t));try{l(t)}catch(t){i.error&&i.error("api <","error callback",":",t)}}),c}console.log(function(t,e){var r="",n=function(t){r+=t+"\n"};if(n("USAGE"),n(t+" - "+e.brief),n("\nPARAMETERS"),n(e.params?JSON.stringify(e.params,null,2):"none"),n("\nRETURNS"),n(e.results?""+JSON.stringify(e.results,null,2):"no data"),n("\nERRORS"),e.errors)for(var i in e.errors){var u=e.errors[i];n(i+(u?" - "+u:""))}else n("nothing special");return r}(t,r))}}t("isomorphic-fetch");var i=t("camel-case"),u=t("./exported-helpers"),o=t("./process-args");e.exports=function(t,e){function r(t,e){Object.keys(e).forEach(function(r){void 0===t[r]&&(t[r]=e[r])})}var o=2i;i++)n[i]=arguments[i];return(e=u.api)[t].apply(e,[a].concat(n))}};for(var m in u.api)d(m);return a}},{"./exported-helpers":134,"./process-args":136,"camel-case":47,"isomorphic-fetch":162}],134:[function(t,e,r){"use strict";e.exports={api:{createTransaction:function(t){var e=1s)throw new TypeError(r+" is expecting "+s+" parameters but "+t.length+" where provided");var c=0,l=!0,p=!1,d=void 0;try{for(var m,g=e[Symbol.iterator]();!(l=(m=g.next()).done);l=!0){var y=m.value;u[y]=t[c],c++}}catch(t){p=!0,d=t}finally{try{!l&&g["return"]&&g["return"]()}finally{if(p)throw d}}}return{params:u,options:o,callback:f,returnPromise:h}}},{}],137:[function(t,e,r){(function(r){"use strict";function n(t,e,n,i,c){if(!(t=f(t)))throw new TypeError("private_key is required");if(!(e=a(e)))throw new TypeError("public_key is required");if(!(n=p(n)))throw new TypeError("nonce is required");if(!r.isBuffer(i)){if("string"!=typeof i)throw new TypeError("message should be buffer or string");i=new r(i,"binary")}if(c&&"number"!=typeof c)throw new TypeError("checksum should be a number");var l=t.getSharedSecret(e),m=new u(u.DEFAULT_CAPACITY,u.LITTLE_ENDIAN);m.writeUint64(n),m.append(l.toString("binary"),"binary"),m=new r(m.copy(0,m.offset).toBinary(),"binary");var g=h.sha512(m),y=g.slice(32,48),b=g.slice(0,32),v=h.sha256(g);if(v=v.slice(0,4),v=u.fromBinary(v.toString("binary"),u.DEFAULT_CAPACITY,u.LITTLE_ENDIAN).readUint32(),c){if(v!==c)throw new Error("Invalid key");i=function(t,e,n){s(t,"Missing cipher text"),t=d(t);var i=o.createDecipheriv("aes-256-cbc",e,n);return t=r.concat([i.update(t),i["final"]()])}(i,b,y)}else i=function(t,e,n){s(t,"Missing plain text"),t=d(t);var i=o.createCipheriv("aes-256-cbc",e,n);return t=r.concat([i.update(t),i["final"]()])}(i,b,y);return{nonce:n,message:i,checksum:v}}var i=t("randombytes"),u=t("bytebuffer"),o=t("browserify-aes"),s=t("assert"),a=t("./key_public"),f=t("./key_private"),h=t("./hash"),c=u.Long;e.exports={encrypt:function(t,e,r){var u=3>1?s.add(i):s,c=t.pointFromX(f,h),l=c.multiply(i);o(t.isInfinity(l),"nR is not a valid curve point");var p=e.negate().mod(i),d=s.modInverse(i),m=c.multiplyTwo(a,u,p).multiply(d);return t.validate(m),m}var o=t("assert"),s=t("./hash"),a=t("./enforce_types"),f=t("bigi"),h=t("./ecsignature");e.exports={calcPubKeyRecoveryParam:function(t,e,r,n){for(var i=0;4>i;i++)if(u(t,e,r,i).equals(n))return i;throw new Error("Unable to find valid recovery factor")},deterministicGenerateK:n,recoverPubKey:u,sign:function(t,e,r,i){var u,o,s=f.fromBuffer(e),a=t.n,c=t.G,l=(n(t,e,r,function(e){var n=c.multiply(e);return!t.isInfinity(n)&&0!==(u=n.affineX.mod(a)).signum()&&0!==(o=e.modInverse(a).multiply(s.add(r.multiply(u))).mod(a)).signum()},i),a.shiftRight(1));return 00,"R length is zero");var r=4+e;i.equal(t.readUInt8(r),2,"Expected a DER integer (2)");var u=t.readUInt8(r+1);i(u>0,"S length is zero");var s=t.slice(4,r),a=t.slice(r+2);r+=2+u,e>1&&0===s.readUInt8(0)&&i(128&s.readUInt8(1),"R value excessively padded"),u>1&&0===a.readUInt8(0)&&i(128&a.readUInt8(1),"S value excessively padded"),i.equal(r,t.length,"Invalid DER encoding");var f=o.fromDERInteger(s),h=o.fromDERInteger(a);return i(0<=f.signum(),"R value is negative"),i(0<=h.signum(),"S value is negative"),n(f,h)},n.parseScriptSignature=function(t){var e=t.readUInt8(t.length-1),r=-129&e;return i(r>0&&4>r,"Invalid hashType"),{signature:n.fromDER(t.slice(0,-1)),hashType:e}},e.exports=n}).call(this,t("buffer").Buffer)},{"./enforce_types":142,assert:11,bigi:23,buffer:45}],142:[function(t,e,r){(function(t){"use strict";function r(t){var e=t.toString().match(/function (.*?)\(/);return e?e[1]:null}e.exports=function(e,n){switch(e){case"Array":if(Array.isArray(n))return;break;case"Boolean":if("boolean"==typeof n)return;break;case"Buffer":if(t.isBuffer(n))return;break;case"Number":if("number"==typeof n)return;break;case"String":if("string"==typeof n)return;break;default:if(r(n.constructor)===r(e))return}throw new TypeError("Expected "+(r(e)||e)+", got "+n)}}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":160}],143:[function(t,e,r){"use strict";var n=t("create-hash"),i=t("create-hmac");e.exports={sha1:function(t,e){return n("sha1").update(t).digest(e)},sha256:function(t,e){return n("sha256").update(t).digest(e)},sha512:function(t,e){return n("sha512").update(t).digest(e)},HmacSHA256:function(t,e){return i("sha256",e).update(t).digest()},ripemd160:function(t){return n("rmd160").update(t).digest()}}},{"create-hash":120,"create-hmac":123}],144:[function(t,e,r){"use strict";var n=t("./api_common"),i=t("./api_object"),u=Object.assign({},n,i);e.exports=u},{"./api_common":138,"./api_object":139}],145:[function(t,e,r){(function(r){"use strict";function n(t){function e(){var t=i();return t=r.concat([new r([128]),t]),d.checkEncode(t,"sha256x2")}function i(){return t.toBuffer(32)}if("string"==typeof t)return n.fromString(t);if(r.isBuffer(t))return n.fromBuffer(t);if("object"===(void 0===t?"undefined":o(t))&&h.isBigInteger(t.d))return n(t.d);if(!h.isBigInteger(t))throw new TypeError("Invalid private key");var u=void 0;return{d:t,toWif:e,toString:function(){return e()},toPublic:function(){if(u)return u;var e=f.G.multiply(t);return u=p.fromPoint(e)},toBuffer:i,getSharedSecret:function(t){var e=(t=p(t)).toUncompressed().toBuffer(),r=a.fromAffine(f,h.fromBuffer(e.slice(1,33)),h.fromBuffer(e.slice(33,65))),n=i(),u=r.multiply(h.fromBuffer(n)).affineX.toBuffer({size:32});return l.sha512(u)},getChildKey:function(t){return n(m("sha256").update(i()).update(t).digest())}}}function i(t){c.equal(void 0===t?"undefined":o(t),"string","privateStr"); var e=t.match(/^PVT_([A-Za-z0-9]+)_([A-Za-z0-9]+)$/);if(null===e){var r=d.checkDecode(t,"sha256x2"),i=r.readUInt8(0);return c.equal(128,i,"Expected version 128, instead got "+i),{privateKey:n.fromBuffer(r.slice(1)),format:"WIF",keyType:"K1"}}c(3===e.length,"Expecting private key like: PVT_K1_base58privateKey..");var s=u(e,3),a=s[1],f=s[2];return c.equal(a,"K1","K1 private key expected"),{privateKey:n.fromBuffer(d.checkDecode(f,a)),format:"PVT",keyType:a}}var u=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,u=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,u=t}finally{try{!n&&s["return"]&&s["return"]()}finally{if(i)throw u}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=t("ecurve"),a=s.Point,f=s.getCurveByName("secp256k1"),h=t("bigi"),c=t("assert"),l=t("./hash"),p=t("./key_public"),d=t("./key_utils"),m=t("create-hash"),g=t("./promise-async");f.G,f.n,(e.exports=n).fromHex=function(t){return n.fromBuffer(new r(t,"hex"))},n.fromBuffer=function(t){if(!r.isBuffer(t))throw new Error("Expecting parameter to be a Buffer type");if(33===t.length&&1===t[32]&&(t=t.slice(0,-1)),32!==t.length)throw new Error("Expecting 32 bytes, instead got "+t.length);return n(h.fromBuffer(t))},n.fromSeed=function(t){if("string"!=typeof t)throw new Error("seed must be of type string");return n.fromBuffer(l.sha256(t))},n.isWif=function(t){try{return c("WIF"===i(t).format),!0}catch(t){return!1}},n.isValid=function(t){try{return n(t),!0}catch(t){return!1}},n.fromWif=function(t){return console.log("PrivateKey.fromWif is deprecated, please use PrivateKey.fromString"),n.fromString(t)},n.fromString=function(t){return i(t).privateKey},n.randomKey=function(){var t=0 "+t.message,t}}}).call(this,t("buffer").Buffer)},{"./hash":143,"./key_public":146,"./key_utils":147,"./promise-async":148,assert:11,bigi:23,buffer:45,"create-hash":120,ecurve:127}],146:[function(t,e,r){(function(r){"use strict";function n(t){function e(){var e=0s){2>s&&n++;continue}e.push(o)}r=u}if(n>10){var a=Number(n/t*100).toFixed(2);console.warn("WARN: "+a+"% low CPU entropy re-sampled")}return e}function i(){for(var t=Date.now(),e=0,r=0;Date.now()=128,"Call initialize() to add entropy");var p=[];return p.push(a(32)),p.push(r.from(n(i))),p.push(l),p.push(function(){var t=Array(a(101)).join();try{t+=(new Date).toString()+" "+window.screen.height+" "+window.screen.width+" "+window.screen.colorDepth+" "+window.screen.availHeight+" "+window.screen.availWidth+" "+window.screen.pixelDepth+navigator.language+" "+window.location+" "+window.history.length;for(var e,n=0;nr;r++)e[r]=arguments[r];c+=e.length;var n=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var f=o.value,p=h++%101,d=l[p]+=f;d>9007199254740991&&(l[p]=0)}}catch(t){i=!0,u=t}finally{try{!n&&a["return"]&&a["return"]()}finally{if(i)throw u}}},cpuEntropy:n,entropyCount:function(){return c},checkDecode:function(t){var e=1"),"sha256x2"===e){var n=f.sha256(f.sha256(t)).slice(0,4);return o.encode(r.concat([t,n]))}var i=[t];e&&i.push(r.from(e));var u=f.ripemd160(r.concat(i)).slice(0,4);return o.encode(r.concat([t,u]))}};var h=0,c=0,l=a(101),p=function(t){return Math.log(t)/Math.LN2}}).call(this,t("buffer").Buffer)},{"./hash":143,assert:11,bs58:43,buffer:45,randombytes:173}],148:[function(t,e,r){"use strict";e.exports=function(t){return function(){for(var e=arguments.length,r=Array(e),n=0;e>n;n++)r[n]=arguments[n];return new Promise(function(e,n){setTimeout(function(){try{e(t.apply(void 0,r))}catch(e){n(e)}})})}}},{}],149:[function(t,e,r){(function(r){"use strict";function n(t,e,n){function i(t,e){var n=2t||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,s,a,f;if(this._events||(this._events={}),"error"===t&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var h=new Error('Uncaught, unspecified "error" event. ('+e+")");throw h.context=e,h}if(o(r=this._events[t]))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(u(r))for(s=Array.prototype.slice.call(arguments,1),n=(f=r.slice()).length,a=0;n>a;a++)f[a].apply(this,s);return!0},n.prototype.on=n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?u(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,u(this._events[t])&&!this._events[t].warned&&(r=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError("listener must be a function");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,o,s;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(o=(r=this._events[t]).length,n=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(u(r)){for(s=o;0n)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i(r=this._events[t]))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],151:[function(t,e,r){var n=t("safe-buffer").Buffer,i=t("md5.js");e.exports=function(t,e,r,u){if(n.isBuffer(t)||(t=n.from(t,"binary")),e&&(n.isBuffer(e)||(e=n.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=n.alloc(o),a=n.alloc(u||0),f=n.alloc(0);o>0||u>0;){var h=new i;h.update(f),h.update(t),e&&h.update(e),f=h.digest();var c=0;if(o>0){var l=s.length-o;c=Math.min(o,f.length),f.copy(s,l,0,c),o-=c}if(c0){var p=a.length-u,d=Math.min(u,f.length-c);f.copy(a,p,c,c+d),u-=d}}return f.fill(0),{key:s,iv:a}}},{"md5.js":165,"safe-buffer":190}],152:[function(t,e,r){(function(r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=t("bytebuffer"),u=t("./struct");e.exports={create:function(t,e){function r(t,n,u,s){var f=o(n);if(!f)return null;var h=f.name,c=f.annotation,l=f.arrayType,p=void 0;if(c){var d=e[h];if(null==d)return a.push("Missing "+h+" in "+n),null;var g=[],y=!0,b=!1,v=void 0;try{for(var _,w=c[Symbol.iterator]();!(y=(_=w.next()).done);y=!0){var E=_.value,A=r(t,E,null,s);if(!A)return a.push("Missing "+E+" in "+n),null;g.push(A)}}catch(t){b=!0,v=t}finally{try{!y&&w["return"]&&w["return"]()}finally{if(b)throw v}}p=d(g)}else if(null==l){var B=m[h];if(B)return B;var C=e[h];if(!C)return null;p=C(u)}else if(""===l){var F=r(t,f.name,null,s);if(!F)return null;var x=i.sort[t+"."+s]||!1;p=e.vector(F,x)}else if(0/);if(e){var r=e?e[1].replace(/ /g,"").split(","):null;return{name:t=t.replace(e[0],"").trim(),annotation:r}}var n=t.match(/\[(.*)\]/),i=n?n[1].trim():null;n&&(t=t.replace(n[0],"").trim());var u=!1;return/\?$/.test(t)&&(t=t.substring(0,t.length-1),u=!0),{name:t,arrayType:i,optional:u}},s=function(t){return{fromByteBuffer:function(e){return t.fromByteBuffer(e)},appendByteBuffer:function(e,r){t.appendByteBuffer(e,r)},fromObject:function(e){return t.fromObject(e)},toObject:function(e){return t.toObject(e)}}}}).call(this,t("buffer").Buffer)},{"./struct":154,buffer:45,bytebuffer:46}],153:[function(t,e,r){(function(r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=t("./types"),u=t("./fcbuffer"),o=t("assert"),s=u.create;e.exports=function(t){var e=1");var a=t[i];return a=a?a():e[i],o(a,"missing type or struct: "+i),u.fromBuffer(a,s)}},f=function(t,e){return function(r,i){o.equal(void 0===r?"undefined":n(r),"string","typeName (type or struct name)"),o(null!=i,"value is required");var s=t[r];return s=s?s():e[r],o(s,"missing type or struct: "+r),u.toBuffer(s,i)}};e.exports.fromBuffer=u.fromBuffer,e.exports.toBuffer=u.toBuffer}).call(this,t("buffer").Buffer)},{"./fcbuffer":152,"./types":155,assert:11,buffer:45}],154:[function(t,e,r){"use strict";var n=t("bytebuffer");e.exports=function(t){var e=1n?1:n>r?-1:0},add:function(t,e){r[t]=e,null==i&&(i=e,u=t)},fields:r,fromByteBuffer:function(n){var i={},u=null;try{for(u in r){var o=r[u];try{var s=n.offset;if(""===u)i=o.fromByteBuffer(n,e);else{var a=e.override[t+"."+u+".fromByteBuffer"];a?a({fields:r,object:i,b:n,config:e}):i[u]=o.fromByteBuffer(n,e)}if(e.debug)if(o.struct)console.error(o.struct);else{var f=void 0;try{f=o.toObject(""===u?i:i[u],e)}catch(i){f=""}var h=n.copy(s,n.offset);console.error("fromByteBuffer",t+"."+u,"'"+f+"'",h.toHex())}}catch(i){throw console.error(i+" in "+t+"."+u),n.printDebug(),i}}}catch(i){throw i.message+=" in "+t+"."+u,i}return i},appendByteBuffer:function(n,i){var u=null;try{for(u in r){var o=r[u];if(""===u)o.appendByteBuffer(n,i);else{var s=e.override[t+"."+u+".appendByteBuffer"];s?s({fields:r,object:i,b:n}):o.appendByteBuffer(n,i[u])}}}catch(o){try{o.message+=" "+t+"."+u+" = "+JSON.stringify(i[u])}catch(n){o.message+=" "+t+"."+u+" = "+i[u]}throw o}},fromObject:function(n){var i=e.override[t+".fromObject"];if(i){var u=i(n);if(null!=u)return u}var o={},s=null;try{for(s in r){var a=r[s];if(""===s){var f=a.fromObject(n);Object.assign(o,f)}else{var h=e.override[t+"."+s+".fromObject"];if(h)h({fields:r,object:n,result:o});else{var c=n[s],l=a.fromObject(c);o[s]=l}}}}catch(n){throw n.message+=" "+t+"."+s,n}return o},toObject:function(){var i=0a;a++)s[a]=arguments[a];return function(t,e,r,n,i,o){var s=(n?i[t]:f[t]).apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e unknown");if(!C(n))throw new TypeError("map<, type2> unknown");return{fromByteBuffer:function(e){for(var i=e.readVarint32(),u={},o=0;i>o;o++)u[r.fromByteBuffer(e)]=n.fromByteBuffer(e);return t.debug&&console.log("0x"+i.toString(16),"(map.fromByteBuffer length)",u),u},appendByteBuffer:function(e,i){E(i,t);var u=Object.keys(i);e.writeVarint32(u.length),t.debug&&console.log("0x"+u.length.toString(16),"(map.appendByteBuffer length)",u);var o=!0,s=!1,a=void 0;try{for(var f,h=u[Symbol.iterator]();!(o=(f=h.next()).done);o=!0){var c=f.value,l=i[c];r.appendByteBuffer(e,c),n.appendByteBuffer(e,l)}}catch(e){s=!0,a=e}finally{try{!o&&h["return"]&&h["return"]()}finally{if(s)throw a}}},fromObject:function(e){E(e,t);var i={};for(var u in e)i[r.fromObject(u)]=n.fromObject(e[u]);return i},toObject:function(e){if(t.defaults&&null==e)return i={},u=r.toObject(null),o=n.toObject(null),u in i?Object.defineProperty(i,u,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[u]=o,i;var i,u,o;E(e,t);var s={};for(var a in e)s[r.toObject(a)]=n.toObject(e[a]);return s}}},c=function(t){var e=t.types;return{fromByteBuffer:function(r){var n=r.readVarint32(),i=e[n];return t.debug&&console.error("static_variant id "+n+" (0x"+n.toString(16)+")"),a(i,"static_variant invalid type position "+n),[n,i.fromByteBuffer(r)]},appendByteBuffer:function(t,r){a(Array.isArray(r)&&2===r.length,"Required tuple");var n=r[0],i=e[n];a(i,"type "+n),t.writeVarint32(n),i.appendByteBuffer(t,r[1])},fromObject:function(t){a(Array.isArray(t)&&2===t.length,"Required tuple");var r=t[0],n=e[r];return a(n,"type "+r),[r,n.fromObject(t[1])]},toObject:function(r){if(t.defaults&&null==r)return[0,e[0].toObject(null,debug)];a(Array.isArray(r)&&2===r.length,"Required tuple");var n=r[0],i=e[n];return a(i,"type "+n),[n,i.toObject(r[1])]}}},l=function(t){var e=t.type,r=t.sorted;if(!C(e))throw new TypeError("vector type should be a serializer");return{fromByteBuffer:function(r){var n=r.readVarint32();t.debug&&console.log("fromByteBuffer vector length",n,"(0x"+n.toString(16)+")");for(var i=[],u=0;n>u;u++)i.push(e.fromByteBuffer(r));return i},appendByteBuffer:function(n,i){null==i&&(i=[]),E(i,t),n.writeVarint32(i.length),!0===r&&(i=F(e,Object.assign([],i))),t.debug&&console.log("0x"+i.length.toString(16),"(vector.appendByteBuffer length)",i); var u=!0,o=!1,s=void 0;try{for(var a,f=i[Symbol.iterator]();!(u=(a=f.next()).done);u=!0){var h=a.value;e.appendByteBuffer(n,h)}}catch(n){o=!0,s=n}finally{try{!u&&f["return"]&&f["return"]()}finally{if(o)throw s}}},fromObject:function(n){null==n&&(n=[]),E(n,t);var i=[],u=!0,o=!1,s=void 0;try{for(var a,f=n[Symbol.iterator]();!(u=(a=f.next()).done);u=!0){var h=a.value;i.push(e.fromObject(h))}}catch(n){o=!0,s=n}finally{try{!u&&f["return"]&&f["return"]()}finally{if(o)throw s}}return!0===r&&(i=F(e,Object.assign([],i))),i},toObject:function(n){if(t.defaults&&null==n)return[e.toObject(n)];null==n&&(n=[]),E(n,t),!0===r&&(n=F(e,Object.assign([],n)));var i=[],u=!0,o=!1,s=void 0;try{for(var a,f=n[Symbol.iterator]();!(u=(a=f.next()).done);u=!0){var h=a.value;i.push(e.toObject(h))}}catch(n){o=!0,s=n}finally{try{!u&&f["return"]&&f["return"]()}finally{if(o)throw s}}return i}}},p=function(t){var e=t.type;if(!C(e))throw new TypeError("optional parameter should be a serializer");return{fromByteBuffer:function(t){return 1!==t.readUint8()?null:e.fromByteBuffer(t)},appendByteBuffer:function(t,r){null!=r?(t.writeUint8(1),e.appendByteBuffer(t,r)):t.writeUint8(0)},fromObject:function(t){return null==t?null:e.fromObject(t)},toObject:function(r){return null!=r||t.defaults?e.toObject(r):null}}},d=function(t){var e=t.signed,r=void 0!==e&&e,n=t.bits;return t.variable?"Varint"+n+(r?"ZigZag":""):(r?"Int":"Uint")+n},m=function(t){return{fromByteBuffer:function(e){var r=e["read"+d(t)]();return s.isLong(r)?r.toString():r},appendByteBuffer:function(e,r){e["write"+d(t)](r)},fromObject:function(e){return n(e,t),e},toObject:function(e){return t.defaults&&null==e?5353?c:f.toNumber()},appendByteBuffer:function(e,a){n(a,t);var f=new o(a);i&&(f=f.toTwos(u));var h=f.toArrayLike(r,"le",s);e.append(h.toString("binary"),"binary")},fromObject:function(e){return n(e,t),e},toObject:function(e){return t.defaults&&null==e?53n)throw new Error(e.typeName+" length "+t.length+" exceeds maxLen "+n)}},A=new o,B=new o("1"),C=function(t){return"object"===(void 0===t?"undefined":i(t))&&"function"==typeof t.fromByteBuffer&&"function"==typeof t.appendByteBuffer&&"function"==typeof t.fromObject&&"function"==typeof t.toObject},F=function(t,e){return t.compare?e.sort(t.compare):e.sort()},x=function(){return Object.assign.apply(Object,arguments)},D=function(t){return null==t},S=function(t){return new o(1).ishln(t).isub(B)},k=function(t){return new o(1).ishln(t-1).isub(B)},M=function(t){return new o(1).ishln(t-1).ineg()}}).call(this,t("buffer").Buffer)},{assert:11,"bn.js":25,buffer:45,bytebuffer:46,"ieee-float":157}],156:[function(t,e,r){(function(r){"use strict";function n(t){i.call(this),this._block=new r(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=t("stream").Transform;t("inherits")(n,i),n.prototype._transform=function(t,e,n){var i=null;try{"buffer"!==e&&(t=new r(t,e)),this.update(t)}catch(t){i=t}n(i)},n.prototype._flush=function(t){var e=null;try{this.push(this._digest())}catch(t){e=t}t(e)},n.prototype.update=function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=new r(t,e||"binary"));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var u=this._blockOffset;u0;++o)this._length[o]+=s,0<(s=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*s);return this},n.prototype._update=function(t){throw new Error("_update is not implemented")},n.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();return void 0!==t&&(e=e.toString(t)),e},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n}).call(this,t("buffer").Buffer)},{buffer:45,inherits:159,stream:199}],157:[function(t,e,r){(function(t){"use strict";function r(t,e,r){var n=t[e++],i=t[e++],u=t[e++],o=t[e];return"bige"===r?256*(256*(256*n+i)+u)+o:256*(256*(256*o+u)+i)+n}function n(t,e,r,n){var i=e>>>24&255,u=e>>16&255,o=e>>8&255,s=255&e;"bige"===n?(t[r++]=i,t[r++]=u,t[r++]=o,t[r]=s):(t[r++]=s,t[r++]=o,t[r++]=u,t[r]=i)}function i(t,e,r,i,u){"bige"===u?(n(t,e,i,u),n(t,r,i+4,u)):(n(t,r,i,u),n(t,e,i+4,u))}function u(t){return t>=0?F[t]:D[-t]}function o(t,e,n){var i,o,s=r(t,e,n),a=r(t,e+4,n);"bige"===n?(i=s,o=a):(i=a,o=s);var f=(1048575&i)*S+o,h=(2146435072&i)>>>20;return(i>>31||1)*(0===h?f?f*u(-1074):0:2047>h?f>=0?(1+f*k)*u(h-1023):0:f?0/0:1/0)}function s(t,e,n){var i=r(t,e,n),o=8388607&i,s=(2139095040&i)>>>23;return(i>>31||1)*(0===s?o?o*M*2*T:0:255>s?(1+o*M)*u(s-127):o?0/0:1/0)}function a(t){var e=0;return t>=2?2<=(t*=u(-(e=f(1,t))))&&(t/=2,e+=1):1>t&&((e=f(t,2))<=1023?t*=u(e):(t*=u(e-100),t*=u(100)),e=-e),I.exp=e,I.mant=t,I}function f(t,e){for(var r=0;e>t*j;)t*=j,r+=192;for(;e>0x10000000000000000*t;)t*=0x10000000000000000,r+=64;for(;e>65536*t;)t*=65536,r+=16;for(;e>64*t;)t*=64,r+=6;for(;e>2*t;)t*=2,r+=1;return r}function h(t,e){return(t*=e)-Math.floor(t)!=.5||1&t?t+.5:t}function c(t,e,r,i){var o,s=0;0>e&&(s=2147483648,e=-e),e&&1/0>e?((o=a(e)).exp+=127,o.exp<=0?o.exp<=-25?(o.mant=0,o.exp=0):(o.mant=h(o.mant,u(22+o.exp)),o.exp=0,8388608<=o.mant&&(o.mant-=8388608,o.exp+=1)):(o.mant=h(o.mant-1,8388608),8388608<=o.mant&&(o.mant-=8388608,o.exp+=1),2541/e?2147483648:0:e===1/0?2139095040|s:2143289344,r,i)}function l(t,e,r,n){var o,s=0;0>e&&(s=2147483648,e=-e),e&&1/0>e?((o=a(e)).exp+=1023,o.exp<=0?(o.mant*=u(51+o.exp),o.exp=0):o.mant=(o.mant-1)*O,i(t,s|o.exp<<20|o.mant/4294967296,o.mant>>>0,r,n)):i(t,0===e?0>1/e?2147483648:0:e===1/0?s+2146435072:2146959360,0,r,n)}var p,d,m,g,y,b,v,_,w,E,A,B,C=!1;"function"==typeof Float32Array&&(w=new Float32Array(1),E=new Uint8Array(w.buffer),w[0]=-1,C=0===E[3],p=function(t,e){return(e=e||0)<0||e+4>t.length?0:(E[0]=t[e++],E[1]=t[e++],E[2]=t[e++],E[3]=t[e],w[0])},m=function(t,e){return(e=e||0)<0||e+4>t.length?0:(E[3]=t[e++],E[2]=t[e++],E[1]=t[e++],E[0]=t[e],w[0])},d=function(t,e,r){r=r||0,w[0]=e,t[r++]=E[0],t[r++]=E[1],t[r++]=E[2],t[r]=E[3]},g=function(t,e,r){r=r||0,w[0]=e,t[r++]=E[3],t[r++]=E[2],t[r++]=E[1],t[r]=E[0]}),"function"==typeof Float64Array&&(A=new Float64Array(1),B=new Uint8Array(A.buffer),y=function(t,e){return(e=e||0)<0||e+8>t.length?0:(B[0]=t[e+0],B[1]=t[e+1],B[2]=t[e+2],B[3]=t[e+3],B[4]=t[e+4],B[5]=t[e+5],B[6]=t[e+6],B[7]=t[e+7],A[0])},v=function(t,e){return(e=e||0)<0||e+8>t.length?0:(B[7]=t[e+0],B[6]=t[e+1],B[5]=t[e+2],B[4]=t[e+3],B[3]=t[e+4],B[2]=t[e+5],B[1]=t[e+6],B[0]=t[e+7],A[0])},b=function(t,e,r){r=r||0,A[0]=e,t[r+0]=B[0],t[r+1]=B[1],t[r+2]=B[2],t[r+3]=B[3],t[r+4]=B[4],t[r+5]=B[5],t[r+6]=B[6],t[r+7]=B[7]},_=function(t,e,r){r=r||0,A[0]=e,t[r+0]=B[7],t[r+1]=B[6],t[r+2]=B[5],t[r+3]=B[4],t[r+4]=B[3],t[r+5]=B[2],t[r+6]=B[1],t[r+7]=B[0]});for(var F=new Array,x=0;1200>x;x++)F[x]=Math.pow(2,x);var D=new Array;for(x=0;1200>x;x++)D[x]=Math.pow(2,-x);var S=4294967296,k=2.220446049250313e-16;u(-1023);var M=Math.pow(2,-23),T=Math.pow(2,-127),I={exp:0,mant:0},j=Math.pow(2,192);new t(8);var O=Math.pow(2,52);(function(){var t="object"==typeof e&&e.exports||this;t.readWord=r,t.writeWord=n,t.writeDoubleWord=i,t.readFloat=s,t.writeFloat=c,t.readDouble=o,t.writeDouble=l,t._useFloatArray=function(e){(t._usingFloatArray=e)?("full"==e&&(t.readFloatLE=C?m:p),t.writeFloatLE=C?g:d,"full"==e&&(t.readFloatBE=C?p:m),t.writeFloatBE=C?d:g,t.readDoubleLE=C?v:y,t.writeDoubleLE=C?_:b,t.readDoubleBE=C?y:v,t.writeDoubleBE=C?b:_):(t._usingFloatArray="",t.readFloatLE=function(e,r){return t.readFloat(e,r||0,"le")},t.writeFloatLE=function(e,r,n){t.writeFloat(e,r,n||0,"le")},t.readFloatBE=function(e,r){return t.readFloat(e,r||0,"bige")},t.writeFloatBE=function(e,r,n){t.writeFloat(e,r,n||0,"bige")},t.readDoubleLE=function(e,r){return t.readDouble(e,r||0,"le")},t.writeDoubleLE=function(e,r,n){t.writeDouble(e,r,n||0,"le")},t.readDoubleBE=function(e,r){return t.readDouble(e,r||0,"bige")},t.writeDoubleBE=function(e,r,n){t.writeDouble(e,r,n||0,"bige")})},t._getBigeCpu=function(){return C},t._setBigeCpu=function(t){C=t},t._useFloatArray(!1),t._useFloatArray(p&&y&&"fastest")}).call(this)}).call(this,t("buffer").Buffer)},{buffer:45}],158:[function(t,e,r){r.read=function(t,e,r,n,i){var u,o,s=8*i-n-1,a=(1<>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,u=p&(1<<-h)-1,p>>=-h,h+=s;h>0;u=256*u+t[e+c],c+=l,h-=8);for(o=u&(1<<-h)-1,u>>=-h,h+=n;h>0;o=256*o+t[e+c],c+=l,h-=8);if(0===u)u=1-f;else{if(u===a)return o?0/0:1/0*(p?-1:1);o+=Math.pow(2,n),u-=f}return(p?-1:1)*o*Math.pow(2,u-n)},r.write=function(t,e,r,n,i,u){var o,s,a,f=8*u-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:u-1,d=n?1:-1,m=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=h):(o=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-o))<1&&(o--,a*=2),2<=(e+=o+c>=1?l/a:l*Math.pow(2,1-c))*a&&(o++,a/=2),o+c>=h?(s=0,o=h):o+c>=1?(s=(e*a-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<0;t[r+p]=255&o,p+=d,o/=256,f-=8);t[r+p-d]|=128*m}},{}],159:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],160:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(n(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))||!!t._isBuffer);var e}},{}],161:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],162:[function(t,e,r){t("whatwg-fetch"),e.exports=self.fetch.bind(self)},{"whatwg-fetch":206}],163:[function(t,e,r){var n,i;n=this,i=function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}function r(t,e){var r,n,u;return e?(u=0<=(t>>>=0)&&256>t)&&(n=a[t])?n:(r=i(t,0>(0|t)?-1:0,!0),u&&(a[t]=r),r):(u=-128<=(t|=0)&&128>t)&&(n=s[t])?n:(r=i(t,0>t?-1:0,!1),u&&(s[t]=r),r)}function n(t,e){if(isNaN(t)||!isFinite(t))return e?m:d;if(e){if(0>t)return m;if(t>=c)return _}else{if(-l>=t)return w;if(t+1>=l)return v}return 0>t?n(-t,e).neg():i(t%h|0,t/h|0,e)}function i(e,r,n){return new t(e,r,n)}function u(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||r>36)throw RangeError("radix");var i;if(0<(i=t.indexOf("-")))throw Error("interior hyphen");if(0===i)return u(t.substring(1),e,r).neg();for(var o=n(f(r,8)),s=d,a=0;ah){var l=n(f(r,h));s=s.mul(l).add(n(c))}else s=(s=s.mul(o)).add(n(c))}return s.unsigned=e,s}function o(e){return e instanceof t?e:"number"==typeof e?n(e):"string"==typeof e?u(e):i(e.low,e.high,e.unsigned)}Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var s={},a={};t.fromInt=r,t.fromNumber=n,t.fromBits=i;var f=Math.pow;t.fromString=u,t.fromValue=o;var h=4294967296,c=h*h,l=c/2,p=r(1<<24),d=r(0);t.ZERO=d;var m=r(0,!0);t.UZERO=m;var g=r(1);t.ONE=g;var y=r(1,!0);t.UONE=y;var b=r(-1);t.NEG_ONE=b;var v=i(-1,2147483647,!1);t.MAX_VALUE=v;var _=i(-1,-1,!0);t.MAX_UNSIGNED_VALUE=_;var w=i(0,-2147483648,!1);t.MIN_VALUE=w;var E=t.prototype;return E.toInt=function(){return this.unsigned?this.low>>>0:this.low},E.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},E.toString=function(t){if((t=t||10)<2||t>36)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var e=n(t),r=this.div(e),i=r.mul(e).sub(this);return r.toString(t)+i.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var u=n(f(t,6),this.unsigned),o=this,s="";;){var a=o.div(u),h=(o.sub(a.mul(u)).toInt()>>>0).toString(t);if((o=a).isZero())return h+s;for(;h.length<6;)h="0"+h;s=""+h+s}},E.getHighBits=function(){return this.high},E.getHighBitsUnsigned=function(){return this.high>>>0},E.getLowBits=function(){return this.low},E.getLowBitsUnsigned=function(){return this.low>>>0},E.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&0==(t&1<>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},E.eq=E.equals,E.notEquals=function(t){return!this.eq(t)},E.neq=E.notEquals,E.lessThan=function(t){return this.comp(t)<0},E.lt=E.lessThan,E.lessThanOrEqual=function(t){return this.comp(t)<=0},E.lte=E.lessThanOrEqual,E.greaterThan=function(t){return 0>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},E.comp=E.compare,E.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(g)},E.neg=E.negate,E.add=function(t){e(t)||(t=o(t));var r=this.high>>>16,n=65535&this.high,u=this.low>>>16,s=65535&this.low,a=t.high>>>16,f=65535&t.high,h=t.low>>>16,c=0,l=0,p=0,d=0;return p+=(d+=s+(65535&t.low))>>>16,l+=(p+=u+h)>>>16,c+=(l+=n+f)>>>16,c+=r+a,i((p&=65535)<<16|(d&=65535),(c&=65535)<<16|(l&=65535),this.unsigned)},E.subtract=function(t){return e(t)||(t=o(t)),this.add(t.neg())},E.sub=E.subtract,E.multiply=function(t){if(this.isZero())return d;if(e(t)||(t=o(t)),t.isZero())return d;if(this.eq(w))return t.isOdd()?w:d;if(t.eq(w))return this.isOdd()?w:d;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(p)&&t.lt(p))return n(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,u=65535&this.high,s=this.low>>>16,a=65535&this.low,f=t.high>>>16,h=65535&t.high,c=t.low>>>16,l=65535&t.low,m=0,g=0,y=0,b=0;return y+=(b+=a*l)>>>16,g+=(y+=s*l)>>>16,y&=65535,g+=(y+=a*c)>>>16,m+=(g+=u*l)>>>16,g&=65535,m+=(g+=s*c)>>>16,g&=65535,m+=(g+=a*h)>>>16,m+=r*l+u*c+s*h+a*f,i((y&=65535)<<16|(b&=65535),(m&=65535)<<16|(g&=65535),this.unsigned)},E.mul=E.multiply,E.divide=function(t){if(e(t)||(t=o(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?m:d;var r,i,u;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return m;if(t.gt(this.shru(1)))return y;u=m}else{if(this.eq(w))return t.eq(g)||t.eq(b)?w:t.eq(w)?g:(r=this.shr(1).div(t).shl(1)).eq(d)?t.isNegative()?g:b:(i=this.sub(t.mul(r)),u=r.add(i.div(t)));if(t.eq(w))return this.unsigned?m:d;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();u=d}for(i=this;i.gte(t);){r=Math.max(1,Math.floor(i.toNumber()/t.toNumber()));for(var s=Math.ceil(Math.log(r)/Math.LN2),a=48>=s?1:f(2,s-48),h=n(r),c=h.mul(t);c.isNegative()||c.gt(i);)c=(h=n(r-=a,this.unsigned)).mul(t);h.isZero()&&(h=g),u=u.add(h),i=i.sub(c)}return u},E.div=E.divide,E.modulo=function(t){return e(t)||(t=o(t)),this.sub(this.div(t).mul(t))},E.mod=E.modulo,E.not=function(){return i(~this.low,~this.high,this.unsigned)},E.and=function(t){return e(t)||(t=o(t)),i(this.low&t.low,this.high&t.high,this.unsigned)},E.or=function(t){return e(t)||(t=o(t)),i(this.low|t.low,this.high|t.high,this.unsigned)},E.xor=function(t){return e(t)||(t=o(t)),i(this.low^t.low,this.high^t.high,this.unsigned)},E.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:32>t?i(this.low<>>32-t,this.unsigned):i(0,this.low<t?i(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):i(this.high>>t-32,0<=this.high?0:-1,this.unsigned)},E.shr=E.shiftRight,E.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0===(t&=63))return this;var r=this.high;return 32>t?i(this.low>>>t|r<<32-t,r>>>t,this.unsigned):i(32===t?r:r>>>t-32,0,this.unsigned)},E.shru=E.shiftRightUnsigned,E.toSigned=function(){return this.unsigned?i(this.low,this.high,!1):this},E.toUnsigned=function(){return this.unsigned?this:i(this.low,this.high,!0)},E.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},E.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},E.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t},"function"==typeof t&&"object"==typeof e&&e&&e.exports?e.exports=i():(n.dcodeIO=n.dcodeIO||{}).Long=i()},{}],164:[function(t,e,r){var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};e.exports=function(t,e){var r=n[e];return t=null==t?"":String(t),r&&(t=t.replace(r.regexp,function(t){return r.map[t]})),t.toLowerCase()}},{}],165:[function(t,e,r){(function(r){"use strict";function n(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(t,e){return t<>>32-e}function u(t,e,r,n,u,o,s){return i(t+(e&r|~e&n)+u+o|0,s)+e|0}function o(t,e,r,n,u,o,s){return i(t+(e&n|r&~n)+u+o|0,s)+e|0}function s(t,e,r,n,u,o,s){return i(t+(e^r^n)+u+o|0,s)+e|0}function a(t,e,r,n,u,o,s){return i(t+(r^(e|~n))+u+o|0,s)+e|0}var f=t("inherits"),h=t("hash-base"),c=new Array(16);f(n,h),n.prototype._update=function(){for(var t=c,e=0;16>e;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,f=this._d;n=a(n=a(n=a(n=a(n=s(n=s(n=s(n=s(n=o(n=o(n=o(n=o(n=u(n=u(n=u(n=u(n,i=u(i,f=u(f,r=u(r,n,i,f,t[0],3614090360,7),n,i,t[1],3905402710,12),r,n,t[2],606105819,17),f,r,t[3],3250441966,22),i=u(i,f=u(f,r=u(r,n,i,f,t[4],4118548399,7),n,i,t[5],1200080426,12),r,n,t[6],2821735955,17),f,r,t[7],4249261313,22),i=u(i,f=u(f,r=u(r,n,i,f,t[8],1770035416,7),n,i,t[9],2336552879,12),r,n,t[10],4294925233,17),f,r,t[11],2304563134,22),i=u(i,f=u(f,r=u(r,n,i,f,t[12],1804603682,7),n,i,t[13],4254626195,12),r,n,t[14],2792965006,17),f,r,t[15],1236535329,22),i=o(i,f=o(f,r=o(r,n,i,f,t[1],4129170786,5),n,i,t[6],3225465664,9),r,n,t[11],643717713,14),f,r,t[0],3921069994,20),i=o(i,f=o(f,r=o(r,n,i,f,t[5],3593408605,5),n,i,t[10],38016083,9),r,n,t[15],3634488961,14),f,r,t[4],3889429448,20),i=o(i,f=o(f,r=o(r,n,i,f,t[9],568446438,5),n,i,t[14],3275163606,9),r,n,t[3],4107603335,14),f,r,t[8],1163531501,20),i=o(i,f=o(f,r=o(r,n,i,f,t[13],2850285829,5),n,i,t[2],4243563512,9),r,n,t[7],1735328473,14),f,r,t[12],2368359562,20),i=s(i,f=s(f,r=s(r,n,i,f,t[5],4294588738,4),n,i,t[8],2272392833,11),r,n,t[11],1839030562,16),f,r,t[14],4259657740,23),i=s(i,f=s(f,r=s(r,n,i,f,t[1],2763975236,4),n,i,t[4],1272893353,11),r,n,t[7],4139469664,16),f,r,t[10],3200236656,23),i=s(i,f=s(f,r=s(r,n,i,f,t[13],681279174,4),n,i,t[0],3936430074,11),r,n,t[3],3572445317,16),f,r,t[6],76029189,23),i=s(i,f=s(f,r=s(r,n,i,f,t[9],3654602809,4),n,i,t[12],3873151461,11),r,n,t[15],530742520,16),f,r,t[2],3299628645,23),i=a(i,f=a(f,r=a(r,n,i,f,t[0],4096336452,6),n,i,t[7],1126891415,10),r,n,t[14],2878612391,15),f,r,t[5],4237533241,21),i=a(i,f=a(f,r=a(r,n,i,f,t[12],1700485571,6),n,i,t[3],2399980690,10),r,n,t[10],4293915773,15),f,r,t[1],2240044497,21),i=a(i,f=a(f,r=a(r,n,i,f,t[8],1873313359,6),n,i,t[15],4264355552,10),r,n,t[6],2734768916,15),f,r,t[13],1309151649,21),i=a(i,f=a(f,r=a(r,n,i,f,t[4],4149444226,6),n,i,t[11],3174756917,10),r,n,t[2],718787259,15),f,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+f|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56=this._blockSize;){for(var u=this._blockOffset;u0;++o)this._length[o]+=s,0<(s=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*s);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0);for(var r=this._blockOffset=0;4>r;++r)this._length[r]=0;return e},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n},{inherits:159,"safe-buffer":190,stream:199}],167:[function(t,e,r){var n=t("lower-case"),i=t("./vendor/non-word-regexp"),u=t("./vendor/camel-case-regexp"),o=t("./vendor/camel-case-upper-regexp");e.exports=function(t,e,r){return null==t?"":(r="string"!=typeof r?" ":r,t=String(t).replace(u,"$1 $2").replace(o,"$1 $2").replace(i,function(t,e,n){return 0===e||e===n.length-t.length?"":r}),n(t,e))}},{"./vendor/camel-case-regexp":168,"./vendor/camel-case-upper-regexp":169,"./vendor/non-word-regexp":170,"lower-case":164}],168:[function(t,e,r){e.exports=/([a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])/g },{}],169:[function(t,e,r){e.exports=/([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A][a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])/g},{}],170:[function(t,e,r){e.exports=/[^A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g},{}],171:[function(t,e,r){(function(t){"use strict";!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var u,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(u=new Array(s-1),o=0;o65536)throw new Error("requested too many random bytes");var o=new n.Uint8Array(t);t>0&&u.getRandomValues(o);var s=i.from(o.buffer);return"function"==typeof e?r.nextTick(function(){e(null,s)}):s}:e.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:172,"safe-buffer":190}],174:[function(t,e,r){e.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":175}],175:[function(t,e,r){"use strict";function n(t){return this instanceof n?(f.call(this,t),h.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i),void 0):new n(t)}function i(){this.allowHalfOpen||this._writableState.ended||o(u,this)}function u(t){t.end()}var o=t("process-nextick-args"),s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=n;var a=t("core-util-is");a.inherits=t("inherits");var f=t("./_stream_readable"),h=t("./_stream_writable");a.inherits(n,f);for(var c=s(h.prototype),l=0;l=t||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=(j<=(r=t)?r=j:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var r}function f(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(S("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?_(h,t):h(t))}function h(t){S("emit readable"),t.emit("readable"),m(t)}function c(t,e){e.readingMore||(e.readingMore=!0,_(l,t,e))}function l(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;return tu.length?u.length:t;if(i+=o===u.length?u:u.slice(0,t),0===(t-=o)){o===u.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=u.slice(o);break}++n}return e.length-=n,i}(t,e):function(t,e){var r=C.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var u=n.data,o=t>u.length?u.length:t;if(u.copy(r,r.length-t,0,o),0===(t-=o)){o===u.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=u.slice(o);break}++i}return e.length-=i,r}(t,e),n}(t,e.buffer,e.decoder),r);var r}function y(t){var e=t._readableState;if(0r;r++)if(t[r]===e)return r;return-1}var _=t("process-nextick-args");e.exports=u;var w,E=t("isarray");u.ReadableState=i,t("events").EventEmitter;var A=function(t,e){return t.listeners(e).length},B=t("./internal/streams/stream"),C=t("safe-buffer").Buffer,F=n.Uint8Array||function(){},x=t("core-util-is");x.inherits=t("inherits");var D=t("util"),S=void 0;S=D&&D.debuglog?D.debuglog("stream"):function(){};var k,M=t("./internal/streams/BufferList"),T=t("./internal/streams/destroy");x.inherits(u,B);var I=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=T.destroy,u.prototype._undestroy=T.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=C.from(t,e),e=""),r=!0),o(this,t,e,!1,r)},u.prototype.unshift=function(t){return o(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(e){return k||(k=t("string_decoder/").StringDecoder),this._readableState.decoder=new k(e),this._readableState.encoding=e,this};var j=8388608;u.prototype.read=function(t){S("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return S("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?y(this):f(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&y(this),null;var n,i=e.needReadable;return S("need readable",i),(0===e.length||e.length-t0?g(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&y(this)),null!==n&&this.emit("data",n),n},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(e,r){S("onunpipe"),e===h&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,S("cleanup"),t.removeListener("close",s),t.removeListener("finish",a),t.removeListener("drain",d),t.removeListener("error",o),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",f),h.removeListener("data",u),g=!0,!c.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function i(){S("onend"),t.end()}function u(e){S("ondata"),(y=!1)!==t.write(e)||y||((1===c.pipesCount&&c.pipes===t||1u;u++)n[u].emit("unpipe",this,r);return this}var o=v(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},u.prototype.addListener=u.prototype.on=function(t,e){var r=B.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&f(this):_(p,this))}return r},u.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(S("resume"),r.flowing=!0,t=this,(e=r).resumeScheduled||(e.resumeScheduled=!0,_(d,t,e))),this},u.prototype.pause=function(){return S("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(S("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",function(){if(S("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){S("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var u=0;u>>0),o=this.head,s=0;o;)e=o.data,r=u,i=s,e.copy(r,i),s+=o.data.length,o=o.next;return u},t}()},{"safe-buffer":190}],181:[function(t,e,r){"use strict";function n(t,e){t.emit("error",e)}var i=t("process-nextick-args");e.exports={destroy:function(t,e){var r=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;u||o?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i(n,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(i(n,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":171}],182:[function(t,e,r){e.exports=t("events").EventEmitter},{events:150}],183:[function(t,e,r){e.exports=t("./readable").PassThrough},{"./readable":184}],184:[function(t,e,r){(((r=e.exports=t("./lib/_stream_readable.js")).Stream=r).Readable=r).Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":175,"./lib/_stream_passthrough.js":176,"./lib/_stream_readable.js":177,"./lib/_stream_transform.js":178,"./lib/_stream_writable.js":179}],185:[function(t,e,r){e.exports=t("./readable").Transform},{"./readable":184}],186:[function(t,e,r){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":179}],187:[function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&0<=Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime"),u=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=t("./runtime"),i)n.regeneratorRuntime=u;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},{"./runtime":188}],188:[function(t,e,r){!function(t){"use strict";function r(t,e,r,u){var o,s,a,h,c=e&&e.prototype instanceof i?e:i,p=Object.create(c.prototype),m=new l(u||[]);return p._invoke=(o=t,s=r,a=m,h=B,function(t,e){if(h===F)throw new Error("Generator is already running");if(h===x){if("throw"===t)throw e;return d()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){var i=f(r,a);if(i){if(i===D)continue;return i}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(h===B)throw h=x,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);h=F;var u=n(o,s,a);if("normal"===u.type){if(h=a.done?x:C,u.arg===D)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(h=x,a.method="throw",a.arg=u.arg)}}),p}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function u(){}function o(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function a(t){var e;this._invoke=function(r,i){function u(){return new Promise(function(e,u){!function o(e,r,i,u){var s=n(t[e],t,r);if("throw"!==s.type){var a=s.arg,f=a.value;return f&&"object"==typeof f&&y.call(f,"__await")?Promise.resolve(f.__await).then(function(t){o("next",t,i,u)},function(t){o("throw",t,i,u)}):Promise.resolve(f).then(function(t){a.value=t,i(a)},u)}u(s.arg)}(r,i,e,u)})}return e=e?e.then(u,u):u()}}function f(t,e){var r=t.iterator[e.method];if(r===m){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=m,f(t,e),"throw"===e.method))return D;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return D}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,D;var u=i.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=m),e.delegate=null,D):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,D)}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function c(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function l(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function p(t){if(t){var e=t[v];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function i(){for(;++r=0;--n){var i=this.tryEntries[n],u=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var o=y.call(i,"catchLoc"),s=y.call(i,"finallyLoc");if(o&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),c(r),D}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;c(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),D}}}}(function(){return this}()||Function("return this")())},{}],189:[function(t,e,r){(function(r){"use strict";function n(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(t,e){return t<>>32-e}function u(t,e,r,n,u,o,s,a){return i(t+(e^r^n)+o+s|0,a)+u|0}function o(t,e,r,n,u,o,s,a){return i(t+(e&r|~e&n)+o+s|0,a)+u|0}function s(t,e,r,n,u,o,s,a){return i(t+((e|~r)^n)+o+s|0,a)+u|0}function a(t,e,r,n,u,o,s,a){return i(t+(e&n|r&~n)+o+s|0,a)+u|0}function f(t,e,r,n,u,o,s,a){return i(t+(e^(r|~n))+o+s|0,a)+u|0}var h=t("inherits"),c=t("hash-base");h(n,c),n.prototype._update=function(){for(var t=new Array(16),e=0;16>e;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,h=this._c,c=this._d,l=this._e;l=u(l,r=u(r,n,h,c,l,t[0],0,11),n,h=i(h,10),c,t[1],0,14),n=u(n=i(n,10),h=u(h,c=u(c,l,r,n,h,t[2],0,15),l,r=i(r,10),n,t[3],0,12),c,l=i(l,10),r,t[4],0,5),c=u(c=i(c,10),l=u(l,r=u(r,n,h,c,l,t[5],0,8),n,h=i(h,10),c,t[6],0,7),r,n=i(n,10),h,t[7],0,9),r=u(r=i(r,10),n=u(n,h=u(h,c,l,r,n,t[8],0,11),c,l=i(l,10),r,t[9],0,13),h,c=i(c,10),l,t[10],0,14),h=u(h=i(h,10),c=u(c,l=u(l,r,n,h,c,t[11],0,15),r,n=i(n,10),h,t[12],0,6),l,r=i(r,10),n,t[13],0,7),l=o(l=i(l,10),r=u(r,n=u(n,h,c,l,r,t[14],0,9),h,c=i(c,10),l,t[15],0,8),n,h=i(h,10),c,t[7],1518500249,7),n=o(n=i(n,10),h=o(h,c=o(c,l,r,n,h,t[4],1518500249,6),l,r=i(r,10),n,t[13],1518500249,8),c,l=i(l,10),r,t[1],1518500249,13),c=o(c=i(c,10),l=o(l,r=o(r,n,h,c,l,t[10],1518500249,11),n,h=i(h,10),c,t[6],1518500249,9),r,n=i(n,10),h,t[15],1518500249,7),r=o(r=i(r,10),n=o(n,h=o(h,c,l,r,n,t[3],1518500249,15),c,l=i(l,10),r,t[12],1518500249,7),h,c=i(c,10),l,t[0],1518500249,12),h=o(h=i(h,10),c=o(c,l=o(l,r,n,h,c,t[9],1518500249,15),r,n=i(n,10),h,t[5],1518500249,9),l,r=i(r,10),n,t[2],1518500249,11),l=o(l=i(l,10),r=o(r,n=o(n,h,c,l,r,t[14],1518500249,7),h,c=i(c,10),l,t[11],1518500249,13),n,h=i(h,10),c,t[8],1518500249,12),n=s(n=i(n,10),h=s(h,c=s(c,l,r,n,h,t[3],1859775393,11),l,r=i(r,10),n,t[10],1859775393,13),c,l=i(l,10),r,t[14],1859775393,6),c=s(c=i(c,10),l=s(l,r=s(r,n,h,c,l,t[4],1859775393,7),n,h=i(h,10),c,t[9],1859775393,14),r,n=i(n,10),h,t[15],1859775393,9),r=s(r=i(r,10),n=s(n,h=s(h,c,l,r,n,t[8],1859775393,13),c,l=i(l,10),r,t[1],1859775393,15),h,c=i(c,10),l,t[2],1859775393,14),h=s(h=i(h,10),c=s(c,l=s(l,r,n,h,c,t[7],1859775393,8),r,n=i(n,10),h,t[0],1859775393,13),l,r=i(r,10),n,t[6],1859775393,6),l=s(l=i(l,10),r=s(r,n=s(n,h,c,l,r,t[13],1859775393,5),h,c=i(c,10),l,t[11],1859775393,12),n,h=i(h,10),c,t[5],1859775393,7),n=a(n=i(n,10),h=a(h,c=s(c,l,r,n,h,t[12],1859775393,5),l,r=i(r,10),n,t[1],2400959708,11),c,l=i(l,10),r,t[9],2400959708,12),c=a(c=i(c,10),l=a(l,r=a(r,n,h,c,l,t[11],2400959708,14),n,h=i(h,10),c,t[10],2400959708,15),r,n=i(n,10),h,t[0],2400959708,14),r=a(r=i(r,10),n=a(n,h=a(h,c,l,r,n,t[8],2400959708,15),c,l=i(l,10),r,t[12],2400959708,9),h,c=i(c,10),l,t[4],2400959708,8),h=a(h=i(h,10),c=a(c,l=a(l,r,n,h,c,t[13],2400959708,9),r,n=i(n,10),h,t[3],2400959708,14),l,r=i(r,10),n,t[7],2400959708,5),l=a(l=i(l,10),r=a(r,n=a(n,h,c,l,r,t[15],2400959708,6),h,c=i(c,10),l,t[14],2400959708,8),n,h=i(h,10),c,t[5],2400959708,6),n=f(n=i(n,10),h=a(h,c=a(c,l,r,n,h,t[6],2400959708,5),l,r=i(r,10),n,t[2],2400959708,12),c,l=i(l,10),r,t[4],2840853838,9),c=f(c=i(c,10),l=f(l,r=f(r,n,h,c,l,t[0],2840853838,15),n,h=i(h,10),c,t[5],2840853838,5),r,n=i(n,10),h,t[9],2840853838,11),r=f(r=i(r,10),n=f(n,h=f(h,c,l,r,n,t[7],2840853838,6),c,l=i(l,10),r,t[12],2840853838,8),h,c=i(c,10),l,t[2],2840853838,13),h=f(h=i(h,10),c=f(c,l=f(l,r,n,h,c,t[10],2840853838,12),r,n=i(n,10),h,t[14],2840853838,5),l,r=i(r,10),n,t[1],2840853838,12),l=f(l=i(l,10),r=f(r,n=f(n,h,c,l,r,t[3],2840853838,13),h,c=i(c,10),l,t[8],2840853838,14),n,h=i(h,10),c,t[11],2840853838,11),n=f(n=i(n,10),h=f(h,c=f(c,l,r,n,h,t[6],2840853838,8),l,r=i(r,10),n,t[15],2840853838,5),c,l=i(l,10),r,t[13],2840853838,6),c=i(c,10);var p=this._a,d=this._b,m=this._c,g=this._d,y=this._e;y=f(y,p=f(p,d,m,g,y,t[5],1352829926,8),d,m=i(m,10),g,t[14],1352829926,9),d=f(d=i(d,10),m=f(m,g=f(g,y,p,d,m,t[7],1352829926,9),y,p=i(p,10),d,t[0],1352829926,11),g,y=i(y,10),p,t[9],1352829926,13),g=f(g=i(g,10),y=f(y,p=f(p,d,m,g,y,t[2],1352829926,15),d,m=i(m,10),g,t[11],1352829926,15),p,d=i(d,10),m,t[4],1352829926,5),p=f(p=i(p,10),d=f(d,m=f(m,g,y,p,d,t[13],1352829926,7),g,y=i(y,10),p,t[6],1352829926,7),m,g=i(g,10),y,t[15],1352829926,8),m=f(m=i(m,10),g=f(g,y=f(y,p,d,m,g,t[8],1352829926,11),p,d=i(d,10),m,t[1],1352829926,14),y,p=i(p,10),d,t[10],1352829926,14),y=a(y=i(y,10),p=f(p,d=f(d,m,g,y,p,t[3],1352829926,12),m,g=i(g,10),y,t[12],1352829926,6),d,m=i(m,10),g,t[6],1548603684,9),d=a(d=i(d,10),m=a(m,g=a(g,y,p,d,m,t[11],1548603684,13),y,p=i(p,10),d,t[3],1548603684,15),g,y=i(y,10),p,t[7],1548603684,7),g=a(g=i(g,10),y=a(y,p=a(p,d,m,g,y,t[0],1548603684,12),d,m=i(m,10),g,t[13],1548603684,8),p,d=i(d,10),m,t[5],1548603684,9),p=a(p=i(p,10),d=a(d,m=a(m,g,y,p,d,t[10],1548603684,11),g,y=i(y,10),p,t[14],1548603684,7),m,g=i(g,10),y,t[15],1548603684,7),m=a(m=i(m,10),g=a(g,y=a(y,p,d,m,g,t[8],1548603684,12),p,d=i(d,10),m,t[12],1548603684,7),y,p=i(p,10),d,t[4],1548603684,6),y=a(y=i(y,10),p=a(p,d=a(d,m,g,y,p,t[9],1548603684,15),m,g=i(g,10),y,t[1],1548603684,13),d,m=i(m,10),g,t[2],1548603684,11),d=s(d=i(d,10),m=s(m,g=s(g,y,p,d,m,t[15],1836072691,9),y,p=i(p,10),d,t[5],1836072691,7),g,y=i(y,10),p,t[1],1836072691,15),g=s(g=i(g,10),y=s(y,p=s(p,d,m,g,y,t[3],1836072691,11),d,m=i(m,10),g,t[7],1836072691,8),p,d=i(d,10),m,t[14],1836072691,6),p=s(p=i(p,10),d=s(d,m=s(m,g,y,p,d,t[6],1836072691,6),g,y=i(y,10),p,t[9],1836072691,14),m,g=i(g,10),y,t[11],1836072691,12),m=s(m=i(m,10),g=s(g,y=s(y,p,d,m,g,t[8],1836072691,13),p,d=i(d,10),m,t[12],1836072691,5),y,p=i(p,10),d,t[2],1836072691,14),y=s(y=i(y,10),p=s(p,d=s(d,m,g,y,p,t[10],1836072691,13),m,g=i(g,10),y,t[0],1836072691,13),d,m=i(m,10),g,t[4],1836072691,7),d=o(d=i(d,10),m=o(m,g=s(g,y,p,d,m,t[13],1836072691,5),y,p=i(p,10),d,t[8],2053994217,15),g,y=i(y,10),p,t[6],2053994217,5),g=o(g=i(g,10),y=o(y,p=o(p,d,m,g,y,t[4],2053994217,8),d,m=i(m,10),g,t[1],2053994217,11),p,d=i(d,10),m,t[3],2053994217,14),p=o(p=i(p,10),d=o(d,m=o(m,g,y,p,d,t[11],2053994217,14),g,y=i(y,10),p,t[15],2053994217,6),m,g=i(g,10),y,t[0],2053994217,14),m=o(m=i(m,10),g=o(g,y=o(y,p,d,m,g,t[5],2053994217,6),p,d=i(d,10),m,t[12],2053994217,9),y,p=i(p,10),d,t[2],2053994217,12),y=o(y=i(y,10),p=o(p,d=o(d,m,g,y,p,t[13],2053994217,9),m,g=i(g,10),y,t[9],2053994217,12),d,m=i(m,10),g,t[7],2053994217,5),d=u(d=i(d,10),m=o(m,g=o(g,y,p,d,m,t[10],2053994217,15),y,p=i(p,10),d,t[14],2053994217,8),g,y=i(y,10),p,t[12],0,8),g=u(g=i(g,10),y=u(y,p=u(p,d,m,g,y,t[15],0,5),d,m=i(m,10),g,t[10],0,12),p,d=i(d,10),m,t[4],0,9),p=u(p=i(p,10),d=u(d,m=u(m,g,y,p,d,t[1],0,12),g,y=i(y,10),p,t[5],0,5),m,g=i(g,10),y,t[8],0,14),m=u(m=i(m,10),g=u(g,y=u(y,p,d,m,g,t[7],0,6),p,d=i(d,10),m,t[6],0,8),y,p=i(p,10),d,t[2],0,13),y=u(y=i(y,10),p=u(p,d=u(d,m,g,y,p,t[13],0,6),m,g=i(g,10),y,t[14],0,5),d,m=i(m,10),g,t[0],0,15),d=u(d=i(d,10),m=u(m,g=u(g,y,p,d,m,t[3],0,13),y,p=i(p,10),d,t[9],0,11),g,y=i(y,10),p,t[11],0,11),g=i(g,10);var b=this._b+h+g|0;this._b=this._c+c+y|0,this._c=this._d+l+p|0,this._d=this._e+r+d|0,this._e=this._a+n+m|0,this._a=b},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56i;){for(var s=Math.min(e.length,u+this._blockSize-i%this._blockSize)-u,a=0;s>a;a++)o[i%this._blockSize+a]=e[a+u];u+=s,(i+=s)%this._blockSize==0&&this._update(o)}return this._s=i,this},r.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var r=this._update(this._block)||this._hash();return t?r.toString(t):r},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=r}).call(this,t("buffer").Buffer)},{buffer:45}],192:[function(t,e,r){(r=e.exports=function(t){t=t.toLowerCase();var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e}).sha=t("./sha"),r.sha1=t("./sha1"),r.sha224=t("./sha224"),r.sha256=t("./sha256"),r.sha384=t("./sha384"),r.sha512=t("./sha512")},{"./sha":193,"./sha1":194,"./sha224":195,"./sha256":196,"./sha384":197,"./sha512":198}],193:[function(t,e,r){(function(r){function n(){this.init(),this._w=s,u.call(this,64,56)}var i=t("inherits"),u=t("./hash"),o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);i(n,u),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e,r,n,i,u,s,a=this._w,f=0|this._a,h=0|this._b,c=0|this._c,l=0|this._d,p=0|this._e,d=0;16>d;++d)a[d]=t.readInt32BE(4*d);for(;80>d;++d)a[d]=a[d-3]^a[d-8]^a[d-14]^a[d-16];for(var m=0;80>m;++m){var g=~~(m/20),y=0|((s=f)<<5|s>>>27)+(n=h,i=c,u=l,0===(r=g)?n&i|~n&u:2===r?n&i|n&u|i&u:n^i^u)+p+a[m]+o[g];p=l,l=c,c=(e=h)<<30|e>>>2,h=f,f=y}this._a=f+this._a|0,this._b=h+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=p+this._e|0},n.prototype._hash=function(){var t=new r(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,buffer:45,inherits:159}],194:[function(t,e,r){(function(r){function n(){this.init(),this._w=s,u.call(this,64,56)}var i=t("inherits"),u=t("./hash"),o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);i(n,u),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(t){for(var e,r,n,i,u,s,a,f=this._w,h=0|this._a,c=0|this._b,l=0|this._c,p=0|this._d,d=0|this._e,m=0;16>m;++m)f[m]=t.readInt32BE(4*m);for(;80>m;++m)f[m]=(e=f[m-3]^f[m-8]^f[m-14]^f[m-16])<<1|e>>>31;for(var g=0;80>g;++g){var y=~~(g/20),b=0|((a=h)<<5|a>>>27)+(i=c,u=l,s=p,0===(n=y)?i&u|~i&s:2===n?i&u|i&s|u&s:i^u^s)+d+f[g]+o[y];d=p,p=l,l=(r=c)<<30|r>>>2,c=h,h=b}this._a=h+this._a|0,this._b=c+this._b|0,this._c=l+this._c|0,this._d=p+this._d|0,this._e=d+this._e|0},n.prototype._hash=function(){var t=new r(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,buffer:45,inherits:159}],195:[function(t,e,r){(function(r){function n(){this.init(),this._w=s,o.call(this,64,56)}var i=t("inherits"),u=t("./sha256"),o=t("./hash"),s=new Array(64);i(n,u),n.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},n.prototype._hash=function(){var t=new r(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,"./sha256":196,buffer:45,inherits:159}],196:[function(t,e,r){(function(r){function n(){this.init(),this._w=s,u.call(this,64,56)}var i=t("inherits"),u=t("./hash"),o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64); i(n,u),n.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},n.prototype._update=function(t){for(var e,r,n,i,u,s,a,f=this._w,h=0|this._a,c=0|this._b,l=0|this._c,p=0|this._d,d=0|this._e,m=0|this._f,g=0|this._g,y=0|this._h,b=0;16>b;++b)f[b]=t.readInt32BE(4*b);for(;64>b;++b)f[b]=0|(((r=f[b-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+f[b-7]+(((e=f[b-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[b-16];for(var v=0;64>v;++v){var _=y+(((a=d)>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+((s=g)^d&(m^s))+o[v]+f[v]|0,w=0|(((u=h)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((n=h)&(i=c)|l&(n|i));y=g,g=m,m=d,d=p+_|0,p=l,l=c,c=h,h=_+w|0}this._a=h+this._a|0,this._b=c+this._b|0,this._c=l+this._c|0,this._d=p+this._d|0,this._e=d+this._e|0,this._f=m+this._f|0,this._g=g+this._g|0,this._h=y+this._h|0},n.prototype._hash=function(){var t=new r(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,buffer:45,inherits:159}],197:[function(t,e,r){(function(r){function n(){this.init(),this._w=s,o.call(this,128,112)}var i=t("inherits"),u=t("./sha512"),o=t("./hash"),s=new Array(160);i(n,u),n.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=new r(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,"./sha512":198,buffer:45,inherits:159}],198:[function(t,e,r){(function(r){function n(){this.init(),this._w=l,h.call(this,128,112)}function i(t,e,r){return r^t&(e^r)}function u(t,e,r){return t&e|r&(t|e)}function o(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function s(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function a(t,e){return e>>>0>t>>>0?1:0}var f=t("inherits"),h=t("./hash"),c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);f(n,h),n.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},n.prototype._update=function(t){for(var e,r,n,f,h,l,p,d,m=this._w,g=0|this._ah,y=0|this._bh,b=0|this._ch,v=0|this._dh,_=0|this._eh,w=0|this._fh,E=0|this._gh,A=0|this._hh,B=0|this._al,C=0|this._bl,F=0|this._cl,x=0|this._dl,D=0|this._el,S=0|this._fl,k=0|this._gl,M=0|this._hl,T=0;32>T;T+=2)m[T]=t.readInt32BE(4*T),m[T+1]=t.readInt32BE(4*T+4);for(;160>T;T+=2){var I=m[T-30],j=m[T-30+1],O=((p=I)>>>1|(d=j)<<31)^(p>>>8|d<<24)^p>>>7,L=((h=j)>>>1|(l=I)<<31)^(h>>>8|l<<24)^(h>>>7|l<<25);I=m[T-4],j=m[T-4+1];var U=((n=I)>>>19|(f=j)<<13)^(f>>>29|n<<3)^n>>>6,R=((e=j)>>>19|(r=I)<<13)^(r>>>29|e<<3)^(e>>>6|r<<26),N=m[T-14],q=m[T-14+1],P=m[T-32],z=m[T-32+1],V=L+q|0,Z=O+N+a(V,L)|0;Z=(Z=Z+U+a(V=V+R|0,R)|0)+P+a(V=V+z|0,z)|0,m[T]=Z,m[T+1]=V}for(var H=0;160>H;H+=2){Z=m[H],V=m[H+1];var G=u(g,y,b),K=u(B,C,F),W=o(g,B),X=o(B,g),Y=s(_,D),J=s(D,_),$=c[H],Q=c[H+1],te=i(_,w,E),ee=i(D,S,k),re=M+J|0,ne=A+Y+a(re,M)|0;ne=(ne=(ne=ne+te+a(re=re+ee|0,ee)|0)+$+a(re=re+Q|0,Q)|0)+Z+a(re=re+V|0,V)|0;var ie=X+K|0,ue=W+G+a(ie,X)|0;A=E,M=k,E=w,k=S,w=_,S=D,_=v+ne+a(D=x+re|0,x)|0,v=b,x=F,b=y,F=C,y=g,C=B,g=ne+ue+a(B=re+ie|0,re)|0}this._al=this._al+B|0,this._bl=this._bl+C|0,this._cl=this._cl+F|0,this._dl=this._dl+x|0,this._el=this._el+D|0,this._fl=this._fl+S|0,this._gl=this._gl+k|0,this._hl=this._hl+M|0,this._ah=this._ah+g+a(this._al,B)|0,this._bh=this._bh+y+a(this._bl,C)|0,this._ch=this._ch+b+a(this._cl,F)|0,this._dh=this._dh+v+a(this._dl,x)|0,this._eh=this._eh+_+a(this._el,D)|0,this._fh=this._fh+w+a(this._fl,S)|0,this._gh=this._gh+E+a(this._gl,k)|0,this._hh=this._hh+A+a(this._hl,M)|0},n.prototype._hash=function(){function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}var e=new r(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=n}).call(this,t("buffer").Buffer)},{"./hash":191,buffer:45,inherits:159}],199:[function(t,e,r){function n(){i.call(this)}e.exports=n;var i=t("events").EventEmitter;t("inherits")(n,i),n.Readable=t("readable-stream/readable.js"),n.Writable=t("readable-stream/writable.js"),n.Duplex=t("readable-stream/duplex.js"),n.Transform=t("readable-stream/transform.js"),n.PassThrough=t("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&f.pause&&f.pause()}function n(){f.readable&&f.resume&&f.resume()}function u(){h||(h=!0,t.end())}function o(){h||(h=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(a(),0===i.listenerCount(this,"error"))throw t}function a(){f.removeListener("data",r),t.removeListener("drain",n),f.removeListener("end",u),f.removeListener("close",o),f.removeListener("error",s),t.removeListener("error",s),f.removeListener("end",a),f.removeListener("close",a),t.removeListener("close",a)}var f=this;f.on("data",r),t.on("drain",n),t._isStdio||e&&!1===e.end||(f.on("end",u),f.on("close",o));var h=!1;return f.on("error",s),t.on("error",s),f.on("end",a),f.on("close",a),t.on("close",a),t.emit("pipe",f),t}},{events:150,inherits:159,"readable-stream/duplex.js":174,"readable-stream/passthrough.js":183,"readable-stream/readable.js":184,"readable-stream/transform.js":185,"readable-stream/writable.js":186}],200:[function(t,e,r){"use strict";function n(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(l.isEncoding===p||!p(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=o,this.end=s,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=a,this.end=f,e=3;break;default:return this.write=h,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=l.allocUnsafe(e)}function i(t){return 127>=t?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�".repeat(r);if(1=55296&&56319>=n)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function a(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function c(t){return t&&t.length?this.write(t):""}var l=t("safe-buffer").Buffer,p=l.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};(r.StringDecoder=n).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return rn)return 0;var u=i(e[n]);return u>=0?(u>0&&(t.lastNeed=u-1),u):--n0&&(t.lastNeed=u-2),u):--n0&&(2===u?u=0:t.lastNeed=u-3),u):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},n.prototype.fillLast=function(t){return this.lastNeed<=t.length?(t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),void(this.lastNeed-=t.length))}},{"safe-buffer":190}],201:[function(t,e,r){var n={tr:{regexp:/[\u0069]/g,map:{i:"İ"}},az:{regexp:/[\u0069]/g,map:{i:"İ"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{"i̇":"I","j̇":"J","į̇":"Į","i̇̀":"Ì","i̇́":"Í","i̇̃":"Ĩ"}}};e.exports=function(t,e){var r=n[e];return t=null==t?"":String(t),r&&(t=t.replace(r.regexp,function(t){return r.map[t]})),t.toUpperCase()}},{}],202:[function(t,e,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],203:[function(t,e,r){arguments[4][159][0].apply(r,arguments)},{dup:159}],204:[function(t,e,r){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],205:[function(t,e,r){(function(e,n){function i(t,e){var n={seen:[],stylize:o};return 3<=arguments.length&&(n.depth=arguments[2]),4<=arguments.length&&(n.colors=arguments[3]),c(e)?n.showHidden=e:e&&r._extend(n,e),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),s(n,t,n.depth)}function u(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function o(t,e){return t}function s(t,e,n){if(t.customInspect&&e&&_(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return d(i)||(i=s(t,i,n)),i}var u=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(d(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return p(e)?t.stylize(""+e,"number"):c(e)?t.stylize(""+e,"boolean"):l(e)?t.stylize("null","null"):void 0}(t,e);if(u)return u;var o,y=Object.keys(e),w=(o={},y.forEach(function(t,e){o[t]=!0}),o);if(t.showHidden&&(y=Object.getOwnPropertyNames(e)),v(e)&&(0<=y.indexOf("message")||0<=y.indexOf("description")))return a(e);if(0===y.length){if(_(e)){var E=e.name?": "+e.name:"";return t.stylize("[Function"+E+"]","special")}if(g(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(b(e))return t.stylize(Date.prototype.toString.call(e),"date");if(v(e))return a(e)}var B,C="",F=!1,x=["{","}"];return h(e)&&(F=!0,x=["[","]"]),_(e)&&(C=" [Function"+(e.name?": "+e.name:"")+"]"),g(e)&&(C=" "+RegExp.prototype.toString.call(e)),b(e)&&(C=" "+Date.prototype.toUTCString.call(e)),v(e)&&(C=" "+a(e)),0!==y.length||F&&0!=e.length?0>n?g(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),B=F?function(t,e,r,n,i){for(var u=[],o=0,s=e.length;s>o;++o)A(e,String(o))?u.push(f(t,e,r,n,String(o),!0)):u.push("");return i.forEach(function(i){i.match(/^\d+$/)||u.push(f(t,e,r,n,i,!0))}),u}(t,e,n,w,y):y.map(function(r){return f(t,e,n,w,r,F)}),t.seen.pop(),function(t,e,r){return 60t?"0"+t.toString(10):t.toString(10)}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var B=/%[sdj%]/g;r.format=function(t){if(!d(t)){for(var e=[],r=0;r=u)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),s=n[r];u>r;s=n[++r])o+=l(s)||!y(s)?" "+s:" "+i(s);return o},r.deprecate=function(t,i){if(m(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var u=!1;return function(){if(!u){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),u=!0}return t.apply(this,arguments)}};var C,F={};r.debuglog=function(t){if(m(C)&&(C=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!F[t])if(new RegExp("\\b"+t+"\\b","i").test(C)){var n=e.pid;F[t]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",t,n,e)}}else F[t]=function(){};return F[t]},(r.inspect=i).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=c,r.isNull=l,r.isNullOrUndefined=function(t){return null==t},r.isNumber=p,r.isString=d,r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=m,r.isRegExp=g,r.isObject=y,r.isDate=b,r.isError=v,r.isFunction=_,r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t("./support/isBuffer");var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){var t,e;console.log("%s - %s",(t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":"),[t.getDate(),x[t.getMonth()],e].join(" ")),r.format.apply(r,arguments))},r.inherits=t("inherits"),r._extend=function(t,e){if(!e||!y(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":204,_process:172,inherits:203}],206:[function(t,e,r){var n;n=this,function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function n(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return m&&(e[Symbol.iterator]=function(){return e}),e}function i(t){this.map={},t instanceof i?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function u(t){return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function o(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function s(t){var e=new FileReader,r=o(e);return e.readAsArrayBuffer(t),r}function a(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var e;(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:g&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:y&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:d&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():b&&g&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=a(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):b&&(ArrayBuffer.prototype.isPrototypeOf(t)||_(t))?this._bodyArrayBuffer=a(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g&&(this.blob=function(){var t=u(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var t,e,r,n=u(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=o(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n