diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100755 index 0000000..176104f --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml new file mode 100755 index 0000000..cad480c --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + AwesomeProject + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100755 index 0000000..319eb0c --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/src/Components/WebView/EOSJS.html b/src/Components/WebView/EOSJS.html new file mode 100644 index 0000000..afe3fff --- /dev/null +++ b/src/Components/WebView/EOSJS.html @@ -0,0 +1,44 @@ + + + + + + + + + + + diff --git a/src/Components/WebView/eos.min.js b/src/Components/WebView/eos.min.js new file mode 100644 index 0000000..9a2b135 --- /dev/null +++ b/src/Components/WebView/eos.min.js @@ -0,0 +1 @@ +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Eos=t()}}(function(){return function u(o,s,a){function f(r,t){if(!s[r]){if(!o[r]){var e="function"==typeof require&&require;if(!t&&e)return e(r,!0);if(h)return h(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[r]={exports:{}};o[r][0].call(i.exports,function(t){var e=o[r][1][t];return f(e||t)},i,i.exports,u,o,s,a)}return s[r].exports}for(var h="function"==typeof require&&require,t=0;tNumber.MAX_SAFE_INTEGER)throw new TypeError("value parameter overflow");t=m.fromString(String(t),e,r)}else if("string"==typeof t)t=m.fromString(t,e,r);else if(!m.isLong(t))throw new TypeError("value parameter is a requied Long, Number or String");return t}var v=".12345abcdefghijklmnopqrstuvwxyz",b=function(t){var e=v.indexOf(t);if(-1===e)throw new TypeError("Invalid character: '"+t+"'");return e};function i(t){var e=!(1u)throw new TypeError("Invalid name "+t);r+=o="0".repeat(u-o.length)+o}var s=m.fromString(r,!0,2),a="",f=e?s.toBytesLE():s.toBytesBE(),h=!0,c=!1,l=void 0;try{for(var p,d=f[Symbol.iterator]();!(h=(p=d.next()).done);h=!0){var g=p.value,y=Number(g).toString(16);a+=(1===y.length?"0":"")+y}}catch(t){c=!0,l=t}finally{try{!h&&d.return&&d.return()}finally{if(c)throw l}}return m.fromString(a,!0,16).toString().toString()}function u(t){var e=!(1, got: "+(void 0===t?"undefined":(0,f.default)(t)));var r=e.amount,n=e.precision,i=e.symbol,u=e.contract;return h(null!=r,"missing amount"),h(null!=n,"missing precision"),h(null!=i,"missing symbol"),h(null!=u,"missing contract"),{amount:r,precision:n,symbol:i,contract:u}},toObject:function(t){if(u.defaults&&null==t)return{amount:"1.0000",precision:4,symbol:"SYS",contract:"eosio.token"};h.equal(void 0===t?"undefined":(0,f.default)(t),"object","expecting extended_asset object");var e=t.amount,r=t.precision,n=t.symbol,i=t.contract;return{amount:c(e,r),precision:r,symbol:n,contract:i}}}},D=function(e,t){var n=t.fixed_bytes65(e);return{fromByteBuffer:function(t){var e=n.fromByteBuffer(t);return i.from(e).toString()},appendByteBuffer:function(t,e){var r=i.from(e);n.appendByteBuffer(t,r.toBuffer())},fromObject:function(t){return i.from(t).toString()},toObject:function(t){return e.defaults&&null==t?"SIG_K1_bas58signature..":i.from(t).toString()}}},x={"authority.fromObject":function(t){if(u.fromString(t))return{threshold:1,keys:[{key:t,weight:1}]};if("string"==typeof t){var e=t.split("@"),r=(0,a.default)(e,2),n=r[0],i=r[1];return{threshold:1,accounts:[{permission:{actor:n,permission:void 0===i?"active":i},weight:1}]}}}},S=function(u){return{"abi.fromObject":function(t){return"string"==typeof t?JSON.parse(t):l.isBuffer(t)?JSON.parse(t.toString()):void 0},"setabi.abi.appendByteBuffer":function(t){t.fields;var e=t.object,r=t.b,n=u("abi_def","eosio"),i=new p(p.DEFAULT_CAPACITY,p.LITTLE_ENDIAN);n.appendByteBuffer(i,e.abi),r.writeVarint32(i.offset),r.append(i.copy(0,i.offset),"binary")}}},k=function(o){return{"setcode.code.fromObject":function(t){var e=t.object,r=t.result;try{var n=e.code.toString();if(/^\s*\(module/.test(n)){var i=o.binaryen;h(null!=i,'required: config.binaryen = require("binaryen")'),o.debug&&console.log("Assembling WASM..");var u=l.from(i.parseText(n).emitBinary());r.code=u}else r.code=e.code}catch(t){throw console.error(t,e.code),t}}}},T=function(h,c){return{"action.data.fromByteBuffer":function(t){var e=t.fields,r=t.object,n=t.b,i=t.config,u=""==(r.name||"")?e.data:h(r.name,r.account);if(u)n.readVarint32(),r.data=u.fromByteBuffer(n,i);else{var o=n.readVarint32(),s=n.copy(n.offset,n.offset+o);n.skip(o),r.data=l.from(s.toBinary(),"binary")}},"action.data.appendByteBuffer":function(t){var e=t.fields,r=t.object,n=t.b,i=""==(r.name||"")?e.data:h(r.name,r.account);if(i){var u=new p(p.DEFAULT_CAPACITY,p.LITTLE_ENDIAN);i.appendByteBuffer(u,r.data),n.writeVarint32(u.offset),n.append(u.copy(0,u.offset),"binary")}else{var o="string"==typeof r.data?new l(r.data,"hex"):r.data;if(!l.isBuffer(o))throw new TypeError("Unknown struct '"+r.name+"' for contract '"+r.account+"', locate this struct or provide serialized action.data");n.writeVarint32(o.length),n.append(o.toString("binary"),"binary")}},"action.data.fromObject":function(t){var e=t.fields,r=t.object,n=t.result,i=r.data,u=r.name,o=""==(u||"")?e.data:h(u,r.account);if(o)if("object"===(void 0===i?"undefined":(0,f.default)(i)))n.data=o.fromObject(i);else{if("string"!=typeof i)throw new TypeError("Expecting hex string or object in action.data");var s=new l(i,"hex");n.data=g.fromBuffer(o,s)}else n.data=i},"action.data.toObject":function(t){var e=t.fields,r=t.object,n=t.result,i=t.config,u=r||{},o=u.data,s=u.name,a=""==(s||"")?e.data:h(s,r.account);if(a){if(c){var f=new p(p.DEFAULT_CAPACITY,p.LITTLE_ENDIAN);return o&&a.appendByteBuffer(f,o),void(n.data=f.copy(0,f.offset).toString("hex"))}n.data=a.toObject(o,i)}else n.data=l.isBuffer(o)?o.toString("hex"):o}}}}).call(this,s("buffer").Buffer)},{"./format":2,"./schema":7,assert:10,"babel-runtime/helpers/slicedToArray":15,"babel-runtime/helpers/typeof":16,buffer:44,bytebuffer:45,"eosjs-ecc":143,fcbuffer:152}],9:[function(e,r,t){(function(_){"use strict";var E=t(e("babel-runtime/helpers/slicedToArray")),S=t(e("babel-runtime/regenerator")),k=t(e("babel-runtime/helpers/typeof"));function t(t){return t&&t.__esModule?t:{default:t}}var T=e("assert"),A=e("eosjs-ecc"),B=e("fcbuffer"),M=e("create-hash"),I=e("eosjs-api").processArgs,j=e("./structs");r.exports=function(t,e,r,n,i){if("string"!=typeof n.chainId)throw new TypeError("config.chainId is required");var a=function(w,v,C,b){var e=function(t,B){return function(){for(var t=arguments.length,e=Array(t),r=0;r, transaction, [options], [callback]"),y=e[0],!n){t.next=67;break}for(T(!u,"callback with contracts are not supported"),T.equal("function",void 0===y?"undefined":(0,k.default)(y),"provide function callback following contracts array parameter"),m=[],b=!(v=!0),_=void 0,t.prev=50,w=n[Symbol.iterator]();!(v=(E=w.next()).done);v=!0)A=E.value,m.push(F(A,B.transaction));t.next=58;break;case 54:t.prev=54,t.t1=t.catch(50),b=!0,_=t.t1;case 58:t.prev=58,t.prev=59,!v&&w.return&&w.return();case 61:if(t.prev=61,!b){t.next=64;break}throw _;case 64:return t.finish(61);case 65:return t.finish(58);case 66:return t.abrupt("return",Promise.all(m).then(function(t){var r={};t.forEach(function(t,e){r[n[e]]=t});var e=o?r:r[n[0]];return D(y,i,e)}));case 67:if("function"!=typeof y){t.next=69;break}return t.abrupt("return",D(y,i,B));case 69:if("object"!==(void 0===y?"undefined":(0,k.default)(y))){t.next=71;break}return t.abrupt("return",x(y,i,u));case 71:throw new Error("first transaction argument unrecognized",y);case 72:case"end":return t.stop()}},null,this,[[18,22,26,34],[27,,29,33],[50,54,58,66],[59,,61,65]])}};function F(o){var t=1e.actor?1:t.actor>=8;for(;0>=8}for(var o=0;t[o]===h&&o>16&255,u[s++]=n>>8&255,u[s++]=255&n;2===i?(n=f[t.charCodeAt(e)]<<2|f[t.charCodeAt(e+1)]>>4,u[s++]=255&n):1===i&&(n=f[t.charCodeAt(e)]<<10|f[t.charCodeAt(e+1)]<<4|f[t.charCodeAt(e+2)]>>2,u[s++]=n>>8&255,u[s++]=255&n);return u},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i="",u=[],o=0,s=r-n;o>2],i+=a[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=a[e>>10],i+=a[e>>4&63],i+=a[e<<2&63],i+="=");return u.push(i),u.join("")};for(var a=[],f=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,u=n.length;i>18&63]+a[i>>12&63]+a[i>>6&63]+a[63&i]);return u.join("")}f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],20:[function(t,e,r){function _(t,e,r){if(!(this instanceof _))return new _(t,e,r);null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}var n=_.prototype;n.__bigi=t("../package.json").version,_.isBigInteger=function(t,e){return t&&t.__bigi&&(!e||t.__bigi===n.__bigi)},_.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},_.prototype.DB=26,_.prototype.DM=67108863;var i=_.prototype.DV=1<<26;_.prototype.FV=Math.pow(2,52),_.prototype.F1=26,_.prototype.F2=0;var u,o,s="0123456789abcdefghijklmnopqrstuvwxyz",a=new Array;for(u="0".charCodeAt(0),o=0;o<=9;++o)a[u++]=o;for(u="a".charCodeAt(0),o=10;o<36;++o)a[u++]=o;for(u="A".charCodeAt(0),o=10;o<36;++o)a[u++]=o;function f(t){return s.charAt(t)}function h(t,e){var r=a[t.charCodeAt(e)];return null==r?-1:r}function y(t){var e=new _;return e.fromInt(t),e}function w(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 m(t){this.m=t}function v(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 b(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function E(){}function A(t){return t}function B(t){this.r2=new _,this.q3=new _,_.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}m.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},m.prototype.revert=function(t){return t},m.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},m.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},m.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.convert=function(t){var e=new _;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)},v.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},v.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0n.DB?(n[n.t-1]|=(s&(1<>n.DB-o):n[n.t-1]|=s<=n.DB&&(o-=n.DB))}8==r&&0!=(128&t[0])&&(n.s=-1,0>u|a,a=(n[r]&o)<=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;0>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=r.DV+i:0=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}0>n.F2:0),p=n.FV/l,d=(1<>a)&&(u=!0,o=f(n));0<=s;)a>(a+=r.DB-e)):(n=r[s]>>(a-=e)&i,a<=0&&(a+=r.DB,--s)),0>3},n.mod=function(t){var e=new _;return this.abs().divRemTo(t,null,e),this.s<0&&02*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=new _;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];n.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36=n&&(r.dMultiply(i),r.dAddOffset(s,0),s=o=0))}0t&&n.subTo(_.ONE.shiftLeft(t-1),n);else{var i=new Array,u=7&t;i.length=1+(t>>3),e.nextBytes(i),0>=r.DB;if(t.t>=r.DB;i+=r.s}else{for(i+=r.s;n>=r.DB;i+=t.s}e.s=i<0?-1:0,0=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;0>1)&&(t=C.length);for(var i=new _(null),u=[],o=0;o>24},n.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.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<>(i+=t.DB-8)):(n=t[e]>>(i-=8)&255,i<=0&&(i+=t.DB,--e)),0!=(128&n)&&(n|=-256),0===u&&(128&t.s)!=(128&n)&&++u,(0=this.t?0!=this.s:0!=(this[e]&1<>i-a&f:(c=(t[p]&(1<>this.DB+i-a)),s=r;0==(1&c);)c>>=1,--s;if((i-=s)<0&&(i+=this.DB,--p),d)o[c].copyTo(u),d=!1;else{for(;1>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);else if("le"===r)for(i=n=0;n>>26-o&67108863,26<=(o+=24)&&(o-=26,i++);return this.strip()},m.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r>>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()},m.prototype._parseBase=function(t,e,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var u=t.length-r,o=u%n,s=Math.min(u,u-o)+r,a=0,f=r;f"};var l=["","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"],p=[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],d=[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];function i(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;f>>26,c=67108863&a,l=Math.min(f,e.length-1),p=Math.max(0,f-t.length+1);p<=l;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()}m.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var n=0,i=0,u=0;u>>24-n&16777215)||u!==this.length-1?l[6-s.length]+s+r:s+r,26<=(n+=2)&&(n-=26,u--)}for(0!==i&&(r=i.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&2<=t&&t<=36){var a=p[t],f=d[t];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var c=h.modn(f).toString(t);r=(h=h.idivn(f)).isZero()?c+r:l[a-c.length]+c+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}y(!1,"Base should be between 2 and 36")},m.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>>=13),64<=e&&(r+=7,e>>>=7),8<=e&&(r+=4,e>>>=4),2<=e&&(r+=2,e>>>=2),r+e},m.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},m.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},m.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},m.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},m.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)},m.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},m.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)},m.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},m.prototype.inotn=function(t){y("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),0>26-r),this.strip()},m.prototype.notn=function(t){return this.clone().inotn(t)},m.prototype.setn=function(t,e){y("number"==typeof t&&0<=t);var r=t/26|0,n=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)},m.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;0>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,g=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,b=0|o[3],_=8191&b,w=b>>>13,E=0|o[4],A=8191&E,B=E>>>13,C=0|o[5],F=8191&C,D=C>>>13,x=0|o[6],S=8191&x,k=x>>>13,T=0|o[7],M=8191&T,I=T>>>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&$,tt=$>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ut=8191&it,ot=it>>>13,st=0|s[7],at=8191&st,ft=st>>>13,ht=0|s[8],ct=8191&ht,lt=ht>>>13,pt=0|s[9],dt=8191&pt,gt=pt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(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)+(yt>>>26)|0,yt&=67108863,n=Math.imul(d,P),i=(i=Math.imul(d,z))+Math.imul(g,P)|0,u=Math.imul(g,z);var mt=(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)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,P),i=(i=Math.imul(m,z))+Math.imul(v,P)|0,u=Math.imul(v,z),n=n+Math.imul(d,Z)|0,i=(i=i+Math.imul(d,H)|0)+Math.imul(g,Z)|0,u=u+Math.imul(g,H)|0;var vt=(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)+(vt>>>26)|0,vt&=67108863,n=Math.imul(_,P),i=(i=Math.imul(_,z))+Math.imul(w,P)|0,u=Math.imul(w,z),n=n+Math.imul(m,Z)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(v,Z)|0,u=u+Math.imul(v,H)|0,n=n+Math.imul(d,K)|0,i=(i=i+Math.imul(d,W)|0)+Math.imul(g,K)|0,u=u+Math.imul(g,W)|0;var bt=(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)+(bt>>>26)|0,bt&=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(m,K)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(v,K)|0,u=u+Math.imul(v,W)|0,n=n+Math.imul(d,Y)|0,i=(i=i+Math.imul(d,J)|0)+Math.imul(g,Y)|0,u=u+Math.imul(g,J)|0;var _t=(f+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((u=u+Math.imul(l,tt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(F,P),i=(i=Math.imul(F,z))+Math.imul(D,P)|0,u=Math.imul(D,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(m,Y)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(v,Y)|0,u=u+Math.imul(v,J)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,Q)|0,u=u+Math.imul(g,tt)|0;var wt=(f+(n=n+Math.imul(c,rt)|0)|0)+((8191&(i=(i=i+Math.imul(c,nt)|0)+Math.imul(l,rt)|0))<<13)|0;f=((u=u+Math.imul(l,nt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=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(D,Z)|0,u=u+Math.imul(D,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(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(v,Q)|0,u=u+Math.imul(v,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,u=u+Math.imul(g,nt)|0;var Et=(f+(n=n+Math.imul(c,ut)|0)|0)+((8191&(i=(i=i+Math.imul(c,ot)|0)+Math.imul(l,ut)|0))<<13)|0;f=((u=u+Math.imul(l,ot)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(M,P),i=(i=Math.imul(M,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(D,K)|0,u=u+Math.imul(D,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(_,tt)|0)+Math.imul(w,Q)|0,u=u+Math.imul(w,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(v,rt)|0,u=u+Math.imul(v,nt)|0,n=n+Math.imul(d,ut)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,ut)|0,u=u+Math.imul(g,ot)|0;var At=(f+(n=n+Math.imul(c,at)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(l,at)|0))<<13)|0;f=((u=u+Math.imul(l,ft)|0)+(i>>>13)|0)+(At>>>26)|0,At&=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(M,Z)|0,i=(i=i+Math.imul(M,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(D,Y)|0,u=u+Math.imul(D,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(B,Q)|0,u=u+Math.imul(B,tt)|0,n=n+Math.imul(_,rt)|0,i=(i=i+Math.imul(_,nt)|0)+Math.imul(w,rt)|0,u=u+Math.imul(w,nt)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ot)|0)+Math.imul(v,ut)|0,u=u+Math.imul(v,ot)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ft)|0)+Math.imul(g,at)|0,u=u+Math.imul(g,ft)|0;var Bt=(f+(n=n+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,lt)|0)+Math.imul(l,ct)|0))<<13)|0;f=((u=u+Math.imul(l,lt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=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(M,K)|0,i=(i=i+Math.imul(M,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,tt)|0)+Math.imul(D,Q)|0,u=u+Math.imul(D,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(B,rt)|0,u=u+Math.imul(B,nt)|0,n=n+Math.imul(_,ut)|0,i=(i=i+Math.imul(_,ot)|0)+Math.imul(w,ut)|0,u=u+Math.imul(w,ot)|0,n=n+Math.imul(m,at)|0,i=(i=i+Math.imul(m,ft)|0)+Math.imul(v,at)|0,u=u+Math.imul(v,ft)|0,n=n+Math.imul(d,ct)|0,i=(i=i+Math.imul(d,lt)|0)+Math.imul(g,ct)|0,u=u+Math.imul(g,lt)|0;var Ct=(f+(n=n+Math.imul(c,dt)|0)|0)+((8191&(i=(i=i+Math.imul(c,gt)|0)+Math.imul(l,dt)|0))<<13)|0;f=((u=u+Math.imul(l,gt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=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(M,Y)|0,i=(i=i+Math.imul(M,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,tt)|0)+Math.imul(k,Q)|0,u=u+Math.imul(k,tt)|0,n=n+Math.imul(F,rt)|0,i=(i=i+Math.imul(F,nt)|0)+Math.imul(D,rt)|0,u=u+Math.imul(D,nt)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(B,ut)|0,u=u+Math.imul(B,ot)|0,n=n+Math.imul(_,at)|0,i=(i=i+Math.imul(_,ft)|0)+Math.imul(w,at)|0,u=u+Math.imul(w,ft)|0,n=n+Math.imul(m,ct)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(v,ct)|0,u=u+Math.imul(v,lt)|0;var Ft=(f+(n=n+Math.imul(d,dt)|0)|0)+((8191&(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))<<13)|0;f=((u=u+Math.imul(g,gt)|0)+(i>>>13)|0)+(Ft>>>26)|0,Ft&=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(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(I,Q)|0,u=u+Math.imul(I,tt)|0,n=n+Math.imul(S,rt)|0,i=(i=i+Math.imul(S,nt)|0)+Math.imul(k,rt)|0,u=u+Math.imul(k,nt)|0,n=n+Math.imul(F,ut)|0,i=(i=i+Math.imul(F,ot)|0)+Math.imul(D,ut)|0,u=u+Math.imul(D,ot)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ft)|0)+Math.imul(B,at)|0,u=u+Math.imul(B,ft)|0,n=n+Math.imul(_,ct)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(w,ct)|0,u=u+Math.imul(w,lt)|0;var Dt=(f+(n=n+Math.imul(m,dt)|0)|0)+((8191&(i=(i=i+Math.imul(m,gt)|0)+Math.imul(v,dt)|0))<<13)|0;f=((u=u+Math.imul(v,gt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=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,tt)|0)+Math.imul(L,Q)|0,u=u+Math.imul(L,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(I,rt)|0,u=u+Math.imul(I,nt)|0,n=n+Math.imul(S,ut)|0,i=(i=i+Math.imul(S,ot)|0)+Math.imul(k,ut)|0,u=u+Math.imul(k,ot)|0,n=n+Math.imul(F,at)|0,i=(i=i+Math.imul(F,ft)|0)+Math.imul(D,at)|0,u=u+Math.imul(D,ft)|0,n=n+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(B,ct)|0,u=u+Math.imul(B,lt)|0;var xt=(f+(n=n+Math.imul(_,dt)|0)|0)+((8191&(i=(i=i+Math.imul(_,gt)|0)+Math.imul(w,dt)|0))<<13)|0;f=((u=u+Math.imul(w,gt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(R,Q),i=(i=Math.imul(R,tt))+Math.imul(N,Q)|0,u=Math.imul(N,tt),n=n+Math.imul(O,rt)|0,i=(i=i+Math.imul(O,nt)|0)+Math.imul(L,rt)|0,u=u+Math.imul(L,nt)|0,n=n+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(I,ut)|0,u=u+Math.imul(I,ot)|0,n=n+Math.imul(S,at)|0,i=(i=i+Math.imul(S,ft)|0)+Math.imul(k,at)|0,u=u+Math.imul(k,ft)|0,n=n+Math.imul(F,ct)|0,i=(i=i+Math.imul(F,lt)|0)+Math.imul(D,ct)|0,u=u+Math.imul(D,lt)|0;var St=(f+(n=n+Math.imul(A,dt)|0)|0)+((8191&(i=(i=i+Math.imul(A,gt)|0)+Math.imul(B,dt)|0))<<13)|0;f=((u=u+Math.imul(B,gt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(R,rt),i=(i=Math.imul(R,nt))+Math.imul(N,rt)|0,u=Math.imul(N,nt),n=n+Math.imul(O,ut)|0,i=(i=i+Math.imul(O,ot)|0)+Math.imul(L,ut)|0,u=u+Math.imul(L,ot)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ft)|0)+Math.imul(I,at)|0,u=u+Math.imul(I,ft)|0,n=n+Math.imul(S,ct)|0,i=(i=i+Math.imul(S,lt)|0)+Math.imul(k,ct)|0,u=u+Math.imul(k,lt)|0;var kt=(f+(n=n+Math.imul(F,dt)|0)|0)+((8191&(i=(i=i+Math.imul(F,gt)|0)+Math.imul(D,dt)|0))<<13)|0;f=((u=u+Math.imul(D,gt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(R,ut),i=(i=Math.imul(R,ot))+Math.imul(N,ut)|0,u=Math.imul(N,ot),n=n+Math.imul(O,at)|0,i=(i=i+Math.imul(O,ft)|0)+Math.imul(L,at)|0,u=u+Math.imul(L,ft)|0,n=n+Math.imul(M,ct)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(I,ct)|0,u=u+Math.imul(I,lt)|0;var Tt=(f+(n=n+Math.imul(S,dt)|0)|0)+((8191&(i=(i=i+Math.imul(S,gt)|0)+Math.imul(k,dt)|0))<<13)|0;f=((u=u+Math.imul(k,gt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(R,at),i=(i=Math.imul(R,ft))+Math.imul(N,at)|0,u=Math.imul(N,ft),n=n+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(L,ct)|0,u=u+Math.imul(L,lt)|0;var Mt=(f+(n=n+Math.imul(M,dt)|0)|0)+((8191&(i=(i=i+Math.imul(M,gt)|0)+Math.imul(I,dt)|0))<<13)|0;f=((u=u+Math.imul(I,gt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(R,ct),i=(i=Math.imul(R,lt))+Math.imul(N,ct)|0,u=Math.imul(N,lt);var It=(f+(n=n+Math.imul(O,dt)|0)|0)+((8191&(i=(i=i+Math.imul(O,gt)|0)+Math.imul(L,dt)|0))<<13)|0;f=((u=u+Math.imul(L,gt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863;var jt=(f+(n=Math.imul(R,dt))|0)+((8191&(i=(i=Math.imul(R,gt))+Math.imul(N,dt)|0))<<13)|0;return f=((u=Math.imul(N,gt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,a[0]=yt,a[1]=mt,a[2]=vt,a[3]=bt,a[4]=_t,a[5]=wt,a[6]=Et,a[7]=At,a[8]=Bt,a[9]=Ct,a[10]=Ft,a[11]=Dt,a[12]=xt,a[13]=St,a[14]=kt,a[15]=Tt,a[16]=Mt,a[17]=It,a[18]=jt,0!==f&&(a[19]=f,r.length++),r};function s(t,e,r){return(new a).mulp(t,e,r)}function a(t,e){this.x=t,this.y=e}Math.imul||(u=i),m.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?u(this,t,e):r<63?i(this,t,e):r<1024?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>>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):s(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),r=m.prototype._countBits(t)-1,n=0;n>=1;return n},a.prototype.permute=function(t,e,r,n,i,u){for(var o=0;o>>=1)i++;return 1<>>=13,r[2*u+1]=8191&i,i>>>=13;for(u=2*e;u>=26,e+=n/67108864|0,e+=i>>>26,this.words[r]=67108863&i}return 0!==e&&(this.words[r]=e,this.length++),this},m.prototype.muln=function(t){return this.clone().imuln(t)},m.prototype.sqr=function(){return this.mul(this)},m.prototype.isqr=function(){return this.imul(this.clone())},m.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 m(1);for(var r=this,n=0;n>>26-r<<26-r;if(0!==r){var u=0;for(e=0;e>>26-r}u&&(this.words[e]=u,this.length++)}if(0!==n){for(e=this.length-1;0<=e;e--)this.words[e+n]=this.words[e];for(e=0;e>>i<u)for(this.length-=u,a=0;a>>i,f=h&o}return s&&0!==f&&(s.words[s.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},m.prototype.ishrn=function(t,e,r){return y(0===this.negative),this.iushrn(t,e,r)},m.prototype.shln=function(t){return this.clone().ishln(t)},m.prototype.ushln=function(t){return this.clone().iushln(t)},m.prototype.shrn=function(t){return this.clone().ishrn(t)},m.prototype.ushrn=function(t){return this.clone().iushrn(t)},m.prototype.testn=function(t){y("number"==typeof t&&0<=t);var e=t%26,r=(t-e)/26,n=1<>>e<>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===o)return this.strip();for(y(-1===o),n=o=0;n>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},m.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,u=0|i.words[i.length-1];0!==(r=26-this._countBits(u))&&(i=i.ushln(r),n.iushln(r),u=0|i.words[i.length-1]);var o,s=n.length-i.length;if("mod"!==e){(o=new m(null)).length=s+1,o.words=new Array(o.length);for(var a=0;athis.length||this.cmp(t)<0?{div:new m(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new m(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new m(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,i,u},m.prototype.div=function(t){return this.divmod(t,"div",!1).div},m.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},m.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},m.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 u<0||1===i&&0===u?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},m.prototype.modn=function(t){y(t<=67108863);for(var e=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(e*r+(0|this.words[n]))%t;return r},m.prototype.idivn=function(t){y(t<=67108863);for(var e=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*e;this.words[r]=n/t|0,e=n%t}return this.strip()},m.prototype.divn=function(t){return this.clone().idivn(t)},m.prototype.egcd=function(t){y(0===t.negative),y(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new m(1),i=new m(0),u=new m(0),o=new m(1),s=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++s;for(var a=r.clone(),f=e.clone();!e.isZero();){for(var h=0,c=1;0==(e.words[0]&c)&&h<26;++h,c<<=1);if(0>>26,o&=67108863,this.words[u]=o}return 0!==i&&(this.words[u]=i,this.length++),this},m.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},m.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1t.length)return 1;if(this.lengththis.n;);var n=e>>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},m._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new g;else if("p224"===t)e=new v;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return f[t]=e},w.prototype._verify1=function(t){y(0===t.negative,"red works only with positives"),y(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){y(0==(t.negative|e.negative),"red works only with positives"),y(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.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)},w.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},w.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)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(y(e%2==1),3===e){var r=this.m.add(new m(1)).iushrn(2);return this.pow(t,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);y(!n.isZero());var u=new m(1).toRed(this),o=u.redNeg(),s=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new m(2*a*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var f=this.pow(a,n),h=this.pow(t,n.addn(1).iushrn(1)),c=this.pow(t,n),l=i;0!==c.cmp(u);){for(var p=c,d=0;0!==p.cmp(u);d++)p=p.redSqr();y(d>f&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==u?(u<<=1,u|=h,(4===++o||0===n&&0===f)&&(i=this.mul(i,r[u]),u=o=0)):o=0}s=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},m.mont=function(t){return new E(t)},r(E,w),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new m(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),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)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:25}],25:[function(t,e,r){},{}],26:[function(t,e,r){var i=t("safe-buffer").Buffer;function u(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,r=new Array(e),n=0;n>>24]^h[d>>>16&255]^c[g>>>8&255]^l[255&y]^e[m++],o=f[d>>>24]^h[g>>>16&255]^c[y>>>8&255]^l[255&p]^e[m++],s=f[g>>>24]^h[y>>>16&255]^c[p>>>8&255]^l[255&d]^e[m++],a=f[y>>>24]^h[p>>>16&255]^c[d>>>8&255]^l[255&g]^e[m++],p=u,d=o,g=s,y=a;return u=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[g>>>8&255]<<8|n[255&y])^e[m++],o=(n[d>>>24]<<24|n[g>>>16&255]<<16|n[y>>>8&255]<<8|n[255&p])^e[m++],s=(n[g>>>24]<<24|n[y>>>16&255]<<16|n[p>>>8&255]<<8|n[255&d])^e[m++],a=(n[y>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[255&g])^e[m++],[u>>>=0,o>>>=0,s>>>=0,a>>>=0]}var c=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],u=[[],[],[],[]],o=0,s=0,a=0;a<256;++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}}();function s(t){this._key=u(t),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],u=0;u>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=c[u/e|0]<<24):6>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),i[u]=i[u-e]^o}for(var s=[],a=0;a>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(t){return o(t=u(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},s.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=i.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},s.prototype.decryptBlock=function(t){var e=(t=u(t))[1];t[1]=t[3],t[3]=e;var r=o(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},e.exports.AES=s},{"safe-buffer":189}],27:[function(t,e,r){var u=t("./aes"),o=t("safe-buffer").Buffer,s=t("cipher-base"),n=t("inherits"),a=t("./ghash"),i=t("buffer-xor");function f(t,e,r,n){s.call(this),this._finID=o.concat([r,o.from([0,0,0,1])]),r=o.concat([r,o.from([0,0,0,2])]),this._cipher=new u.AES(e),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=t;var i=o.alloc(4,0);this._ghash=new a(this._cipher.encryptBlock(i)),this._authTag=null,this._called=!1}n(f,s),f.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.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},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=i(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;i>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function u(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}u.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},u.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},u.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},e.exports=u},{"safe-buffer":189}],32:[function(t,e,r){var i=t("buffer-xor");r.encrypt=function(t,e){var r=i(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 n=t._cipher.decryptBlock(e);return i(n,r)}},{"buffer-xor":43}],33:[function(t,e,r){var u=t("safe-buffer").Buffer,o=t("buffer-xor");function s(t,e,r){var n=e.length,i=o(e,t._cache);return t._cache=t._cache.slice(n),t._prev=u.concat([t._prev,r?e:i]),i}r.encrypt=function(t,e,r){for(var n,i=u.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=u.allocUnsafe(0)),!(t._cache.length<=e.length)){i=u.concat([i,s(t,e,r)]);break}n=t._cache.length,i=u.concat([i,s(t,e.slice(0,n),r)]),e=e.slice(n)}return i}},{"buffer-xor":43,"safe-buffer":189}],34:[function(t,e,r){var o=t("safe-buffer").Buffer;function s(t,e,r){for(var n,i,u=-1,o=0;++u<8;)n=e&1<<7-u?128:0,o+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>u%8,t._prev=a(t._prev,r?n:i);return o}function a(t,e){var r=t.length,n=-1,i=o.allocUnsafe(t.length);for(t=o.concat([t,o.from([e])]);++n>7;return i}r.encrypt=function(t,e,r){for(var n=e.length,i=o.allocUnsafe(n),u=-1;++u>>1;case"base64":return j(t).length;default:if(n)return I(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function g(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var u,o=1,s=t.length,a=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;s/=o=2,a/=2,r/=2}function f(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var h=-1;for(u=r;u>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var e=t.length;if(e<=w)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return A(this,e,r);case"base64":return b(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",e=r.INSPECT_MAX_BYTES;return 0e&&(t+=" ... ")),""},c.prototype.compare=function(t,e,r,n,i){if(!c.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===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var u=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),s=Math.min(u,o),a=this.slice(n,i),f=t.slice(e,r),h=0;h>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var u,o,s,a,f,h,c,l,p,d=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return l=e,p=r,O(I(t,(c=this).length-l),c,l,p);case"ascii":return v(this,t,e,r);case"latin1":case"binary":return v(this,t,e,r);case"base64":return a=this,f=e,h=r,O(j(t),a,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o=e,s=r,O(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(d)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;it.length)throw new RangeError("Index out of range")}function x(t,e,r,n,i,u){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function S(t,e,r,n,i){return e=+e,r>>>=0,i||x(t,0,r,4),u.write(t,e,r,n,23,4),r+4}function k(t,e,r,n,i){return e=+e,r>>>=0,i||x(t,0,r,8),u.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):r>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t],i=1,u=0;++u>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t+--e],i=1;0>>=0,e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||F(t,e,this.length);for(var n=this[t],i=1,u=0;++u>>=0,e>>>=0,r||F(t,e,this.length);for(var n=e,i=1,u=this[t+--n];0>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||F(t,4,this.length),u.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),u.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),u.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),u.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||D(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)||D(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},c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(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},c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(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},c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(this,t,e,r,i-1,-i)}var u=0,o=1,s=0;for(this[e]=255&t;++u>0)-s&255;return e+r},c.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);D(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);)t<0&&0===s&&0!==this[e+u+1]&&(s=1),this[e+u]=(t/o>>0)-s&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||D(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},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||D(this,t,e,4,2147483647,-2147483648),t<0&&(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},c.prototype.writeFloatLE=function(t,e,r){return S(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return S(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return k(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return k(this,t,e,!1,r)},c.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),0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(u=e;u>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;u.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))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 j(t){return n.toByteArray(function(t){if((t=t.trim().replace(T,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function O(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function L(t){return t instanceof ArrayBuffer||null!=t&&null!=t.constructor&&"ArrayBuffer"===t.constructor.name&&"number"==typeof t.byteLength}function U(t){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(t)}function R(t){return t!=t}},{"base64-js":19,ieee754:157}],45:[function(e,t,r){var n,i;n=this,i=function(a){"use strict";var d=function(t,e,r){if(void 0===t&&(t=d.DEFAULT_CAPACITY),void 0===e&&(e=d.DEFAULT_ENDIAN),void 0===r&&(r=d.DEFAULT_NOASSERT),!r){if((t|=0)<0)throw RangeError("Illegal capacity");e=!!e,r=!!r}this.buffer=0===t?u: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};d.VERSION="5.0.1",d.LITTLE_ENDIAN=!0,d.BIG_ENDIAN=!1,d.DEFAULT_CAPACITY=16,d.DEFAULT_ENDIAN=d.BIG_ENDIAN,d.DEFAULT_NOASSERT=!1,d.Long=a||null;var o=d.prototype;o.__isByteBuffer__,Object.defineProperty(o,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var u=new ArrayBuffer(0),r=String.fromCharCode;function s(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;0>=-h,h+=n;0>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:u-1,d=n?1:-1,g=e<0||0===e&&1/e<0?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+=1<=o+c?l/a:l*Math.pow(2,1-c))*a&&(o++,a/=2),h<=o+c?(s=0,o=h):1<=o+c?(s=(e*a-1)*Math.pow(2,i),o+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,i),o=0));8<=i;t[r+p]=255&s,p+=d,s/=256,i-=8);for(o=o<>>=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(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(o>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 ne?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 ne?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 ne?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 ne?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 ne?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 ne?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,a&&(o.writeInt64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"==typeof t)t=a.fromNumber(t);else if("string"==typeof t)t=a.fromString(t);else if(!(t&&t instanceof a))throw TypeError("Illegal value: "+t+" (not an integer or Long)");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)}"number"==typeof t?t=a.fromNumber(t):"string"==typeof t&&(t=a.fromString(t)),e+=8;var n=this.buffer.byteLength;ne?n:e),e-=8;var i=t.low,u=t.high;return this.littleEndian?(this.view[e+3]=i>>>24&255,this.view[e+2]=i>>>16&255,this.view[e+1]=i>>>8&255,this.view[e]=255&i,e+=4,this.view[e+3]=u>>>24&255,this.view[e+2]=u>>>16&255,this.view[e+1]=u>>>8&255,this.view[e]=255&u):(this.view[e]=u>>>24&255,this.view[e+1]=u>>>16&255,this.view[e+2]=u>>>8&255,this.view[e+3]=255&u,e+=4,this.view[e]=i>>>24&255,this.view[e+1]=i>>>16&255,this.view[e+2]=i>>>8&255,this.view[e+3]=255&i),r&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=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=0,n=0;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,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var i=new a(r,n,!1);return e&&(this.offset+=8),i},o.readLong=o.readInt64,o.writeUint64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"==typeof t)t=a.fromNumber(t);else if("string"==typeof t)t=a.fromString(t);else if(!(t&&t instanceof a))throw TypeError("Illegal value: "+t+" (not an integer or Long)");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)}"number"==typeof t?t=a.fromNumber(t):"string"==typeof t&&(t=a.fromString(t)),e+=8;var n=this.buffer.byteLength;ne?n:e),e-=8;var i=t.low,u=t.high;return this.littleEndian?(this.view[e+3]=i>>>24&255,this.view[e+2]=i>>>16&255,this.view[e+1]=i>>>8&255,this.view[e]=255&i,e+=4,this.view[e+3]=u>>>24&255,this.view[e+2]=u>>>16&255,this.view[e+1]=u>>>8&255,this.view[e]=255&u):(this.view[e]=u>>>24&255,this.view[e+1]=u>>>16&255,this.view[e+2]=u>>>8&255,this.view[e+3]=255&u,e+=4,this.view[e]=i>>>24&255,this.view[e+1]=i>>>16&255,this.view[e+2]=i>>>8&255,this.view[e+3]=255&i),r&&(this.offset+=8),this},o.writeUInt64=o.writeUint64,o.readUint64=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=0,n=0;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,t+=4,n=this.view[t+2]<<16,n|=this.view[t+1]<<8,n|=this.view[t],n+=this.view[t+3]<<24>>>0):(n=this.view[t+1]<<16,n|=this.view[t+2]<<8,n|=this.view[t+3],n+=this.view[t]<<24>>>0,t+=4,r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0);var i=new a(r,n,!0);return e&&(this.offset+=8),i},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 ne?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 ne?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,d.MAX_VARINT32_BYTES=5,d.calculateVarint32=function(t){return(t>>>=0)<128?1:t<16384?2:t<1<<21?3:t<1<<28?4:5},d.zigZagEncode32=function(t){return((t|=0)<<1^t>>31)>>>0},d.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=d.calculateVarint32(t);e+=i;var u=this.buffer.byteLength;for(ue?u:e),e-=i,t>>>=0;128<=t;)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(d.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++],n<5&&(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=d.zigZagDecode32(e.value):e=d.zigZagDecode32(e),e},a&&(d.MAX_VARINT64_BYTES=10,d.calculateVarint64=function(t){"number"==typeof t?t=a.fromNumber(t):"string"==typeof t&&(t=a.fromString(t));var e=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,n=t.shiftRightUnsigned(56).toInt()>>>0;return 0==n?0==r?e<16384?e<128?1:2:e<1<<21?3:4:r<16384?r<128?5:6:r<1<<21?7:8:n<128?9:10},d.zigZagEncode64=function(t){return"number"==typeof t?t=a.fromNumber(t,!1):"string"==typeof t?t=a.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},d.zigZagDecode64=function(t){return"number"==typeof t?t=a.fromNumber(t,!1):"string"==typeof t?t=a.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(a.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"==typeof t)t=a.fromNumber(t);else if("string"==typeof t)t=a.fromString(t);else if(!(t&&t instanceof a))throw TypeError("Illegal value: "+t+" (not an integer or Long)");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)}"number"==typeof t?t=a.fromNumber(t,!1):"string"==typeof t?t=a.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned());var n=d.calculateVarint64(t),i=t.toInt()>>>0,u=t.shiftRightUnsigned(28).toInt()>>>0,o=t.shiftRightUnsigned(56).toInt()>>>0;e+=n;var s=this.buffer.byteLength;switch(se?s:e),e-=n,n){case 10:this.view[e+9]=o>>>7&1;case 9:this.view[e+8]=9!==n?128|o:127&o;case 8:this.view[e+7]=8!==n?u>>>21|128:u>>>21&127;case 7:this.view[e+6]=7!==n?u>>>14|128:u>>>14&127;case 6:this.view[e+5]=6!==n?u>>>7|128:u>>>7&127;case 5:this.view[e+4]=5!==n?128|u:127&u;case 4:this.view[e+3]=4!==n?i>>>21|128:i>>>21&127;case 3:this.view[e+2]=3!==n?i>>>14|128:i>>>14&127;case 2:this.view[e+1]=2!==n?i>>>7|128:i>>>7&127;case 1:this.view[e]=1!==n?128|i:127&i}return r?(this.offset+=n,this):n},o.writeVarint64ZigZag=function(t,e){return this.writeVarint64(d.zigZagEncode64(t),e)},o.readVarint64=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=0,i=0,u=0,o=0;if(n=127&(o=this.view[t++]),128&o&&(n|=(127&(o=this.view[t++]))<<7,(128&o||this.noAssert&&void 0===o)&&(n|=(127&(o=this.view[t++]))<<14,(128&o||this.noAssert&&void 0===o)&&(n|=(127&(o=this.view[t++]))<<21,(128&o||this.noAssert&&void 0===o)&&(i=127&(o=this.view[t++]),(128&o||this.noAssert&&void 0===o)&&(i|=(127&(o=this.view[t++]))<<7,(128&o||this.noAssert&&void 0===o)&&(i|=(127&(o=this.view[t++]))<<14,(128&o||this.noAssert&&void 0===o)&&(i|=(127&(o=this.view[t++]))<<21,(128&o||this.noAssert&&void 0===o)&&(u=127&(o=this.view[t++]),(128&o||this.noAssert&&void 0===o)&&(u|=(127&(o=this.view[t++]))<<7,128&o||this.noAssert&&void 0===o))))))))))throw Error("Buffer overrun");var s=a.fromBits(n|i<<28,i>>>4|u<<24,!1);return e?(this.offset=t,s):{value:s,length:t-r}},o.readVarint64ZigZag=function(t){var e=this.readVarint64(t);return e&&e.value instanceof a?e.value=d.zigZagDecode64(e.value):e=d.zigZagDecode64(e),e}),o.writeCString=function(t,e){var r=void 0===e;r&&(e=this.offset);var n,i=t.length;if(!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");for(n=0;n>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}i=l.calculateUTF16asUTF8(s(t))[1],e+=i+1;var u=this.buffer.byteLength;return ue?u:e),e-=i+1,l.encodeUTF16toUTF8(s(t),function(t){this.view[e++]=t}.bind(this)),this.view[e++]=0,r?(this.offset=e,this):i},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 r,n=t,i=-1;return l.decodeUTF8toUTF16(function(){if(0===i)return null;if(t>=this.limit)throw RangeError("Illegal range: Truncated data, "+t+" < "+this.limit);return 0===(i=this.view[t++])?null:i}.bind(this),r=f(),!0),e?(this.offset=t,r()):{string:r(),length:t-n}},o.writeIString=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");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)}var n,i=e;n=l.calculateUTF16asUTF8(s(t),this.noAssert)[1],e+=4+n;var u=this.buffer.byteLength;if(ue?u:e),e-=4+n,this.littleEndian?(this.view[e+3]=n>>>24&255,this.view[e+2]=n>>>16&255,this.view[e+1]=n>>>8&255,this.view[e]=255&n):(this.view[e]=n>>>24&255,this.view[e+1]=n>>>16&255,this.view[e+2]=n>>>8&255,this.view[e+3]=255&n),e+=4,l.encodeUTF16toUTF8(s(t),function(t){this.view[e++]=t}.bind(this)),e!==i+4+n)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+4+n));return r?(this.offset=e,this):e-i},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,d.METRICS_BYTES,t+=4);return t+=i.length,e?(this.offset=t,i.string):{string:i.string,length:t-r}},d.METRICS_CHARS="c",d.METRICS_BYTES="b",o.writeUTF8String=function(t,e){var r,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var i=e;r=l.calculateUTF16asUTF8(s(t))[1],e+=r;var u=this.buffer.byteLength;return ue?u:e),e-=r,l.encodeUTF16toUTF8(s(t),function(t){this.view[e++]=t}.bind(this)),n?(this.offset=e,this):e-i},o.writeString=o.writeUTF8String,d.calculateUTF8Chars=function(t){return l.calculateUTF16asUTF8(s(t))[0]},d.calculateUTF8Bytes=function(t){return l.calculateUTF16asUTF8(s(t))[1]},d.calculateString=d.calculateUTF8Bytes,o.readUTF8String=function(t,e,r){"number"==typeof e&&(r=e,e=void 0);var n=void 0===r;if(n&&(r=this.offset),void 0===e&&(e=d.METRICS_CHARS),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");if(t|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var i,u=0,o=r;if(e===d.METRICS_CHARS){if(i=f(),l.decodeUTF8(function(){return u>>=0)<0||r+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+"+t+") <= "+this.buffer.byteLength)}var s=r+t;if(l.decodeUTF8toUTF16(function(){return r>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n,i,u=e;n=l.calculateUTF16asUTF8(s(t),this.noAssert)[1],i=d.calculateVarint32(n),e+=i+n;var o=this.buffer.byteLength;if(oe?o:e),e-=i+n,e+=this.writeVarint32(n,e),l.encodeUTF16toUTF8(s(t),function(t){this.view[e++]=t}.bind(this)),e!==u+n+i)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+n+i));return r?(this.offset=e,this):e-u},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,d.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 d||(t=d.wrap(t,e));var i=t.limit-t.offset;if(i<=0)return this;r+=i;var u=this.buffer.byteLength;return ur?u: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 d(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,t<0||ethis.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=u,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,t<0||ethis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(t===e)return new d(0,this.littleEndian,this.noAssert);var r=e-t,n=new d(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,u;if(!this.noAssert&&!d.isByteBuffer(t))throw TypeError("Illegal target: Not a ByteBuffer");if(e=(u=void 0===e)?t.offset:0|e,r=(i=void 0===r)?this.offset:0|r,n=void 0===n?this.limit:0|n,e<0||e>t.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+e+" <= "+t.buffer.byteLength);if(r<0||n>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+r+" <= "+this.buffer.byteLength);var o=n-r;return 0===o?t:(t.ensureCapacity(e+o),t.view.set(this.view.subarray(r,n),e),i&&(this.offset+=o),u&&(t.offset+=o),this)},o.ensureCapacity=function(t){var e=this.buffer.byteLength;return et?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,e<0||rthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(r<=e)return this;for(;e>>=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 d||(t=d.wrap(t,e));var i=t.limit-t.offset;if(i<=0)return this;var u=i-r;if(0>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||ethis.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&&(e<0||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,t<0||ethis.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,e<0||rthis.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 u;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 h=function(){for(var t={},i=[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],o=[],e=0,r=i.length;e>2&63]),n=(3&r)<<4,null!==(r=t())?(e(i[63&((n|=r>>4&15)|r>>4&15)]),n=(15&r)<<2,null!==(r=t())?(e(i[63&(n|r>>6&3)]),e(i[63&r])):(e(i[63&n]),e(61))):(e(i[63&n]),e(61),e(61))},t.decode=function(t,e){var r,n,i;function u(t){throw Error("Illegal character code: "+t)}for(;null!==(r=t());)if(void 0===(n=o[r])&&u(r),null!==(r=t())&&(void 0===(i=o[r])&&u(r),e(n<<2>>>0|(48&i)>>4),null!==(r=t()))){if(void 0===(n=o[r])){if(61===r)break;u(r)}if(e((15&i)<<4>>>0|(60&n)>>2),null!==(r=t())){if(void 0===(i=o[r])){if(61===r)break;u(r)}e((3&n)<<6>>>0|i)}}},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||ethis.capacity()||e":i+=r===this.markedOffset?"'":t||0!==r&&r!==n?" ":""}if(t&&" "!==i){for(;i.length<51;)i+=" ";o+=i+u+"\n"}return t?o:i},d.fromDebug=function(t,e,r){for(var n,i,u=t.length,o=new d((u+1)/3|0,e,r),s=0,a=0,f=!1,h=!1,c=!1,l=!1,p=!1;s":if(!r){if(l){p=!0;break}l=!0}o.limit=a,f=!1;break;case"'":if(!r){if(c){p=!0;break}c=!0}o.markedOffset=a,f=!1;break;case" ":f=!1;break;default:if(!r&&f){p=!0;break}if(i=parseInt(n+t.charAt(s++),16),!r&&(isNaN(i)||i<0||255>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||ethis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}for(var r,n=new Array(e-t);t>6&31|192):(r<65536?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());)55296<=r&&r<=57343&&null!==(n=t())&&56320<=n&&n<=57343?(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());)r<=65535?e(r):(e(55296+((r-=65536)>>10)),e(r%1024+56320)),r=null},encodeUTF16toUTF8:function(t,e){c.UTF16toUTF8(t,function(t){c.encodeUTF8(t,e)})},decodeUTF8toUTF16:function(t,e){c.decodeUTF8(t,function(t){c.UTF8toUTF16(t,e)})},calculateCodePoint:function(t){return t<128?1:t<2048?2:t<65536?3:4},calculateUTF8:function(t){for(var e,r=0;null!==(e=t());)r+=e<128?1:e<2048?2:e<65536?3:4;return r},calculateUTF16asUTF8:function(t){var e=0,r=0;return c.UTF16toUTF8(t,function(t){++e,r+=t<128?1:t<2048?2:t<65536?3:4}),[e,r]}};return o.toUTF8=function(e,r){if(void 0===e&&(e=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,e<0||rthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}var t;try{l.decodeUTF8toUTF16(function(){return eo;)u.call(t,n=i[o++])&&e.push(n);return e}},{"./_object-gops":87,"./_object-keys":90,"./_object-pie":91}],65:[function(t,e,r){var g=t("./_global"),y=t("./_core"),m=t("./_ctx"),v=t("./_hide"),b="prototype",_=function(t,e,r){var n,i,u,o=t&_.F,s=t&_.G,a=t&_.S,f=t&_.P,h=t&_.B,c=t&_.W,l=s?y:y[e]||(y[e]={}),p=l[b],d=s?g:a?g[e]:(g[e]||{})[b];for(n in s&&(r=e),r)(i=!o&&d&&void 0!==d[n])&&n in l||(u=i?d[n]:r[n],l[n]=s&&"function"!=typeof d[n]?r[n]:h&&i?m(u,g):c&&d[n]==u?function(n){var t=function(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)};return t[b]=n[b],t}(u):f&&"function"==typeof u?m(Function.call,u):u,f&&((l.virtual||(l.virtual={}))[n]=u,t&_.R&&p&&!p[n]&&v(p,n,u)))};_.F=1,_.G=2,_.S=4,_.P=8,_.B=16,_.W=32,_.U=64,_.R=128,e.exports=_},{"./_core":58,"./_ctx":59,"./_global":67,"./_hide":69}],66:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],67:[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)},{}],68:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],69:[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":61,"./_object-dp":82,"./_property-desc":92}],70:[function(t,e,r){var n=t("./_global").document;e.exports=n&&n.documentElement},{"./_global":67}],71:[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":61,"./_dom-create":62,"./_fails":66}],72:[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":57}],73:[function(t,e,r){var n=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./_cof":57}],74:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],75:[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":69,"./_object-create":81,"./_property-desc":92,"./_set-to-string-tag":94,"./_wks":107}],76:[function(t,e,r){"use strict";var b=t("./_library"),_=t("./_export"),w=t("./_redefine"),E=t("./_hide"),A=t("./_has"),B=t("./_iterators"),C=t("./_iter-create"),F=t("./_set-to-string-tag"),D=t("./_object-gpo"),x=t("./_wks")("iterator"),S=!([].keys&&"next"in[].keys()),k="values",T=function(){return this};e.exports=function(t,e,r,n,i,u,o){C(r,e,n);var s,a,f,h=function(t){if(!S&&t in d)return d[t];switch(t){case"keys":case k:return function(){return new r(this,t)}}return function(){return new r(this,t)}},c=e+" Iterator",l=i==k,p=!1,d=t.prototype,g=d[x]||d["@@iterator"]||i&&d[i],y=g||h(i),m=i?l?h("entries"):y:void 0,v="Array"==e&&d.entries||g;if(v&&(f=D(v.call(new t)))!==Object.prototype&&f.next&&(F(f,c,!0),b||A(f,x)||E(f,x,T)),l&&g&&g.name!==k&&(p=!0,y=function(){return g.call(this)}),b&&!o||!S&&!p&&d[x]||E(d,x,y),B[e]=y,B[c]=T,i)if(s={values:l?y:h(k),keys:u?y:h("keys"),entries:m},o)for(a in s)a in d||w(d,a,s[a]);else _(_.P+_.F*(S||p),e,s);return s}},{"./_export":65,"./_has":68,"./_hide":69,"./_iter-create":75,"./_iterators":78,"./_library":79,"./_object-gpo":88,"./_redefine":93,"./_set-to-string-tag":94,"./_wks":107}],77:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],78:[function(t,e,r){e.exports={}},{}],79:[function(t,e,r){e.exports=!0},{}],80:[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":66,"./_has":68,"./_is-object":74,"./_object-dp":82,"./_uid":104}],81:[function(n,t,e){var i=n("./_an-object"),u=n("./_object-dps"),o=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),a=function(){},f="prototype",h=function(){var t,e=n("./_dom-create")("iframe"),r=o.length;for(e.style.display="none",n("./_html").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("