diff --git a/index.js b/index.js index 6bda5002..6e65c26c 100644 --- a/index.js +++ b/index.js @@ -15,9 +15,8 @@ let win, devtools, serve; devtools = args.some(val => val === '--devtools'); serve = args.some(val => val === '--serve'); -require('electron-context-menu')({ - showInspectElement: false -}); +const contextMenu = require('electron-context-menu'); +contextMenu(); express.use(cors()); @@ -85,7 +84,8 @@ async function createWindow() { title: 'simplEOS', webPreferences: { nodeIntegration: true, - webSecurity: !serve + webSecurity: !serve, + devTools: false }, darkTheme: true, width: 1440, @@ -96,6 +96,7 @@ async function createWindow() { frame: true, icon: path.join(__dirname, 'src/assets/icons/ico/simpleos.ico') }); + win.removeMenu(); if (serve) { require('electron-reload')(__dirname, { electron: path.join(__dirname, 'node_modules', '.bin', 'electron'), @@ -117,33 +118,6 @@ async function createWindow() { win.on('closed', () => { win = null; }); - - const template = [{ - label: 'Application', - submenu: [ - {type: 'separator'}, - { - label: 'Quit', - accelerator: 'Command+Q', - click: function () { - app.quit(); - } - } - ] - }, { - label: 'Edit', - submenu: [ - {label: 'Undo', accelerator: 'CmdOrCtrl+Z', selector: 'undo:'}, - {label: 'Redo', accelerator: 'Shift+CmdOrCtrl+Z', selector: 'redo:'}, - {type: 'separator'}, - {label: 'Cut', accelerator: 'CmdOrCtrl+X', selector: 'cut:'}, - {label: 'Copy', accelerator: 'CmdOrCtrl+C', selector: 'copy:'}, - {label: 'Paste', accelerator: 'CmdOrCtrl+V', selector: 'paste:'}, - {label: 'Select All', accelerator: 'CmdOrCtrl+A', selector: 'selectAll:'} - ] - }]; - Menu['setApplicationMenu'](Menu['buildFromTemplate'](template)); - // win.removeMenu(); } const gotTheLock = app.requestSingleInstanceLock(); diff --git a/ng-dist/main.js b/ng-dist/main.js index 64678571..18f77871 100644 --- a/ng-dist/main.js +++ b/ng-dist/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(n,l,e){n.exports=e("zUnb")},1:function(n,l){},NkYg:function(n,l){n.exports=require("buffer")},Qs3B:function(n,l){n.exports=require("assert")},RnhZ:function(n,l,e){var t={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-SG":"zavE","./en-SG.js":"zavE","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function o(n){var l=u(n);return e(l)}function u(n){if(!e.o(t,n)){var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}return t[n]}o.keys=function(){return Object.keys(t)},o.resolve=u,n.exports=o,o.id="RnhZ"},ZECR:function(n,l,e){var t;n.exports=function n(l,e,o){function u(a,i){if(!e[a]){if(!l[a]){if(!i&&"function"==typeof t&&t)return t(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var d=e[a]={exports:{}};l[a][0].call(d.exports,function(n){return u(l[a][1][n]||n)},d,d.exports,n,l,e,o)}return e[a].exports}for(var r="function"==typeof t&&t,a=0;aNumber.MAX_SAFE_INTEGER)throw new TypeError("value parameter overflow");n=a.fromString(String(n),l,e)}else if("string"==typeof n)n=a.fromString(n,l,e);else if(!a.isLong(n))throw new TypeError("value parameter is a requied Long, Number or String");return n}l.exports={ULong:i,isName:function(n,l){try{return c(n),!0}catch(n){return l&&l(n),!1}},encodeName:c,decodeName:f,encodeNameHex:function(n){return a.fromString(c(n),!0).toString(16)},decodeNameHex:function(n){var l=!(1u)throw new TypeError("Invalid name "+n);e+=r="0".repeat(u-r.length)+r}var i=a.fromString(e,!0,2),s="",c=l?i.toBytesLE():i.toBytesBE(),f=!0,p=!1,h=void 0;try{for(var m,v=c[Symbol.iterator]();!(f=(m=v.next()).done);f=!0){var g=Number(m.value).toString(16);s+=(1===g.length?"0":"")+g}}catch(n){p=!0,h=n}finally{try{!f&&v.return&&v.return()}finally{if(p)throw h}}return a.fromString(s,!0,16).toString().toString()}function f(n){var l=!(1, got: "+(void 0===n?"undefined":(0,o.default)(n)));var e=l.amount,t=l.precision,u=l.symbol,r=l.contract;return c(null!=e,"missing amount"),c(null!=t,"missing precision"),c(null!=u,"missing symbol"),c(null!=r,"missing contract"),{amount:e,precision:t,symbol:u,contract:r}},toObject:function(l){if(n.defaults&&null==l)return{amount:"1.0000",precision:4,symbol:"SYS",contract:"eosio.token"};c.equal(void 0===l?"undefined":(0,o.default)(l),"object","expecting extended_asset object");var e=l.precision,t=l.symbol,u=l.contract;return{amount:v(l.amount,e),precision:e,symbol:t,contract:u}}}},I=function(n,l){var e=l.fixed_bytes65(n);return{fromByteBuffer:function(n){var l=e.fromByteBuffer(n);return a.from(l).toString()},appendByteBuffer:function(n,l){var t=a.from(l);e.appendByteBuffer(n,t.toBuffer())},fromObject:function(n){return a.from(n).toString()},toObject:function(l){return n.defaults&&null==l?"SIG_K1_bas58signature..":a.from(l).toString()}}},N=function(n){return{"authority.fromObject":function(l){if(i.fromString(l,n.keyPrefix))return{threshold:1,keys:[{key:l,weight:1}]};if("string"==typeof l){var e=l.split("@"),o=(0,t.default)(e,2),u=o[1];return{threshold:1,accounts:[{permission:{actor:o[0],permission:void 0===u?"active":u},weight:1}]}}}}},T=function(n){return{"abi_def.fromObject":function(n){if("string"==typeof n){var l=e.from(n,"hex").toString();return 0===l.length&&(l=e.from(n).toString()),JSON.parse(l)}return e.isBuffer(n)?JSON.parse(n.toString()):null},"setabi.abi.appendByteBuffer":function(l){var t=l.object,u=l.b,r=n("abi_def","eosio"),a=new d(d.DEFAULT_CAPACITY,d.LITTLE_ENDIAN);e.isBuffer(t.abi)?a.append(t.abi):"object"==(0,o.default)(t.abi)&&r.appendByteBuffer(a,t.abi),u.writeVarint32(a.offset),u.append(a.copy(0,a.offset),"binary")}}},R=function(n){return{"setcode.code.fromObject":function(l){var t=l.object,o=l.result;try{var u=t.code.toString();if(/^\s*\(module/.test(u)){var r=n.binaryen;c(null!=r,'required: config.binaryen = require("binaryen")'),n.debug&&console.log("Assembling WASM..");var a=e.from(r.parseText(u).emitBinary());o.code=a}else o.code=t.code}catch(l){throw console.error(l,t.code),l}}}},M=function(n,l){return{"action.data.fromByteBuffer":function(l){var t=l.object,o=l.b,u=l.config,r=""==(t.name||"")?l.fields.data:n(t.name,t.account);if(r)o.readVarint32(),t.data=r.fromByteBuffer(o,u);else{var a=o.readVarint32(),i=o.copy(o.offset,o.offset+a);o.skip(a),t.data=e.from(i.toBinary(),"binary")}},"action.data.appendByteBuffer":function(l){var t=l.object,o=l.b,u=""==(t.name||"")?l.fields.data:n(t.name,t.account);if(u){var r=new d(d.DEFAULT_CAPACITY,d.LITTLE_ENDIAN);u.appendByteBuffer(r,t.data),o.writeVarint32(r.offset),o.append(r.copy(0,r.offset),"binary")}else{var a="string"==typeof t.data?e.from(t.data,"hex"):t.data;if(!e.isBuffer(a))throw new TypeError("Unknown struct '"+t.name+"' for contract '"+t.account+"', locate this struct or provide serialized action.data");o.writeVarint32(a.length),o.append(a.toString("binary"),"binary")}},"action.data.fromObject":function(l){var t=l.object,u=l.result,r=t.data,a=t.name,i=""==(a||"")?l.fields.data:n(a,t.account);if(i)if("object"===(void 0===r?"undefined":(0,o.default)(r)))u.data=i.fromObject(r);else{if("string"!=typeof r)throw new TypeError("Expecting hex string or object in action.data");var d=e.from(r,"hex");u.data=s.fromBuffer(i,d)}else u.data=r},"action.data.toObject":function(t){var o=t.object,u=t.result,r=t.config,a=o||{},i=a.data,s=a.name,c=""==(s||"")?t.fields.data:n(s,o.account);if(c){if(l){var f=new d(d.DEFAULT_CAPACITY,d.LITTLE_ENDIAN);return i&&c.appendByteBuffer(f,i),void(u.data=f.copy(0,f.offset).toString("hex"))}u.data=c.toObject(i,r)}else u.data=e.isBuffer(i)?i.toString("hex"):i}}}}).call(this,n("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(n,l,e){(function(e){"use strict";var t=r(n("babel-runtime/helpers/slicedToArray")),o=r(n("babel-runtime/regenerator")),u=r(n("babel-runtime/helpers/typeof"));function r(n){return n&&n.__esModule?n:{default:n}}var a=n("assert"),i=n("eosjs-ecc"),s=n("fcbuffer"),d=n("create-hash"),c=n("eosjs-api").processArgs;n("./structs"),l.exports=function(n,l,r,g,b){if("string"!=typeof g.chainId)throw new TypeError("config.chainId is required");var y=function(n,l,r,g){var b=function(n,l){return function(){for(var n=arguments.length,e=Array(n),t=0;t, transaction, [options], [callback]"),S=e[0],!i){n.next=67;break}for(a(!d,"callback with contracts are not supported"),a.equal("function",void 0===S?"undefined":(0,u.default)(S),"provide function callback following contracts array parameter"),x=[],A=!(k=!0),F=void 0,n.prev=50,I=i[Symbol.iterator]();!(k=(N=I.next()).done);k=!0)x.push(y(N.value,l.transaction));n.next=58;break;case 54:n.prev=54,n.t1=n.catch(50),A=!0,F=n.t1;case 58:n.prev=58,n.prev=59,!k&&I.return&&I.return();case 61:if(n.prev=61,!A){n.next=64;break}throw F;case 64:return n.finish(61);case 65:return n.finish(58);case 66:return n.abrupt("return",Promise.all(x).then(function(n){var l={};return n.forEach(function(n,e){l[i[e]]=n}),C(S,s,c?l:l[i[0]])}));case 67:if("function"!=typeof S){n.next=69;break}return n.abrupt("return",C(S,s,l));case 69:if("object"!==(void 0===S?"undefined":(0,u.default)(S))){n.next=71;break}return n.abrupt("return",w(S,s,d));case 71:throw new Error("first transaction argument unrecognized",S);case 72:case"end":return n.stop()}},null,this,[[18,22,26,34],[27,,29,33],[50,54,58,66],[59,,61,65]])}};function y(n){var l=1l.actor?1:n.actor>=8;for(;0>=8}for(var d=0;n[d]===o&&d>16&255,a[d++]=t>>8&255,a[d++]=255&t;return 2===r?(t=o[n.charCodeAt(l)]<<2|o[n.charCodeAt(l+1)]>>4,a[d++]=255&t):1===r&&(t=o[n.charCodeAt(l)]<<10|o[n.charCodeAt(l+1)]<<4|o[n.charCodeAt(l+2)]>>2,a[d++]=t>>8&255,a[d++]=255&t),a},e.fromByteArray=function(n){for(var l,e=n.length,o=e%3,u="",r=[],a=0,i=e-o;a>2],u+=t[l<<4&63],u+="=="):2===o&&(u+=t[(l=(n[e-2]<<8)+n[e-1])>>10],u+=t[l>>4&63],u+=t[l<<2&63],u+="="),r.push(u),r.join("")};for(var t=[],o=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=r.length;a>18&63]+t[o>>12&63]+t[o>>6&63]+t[63&o]);return u.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},{}],21:[function(n,l,e){function t(n,l,e){if(!(this instanceof t))return new t(n,l,e);null!=n&&("number"==typeof n?this.fromNumber(n,l,e):this.fromString(n,null==l&&"string"!=typeof n?256:l))}var o=t.prototype;o.__bigi=n("../package.json").version,t.isBigInteger=function(n,l){return n&&n.__bigi&&(!l||n.__bigi===o.__bigi)},t.prototype.am=function(n,l,e,t,o,u){for(;0<=--u;){var r=l*this[n++]+e[t]+o;o=Math.floor(r/67108864),e[t++]=67108863&r}return o},t.prototype.DB=26,t.prototype.DM=67108863;var u=t.prototype.DV=1<<26;t.prototype.FV=Math.pow(2,52),t.prototype.F1=26,t.prototype.F2=0;var r,a,i="0123456789abcdefghijklmnopqrstuvwxyz",s=new Array;for(r="0".charCodeAt(0),a=0;a<=9;++a)s[r++]=a;for(r="a".charCodeAt(0),a=10;a<36;++a)s[r++]=a;for(r="A".charCodeAt(0),a=10;a<36;++a)s[r++]=a;function d(n){return i.charAt(n)}function c(n,l){var e=s[n.charCodeAt(l)];return null==e?-1:e}function f(n){var l=new t;return l.fromInt(n),l}function p(n){var l,e=1;return 0!=(l=n>>>16)&&(n=l,e+=16),0!=(l=n>>8)&&(n=l,e+=8),0!=(l=n>>4)&&(n=l,e+=4),0!=(l=n>>2)&&(n=l,e+=2),0!=(l=n>>1)&&(n=l,e+=1),e}function h(n){this.m=n}function m(n){this.m=n,this.mp=n.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,l+=16),0==(255&n)&&(n>>=8,l+=8),0==(15&n)&&(n>>=4,l+=4),0==(3&n)&&(n>>=2,l+=2),0==(1&n)&&++l,l}function C(n){for(var l=0;0!=n;)n&=n-1,++l;return l}function w(){}function E(n){return n}function S(n){this.r2=new t,this.q3=new t,t.ONE.dlShiftTo(2*n.t,this.r2),this.mu=this.r2.divide(n),this.m=n}h.prototype.convert=function(n){return n.s<0||0<=n.compareTo(this.m)?n.mod(this.m):n},h.prototype.revert=function(n){return n},h.prototype.reduce=function(n){n.divRemTo(this.m,null,n)},h.prototype.mulTo=function(n,l,e){n.multiplyTo(l,e),this.reduce(e)},h.prototype.sqrTo=function(n,l){n.squareTo(l),this.reduce(l)},m.prototype.convert=function(n){var l=new t;return n.abs().dlShiftTo(this.m.t,l),l.divRemTo(this.m,null,l),n.s<0&&0>15)*this.mpl&this.um)<<15)&n.DM;for(n[e=l+this.m.t]+=this.m.am(0,t,n,l,0,this.m.t);n[e]>=n.DV;)n[e]-=n.DV,n[++e]++}n.clamp(),n.drShiftTo(this.m.t,n),0<=n.compareTo(this.m)&&n.subTo(this.m,n)},m.prototype.mulTo=function(n,l,e){n.multiplyTo(l,e),this.reduce(e)},m.prototype.sqrTo=function(n,l){n.squareTo(l),this.reduce(l)},o.copyTo=function(n){for(var l=this.t-1;0<=l;--l)n[l]=this[l];n.t=this.t,n.s=this.s},o.fromInt=function(n){this.t=1,this.s=n<0?-1:0,0o.DB?(o[o.t-1]|=(i&(1<>o.DB-a):o[o.t-1]|=i<=o.DB&&(a-=o.DB))}8==e&&0!=(128&n[0])&&(o.s=-1,0>u|i,i=(t[e]&r)<=e.t)l.t=0;else{var o=n%e.DB,u=e.DB-o,r=(1<>o;for(var a=t+1;a>o;0>=e.DB;if(n.t>=e.DB;o+=e.s}else{for(o+=e.s;t>=e.DB;o-=n.s}l.s=o<0?-1:0,o<-1?l[t++]=e.DV+o:0=l.DV&&(n[e+l.t]-=l.DV,n[e+l.t+1]=1)}0>o.F2:0),m=o.FV/h,v=(1<>i)&&(u=!0,r=d(t));0<=a;)i>(i+=e.DB-l)):(t=e[a]>>(i-=l)&o,i<=0&&(i+=e.DB,--a)),0>3},o.mod=function(n){var l=new t;return this.abs().divRemTo(n,null,l),this.s<0&&02*this.m.t)return n.mod(this.m);if(n.compareTo(this.m)<0)return n;var l=new t;return n.copyTo(l),this.reduce(l),l},S.prototype.revert=function(n){return n},S.prototype.reduce=function(n){var l=this;for(n.drShiftTo(l.m.t-1,l.r2),n.t>l.m.t+1&&(n.t=l.m.t+1,n.clamp()),l.mu.multiplyUpperTo(l.r2,l.m.t+1,l.q3),l.m.multiplyLowerTo(l.q3,l.m.t+1,l.r2);n.compareTo(l.r2)<0;)n.dAddOffset(1,l.m.t+1);for(n.subTo(l.r2,n);0<=n.compareTo(l.m);)n.subTo(l.m,n)},S.prototype.mulTo=function(n,l,e){n.multiplyTo(l,e),this.reduce(e)},S.prototype.sqrTo=function(n,l){n.squareTo(l),this.reduce(l)};var x=[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],k=(1<<26)/x[x.length-1];o.chunkSize=function(n){return Math.floor(Math.LN2*this.DB/Math.log(n))},o.toRadix=function(n){if(null==n&&(n=10),0==this.signum()||n<2||36=o&&(e.dMultiply(u),e.dAddOffset(i,0),i=a=0))}0n&&o.subTo(t.ONE.shiftLeft(n-1),o);else{var u=new Array,r=7&n;u.length=1+(n>>3),l.nextBytes(u),0>=e.DB;if(n.t>=e.DB;o+=e.s}else{for(o+=e.s;t>=e.DB;o+=n.s}l.s=o<0?-1:0,0=this.DV;)this[l]-=this.DV,++l>=this.t&&(this[this.t++]=0),++this[l]}},o.multiplyLowerTo=function(n,l,e){var t,o=Math.min(this.t+n.t,l);for(e.s=0,e.t=o;0>1)&&(n=x.length);for(var u=new t(null),r=[],a=0;a>24},o.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},o.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},o.toByteArray=function(){var n=this,l=n.t,e=new Array;e[0]=n.s;var t,o=n.DB-l*n.DB%8,u=0;if(0>o)!=(n.s&n.DM)>>o&&(e[u++]=t|n.s<>(o+=n.DB-8)):(t=n[l]>>(o-=8)&255,o<=0&&(o+=n.DB,--l)),0!=(128&t)&&(t|=-256),0===u&&(128&n.s)!=(128&t)&&++u,(0=this.t?0!=this.s:0!=(this[l]&1<>u-s&d:(v=(n[b]&(1<>this.DB+u-s)),i=e;0==(1&v);)v>>=1,--i;if((u-=i)<0&&(u+=this.DB,--b),y)a[v].copyTo(r),y=!1;else{for(;1>>26-a&67108863,26<=(a+=24)&&(a-=26,u++);else if("le"===e)for(u=o=0;o>>26-a&67108863,26<=(a+=24)&&(a-=26,u++);return this.strip()},u.prototype._parseHex=function(n,l){this.length=Math.ceil((n.length-l)/6),this.words=new Array(this.length);for(var e=0;e>>26-u&4194303,26<=(u+=24)&&(u-=26,t++);e+6!==l&&(o=a(n,l,e+6),this.words[t]|=o<>>26-u&4194303),this.strip()},u.prototype._parseBase=function(n,l,e){this.words=[0];for(var t=0,o=this.length=1;o<=67108863;o*=l)t++;o=o/l|0;for(var u=n.length-e,r=u%--t,a=Math.min(u,u-r)+e,s=0,d=e;d"};var s=["","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"],d=[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],c=[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 f(n,l,e){e.negative=l.negative^n.negative;var t=n.length+l.length|0;t=(e.length=t)-1|0;var o=0|n.words[0],u=0|l.words[0],r=o*u,a=r/67108864|0;e.words[0]=67108863&r;for(var i=1;i>>26,d=67108863&a,c=Math.min(i,l.length-1),f=Math.max(0,i-n.length+1);f<=c;f++)s+=(r=(o=0|n.words[i-f|0])*(u=0|l.words[f])+d)/67108864|0,d=67108863&r;e.words[i]=0|d,a=0|s}return 0!==a?e.words[i]=0|a:e.length--,e.strip()}u.prototype.toString=function(n,l){var e;if(l=0|l||1,16===(n=n||10)||"hex"===n){e="";for(var o=0,u=0,r=0;r>>24-o&16777215)||r!==this.length-1?s[6-i.length]+i+e:i+e,26<=(o+=2)&&(o-=26,r--)}for(0!==u&&(e=u.toString(16)+e);e.length%l!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}if(n===(0|n)&&2<=n&&n<=36){var f=d[n],p=c[n];e="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(n);e=(h=h.idivn(p)).isZero()?m+e:s[f-m.length]+m+e}for(this.isZero()&&(e="0"+e);e.length%l!=0;)e="0"+e;return 0!==this.negative&&(e="-"+e),e}t(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:2>>=13),64<=l&&(e+=7,l>>>=7),8<=l&&(e+=4,l>>>=4),2<=l&&(e+=2,l>>>=2),e+l},u.prototype._zeroBits=function(n){if(0===n)return 26;var l=n,e=0;return 0==(8191&l)&&(e+=13,l>>>=13),0==(127&l)&&(e+=7,l>>>=7),0==(15&l)&&(e+=4,l>>>=4),0==(3&l)&&(e+=2,l>>>=2),0==(1&l)&&e++,e},u.prototype.bitLength=function(){var n=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+n},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,l=0;ln.length?this.clone().ior(n):n.clone().ior(this)},u.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},u.prototype.iuand=function(n){var l;l=this.length>n.length?n:this;for(var e=0;en.length?this.clone().iand(n):n.clone().iand(this)},u.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},u.prototype.iuxor=function(n){var l,e;this.length>n.length?(l=this,e=n):(l=n,e=this);for(var t=0;tn.length?this.clone().ixor(n):n.clone().ixor(this)},u.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},u.prototype.inotn=function(n){t("number"==typeof n&&0<=n);var l=0|Math.ceil(n/26),e=n%26;this._expand(l),0>26-e),this.strip()},u.prototype.notn=function(n){return this.clone().inotn(n)},u.prototype.setn=function(n,l){t("number"==typeof n&&0<=n);var e=n/26|0,o=n%26;return this._expand(e+1),this.words[e]=l?this.words[e]|1<n.length?(e=this,t=n):(e=n,t=this);for(var o=0,u=0;u>>26;for(;0!==o&&u>>26;if(this.length=e.length,0!==o)this.words[this.length]=o,this.length++;else if(e!==this)for(;un.length?this.clone().iadd(n):n.clone().iadd(this)},u.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var l=this.iadd(n);return n.negative=1,l._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var e,t,o=this.cmp(n);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;0>26,this.words[r]=67108863&l;for(;0!==u&&r>26,this.words[r]=67108863&l;if(0===u&&r>>13,p=0|r[1],h=8191&p,m=p>>>13,v=0|r[2],g=8191&v,b=v>>>13,y=0|r[3],_=8191&y,C=y>>>13,w=0|r[4],E=8191&w,S=w>>>13,x=0|r[5],k=8191&x,A=x>>>13,F=0|r[6],I=8191&F,N=F>>>13,T=0|r[7],R=8191&T,M=T>>>13,D=0|r[8],O=8191&D,q=D>>>13,P=0|r[9],B=8191&P,L=P>>>13,V=0|a[0],z=8191&V,j=V>>>13,U=0|a[1],H=8191&U,G=U>>>13,K=0|a[2],Z=8191&K,$=K>>>13,W=0|a[3],X=8191&W,J=W>>>13,Y=0|a[4],Q=8191&Y,nn=Y>>>13,ln=0|a[5],en=8191&ln,tn=ln>>>13,on=0|a[6],un=8191&on,rn=on>>>13,an=0|a[7],sn=8191&an,dn=an>>>13,cn=0|a[8],fn=8191&cn,pn=cn>>>13,hn=0|a[9],mn=8191&hn,vn=hn>>>13;e.negative=n.negative^l.negative,e.length=19;var gn=(s+(t=Math.imul(c,z))|0)+((8191&(o=(o=Math.imul(c,j))+Math.imul(f,z)|0))<<13)|0;s=((u=Math.imul(f,j))+(o>>>13)|0)+(gn>>>26)|0,gn&=67108863,t=Math.imul(h,z),o=(o=Math.imul(h,j))+Math.imul(m,z)|0,u=Math.imul(m,j);var bn=(s+(t=t+Math.imul(c,H)|0)|0)+((8191&(o=(o=o+Math.imul(c,G)|0)+Math.imul(f,H)|0))<<13)|0;s=((u=u+Math.imul(f,G)|0)+(o>>>13)|0)+(bn>>>26)|0,bn&=67108863,t=Math.imul(g,z),o=(o=Math.imul(g,j))+Math.imul(b,z)|0,u=Math.imul(b,j),t=t+Math.imul(h,H)|0,o=(o=o+Math.imul(h,G)|0)+Math.imul(m,H)|0,u=u+Math.imul(m,G)|0;var yn=(s+(t=t+Math.imul(c,Z)|0)|0)+((8191&(o=(o=o+Math.imul(c,$)|0)+Math.imul(f,Z)|0))<<13)|0;s=((u=u+Math.imul(f,$)|0)+(o>>>13)|0)+(yn>>>26)|0,yn&=67108863,t=Math.imul(_,z),o=(o=Math.imul(_,j))+Math.imul(C,z)|0,u=Math.imul(C,j),t=t+Math.imul(g,H)|0,o=(o=o+Math.imul(g,G)|0)+Math.imul(b,H)|0,u=u+Math.imul(b,G)|0,t=t+Math.imul(h,Z)|0,o=(o=o+Math.imul(h,$)|0)+Math.imul(m,Z)|0,u=u+Math.imul(m,$)|0;var _n=(s+(t=t+Math.imul(c,X)|0)|0)+((8191&(o=(o=o+Math.imul(c,J)|0)+Math.imul(f,X)|0))<<13)|0;s=((u=u+Math.imul(f,J)|0)+(o>>>13)|0)+(_n>>>26)|0,_n&=67108863,t=Math.imul(E,z),o=(o=Math.imul(E,j))+Math.imul(S,z)|0,u=Math.imul(S,j),t=t+Math.imul(_,H)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(C,H)|0,u=u+Math.imul(C,G)|0,t=t+Math.imul(g,Z)|0,o=(o=o+Math.imul(g,$)|0)+Math.imul(b,Z)|0,u=u+Math.imul(b,$)|0,t=t+Math.imul(h,X)|0,o=(o=o+Math.imul(h,J)|0)+Math.imul(m,X)|0,u=u+Math.imul(m,J)|0;var Cn=(s+(t=t+Math.imul(c,Q)|0)|0)+((8191&(o=(o=o+Math.imul(c,nn)|0)+Math.imul(f,Q)|0))<<13)|0;s=((u=u+Math.imul(f,nn)|0)+(o>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,t=Math.imul(k,z),o=(o=Math.imul(k,j))+Math.imul(A,z)|0,u=Math.imul(A,j),t=t+Math.imul(E,H)|0,o=(o=o+Math.imul(E,G)|0)+Math.imul(S,H)|0,u=u+Math.imul(S,G)|0,t=t+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(C,Z)|0,u=u+Math.imul(C,$)|0,t=t+Math.imul(g,X)|0,o=(o=o+Math.imul(g,J)|0)+Math.imul(b,X)|0,u=u+Math.imul(b,J)|0,t=t+Math.imul(h,Q)|0,o=(o=o+Math.imul(h,nn)|0)+Math.imul(m,Q)|0,u=u+Math.imul(m,nn)|0;var wn=(s+(t=t+Math.imul(c,en)|0)|0)+((8191&(o=(o=o+Math.imul(c,tn)|0)+Math.imul(f,en)|0))<<13)|0;s=((u=u+Math.imul(f,tn)|0)+(o>>>13)|0)+(wn>>>26)|0,wn&=67108863,t=Math.imul(I,z),o=(o=Math.imul(I,j))+Math.imul(N,z)|0,u=Math.imul(N,j),t=t+Math.imul(k,H)|0,o=(o=o+Math.imul(k,G)|0)+Math.imul(A,H)|0,u=u+Math.imul(A,G)|0,t=t+Math.imul(E,Z)|0,o=(o=o+Math.imul(E,$)|0)+Math.imul(S,Z)|0,u=u+Math.imul(S,$)|0,t=t+Math.imul(_,X)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(C,X)|0,u=u+Math.imul(C,J)|0,t=t+Math.imul(g,Q)|0,o=(o=o+Math.imul(g,nn)|0)+Math.imul(b,Q)|0,u=u+Math.imul(b,nn)|0,t=t+Math.imul(h,en)|0,o=(o=o+Math.imul(h,tn)|0)+Math.imul(m,en)|0,u=u+Math.imul(m,tn)|0;var En=(s+(t=t+Math.imul(c,un)|0)|0)+((8191&(o=(o=o+Math.imul(c,rn)|0)+Math.imul(f,un)|0))<<13)|0;s=((u=u+Math.imul(f,rn)|0)+(o>>>13)|0)+(En>>>26)|0,En&=67108863,t=Math.imul(R,z),o=(o=Math.imul(R,j))+Math.imul(M,z)|0,u=Math.imul(M,j),t=t+Math.imul(I,H)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(N,H)|0,u=u+Math.imul(N,G)|0,t=t+Math.imul(k,Z)|0,o=(o=o+Math.imul(k,$)|0)+Math.imul(A,Z)|0,u=u+Math.imul(A,$)|0,t=t+Math.imul(E,X)|0,o=(o=o+Math.imul(E,J)|0)+Math.imul(S,X)|0,u=u+Math.imul(S,J)|0,t=t+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,nn)|0)+Math.imul(C,Q)|0,u=u+Math.imul(C,nn)|0,t=t+Math.imul(g,en)|0,o=(o=o+Math.imul(g,tn)|0)+Math.imul(b,en)|0,u=u+Math.imul(b,tn)|0,t=t+Math.imul(h,un)|0,o=(o=o+Math.imul(h,rn)|0)+Math.imul(m,un)|0,u=u+Math.imul(m,rn)|0;var Sn=(s+(t=t+Math.imul(c,sn)|0)|0)+((8191&(o=(o=o+Math.imul(c,dn)|0)+Math.imul(f,sn)|0))<<13)|0;s=((u=u+Math.imul(f,dn)|0)+(o>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,t=Math.imul(O,z),o=(o=Math.imul(O,j))+Math.imul(q,z)|0,u=Math.imul(q,j),t=t+Math.imul(R,H)|0,o=(o=o+Math.imul(R,G)|0)+Math.imul(M,H)|0,u=u+Math.imul(M,G)|0,t=t+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(N,Z)|0,u=u+Math.imul(N,$)|0,t=t+Math.imul(k,X)|0,o=(o=o+Math.imul(k,J)|0)+Math.imul(A,X)|0,u=u+Math.imul(A,J)|0,t=t+Math.imul(E,Q)|0,o=(o=o+Math.imul(E,nn)|0)+Math.imul(S,Q)|0,u=u+Math.imul(S,nn)|0,t=t+Math.imul(_,en)|0,o=(o=o+Math.imul(_,tn)|0)+Math.imul(C,en)|0,u=u+Math.imul(C,tn)|0,t=t+Math.imul(g,un)|0,o=(o=o+Math.imul(g,rn)|0)+Math.imul(b,un)|0,u=u+Math.imul(b,rn)|0,t=t+Math.imul(h,sn)|0,o=(o=o+Math.imul(h,dn)|0)+Math.imul(m,sn)|0,u=u+Math.imul(m,dn)|0;var xn=(s+(t=t+Math.imul(c,fn)|0)|0)+((8191&(o=(o=o+Math.imul(c,pn)|0)+Math.imul(f,fn)|0))<<13)|0;s=((u=u+Math.imul(f,pn)|0)+(o>>>13)|0)+(xn>>>26)|0,xn&=67108863,t=Math.imul(B,z),o=(o=Math.imul(B,j))+Math.imul(L,z)|0,u=Math.imul(L,j),t=t+Math.imul(O,H)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(q,H)|0,u=u+Math.imul(q,G)|0,t=t+Math.imul(R,Z)|0,o=(o=o+Math.imul(R,$)|0)+Math.imul(M,Z)|0,u=u+Math.imul(M,$)|0,t=t+Math.imul(I,X)|0,o=(o=o+Math.imul(I,J)|0)+Math.imul(N,X)|0,u=u+Math.imul(N,J)|0,t=t+Math.imul(k,Q)|0,o=(o=o+Math.imul(k,nn)|0)+Math.imul(A,Q)|0,u=u+Math.imul(A,nn)|0,t=t+Math.imul(E,en)|0,o=(o=o+Math.imul(E,tn)|0)+Math.imul(S,en)|0,u=u+Math.imul(S,tn)|0,t=t+Math.imul(_,un)|0,o=(o=o+Math.imul(_,rn)|0)+Math.imul(C,un)|0,u=u+Math.imul(C,rn)|0,t=t+Math.imul(g,sn)|0,o=(o=o+Math.imul(g,dn)|0)+Math.imul(b,sn)|0,u=u+Math.imul(b,dn)|0,t=t+Math.imul(h,fn)|0,o=(o=o+Math.imul(h,pn)|0)+Math.imul(m,fn)|0,u=u+Math.imul(m,pn)|0;var kn=(s+(t=t+Math.imul(c,mn)|0)|0)+((8191&(o=(o=o+Math.imul(c,vn)|0)+Math.imul(f,mn)|0))<<13)|0;s=((u=u+Math.imul(f,vn)|0)+(o>>>13)|0)+(kn>>>26)|0,kn&=67108863,t=Math.imul(B,H),o=(o=Math.imul(B,G))+Math.imul(L,H)|0,u=Math.imul(L,G),t=t+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(q,Z)|0,u=u+Math.imul(q,$)|0,t=t+Math.imul(R,X)|0,o=(o=o+Math.imul(R,J)|0)+Math.imul(M,X)|0,u=u+Math.imul(M,J)|0,t=t+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,nn)|0)+Math.imul(N,Q)|0,u=u+Math.imul(N,nn)|0,t=t+Math.imul(k,en)|0,o=(o=o+Math.imul(k,tn)|0)+Math.imul(A,en)|0,u=u+Math.imul(A,tn)|0,t=t+Math.imul(E,un)|0,o=(o=o+Math.imul(E,rn)|0)+Math.imul(S,un)|0,u=u+Math.imul(S,rn)|0,t=t+Math.imul(_,sn)|0,o=(o=o+Math.imul(_,dn)|0)+Math.imul(C,sn)|0,u=u+Math.imul(C,dn)|0,t=t+Math.imul(g,fn)|0,o=(o=o+Math.imul(g,pn)|0)+Math.imul(b,fn)|0,u=u+Math.imul(b,pn)|0;var An=(s+(t=t+Math.imul(h,mn)|0)|0)+((8191&(o=(o=o+Math.imul(h,vn)|0)+Math.imul(m,mn)|0))<<13)|0;s=((u=u+Math.imul(m,vn)|0)+(o>>>13)|0)+(An>>>26)|0,An&=67108863,t=Math.imul(B,Z),o=(o=Math.imul(B,$))+Math.imul(L,Z)|0,u=Math.imul(L,$),t=t+Math.imul(O,X)|0,o=(o=o+Math.imul(O,J)|0)+Math.imul(q,X)|0,u=u+Math.imul(q,J)|0,t=t+Math.imul(R,Q)|0,o=(o=o+Math.imul(R,nn)|0)+Math.imul(M,Q)|0,u=u+Math.imul(M,nn)|0,t=t+Math.imul(I,en)|0,o=(o=o+Math.imul(I,tn)|0)+Math.imul(N,en)|0,u=u+Math.imul(N,tn)|0,t=t+Math.imul(k,un)|0,o=(o=o+Math.imul(k,rn)|0)+Math.imul(A,un)|0,u=u+Math.imul(A,rn)|0,t=t+Math.imul(E,sn)|0,o=(o=o+Math.imul(E,dn)|0)+Math.imul(S,sn)|0,u=u+Math.imul(S,dn)|0,t=t+Math.imul(_,fn)|0,o=(o=o+Math.imul(_,pn)|0)+Math.imul(C,fn)|0,u=u+Math.imul(C,pn)|0;var Fn=(s+(t=t+Math.imul(g,mn)|0)|0)+((8191&(o=(o=o+Math.imul(g,vn)|0)+Math.imul(b,mn)|0))<<13)|0;s=((u=u+Math.imul(b,vn)|0)+(o>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,t=Math.imul(B,X),o=(o=Math.imul(B,J))+Math.imul(L,X)|0,u=Math.imul(L,J),t=t+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,nn)|0)+Math.imul(q,Q)|0,u=u+Math.imul(q,nn)|0,t=t+Math.imul(R,en)|0,o=(o=o+Math.imul(R,tn)|0)+Math.imul(M,en)|0,u=u+Math.imul(M,tn)|0,t=t+Math.imul(I,un)|0,o=(o=o+Math.imul(I,rn)|0)+Math.imul(N,un)|0,u=u+Math.imul(N,rn)|0,t=t+Math.imul(k,sn)|0,o=(o=o+Math.imul(k,dn)|0)+Math.imul(A,sn)|0,u=u+Math.imul(A,dn)|0,t=t+Math.imul(E,fn)|0,o=(o=o+Math.imul(E,pn)|0)+Math.imul(S,fn)|0,u=u+Math.imul(S,pn)|0;var In=(s+(t=t+Math.imul(_,mn)|0)|0)+((8191&(o=(o=o+Math.imul(_,vn)|0)+Math.imul(C,mn)|0))<<13)|0;s=((u=u+Math.imul(C,vn)|0)+(o>>>13)|0)+(In>>>26)|0,In&=67108863,t=Math.imul(B,Q),o=(o=Math.imul(B,nn))+Math.imul(L,Q)|0,u=Math.imul(L,nn),t=t+Math.imul(O,en)|0,o=(o=o+Math.imul(O,tn)|0)+Math.imul(q,en)|0,u=u+Math.imul(q,tn)|0,t=t+Math.imul(R,un)|0,o=(o=o+Math.imul(R,rn)|0)+Math.imul(M,un)|0,u=u+Math.imul(M,rn)|0,t=t+Math.imul(I,sn)|0,o=(o=o+Math.imul(I,dn)|0)+Math.imul(N,sn)|0,u=u+Math.imul(N,dn)|0,t=t+Math.imul(k,fn)|0,o=(o=o+Math.imul(k,pn)|0)+Math.imul(A,fn)|0,u=u+Math.imul(A,pn)|0;var Nn=(s+(t=t+Math.imul(E,mn)|0)|0)+((8191&(o=(o=o+Math.imul(E,vn)|0)+Math.imul(S,mn)|0))<<13)|0;s=((u=u+Math.imul(S,vn)|0)+(o>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,t=Math.imul(B,en),o=(o=Math.imul(B,tn))+Math.imul(L,en)|0,u=Math.imul(L,tn),t=t+Math.imul(O,un)|0,o=(o=o+Math.imul(O,rn)|0)+Math.imul(q,un)|0,u=u+Math.imul(q,rn)|0,t=t+Math.imul(R,sn)|0,o=(o=o+Math.imul(R,dn)|0)+Math.imul(M,sn)|0,u=u+Math.imul(M,dn)|0,t=t+Math.imul(I,fn)|0,o=(o=o+Math.imul(I,pn)|0)+Math.imul(N,fn)|0,u=u+Math.imul(N,pn)|0;var Tn=(s+(t=t+Math.imul(k,mn)|0)|0)+((8191&(o=(o=o+Math.imul(k,vn)|0)+Math.imul(A,mn)|0))<<13)|0;s=((u=u+Math.imul(A,vn)|0)+(o>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,t=Math.imul(B,un),o=(o=Math.imul(B,rn))+Math.imul(L,un)|0,u=Math.imul(L,rn),t=t+Math.imul(O,sn)|0,o=(o=o+Math.imul(O,dn)|0)+Math.imul(q,sn)|0,u=u+Math.imul(q,dn)|0,t=t+Math.imul(R,fn)|0,o=(o=o+Math.imul(R,pn)|0)+Math.imul(M,fn)|0,u=u+Math.imul(M,pn)|0;var Rn=(s+(t=t+Math.imul(I,mn)|0)|0)+((8191&(o=(o=o+Math.imul(I,vn)|0)+Math.imul(N,mn)|0))<<13)|0;s=((u=u+Math.imul(N,vn)|0)+(o>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,t=Math.imul(B,sn),o=(o=Math.imul(B,dn))+Math.imul(L,sn)|0,u=Math.imul(L,dn),t=t+Math.imul(O,fn)|0,o=(o=o+Math.imul(O,pn)|0)+Math.imul(q,fn)|0,u=u+Math.imul(q,pn)|0;var Mn=(s+(t=t+Math.imul(R,mn)|0)|0)+((8191&(o=(o=o+Math.imul(R,vn)|0)+Math.imul(M,mn)|0))<<13)|0;s=((u=u+Math.imul(M,vn)|0)+(o>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,t=Math.imul(B,fn),o=(o=Math.imul(B,pn))+Math.imul(L,fn)|0,u=Math.imul(L,pn);var Dn=(s+(t=t+Math.imul(O,mn)|0)|0)+((8191&(o=(o=o+Math.imul(O,vn)|0)+Math.imul(q,mn)|0))<<13)|0;s=((u=u+Math.imul(q,vn)|0)+(o>>>13)|0)+(Dn>>>26)|0,Dn&=67108863;var On=(s+(t=Math.imul(B,mn))|0)+((8191&(o=(o=Math.imul(B,vn))+Math.imul(L,mn)|0))<<13)|0;return s=((u=Math.imul(L,vn))+(o>>>13)|0)+(On>>>26)|0,On&=67108863,i[0]=gn,i[1]=bn,i[2]=yn,i[3]=_n,i[4]=Cn,i[5]=wn,i[6]=En,i[7]=Sn,i[8]=xn,i[9]=kn,i[10]=An,i[11]=Fn,i[12]=In,i[13]=Nn,i[14]=Tn,i[15]=Rn,i[16]=Mn,i[17]=Dn,i[18]=On,0!==s&&(i[19]=s,e.length++),e};function h(n,l,e){return(new m).mulp(n,l,e)}function m(n,l){this.x=n,this.y=l}Math.imul||(p=f),u.prototype.mulTo=function(n,l){var e=this.length+n.length;return 10===this.length&&10===n.length?p(this,n,l):e<63?f(this,n,l):e<1024?function(n,l,e){e.negative=l.negative^n.negative,e.length=n.length+l.length;for(var t=0,o=0,u=0;u>>26)|0)>>>26,r&=67108863}e.words[u]=a,t=r,r=o}return 0!==t?e.words[u]=t:e.length--,e.strip()}(this,n,l):h(this,n,l)},m.prototype.makeRBT=function(n){for(var l=new Array(n),e=u.prototype._countBits(n)-1,t=0;t>=1;return t},m.prototype.permute=function(n,l,e,t,o,u){for(var r=0;r>>=1)o++;return 1<>>=13),u>>>=13;for(r=2*l;r>=26,l+=o/67108864|0,l+=u>>>26,this.words[e]=67108863&u}return 0!==l&&(this.words[e]=l,this.length++),this},u.prototype.muln=function(n){return this.clone().imuln(n)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(n){var l=function(n){for(var l=new Array(n.bitLength()),e=0;e>>t}return l}(n);if(0===l.length)return new u(1);for(var e=this,t=0;t>>26-e<<26-e;if(0!==e){var r=0;for(l=0;l>>26-e}r&&(this.words[l]=r,this.length++)}if(0!==o){for(l=this.length-1;0<=l;l--)this.words[l+o]=this.words[l];for(l=0;l>>u<r)for(this.length-=r,s=0;s>>u,d=c&a}return i&&0!==d&&(i.words[i.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(n,l,e){return t(0===this.negative),this.iushrn(n,l,e)},u.prototype.shln=function(n){return this.clone().ishln(n)},u.prototype.ushln=function(n){return this.clone().iushln(n)},u.prototype.shrn=function(n){return this.clone().ishrn(n)},u.prototype.ushrn=function(n){return this.clone().iushrn(n)},u.prototype.testn=function(n){t("number"==typeof n&&0<=n);var l=n%26,e=(n-l)/26;return!(this.length<=e||!(this.words[e]&1<>>l<>26)-(a/67108864|0),this.words[o+e]=67108863&u}for(;o>26,this.words[o+e]=67108863&u;if(0===r)return this.strip();for(t(-1===r),o=r=0;o>26,this.words[o]=67108863&u;return this.negative=1,this.strip()},u.prototype._wordDiv=function(n,l){var e,t=this.clone(),o=n,r=0|o.words[o.length-1];0!=(e=26-this._countBits(r))&&(o=o.ushln(e),t.iushln(e),r=0|o.words[o.length-1]);var a,i=t.length-o.length;if("mod"!==l){(a=new u(null)).length=i+1,a.words=new Array(a.length);for(var s=0;sthis.length||this.cmp(n)<0?{div:new u(0),mod:this}:1===n.length?"div"===l?{div:this.divn(n.words[0]),mod:null}:"mod"===l?{div:null,mod:new u(this.modn(n.words[0]))}:{div:this.divn(n.words[0]),mod:new u(this.modn(n.words[0]))}:this._wordDiv(n,l);var o,r,a},u.prototype.div=function(n){return this.divmod(n,"div",!1).div},u.prototype.mod=function(n){return this.divmod(n,"mod",!1).mod},u.prototype.umod=function(n){return this.divmod(n,"mod",!0).mod},u.prototype.divRound=function(n){var l=this.divmod(n);if(l.mod.isZero())return l.div;var e=0!==l.div.negative?l.mod.isub(n):l.mod,t=n.ushrn(1),o=n.andln(1),u=e.cmp(t);return u<0||1===o&&0===u?l.div:0!==l.div.negative?l.div.isubn(1):l.div.iaddn(1)},u.prototype.modn=function(n){t(n<=67108863);for(var l=(1<<26)%n,e=0,o=this.length-1;0<=o;o--)e=(l*e+(0|this.words[o]))%n;return e},u.prototype.idivn=function(n){t(n<=67108863);for(var l=0,e=this.length-1;0<=e;e--){var o=(0|this.words[e])+67108864*l;this.words[e]=o/n|0,l=o%n}return this.strip()},u.prototype.divn=function(n){return this.clone().idivn(n)},u.prototype.egcd=function(n){t(0===n.negative),t(!n.isZero());var l=this,e=n.clone();l=0!==l.negative?l.umod(n):l.clone();for(var o=new u(1),r=new u(0),a=new u(0),i=new u(1),s=0;l.isEven()&&e.isEven();)l.iushrn(1),e.iushrn(1),++s;for(var d=e.clone(),c=l.clone();!l.isZero();){for(var f=0,p=1;0==(l.words[0]&p)&&f<26;++f,p<<=1);if(0>>26,this.words[r]=a&=67108863}return 0!==u&&(this.words[r]=u,this.length++),this},u.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},u.prototype.cmpn=function(n){var l,e=n<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),1n.length)return 1;if(this.lengththis.n;);var t=l>>22,o=u}0==(n.words[t-10]=o>>>=22)&&10>>=26,n.words[e]=o,l=t}return 0!==l&&(n.words[n.length++]=l),n},u._prime=function(n){if(v[n])return v[n];var l;if("k256"===n)l=new b;else if("p224"===n)l=new y;else if("p192"===n)l=new _;else{if("p25519"!==n)throw new Error("Unknown prime "+n);l=new C}return v[n]=l},w.prototype._verify1=function(n){t(0===n.negative,"red works only with positives"),t(n.red,"red works only with red numbers")},w.prototype._verify2=function(n,l){t(0==(n.negative|l.negative),"red works only with positives"),t(n.red&&n.red===l.red,"red works only with red numbers")},w.prototype.imod=function(n){return this.prime?this.prime.ireduce(n)._forceRed(this):n.umod(this.m)._forceRed(this)},w.prototype.neg=function(n){return n.isZero()?n.clone():this.m.sub(n)._forceRed(this)},w.prototype.add=function(n,l){this._verify2(n,l);var e=n.add(l);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(n,l){this._verify2(n,l);var e=n.iadd(l);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(n,l){this._verify2(n,l);var e=n.sub(l);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(n,l){this._verify2(n,l);var e=n.isub(l);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(n,l){return this._verify1(n),this.imod(n.ushln(l))},w.prototype.imul=function(n,l){return this._verify2(n,l),this.imod(n.imul(l))},w.prototype.mul=function(n,l){return this._verify2(n,l),this.imod(n.mul(l))},w.prototype.isqr=function(n){return this.imul(n,n.clone())},w.prototype.sqr=function(n){return this.mul(n,n)},w.prototype.sqrt=function(n){if(n.isZero())return n.clone();var l=this.m.andln(3);if(t(l%2==1),3===l){var e=this.m.add(new u(1)).iushrn(2);return this.pow(n,e)}for(var o=this.m.subn(1),r=0;!o.isZero()&&0===o.andln(1);)r++,o.iushrn(1);t(!o.isZero());var a=new u(1).toRed(this),i=a.redNeg(),s=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new u(2*d*d).toRed(this);0!==this.pow(d,s).cmp(i);)d.redIAdd(i);for(var c=this.pow(d,o),f=this.pow(n,o.addn(1).iushrn(1)),p=this.pow(n,o),h=r;0!==p.cmp(a);){for(var m=p,v=0;0!==m.cmp(a);v++)m=m.redSqr();t(v>d&1;o!==e[0]&&(o=this.sqr(o)),0!==c||0!==r?(r<<=1,r|=c,(4==++a||0===t&&0===d)&&(o=this.mul(o,e[r]),r=a=0)):a=0}i=26}return o},w.prototype.convertTo=function(n){var l=n.umod(this.m);return l===n?l.clone():l},w.prototype.convertFrom=function(n){var l=n.clone();return l.red=null,l},u.mont=function(n){return new E(n)},o(E,w),E.prototype.convertTo=function(n){return this.imod(n.ushln(this.shift))},E.prototype.convertFrom=function(n){var l=this.imod(n.mul(this.rinv));return l.red=null,l},E.prototype.imul=function(n,l){if(n.isZero()||l.isZero())return n.words[0]=0,n.length=1,n;var e=n.imul(l),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=e.isub(t).iushrn(this.shift),u=o;return 0<=o.cmp(this.m)?u=o.isub(this.m):o.cmpn(0)<0&&(u=o.iadd(this.m)),u._forceRed(this)},E.prototype.mul=function(n,l){if(n.isZero()||l.isZero())return new u(0)._forceRed(this);var e=n.mul(l),t=e.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=e.isub(t).iushrn(this.shift),r=o;return 0<=o.cmp(this.m)?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},E.prototype.invm=function(n){return this.imod(n._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===l||l,this)},{buffer:26}],26:[function(n,l,e){},{}],27:[function(n,l,e){var t=n("safe-buffer").Buffer;function o(n){t.isBuffer(n)||(n=t.from(n));for(var l=n.length/4|0,e=new Array(l),o=0;o>>24]^d[h>>>16&255]^c[m>>>8&255]^f[255&v]^l[g++],r=s[h>>>24]^d[m>>>16&255]^c[v>>>8&255]^f[255&p]^l[g++],a=s[m>>>24]^d[v>>>16&255]^c[p>>>8&255]^f[255&h]^l[g++],i=s[v>>>24]^d[p>>>16&255]^c[h>>>8&255]^f[255&m]^l[g++],p=u,h=r,m=a,v=i;return u=(t[p>>>24]<<24|t[h>>>16&255]<<16|t[m>>>8&255]<<8|t[255&v])^l[g++],r=(t[h>>>24]<<24|t[m>>>16&255]<<16|t[v>>>8&255]<<8|t[255&p])^l[g++],a=(t[m>>>24]<<24|t[v>>>16&255]<<16|t[p>>>8&255]<<8|t[255&h])^l[g++],i=(t[v>>>24]<<24|t[p>>>16&255]<<16|t[h>>>8&255]<<8|t[255&m])^l[g++],[u>>>=0,r>>>=0,a>>>=0,i>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],i=function(){for(var n=new Array(256),l=0;l<256;l++)n[l]=l<128?l<<1:l<<1^283;for(var e=[],t=[],o=[[],[],[],[]],u=[[],[],[],[]],r=0,a=0,i=0;i<256;++i){var s=a^a<<1^a<<2^a<<3^a<<4,d=n[t[e[r]=s=s>>>8^255&s^99]=r],c=n[d],f=n[c],p=257*n[s]^16843008*s;o[0][r]=p<<24|p>>>8,o[1][r]=p<<16|p>>>16,o[2][r]=p<<8|p>>>24,o[3][r]=p,u[0][s]=(p=16843009*f^65537*c^257*d^16843008*r)<<24|p>>>8,u[1][s]=p<<16|p>>>16,u[2][s]=p<<8|p>>>24,u[3][s]=p,0===r?r=a=1:(r=d^n[n[n[f^d]]],a^=n[n[a]])}return{SBOX:e,INV_SBOX:t,SUB_MIX:o,INV_SUB_MIX:u}}();function s(n){this._key=o(n),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var n=this._key,l=n.length,e=l+6,t=4*(e+1),o=[],u=0;u>>24)>>>24]<<24|i.SBOX[r>>>16&255]<<16|i.SBOX[r>>>8&255]<<8|i.SBOX[255&r],r^=a[u/l|0]<<24):6>>24]<<24|i.SBOX[r>>>16&255]<<16|i.SBOX[r>>>8&255]<<8|i.SBOX[255&r]),o[u]=o[u-l]^r}for(var s=[],d=0;d>>24]]^i.INV_SUB_MIX[1][i.SBOX[f>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[f>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&f]]}this._nRounds=e,this._keySchedule=o,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(n){return r(n=o(n),this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},s.prototype.encryptBlock=function(n){var l=this.encryptBlockRaw(n),e=t.allocUnsafe(16);return e.writeUInt32BE(l[0],0),e.writeUInt32BE(l[1],4),e.writeUInt32BE(l[2],8),e.writeUInt32BE(l[3],12),e},s.prototype.decryptBlock=function(n){var l=(n=o(n))[1];n[1]=n[3],n[3]=l;var e=r(n,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),u=t.allocUnsafe(16);return u.writeUInt32BE(e[0],0),u.writeUInt32BE(e[3],4),u.writeUInt32BE(e[2],8),u.writeUInt32BE(e[1],12),u},s.prototype.scrub=function(){u(this._keySchedule),u(this._invKeySchedule),u(this._key)},l.exports.AES=s},{"safe-buffer":190}],28:[function(n,l,e){var t=n("./aes"),o=n("safe-buffer").Buffer,u=n("cipher-base"),r=n("inherits"),a=n("./ghash"),i=n("buffer-xor");function s(n,l,e,r){u.call(this),this._finID=o.concat([e,o.from([0,0,0,1])]),e=o.concat([e,o.from([0,0,0,2])]),this._cipher=new t.AES(l),this._prev=o.from(e),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._alen=0,this._len=0,this._mode=n;var i=o.alloc(4,0);this._ghash=new a(this._cipher.encryptBlock(i)),this._authTag=null,this._called=!1}r(s,u),s.prototype._update=function(n){if(!this._called&&this._alen){var l=16-this._alen%16;l<16&&(l=o.alloc(l,0),this._ghash.update(l))}this._called=!0;var e=this._mode.encrypt(this,n);return this._ghash.update(this._decrypt?n:e),this._len+=n.length,e},s.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var n=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(n,l){var e=0;n.length!==l.length&&e++;for(var t=Math.min(n.length,l.length),o=0;o>>0,0),l.writeUInt32BE(n[1]>>>0,4),l.writeUInt32BE(n[2]>>>0,8),l.writeUInt32BE(n[3]>>>0,12),l}function r(n){this.h=n,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}r.prototype.ghash=function(n){for(var l=-1;++l>>1|(1&t[l-1])<<31;t[0]=t[0]>>>1,e&&(t[0]=t[0]^225<<24)}this.state=u(o)},r.prototype.update=function(n){var l;for(this.cache=t.concat([this.cache,n]);16<=this.cache.length;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},r.prototype.final=function(n,l){return this.cache.length&&this.ghash(t.concat([this.cache,o],16)),this.ghash(u([0,n,0,l])),this.state},l.exports=r},{"safe-buffer":190}],33:[function(n,l,e){var t=n("buffer-xor");e.encrypt=function(n,l){var e=t(l,n._prev);return n._prev=n._cipher.encryptBlock(e),n._prev},e.decrypt=function(n,l){var e=n._prev;n._prev=l;var o=n._cipher.decryptBlock(l);return t(o,e)}},{"buffer-xor":44}],34:[function(n,l,e){var t=n("safe-buffer").Buffer,o=n("buffer-xor");function u(n,l,e){var u=l.length,r=o(l,n._cache);return n._cache=n._cache.slice(u),n._prev=t.concat([n._prev,e?l:r]),r}e.encrypt=function(n,l,e){for(var o,r=t.allocUnsafe(0);l.length;){if(0===n._cache.length&&(n._cache=n._cipher.encryptBlock(n._prev),n._prev=t.allocUnsafe(0)),!(n._cache.length<=l.length)){r=t.concat([r,u(n,l,e)]);break}r=t.concat([r,u(n,l.slice(0,o=n._cache.length),e)]),l=l.slice(o)}return r}},{"buffer-xor":44,"safe-buffer":190}],35:[function(n,l,e){var t=n("safe-buffer").Buffer;function o(n,l,e){for(var t,o,r=-1,a=0;++r<8;)t=l&1<<7-r?128:0,a+=(128&(o=n._cipher.encryptBlock(n._prev)[0]^t))>>r%8,n._prev=u(n._prev,e?t:o);return a}function u(n,l){var e=n.length,o=-1,u=t.allocUnsafe(n.length);for(n=t.concat([n,t.from([l])]);++o>7;return u}e.encrypt=function(n,l,e){for(var u=l.length,r=t.allocUnsafe(u),a=-1;++a>>1;case"base64":return D(n).length;default:if(t)return M(n).length;l=(""+l).toLowerCase(),t=!0}}function h(n,l,e){var t=n[l];n[l]=n[e],n[e]=t}function m(n,l,e,t,o){if(0===n.length)return-1;if("string"==typeof e?(t=e,e=0):2147483647=n.length){if(o)return-1;e=n.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof l&&(l=a.from(l,t)),a.isBuffer(l))return 0===l.length?-1:v(n,l,e,t,o);if("number"==typeof l)return l&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(n,l,e):Uint8Array.prototype.lastIndexOf.call(n,l,e):v(n,[l],e,t,o);throw new TypeError("val must be string, number or Buffer")}function v(n,l,e,t,o){var u,r=1,a=n.length,i=l.length;if(void 0!==t&&("ucs2"===(t=String(t).toLowerCase())||"ucs-2"===t||"utf16le"===t||"utf-16le"===t)){if(n.length<2||l.length<2)return-1;a/=r=2,i/=2,e/=2}function s(n,l){return 1===r?n[l]:n.readUInt16BE(l*r)}if(o){var d=-1;for(u=e;u>>10&1023|55296),d=56320|1023&d),t.push(d),o+=c}return function(n){var l=n.length;if(l<=C)return String.fromCharCode.apply(String,n);for(var e="",t=0;tthis.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(l>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return S(this,l,e);case"utf8":case"utf-8":return _(this,l,e);case"ascii":return w(this,l,e);case"latin1":case"binary":return E(this,l,e);case"base64":return y(this,l,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,l,e);default:if(t)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),t=!0}}).apply(this,arguments)},a.prototype.equals=function(n){if(!a.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===a.compare(this,n)},a.prototype.inspect=function(){var n="",l=e.INSPECT_MAX_BYTES;return 0l&&(n+=" ... ")),""},a.prototype.compare=function(n,l,e,t,o){if(!a.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===l&&(l=0),void 0===e&&(e=n?n.length:0),void 0===t&&(t=0),void 0===o&&(o=this.length),l<0||e>n.length||t<0||o>this.length)throw new RangeError("out of range index");if(o<=t&&e<=l)return 0;if(o<=t)return-1;if(e<=l)return 1;if(this===n)return 0;for(var u=(o>>>=0)-(t>>>=0),r=(e>>>=0)-(l>>>=0),i=Math.min(u,r),s=this.slice(t,o),d=n.slice(l,e),c=0;c>>=0,isFinite(e)?(e>>>=0,void 0===t&&(t="utf8")):(t=e,e=void 0)}var o=this.length-l;if((void 0===e||othis.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var u,r,a,i,s,d,c=!1;;)switch(t){case"hex":return g(this,n,l,e);case"utf8":case"utf-8":return d=e,O(M(n,this.length-(s=l)),this,s,d);case"ascii":return b(this,n,l,e);case"latin1":case"binary":return b(this,n,l,e);case"base64":return a=l,i=e,O(D(n),this,a,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r=e,O(function(n,l){for(var e,t,o=[],u=0;u>8,o.push(e%256),o.push(t);return o}(n,this.length-(u=l)),this,u,r);default:if(c)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),c=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function w(n,l,e){var t="";e=Math.min(n.length,e);for(var o=l;on.length)throw new RangeError("Index out of range")}function F(n,l,e,t,o,u){if(e+t>n.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function I(n,l,e,t,u){return l=+l,e>>>=0,u||F(n,0,e,4),o.write(n,l,e,t,23,4),e+4}function N(n,l,e,t,u){return l=+l,e>>>=0,u||F(n,0,e,8),o.write(n,l,e,t,52,8),e+8}a.prototype.slice=function(n,l){var e=this.length;(n=~~n)<0?(n+=e)<0&&(n=0):e>>=0,l>>>=0,e||k(n,l,this.length);for(var t=this[n],o=1,u=0;++u>>=0,l>>>=0,e||k(n,l,this.length);for(var t=this[n+--l],o=1;0>>=0,l||k(n,1,this.length),this[n]},a.prototype.readUInt16LE=function(n,l){return n>>>=0,l||k(n,2,this.length),this[n]|this[n+1]<<8},a.prototype.readUInt16BE=function(n,l){return n>>>=0,l||k(n,2,this.length),this[n]<<8|this[n+1]},a.prototype.readUInt32LE=function(n,l){return n>>>=0,l||k(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},a.prototype.readUInt32BE=function(n,l){return n>>>=0,l||k(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},a.prototype.readIntLE=function(n,l,e){n>>>=0,l>>>=0,e||k(n,l,this.length);for(var t=this[n],o=1,u=0;++u>>=0,l>>>=0,e||k(n,l,this.length);for(var t=l,o=1,u=this[n+--t];0>>=0,l||k(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},a.prototype.readInt16LE=function(n,l){n>>>=0,l||k(n,2,this.length);var e=this[n]|this[n+1]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt16BE=function(n,l){n>>>=0,l||k(n,2,this.length);var e=this[n+1]|this[n]<<8;return 32768&e?4294901760|e:e},a.prototype.readInt32LE=function(n,l){return n>>>=0,l||k(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},a.prototype.readInt32BE=function(n,l){return n>>>=0,l||k(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},a.prototype.readFloatLE=function(n,l){return n>>>=0,l||k(n,4,this.length),o.read(this,n,!0,23,4)},a.prototype.readFloatBE=function(n,l){return n>>>=0,l||k(n,4,this.length),o.read(this,n,!1,23,4)},a.prototype.readDoubleLE=function(n,l){return n>>>=0,l||k(n,8,this.length),o.read(this,n,!0,52,8)},a.prototype.readDoubleBE=function(n,l){return n>>>=0,l||k(n,8,this.length),o.read(this,n,!1,52,8)},a.prototype.writeUIntLE=function(n,l,e,t){n=+n,l>>>=0,e>>>=0,t||A(this,n,l,e,Math.pow(2,8*e)-1,0);var o=1,u=0;for(this[l]=255&n;++u>>=0,e>>>=0,t||A(this,n,l,e,Math.pow(2,8*e)-1,0);var o=e-1,u=1;for(this[l+o]=255&n;0<=--o&&(u*=256);)this[l+o]=n/u&255;return l+e},a.prototype.writeUInt8=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,1,255,0),this[l]=255&n,l+1},a.prototype.writeUInt16LE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,2,65535,0),this[l]=255&n,this[l+1]=n>>>8,l+2},a.prototype.writeUInt16BE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,2,65535,0),this[l]=n>>>8,this[l+1]=255&n,l+2},a.prototype.writeUInt32LE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,4,4294967295,0),this[l+3]=n>>>24,this[l+2]=n>>>16,this[l+1]=n>>>8,this[l]=255&n,l+4},a.prototype.writeUInt32BE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,4,4294967295,0),this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n,l+4},a.prototype.writeIntLE=function(n,l,e,t){if(n=+n,l>>>=0,!t){var o=Math.pow(2,8*e-1);A(this,n,l,e,o-1,-o)}var u=0,r=1,a=0;for(this[l]=255&n;++u>0)-a&255;return l+e},a.prototype.writeIntBE=function(n,l,e,t){if(n=+n,l>>>=0,!t){var o=Math.pow(2,8*e-1);A(this,n,l,e,o-1,-o)}var u=e-1,r=1,a=0;for(this[l+u]=255&n;0<=--u&&(r*=256);)n<0&&0===a&&0!==this[l+u+1]&&(a=1),this[l+u]=(n/r>>0)-a&255;return l+e},a.prototype.writeInt8=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,1,127,-128),n<0&&(n=255+n+1),this[l]=255&n,l+1},a.prototype.writeInt16LE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,2,32767,-32768),this[l]=255&n,this[l+1]=n>>>8,l+2},a.prototype.writeInt16BE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,2,32767,-32768),this[l]=n>>>8,this[l+1]=255&n,l+2},a.prototype.writeInt32LE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,4,2147483647,-2147483648),this[l]=255&n,this[l+1]=n>>>8,this[l+2]=n>>>16,this[l+3]=n>>>24,l+4},a.prototype.writeInt32BE=function(n,l,e){return n=+n,l>>>=0,e||A(this,n,l,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n,l+4},a.prototype.writeFloatLE=function(n,l,e){return I(this,n,l,!0,e)},a.prototype.writeFloatBE=function(n,l,e){return I(this,n,l,!1,e)},a.prototype.writeDoubleLE=function(n,l,e){return N(this,n,l,!0,e)},a.prototype.writeDoubleBE=function(n,l,e){return N(this,n,l,!1,e)},a.prototype.copy=function(n,l,e,t){if(e||(e=0),t||0===t||(t=this.length),l>=n.length&&(l=n.length),l||(l=0),0=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),n.length-l>>=0,e=void 0===e?this.length:e>>>0,n||(n=0),"number"==typeof n)for(u=l;u>6|192,63&e|128)}else if(e<65536){if((l-=3)<0)break;u.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((l-=4)<0)break;u.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return u}function D(n){return t.toByteArray(function(n){if((n=n.trim().replace(T,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function O(n,l,e,t){for(var o=0;o=l.length||o>=n.length);++o)l[o+e]=n[o];return o}function q(n){return n instanceof ArrayBuffer||null!=n&&null!=n.constructor&&"ArrayBuffer"===n.constructor.name&&"number"==typeof n.byteLength}function P(n){return"function"==typeof ArrayBuffer.isView&&ArrayBuffer.isView(n)}function B(n){return n!=n}},{"base64-js":20,ieee754:158}],46:[function(n,l,e){var t,o;t=this,o=function(n){"use strict";var l=function(n,e,o){if(void 0===n&&(n=l.DEFAULT_CAPACITY),void 0===e&&(e=l.DEFAULT_ENDIAN),void 0===o&&(o=l.DEFAULT_NOASSERT),!o){if((n|=0)<0)throw RangeError("Illegal capacity");e=!!e,o=!!o}this.buffer=0===n?t:new ArrayBuffer(n),this.view=0===n?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=n,this.littleEndian=e,this.noAssert=o};l.VERSION="5.0.1",l.LITTLE_ENDIAN=!0,l.BIG_ENDIAN=!1,l.DEFAULT_CAPACITY=16,l.DEFAULT_ENDIAN=l.BIG_ENDIAN,l.DEFAULT_NOASSERT=!1,l.Long=n||null;var e=l.prototype;Object.defineProperty(e,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var t=new ArrayBuffer(0),o=String.fromCharCode;function u(n){var l=0;return function(){return l>1,d=-7,c=e?o-1:0,f=e?-1:1,p=n[l+c];for(c+=f,u=p&(1<<-d)-1,p>>=-d,d+=a;0>=-d,d+=t;0>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=t?0:u-1,h=t?1:-1,m=l<0||0===l&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(a=isNaN(l)?1:0,r=d):(r=Math.floor(Math.log(l)/Math.LN2),l*(i=Math.pow(2,-r))<1&&(r--,i*=2),2<=(l+=1<=r+c?f/i:f*Math.pow(2,1-c))*i&&(r++,i/=2),d<=r+c?(a=0,r=d):1<=r+c?(a=(l*i-1)*Math.pow(2,o),r+=c):(a=l*Math.pow(2,c-1)*Math.pow(2,o),r=0));8<=o;n[e+p]=255&a,p+=h,a/=256,o-=8);for(r=r<>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t,o=l,u=n.length,r=u>>3,a=0;for(l+=this.writeVarint32(u,l);r--;)t=1&!!n[a++]|(1&!!n[a++])<<1|(1&!!n[a++])<<2|(1&!!n[a++])<<3|(1&!!n[a++])<<4|(1&!!n[a++])<<5|(1&!!n[a++])<<6|(1&!!n[a++])<<7,this.writeByte(t,l++);if(a>3,r=0,a=[];for(n+=t.length;u--;)e=this.readByte(n++),a[r++]=!!(1&e),a[r++]=!!(2&e),a[r++]=!!(4&e),a[r++]=!!(8&e),a[r++]=!!(16&e),a[r++]=!!(32&e),a[r++]=!!(64&e),a[r++]=!!(128&e);if(r>i++&1)}return l&&(this.offset=n),a},e.readBytes=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+n>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+"+n+") <= "+this.buffer.byteLength)}var t=this.slice(l,l+n);return e&&(this.offset+=n),t},e.writeBytes=e.append,e.writeInt8=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n|=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=1)&&this.resize((t*=2)>l?t:l),this.view[l-=1]=n,e&&(this.offset+=1),this},e.writeByte=e.writeInt8,e.readInt8=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var e=this.view[n];return 128==(128&e)&&(e=-(255-e+1)),l&&(this.offset+=1),e},e.readByte=e.readInt8,e.writeUint8=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=1)&&this.resize((t*=2)>l?t:l),this.view[l-=1]=n,e&&(this.offset+=1),this},e.writeUInt8=e.writeUint8,e.readUint8=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var e=this.view[n];return l&&(this.offset+=1),e},e.readUInt8=e.readUint8,e.writeInt16=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n|=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=2)&&this.resize((t*=2)>l?t:l),l-=2,this.littleEndian?(this.view[l+1]=(65280&n)>>>8,this.view[l]=255&n):(this.view[l]=(65280&n)>>>8,this.view[l+1]=255&n),e&&(this.offset+=2),this},e.writeShort=e.writeInt16,e.readInt16=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+2) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[n],e|=this.view[n+1]<<8):(e=this.view[n]<<8,e|=this.view[n+1]),32768==(32768&e)&&(e=-(65535-e+1)),l&&(this.offset+=2),e},e.readShort=e.readInt16,e.writeUint16=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=2)&&this.resize((t*=2)>l?t:l),l-=2,this.littleEndian?(this.view[l+1]=(65280&n)>>>8,this.view[l]=255&n):(this.view[l]=(65280&n)>>>8,this.view[l+1]=255&n),e&&(this.offset+=2),this},e.writeUInt16=e.writeUint16,e.readUint16=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+2) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[n],e|=this.view[n+1]<<8):(e=this.view[n]<<8,e|=this.view[n+1]),l&&(this.offset+=2),e},e.readUInt16=e.readUint16,e.writeInt32=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n|=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=4)&&this.resize((t*=2)>l?t:l),l-=4,this.littleEndian?(this.view[l+3]=n>>>24&255,this.view[l+2]=n>>>16&255,this.view[l+1]=n>>>8&255,this.view[l]=255&n):(this.view[l]=n>>>24&255,this.view[l+1]=n>>>16&255,this.view[l+2]=n>>>8&255,this.view[l+3]=255&n),e&&(this.offset+=4),this},e.writeInt=e.writeInt32,e.readInt32=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+4) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[n+2]<<16,e|=this.view[n+1]<<8,e|=this.view[n],e+=this.view[n+3]<<24>>>0):(e=this.view[n+1]<<16,e|=this.view[n+2]<<8,e|=this.view[n+3],e+=this.view[n]<<24>>>0),e|=0,l&&(this.offset+=4),e},e.readInt=e.readInt32,e.writeUint32=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=4)&&this.resize((t*=2)>l?t:l),l-=4,this.littleEndian?(this.view[l+3]=n>>>24&255,this.view[l+2]=n>>>16&255,this.view[l+1]=n>>>8&255,this.view[l]=255&n):(this.view[l]=n>>>24&255,this.view[l+1]=n>>>16&255,this.view[l+2]=n>>>8&255,this.view[l+3]=255&n),e&&(this.offset+=4),this},e.writeUInt32=e.writeUint32,e.readUint32=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+4) <= "+this.buffer.byteLength)}var e=0;return this.littleEndian?(e=this.view[n+2]<<16,e|=this.view[n+1]<<8,e|=this.view[n],e+=this.view[n+3]<<24>>>0):(e=this.view[n+1]<<16,e|=this.view[n+2]<<8,e|=this.view[n+3],e+=this.view[n]<<24>>>0),l&&(this.offset+=4),e},e.readUInt32=e.readUint32,n&&(e.writeInt64=function(l,e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"==typeof l)l=n.fromNumber(l);else if("string"==typeof l)l=n.fromString(l);else if(!(l&&l instanceof n))throw TypeError("Illegal value: "+l+" (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 l?l=n.fromNumber(l):"string"==typeof l&&(l=n.fromString(l));var o=this.buffer.byteLength;o<(e+=8)&&this.resize((o*=2)>e?o:e),e-=8;var u=l.low,r=l.high;return this.littleEndian?(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+=4)+3]=r>>>24&255,this.view[e+2]=r>>>16&255,this.view[e+1]=r>>>8&255,this.view[e]=255&r):(this.view[e]=r>>>24&255,this.view[e+1]=r>>>16&255,this.view[e+2]=r>>>8&255,this.view[e+3]=255&r,this.view[e+=4]=u>>>24&255,this.view[e+1]=u>>>16&255,this.view[e+2]=u>>>8&255,this.view[e+3]=255&u),t&&(this.offset+=8),this},e.writeLong=e.writeInt64,e.readInt64=function(l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+8) <= "+this.buffer.byteLength)}var t=0,o=0;this.littleEndian?(t=this.view[l+2]<<16,t|=this.view[l+1]<<8,t|=this.view[l],t+=this.view[l+3]<<24>>>0,o=this.view[(l+=4)+2]<<16,o|=this.view[l+1]<<8,o|=this.view[l],o+=this.view[l+3]<<24>>>0):(o=this.view[l+1]<<16,o|=this.view[l+2]<<8,o|=this.view[l+3],o+=this.view[l]<<24>>>0,t=this.view[(l+=4)+1]<<16,t|=this.view[l+2]<<8,t|=this.view[l+3],t+=this.view[l]<<24>>>0);var u=new n(t,o,!1);return e&&(this.offset+=8),u},e.readLong=e.readInt64,e.writeUint64=function(l,e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"==typeof l)l=n.fromNumber(l);else if("string"==typeof l)l=n.fromString(l);else if(!(l&&l instanceof n))throw TypeError("Illegal value: "+l+" (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 l?l=n.fromNumber(l):"string"==typeof l&&(l=n.fromString(l));var o=this.buffer.byteLength;o<(e+=8)&&this.resize((o*=2)>e?o:e),e-=8;var u=l.low,r=l.high;return this.littleEndian?(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+=4)+3]=r>>>24&255,this.view[e+2]=r>>>16&255,this.view[e+1]=r>>>8&255,this.view[e]=255&r):(this.view[e]=r>>>24&255,this.view[e+1]=r>>>16&255,this.view[e+2]=r>>>8&255,this.view[e+3]=255&r,this.view[e+=4]=u>>>24&255,this.view[e+1]=u>>>16&255,this.view[e+2]=u>>>8&255,this.view[e+3]=255&u),t&&(this.offset+=8),this},e.writeUInt64=e.writeUint64,e.readUint64=function(l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+8) <= "+this.buffer.byteLength)}var t=0,o=0;this.littleEndian?(t=this.view[l+2]<<16,t|=this.view[l+1]<<8,t|=this.view[l],t+=this.view[l+3]<<24>>>0,o=this.view[(l+=4)+2]<<16,o|=this.view[l+1]<<8,o|=this.view[l],o+=this.view[l+3]<<24>>>0):(o=this.view[l+1]<<16,o|=this.view[l+2]<<8,o|=this.view[l+3],o+=this.view[l]<<24>>>0,t=this.view[(l+=4)+1]<<16,t|=this.view[l+2]<<8,t|=this.view[l+3],t+=this.view[l]<<24>>>0);var u=new n(t,o,!0);return e&&(this.offset+=8),u},e.readUInt64=e.readUint64),e.writeFloat32=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n)throw TypeError("Illegal value: "+n+" (not a number)");if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=4)&&this.resize((t*=2)>l?t:l),i(this.view,n,l-=4,this.littleEndian,23,4),e&&(this.offset+=4),this},e.writeFloat=e.writeFloat32,e.readFloat32=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+4) <= "+this.buffer.byteLength)}var e=a(this.view,n,this.littleEndian,23,4);return l&&(this.offset+=4),e},e.readFloat=e.readFloat32,e.writeFloat64=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof n)throw TypeError("Illegal value: "+n+" (not a number)");if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t=this.buffer.byteLength;return t<(l+=8)&&this.resize((t*=2)>l?t:l),i(this.view,n,l-=8,this.littleEndian,52,8),e&&(this.offset+=8),this},e.writeDouble=e.writeFloat64,e.readFloat64=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+8) <= "+this.buffer.byteLength)}var e=a(this.view,n,this.littleEndian,52,8);return l&&(this.offset+=8),e},e.readDouble=e.readFloat64,l.MAX_VARINT32_BYTES=5,l.calculateVarint32=function(n){return(n>>>=0)<128?1:n<16384?2:n<1<<21?3:n<1<<28?4:5},l.zigZagEncode32=function(n){return((n|=0)<<1^n>>31)>>>0},l.zigZagDecode32=function(n){return n>>>1^-(1&n)|0},e.writeVarint32=function(n,e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal value: "+n+" (not an integer)");if(n|=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 o=l.calculateVarint32(n),u=this.buffer.byteLength;for(u<(e+=o)&&this.resize((u*=2)>e?u:e),e-=o,n>>>=0;128<=n;)this.view[e++]=127&n|128,n>>>=7;return this.view[e++]=n,t?(this.offset=e,this):o},e.writeVarint32ZigZag=function(n,e){return this.writeVarint32(l.zigZagEncode32(n),e)},e.readVarint32=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var e,t=0,o=0;do{if(!this.noAssert&&n>this.limit){var u=Error("Truncated");throw u.truncated=!0,u}e=this.view[n++],t<5&&(o|=(127&e)<<7*t),++t}while(0!=(128&e));return o|=0,l?(this.offset=n,o):{value:o,length:t}},e.readVarint32ZigZag=function(n){var e=this.readVarint32(n);return"object"==typeof e?e.value=l.zigZagDecode32(e.value):e=l.zigZagDecode32(e),e},n&&(l.MAX_VARINT64_BYTES=10,l.calculateVarint64=function(l){"number"==typeof l?l=n.fromNumber(l):"string"==typeof l&&(l=n.fromString(l));var e=l.toInt()>>>0,t=l.shiftRightUnsigned(28).toInt()>>>0,o=l.shiftRightUnsigned(56).toInt()>>>0;return 0==o?0==t?e<16384?e<128?1:2:e<1<<21?3:4:t<16384?t<128?5:6:t<1<<21?7:8:o<128?9:10},l.zigZagEncode64=function(l){return"number"==typeof l?l=n.fromNumber(l,!1):"string"==typeof l?l=n.fromString(l,!1):!1!==l.unsigned&&(l=l.toSigned()),l.shiftLeft(1).xor(l.shiftRight(63)).toUnsigned()},l.zigZagDecode64=function(l){return"number"==typeof l?l=n.fromNumber(l,!1):"string"==typeof l?l=n.fromString(l,!1):!1!==l.unsigned&&(l=l.toSigned()),l.shiftRightUnsigned(1).xor(l.and(n.ONE).toSigned().negate()).toSigned()},e.writeVarint64=function(e,t){var o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"==typeof e)e=n.fromNumber(e);else if("string"==typeof e)e=n.fromString(e);else if(!(e&&e instanceof n))throw TypeError("Illegal value: "+e+" (not an integer or Long)");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)}"number"==typeof e?e=n.fromNumber(e,!1):"string"==typeof e?e=n.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned());var u=l.calculateVarint64(e),r=e.toInt()>>>0,a=e.shiftRightUnsigned(28).toInt()>>>0,i=e.shiftRightUnsigned(56).toInt()>>>0,s=this.buffer.byteLength;switch(s<(t+=u)&&this.resize((s*=2)>t?s:t),t-=u,u){case 10:this.view[t+9]=i>>>7&1;case 9:this.view[t+8]=9!==u?128|i:127&i;case 8:this.view[t+7]=8!==u?a>>>21|128:a>>>21&127;case 7:this.view[t+6]=7!==u?a>>>14|128:a>>>14&127;case 6:this.view[t+5]=6!==u?a>>>7|128:a>>>7&127;case 5:this.view[t+4]=5!==u?128|a:127&a;case 4:this.view[t+3]=4!==u?r>>>21|128:r>>>21&127;case 3:this.view[t+2]=3!==u?r>>>14|128:r>>>14&127;case 2:this.view[t+1]=2!==u?r>>>7|128:r>>>7&127;case 1:this.view[t]=1!==u?128|r:127&r}return o?(this.offset+=u,this):u},e.writeVarint64ZigZag=function(n,e){return this.writeVarint64(l.zigZagEncode64(n),e)},e.readVarint64=function(l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+1) <= "+this.buffer.byteLength)}var t=l,o=0,u=0,r=0,a=0;if(o=127&(a=this.view[l++]),128&a&&(o|=(127&(a=this.view[l++]))<<7,(128&a||this.noAssert&&void 0===a)&&(o|=(127&(a=this.view[l++]))<<14,(128&a||this.noAssert&&void 0===a)&&(o|=(127&(a=this.view[l++]))<<21,(128&a||this.noAssert&&void 0===a)&&(u=127&(a=this.view[l++]),(128&a||this.noAssert&&void 0===a)&&(u|=(127&(a=this.view[l++]))<<7,(128&a||this.noAssert&&void 0===a)&&(u|=(127&(a=this.view[l++]))<<14,(128&a||this.noAssert&&void 0===a)&&(u|=(127&(a=this.view[l++]))<<21,(128&a||this.noAssert&&void 0===a)&&(r=127&(a=this.view[l++]),(128&a||this.noAssert&&void 0===a)&&(r|=(127&(a=this.view[l++]))<<7,128&a||this.noAssert&&void 0===a))))))))))throw Error("Buffer overrun");var i=n.fromBits(o|u<<28,u>>>4|r<<24,!1);return e?(this.offset=l,i):{value:i,length:l-t}},e.readVarint64ZigZag=function(e){var t=this.readVarint64(e);return t&&t.value instanceof n?t.value=l.zigZagDecode64(t.value):t=l.zigZagDecode64(t),t}),e.writeCString=function(n,l){var e=void 0===l;e&&(l=this.offset);var t,o=n.length;if(!this.noAssert){if("string"!=typeof n)throw TypeError("Illegal str: Not a string");for(t=0;t>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}o=c.calculateUTF16asUTF8(u(n))[1];var r=this.buffer.byteLength;return r<(l+=o+1)&&this.resize((r*=2)>l?r:l),l-=o+1,c.encodeUTF16toUTF8(u(n),(function(n){this.view[l++]=n}).bind(this)),this.view[l++]=0,e?(this.offset=l,this):o},e.readCString=function(n){var l=void 0===n;if(l&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var e,t=n,o=-1;return c.decodeUTF8toUTF16((function(){if(0===o)return null;if(n>=this.limit)throw RangeError("Illegal range: Truncated data, "+n+" < "+this.limit);return 0===(o=this.view[n++])?null:o}).bind(this),e=r(),!0),l?(this.offset=n,e()):{string:e(),length:n-t}},e.writeIString=function(n,l){var e=void 0===l;if(e&&(l=this.offset),!this.noAssert){if("string"!=typeof n)throw TypeError("Illegal str: Not a string");if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var t,o=l;t=c.calculateUTF16asUTF8(u(n),this.noAssert)[1];var r=this.buffer.byteLength;if(r<(l+=4+t)&&this.resize((r*=2)>l?r:l),l-=4+t,this.littleEndian?(this.view[l+3]=t>>>24&255,this.view[l+2]=t>>>16&255,this.view[l+1]=t>>>8&255,this.view[l]=255&t):(this.view[l]=t>>>24&255,this.view[l+1]=t>>>16&255,this.view[l+2]=t>>>8&255,this.view[l+3]=255&t),l+=4,c.encodeUTF16toUTF8(u(n),(function(n){this.view[l++]=n}).bind(this)),l!==o+4+t)throw RangeError("Illegal range: Truncated data, "+l+" == "+(l+4+t));return e?(this.offset=l,this):l-o},e.readIString=function(n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+4) <= "+this.buffer.byteLength)}var t=n,o=this.readUint32(n),u=this.readUTF8String(o,l.METRICS_BYTES,n+=4);return n+=u.length,e?(this.offset=n,u.string):{string:u.string,length:n-t}},l.METRICS_CHARS="c",l.METRICS_BYTES="b",e.writeUTF8String=function(n,l){var e,t=void 0===l;if(t&&(l=this.offset),!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: "+l+" (not an integer)");if((l>>>=0)<0||l+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+l+" (+0) <= "+this.buffer.byteLength)}var o=l;e=c.calculateUTF16asUTF8(u(n))[1];var r=this.buffer.byteLength;return r<(l+=e)&&this.resize((r*=2)>l?r:l),l-=e,c.encodeUTF16toUTF8(u(n),(function(n){this.view[l++]=n}).bind(this)),t?(this.offset=l,this):l-o},e.writeString=e.writeUTF8String,l.calculateUTF8Chars=function(n){return c.calculateUTF16asUTF8(u(n))[0]},l.calculateUTF8Bytes=function(n){return c.calculateUTF16asUTF8(u(n))[1]},l.calculateString=l.calculateUTF8Bytes,e.readUTF8String=function(n,e,t){"number"==typeof e&&(t=e,e=void 0);var o=void 0===t;if(o&&(t=this.offset),void 0===e&&(e=l.METRICS_CHARS),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal length: "+n+" (not an integer)");if(n|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var u,a=0,i=t;if(e===l.METRICS_CHARS){if(u=r(),c.decodeUTF8((function(){return a>>=0)<0||t+n>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+"+n+") <= "+this.buffer.byteLength)}var s=t+n;if(c.decodeUTF8toUTF16((function(){return t>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var o,r,a=e;o=c.calculateUTF16asUTF8(u(n),this.noAssert)[1],r=l.calculateVarint32(o);var i=this.buffer.byteLength;if(i<(e+=r+o)&&this.resize((i*=2)>e?i:e),e-=r+o,e+=this.writeVarint32(o,e),c.encodeUTF16toUTF8(u(n),(function(n){this.view[e++]=n}).bind(this)),e!==a+o+r)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+o+r));return t?(this.offset=e,this):e-a},e.readVString=function(n){var e=void 0===n;if(e&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+1) <= "+this.buffer.byteLength)}var t=n,o=this.readVarint32(n),u=this.readUTF8String(o.value,l.METRICS_BYTES,n+=o.length);return n+=u.length,e?(this.offset=n,u.string):{string:u.string,length:n-t}},e.append=function(n,e,t){"number"!=typeof e&&"string"==typeof e||(t=e,e=void 0);var o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}n instanceof l||(n=l.wrap(n,e));var u=n.limit-n.offset;if(u<=0)return this;var r=this.buffer.byteLength;return r<(t+=u)&&this.resize((r*=2)>t?r:t),t-=u,this.view.set(n.view.subarray(n.offset,n.limit),t),n.offset+=u,o&&(this.offset+=u),this},e.appendTo=function(n,l){return n.append(this,l),this},e.assert=function(n){return this.noAssert=!n,this},e.capacity=function(){return this.buffer.byteLength},e.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},e.clone=function(n){var e=new l(0,this.littleEndian,this.noAssert);return n?(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},e.compact=function(n,l){if(void 0===n&&(n=this.offset),void 0===l&&(l=this.limit),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal begin: Not an integer");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal end: Not an integer");if(l>>>=0,n<0||lthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+l+" <= "+this.buffer.byteLength)}if(0===n&&l===this.buffer.byteLength)return this;var e=l-n;if(0===e)return this.buffer=t,this.view=null,0<=this.markedOffset&&(this.markedOffset-=n),this.offset=0,this.limit=0,this;var o=new ArrayBuffer(e),u=new Uint8Array(o);return u.set(this.view.subarray(n,l)),this.buffer=o,this.view=u,0<=this.markedOffset&&(this.markedOffset-=n),this.offset=0,this.limit=e,this},e.copy=function(n,e){if(void 0===n&&(n=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal begin: Not an integer");if(n>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,n<0||ethis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+e+" <= "+this.buffer.byteLength)}if(n===e)return new l(0,this.littleEndian,this.noAssert);var t=e-n,o=new l(t,this.littleEndian,this.noAssert);return o.offset=0,o.limit=t,0<=o.markedOffset&&(o.markedOffset-=n),this.copyTo(o,0,n,e),o},e.copyTo=function(n,e,t,o){var u,r;if(!this.noAssert&&!l.isByteBuffer(n))throw TypeError("Illegal target: Not a ByteBuffer");if(e=(r=void 0===e)?n.offset:0|e,t=(u=void 0===t)?this.offset:0|t,o=void 0===o?this.limit:0|o,e<0||e>n.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+e+" <= "+n.buffer.byteLength);if(t<0||o>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+t+" <= "+this.buffer.byteLength);var a=o-t;return 0===a?n:(n.ensureCapacity(e+a),n.view.set(this.view.subarray(t,o),e),u&&(this.offset+=a),r&&(n.offset+=a),this)},e.ensureCapacity=function(n){var l=this.buffer.byteLength;return ln?l:n):this},e.fill=function(n,l,e){var t=void 0===l;if(t&&(l=this.offset),"string"==typeof n&&0>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,l<0||ethis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+l+" <= "+e+" <= "+this.buffer.byteLength)}if(e<=l)return this;for(;l>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=n,this},e.order=function(n){if(!this.noAssert&&"boolean"!=typeof n)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!n,this},e.LE=function(n){return this.littleEndian=void 0===n||!!n,this},e.BE=function(n){return this.littleEndian=void 0!==n&&!n,this},e.prepend=function(n,e,t){"number"!=typeof e&&"string"==typeof e||(t=e,e=void 0);var o=void 0===t;if(o&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}n instanceof l||(n=l.wrap(n,e));var u=n.limit-n.offset;if(u<=0)return this;var r=u-t;if(0>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal end: Not an integer");if(l>>>=0,n<0||lthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+l+" <= "+this.buffer.byteLength)}return n===l||Array.prototype.reverse.call(this.view.subarray(n,l)),this},e.skip=function(n){if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal length: "+n+" (not an integer)");n|=0}var l=this.offset+n;if(!this.noAssert&&(l<0||l>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+n+" <= "+this.buffer.byteLength);return this.offset=l,this},e.slice=function(n,l){if(void 0===n&&(n=this.offset),void 0===l&&(l=this.limit),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal begin: Not an integer");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal end: Not an integer");if(l>>>=0,n<0||lthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+l+" <= "+this.buffer.byteLength)}var e=this.clone();return e.offset=n,e.limit=l,e},e.toBuffer=function(n){var l=this.offset,e=this.limit;if(!this.noAssert){if("number"!=typeof l||l%1!=0)throw TypeError("Illegal offset: Not an integer");if(l>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal limit: Not an integer");if(e>>>=0,l<0||ethis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+l+" <= "+e+" <= "+this.buffer.byteLength)}if(!n&&0===l&&e===this.buffer.byteLength)return this.buffer;if(l===e)return t;var o=new ArrayBuffer(e-l);return new Uint8Array(o).set(new Uint8Array(this.buffer).subarray(l,e),0),o},e.toArrayBuffer=e.toBuffer,e.toString=function(n,l,e){if(void 0===n)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof n&&(e=l=n="utf8"),n){case"utf8":return this.toUTF8(l,e);case"base64":return this.toBase64(l,e);case"hex":return this.toHex(l,e);case"binary":return this.toBinary(l,e);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+n)}};var s=function(){for(var n={},l=[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],e=[],t=0,o=l.length;t>2&63]),o=(3&t)<<4,null!==(t=n())?(e(l[63&((o|=t>>4&15)|t>>4&15)]),o=(15&t)<<2,null!==(t=n())?(e(l[63&(o|t>>6&3)]),e(l[63&t])):(e(l[63&o]),e(61))):(e(l[63&o]),e(61),e(61))},n.decode=function(n,l){var t,o,u;function r(n){throw Error("Illegal character code: "+n)}for(;null!==(t=n());)if(void 0===(o=e[t])&&r(t),null!==(t=n())&&(void 0===(u=e[t])&&r(t),l(o<<2>>>0|(48&u)>>4),null!==(t=n()))){if(void 0===(o=e[t])){if(61===t)break;r(t)}if(l((15&u)<<4>>>0|(60&o)>>2),null!==(t=n())){if(void 0===(u=e[t])){if(61===t)break;r(t)}l((3&o)<<6>>>0|u)}}},n.test=function(n){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(n)},n}();e.toBase64=function(n,l){if(void 0===n&&(n=this.offset),void 0===l&&(l=this.limit),l|=0,(n|=0)<0||l>this.capacity||lthis.capacity()||l":e===this.markedOffset?"'":n||0!==e&&e!==t?" ":""}if(n&&" "!==o){for(;o.length<51;)o+=" ";r+=o+u+"\n"}return n?r:o},l.fromDebug=function(n,e,t){for(var o,u,r=n.length,a=new l((r+1)/3|0,e,t),i=0,s=0,d=!1,c=!1,f=!1,p=!1,h=!1;i":if(!t){if(p){h=!0;break}p=!0}a.limit=s,d=!1;break;case"'":if(!t){if(f){h=!0;break}f=!0}a.markedOffset=s,d=!1;break;case" ":d=!1;break;default:if(!t&&d){h=!0;break}if(u=parseInt(o+n.charAt(i++),16),!t&&(isNaN(u)||u<0||255>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal end: Not an integer");if(l>>>=0,n<0||lthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+l+" <= "+this.buffer.byteLength)}for(var e,t=new Array(l-n);n>6&31|192):(e<65536?l(e>>12&15|224):(l(e>>18&7|240),l(e>>12&63|128)),l(e>>6&63|128)),l(63&e|128)),e=null},decodeUTF8:function(n,l){for(var e,t,o,u,r=function(n){n=n.slice(0,n.indexOf(null));var l=Error(n.toString());throw l.name="TruncatedError",l.bytes=n,l};null!==(e=n());)if(0==(128&e))l(e);else if(192==(224&e))null===(t=n())&&r([e,t]),l((31&e)<<6|63&t);else if(224==(240&e))(null===(t=n())||null===(o=n()))&&r([e,t,o]),l((15&e)<<12|(63&t)<<6|63&o);else{if(240!=(248&e))throw RangeError("Illegal starting byte: "+e);(null===(t=n())||null===(o=n())||null===(u=n()))&&r([e,t,o,u]),l((7&e)<<18|(63&t)<<12|(63&o)<<6|63&u)}},UTF16toUTF8:function(n,l){for(var e,t=null;null!==(e=null!==t?t:n());)55296<=e&&e<=57343&&null!==(t=n())&&56320<=t&&t<=57343?(l(1024*(e-55296)+t-56320+65536),t=null):l(e);null!==t&&l(t)},UTF8toUTF16:function(n,l){var e=null;for("number"==typeof n&&(e=n,n=function(){return null});null!==e||null!==(e=n());)e<=65535?l(e):(l(55296+((e-=65536)>>10)),l(e%1024+56320)),e=null},encodeUTF16toUTF8:function(n,l){d.UTF16toUTF8(n,function(n){d.encodeUTF8(n,l)})},decodeUTF8toUTF16:function(n,l){d.decodeUTF8(n,function(n){d.UTF8toUTF16(n,l)})},calculateCodePoint:function(n){return n<128?1:n<2048?2:n<65536?3:4},calculateUTF8:function(n){for(var l,e=0;null!==(l=n());)e+=l<128?1:l<2048?2:l<65536?3:4;return e},calculateUTF16asUTF8:function(n){var l=0,e=0;return d.UTF16toUTF8(n,function(n){++l,e+=n<128?1:n<2048?2:n<65536?3:4}),[l,e]}};return e.toUTF8=function(n,l){if(void 0===n&&(n=this.offset),void 0===l&&(l=this.limit),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal begin: Not an integer");if(n>>>=0,"number"!=typeof l||l%1!=0)throw TypeError("Illegal end: Not an integer");if(l>>>=0,n<0||lthis.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+n+" <= "+l+" <= "+this.buffer.byteLength)}var e;try{c.decodeUTF8toUTF16((function(){return ns;)i.call(n,r=a[s++])&&l.push(r);return l}},{"./_object-gops":88,"./_object-keys":91,"./_object-pie":92}],66:[function(n,l,e){var t=n("./_global"),o=n("./_core"),u=n("./_ctx"),r=n("./_hide"),a="prototype",i=function(n,l,e){var s,d,c,f=n&i.F,p=n&i.G,h=n&i.S,m=n&i.P,v=n&i.B,g=n&i.W,b=p?o:o[l]||(o[l]={}),y=b[a],_=p?t:h?t[l]:(t[l]||{})[a];for(s in p&&(e=l),e)(d=!f&&_&&void 0!==_[s])&&s in b||(c=d?_[s]:e[s],b[s]=p&&"function"!=typeof _[s]?e[s]:v&&d?u(c,t):g&&_[s]==c?function(n){var l=function(l,e,t){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(l);case 2:return new n(l,e)}return new n(l,e,t)}return n.apply(this,arguments)};return l[a]=n[a],l}(c):m&&"function"==typeof c?u(Function.call,c):c,m&&((b.virtual||(b.virtual={}))[s]=c,n&i.R&&y&&!y[s]&&r(y,s,c)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,l.exports=i},{"./_core":59,"./_ctx":60,"./_global":68,"./_hide":70}],67:[function(n,l,e){l.exports=function(n){try{return!!n()}catch(n){return!0}}},{}],68:[function(n,l,e){var t=l.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},{}],69:[function(n,l,e){var t={}.hasOwnProperty;l.exports=function(n,l){return t.call(n,l)}},{}],70:[function(n,l,e){var t=n("./_object-dp"),o=n("./_property-desc");l.exports=n("./_descriptors")?function(n,l,e){return t.f(n,l,o(1,e))}:function(n,l,e){return n[l]=e,n}},{"./_descriptors":62,"./_object-dp":83,"./_property-desc":93}],71:[function(n,l,e){var t=n("./_global").document;l.exports=t&&t.documentElement},{"./_global":68}],72:[function(n,l,e){l.exports=!n("./_descriptors")&&!n("./_fails")(function(){return 7!=Object.defineProperty(n("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":62,"./_dom-create":63,"./_fails":67}],73:[function(n,l,e){var t=n("./_cof");l.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==t(n)?n.split(""):Object(n)}},{"./_cof":58}],74:[function(n,l,e){var t=n("./_cof");l.exports=Array.isArray||function(n){return"Array"==t(n)}},{"./_cof":58}],75:[function(n,l,e){l.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},{}],76:[function(n,l,e){"use strict";var t=n("./_object-create"),o=n("./_property-desc"),u=n("./_set-to-string-tag"),r={};n("./_hide")(r,n("./_wks")("iterator"),function(){return this}),l.exports=function(n,l,e){n.prototype=t(r,{next:o(1,e)}),u(n,l+" Iterator")}},{"./_hide":70,"./_object-create":82,"./_property-desc":93,"./_set-to-string-tag":95,"./_wks":108}],77:[function(n,l,e){"use strict";var t=n("./_library"),o=n("./_export"),u=n("./_redefine"),r=n("./_hide"),a=n("./_has"),i=n("./_iterators"),s=n("./_iter-create"),d=n("./_set-to-string-tag"),c=n("./_object-gpo"),f=n("./_wks")("iterator"),p=!([].keys&&"next"in[].keys()),h="values",m=function(){return this};l.exports=function(n,l,e,v,g,b,y){s(e,l,v);var _,C,w,E=function(n){if(!p&&n in A)return A[n];switch(n){case"keys":case h:return function(){return new e(this,n)}}return function(){return new e(this,n)}},S=l+" Iterator",x=g==h,k=!1,A=n.prototype,F=A[f]||A["@@iterator"]||g&&A[g],I=F||E(g),N=g?x?E("entries"):I:void 0,T="Array"==l&&A.entries||F;if(T&&(w=c(T.call(new n)))!==Object.prototype&&w.next&&(d(w,S,!0),t||a(w,f)||r(w,f,m)),x&&F&&F.name!==h&&(k=!0,I=function(){return F.call(this)}),t&&!y||!p&&!k&&A[f]||r(A,f,I),i[l]=I,i[S]=m,g)if(_={values:x?I:E(h),keys:b?I:E("keys"),entries:N},y)for(C in _)C in A||u(A,C,_[C]);else o(o.P+o.F*(p||k),l,_);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(n,l,e){l.exports=function(n,l){return{value:l,done:!!n}}},{}],79:[function(n,l,e){l.exports={}},{}],80:[function(n,l,e){l.exports=!0},{}],81:[function(n,l,e){var t=n("./_uid")("meta"),o=n("./_is-object"),u=n("./_has"),r=n("./_object-dp").f,a=0,i=Object.isExtensible||function(){return!0},s=!n("./_fails")(function(){return i(Object.preventExtensions({}))}),d=function(n){r(n,t,{value:{i:"O"+ ++a,w:{}}})},c=l.exports={KEY:t,NEED:!1,fastKey:function(n,l){if(!o(n))return"symbol"==typeof n?n:("string"==typeof n?"S":"P")+n;if(!u(n,t)){if(!i(n))return"F";if(!l)return"E";d(n)}return n[t].i},getWeak:function(n,l){if(!u(n,t)){if(!i(n))return!0;if(!l)return!1;d(n)}return n[t].w},onFreeze:function(n){return s&&c.NEED&&i(n)&&!u(n,t)&&d(n),n}}},{"./_fails":67,"./_has":69,"./_is-object":75,"./_object-dp":83,"./_uid":105}],82:[function(n,l,e){var t=n("./_an-object"),o=n("./_object-dps"),u=n("./_enum-bug-keys"),r=n("./_shared-key")("IE_PROTO"),a=function(){},i="prototype",s=function(){var l,e=n("./_dom-create")("iframe"),t=u.length;for(e.style.display="none",n("./_html").appendChild(e),e.src="javascript:",(l=e.contentWindow.document).open(),l.write("