21 lines
597 KiB
JavaScript
21 lines
597 KiB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.trezor=e()}}(function(){var e;return function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("./events"),f=e("./flow-events"),c=e("./utils/connectionLock"),l=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.listening=!1,n.previous=null,n.current=[],n.errorEvent=new f.Event1("error",n),n.connectEvent=new f.Event1("connect",n),n.disconnectEvent=new f.Event1("disconnect",n),n.acquiredEvent=new f.Event1("acquired",n),n.releasedEvent=new f.Event1("released",n),n.changedSessionsEvent=new f.Event1("changedSessions",n),n.updateEvent=new f.Event1("update",n),n.transport=e,n}return o(t,e),a(t,[{key:"setHard",value:function(e,t){if(null!=this.previous){var n=this.previous.map(function(n){return n.path===e?s({},n,{session:t}):n});this.current=n,this._reportChanges()}}},{key:"listen",value:function(){var e=this,t=null!==this.previous;this.listening=!0;var n=this.previous||[];(t?this.transport.listen(n):this.transport.enumerate()).then(function(t){e.listening&&(e.current=t,e._reportChanges(),e.listening&&e.listen())}).catch(function(t){e.errorEvent.emit(t)})}},{key:"stop",value:function(){this.listening=!1}},{key:"_diff",value:function(e,t){var n=e||[],r=t.filter(function(e){return void 0===n.find(function(t){return t.path===e.path})}),i=n.filter(function(e){return void 0===t.find(function(t){return t.path===e.path})}),o=t.filter(function(e){var t=n.find(function(t){return t.path===e.path});return void 0!==t&&t.session!==e.session});return{connected:r,disconnected:i,changedSessions:o,acquired:o.filter(function(e){return null!=e.session}),released:o.filter(function(e){return null==e.session}),didUpdate:r.length+i.length+o.length>0,descriptors:t}}},{key:"_reportChanges",value:function(){var e=this;(0,c.lock)(function(){var t=e._diff(e.previous,e.current);return e.previous=e.current,t.didUpdate&&(t.connected.forEach(function(t){e.connectEvent.emit(t)}),t.disconnected.forEach(function(t){e.disconnectEvent.emit(t)}),t.acquired.forEach(function(t){e.acquiredEvent.emit(t)}),t.released.forEach(function(t){e.releasedEvent.emit(t)}),t.changedSessions.forEach(function(t){e.changedSessionsEvent.emit(t)}),e.updateEvent.emit(t)),Promise.resolve()})}}]),t}(u.EventEmitter);n.default=l,t.exports=n.default},{"./events":4,"./flow-events":5,"./utils/connectionLock":12}],2:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return Object.keys(e).map(function(t){return e[t]})}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=e("./events"),c=e("./flow-events"),l=e("./descriptor-stream"),h=r(l),p=e("./device"),d=r(p),y=e("./unacquired-device"),v=r(y),g=function(e){function t(e){i(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.transportLoading=!0,n.stream=null,n.devices={},n.unacquiredDevices={},n.creatingDevices={},n.sessions={},n.errorEvent=new c.Event1("error",n),n.transportEvent=new c.Event1("transport",n),n.streamEvent=new c.Event1("stream",n),n.connectEvent=new c.Event2("connect",n),n.connectUnacquiredEvent=new c.Event1("connectUnacquired",n),n.changedSessionsEvent=new c.Event1("changedSessions",n),n.acquiredEvent=new c.Event1("acquired",n),n.releasedEvent=new c.Event1("released",n),n.disconnectEvent=new c.Event1("disconnect",n),n.disconnectUnacquiredEvent=new c.Event1("disconnectUnacquired",n),n.updateEvent=new c.Event1("update",n),n.options=e||{},n.requestNeeded=!1,n.transportEvent.on(function(e){n.transport=e,n.transportLoading=!1,n.requestNeeded=e.requestNeeded,n._initStream(e)}),n.streamEvent.on(function(e){n.stream=e}),setTimeout(function(){return n._initTransport()},0),n}return s(t,e),u(t,null,[{key:"_setFetch",value:function(e){t._fetch=e}},{key:"_setTransport",value:function(e){t.defaultTransport=e}}]),u(t,[{key:"requestDevice",value:function(){return null==this.transport?Promise.reject():this.transport.requestDevice()}},{key:"asArray",value:function(){return a(this.devices)}},{key:"unacquiredAsArray",value:function(){return a(this.unacquiredDevices)}},{key:"hasDeviceOrUnacquiredDevice",value:function(){return this.asArray().length+this.unacquiredAsArray().length>0}},{key:"transportType",value:function(){if(null==this.transport)return"";if(this.transport.activeName){var e=this.transport.activeName;return"BridgeTransport"===e?"bridge":"ExtensionTransport"===e?"extension":e}return this.transport.name}},{key:"transportVersion",value:function(){return null==this.transport?"":this.transport.version}},{key:"transportOutdated",value:function(){return null!=this.transport&&!!this.transport.isOutdated}},{key:"_configTransport",value:function(e){if(null!=this.options.config)return e.configure(this.options.config);var n=null==this.options.configUrl?"https://wallet.trezor.io/data/config_signed.bin?"+Date.now():this.options.configUrl;return(0,t._fetch)(n).then(function(e){if(!e.ok)throw new Error("Wrong config response.");return e.text()}).then(function(t){return e.configure(t)})}},{key:"_initTransport",value:function(){var e=this,n=this.options.transport?this.options.transport:t.defaultTransport();this.options.debugInfo&&console.log("[trezor.js] [device list] Initializing transports"),n.init(this.options.debug).then(function(){e.options.debugInfo&&console.log("[trezor.js] [device list] Configuring transports"),e._configTransport(n).then(function(){e.options.debugInfo&&console.log("[trezor.js] [device list] Configuring transports done"),e.transportEvent.emit(n)})},function(t){e.options.debugInfo&&console.error("[trezor.js] [device list] Error in transport",t),e.errorEvent.emit(t)})}},{key:"_createAndSaveDevice",value:function(e,t,n,r){var i=this;this.options.debugInfo&&console.log("[trezor.js] [device list] Creating Device",t,r);var o=t.path.toString();this.creatingDevices[o]=!0,this._createDevice(e,t,n,r).then(function(e){e instanceof d.default?(i.devices[o]=e,delete i.creatingDevices[o],i.connectEvent.emit(e,r)):(delete i.creatingDevices[o],i.unacquiredDevices[o]=e,i.connectUnacquiredEvent.emit(e))}).catch(function(e){console.debug("[trezor.js] [device list] Cannot create device",e)})}},{key:"_createDevice",value:function(e,t,n,r){var i=this;return d.default.fromDescriptor(e,t,this).then(function(e){return e}).catch(function(o){if("wrong previous session"===o.message)return null==r?i._createUnacquiredDevice(e,t,n):(i.unacquiredDevices[r.originalDescriptor.path.toString()]=r,r);throw i.errorEvent.emit(o),o})}},{key:"_createUnacquiredDevice",value:function(e,t,n){var r=this;return this.options.debugInfo&&console.log("[trezor.js] [device list] Creating Unacquired Device",t),v.default.fromDescriptor(e,t,this).then(function(e){return e}).catch(function(e){r.errorEvent.emit(e)})}},{key:"getSession",value:function(e){return this.sessions[e]}},{key:"setHard",value:function(e,t){null!=this.stream&&this.stream.setHard(e,t),this.sessions[e]=t}},{key:"_initStream",value:function(e){var t=this,n=new h.default(e);n.updateEvent.on(function(r){t.sessions={},r.descriptors.forEach(function(e){t.sessions[e.path.toString()]=e.session}),r.connected.forEach(function(r){var i=r.path;null==r.session?t._createAndSaveDevice(e,r,n):(t.creatingDevices[i.toString()]=!0,t._createUnacquiredDevice(e,r,n).then(function(e){t.unacquiredDevices[i.toString()]=e,delete t.creatingDevices[i.toString()],t.connectUnacquiredEvent.emit(e)}))}),[{d:r.changedSessions,e:t.changedSessionsEvent},{d:r.acquired,e:t.acquiredEvent},{d:r.released,e:t.releasedEvent}].forEach(function(e){var n=e.d,r=e.e;n.forEach(function(e){var n=e.path.toString(),i=t.devices[n];null!=i&&r.emit(i)})}),r.disconnected.forEach(function(e){var n=e.path,r=n.toString(),i=t.devices[r];null!=i&&(delete t.devices[r],t.disconnectEvent.emit(i));var o=t.unacquiredDevices[r];null!=o&&(delete t.unacquiredDevices[r],t.disconnectUnacquiredEvent.emit(o))}),r.released.forEach(function(r){var i=r.path;if(null!=t.unacquiredDevices[i.toString()]){var o=t.unacquiredDevices[i.toString()];delete t.unacquiredDevices[i.toString()],t._createAndSaveDevice(e,r,n,o)}}),t.updateEvent.emit(r)}),n.errorEvent.on(function(e){t.errorEvent.emit(e),n.stop()}),n.listen(),this.streamEvent.emit(n)}},{key:"onUnacquiredConnect",value:function(e,t){var n=e.originalDescriptor.path.toString();null==this.unacquiredDevices[n]?null!=this.creatingDevices[n]?this.connectEvent.on(t):null!=this.devices[n]&&t(this.devices[n],e):this.connectEvent.on(t)}},{key:"onUnacquiredDisconnect",value:function(e,t){var n=e.originalDescriptor.path.toString();null==this.unacquiredDevices[n]?null!=this.creatingDevices[n]?this.disconnectUnacquiredEvent.on(t):null==this.devices[n]&&t(e):this.disconnectUnacquiredEvent.on(t)}},{key:"onDisconnect",value:function(e,t){var n=e.originalDescriptor.path.toString();null==this.devices[n]&&null==this.creatingDevices[n]?t(e):this.disconnectEvent.on(t)}},{key:"stealFirstDevice",value:function(e){var t=this,n=this.asArray();if(n.length>0)return Promise.resolve(n[0]);var r=this.unacquiredAsArray();return r.length>0?r[0].steal():e?Promise.reject(new Error("No device connected")):new Promise(function(e,n){t.connectEvent.once(function(){t.stealFirstDevice().then(function(t){return e(t)},function(e){return n(e)})})})}},{key:"acquireFirstDevice",value:function(e){var t=this,n=function(e){return new Promise(function(t){setTimeout(function(){return t()},e)})};return new Promise(function(n,r){t.stealFirstDevice(e).then(function(e){e.run(function(t){return n({device:e,session:t}),new Promise(function(e,t){})})},function(e){r(e)})}).catch(function(r){if("wrong previous session"===r.message)return n(1e3).then(function(){return t.acquireFirstDevice(e)});throw r})}},{key:"onbeforeunload",value:function(e){this.asArray().forEach(function(t){return t.onbeforeunload(e)})}}]),t}(f.EventEmitter);g._fetch=function(){return Promise.reject(new Error("No fetch defined"))},n.default=g,t.exports=n.default},{"./descriptor-stream":1,"./device":3,"./events":4,"./flow-events":5,"./unacquired-device":10}],3:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){e.on(function(e){0!==t.listenerCount()&&t.emit(e)})}function u(e,t){e.on(function(e){t.emit(e)})}function f(e,t){e.on(function(e,n){t.emit(e,n)})}function c(e,t){e.on(function(e){t.emit(e)})}function l(e,t){e.on(function(e,n){t.emit(e,n)})}function h(e,t){return e.then(function(e){return t(e,null).then(function(){return e})},function(e){return t(null,e).then(function(){throw e},function(){throw e})})}Object.defineProperty(n,"__esModule",{value:!0});var p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=e("semver-compare"),v=r(y),g=e("./events"),b=e("./flow-events"),m=e("./session"),w=r(m),E=e("./utils/connectionLock"),_=function(e){function t(e,n,r,s){i(this,t);var a=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.activityInProgress=!1,a.connected=!0,a.clearSession=!1,a.clearSessionTime=6e5,a.clearSessionTimeout=null,a.clearSessionFuture=0,a.rememberPlaintextPassphrase=!1,a.rememberedPlaintextPasshprase=null,a.disconnectEvent=new b.Event0("disconnect",a),a.buttonEvent=new b.Event1("button",a),a.errorEvent=new b.Event1("error",a),a.passphraseEvent=new b.Event1("passphrase",a),a.wordEvent=new b.Event1("word",a),a.changedSessionsEvent=new b.Event2("changedSessions",a),a.pinEvent=new b.Event2("pin",a),a.receiveEvent=new b.Event2("receive",a),a.sendEvent=new b.Event2("send",a),a._stolenEvent=new b.Event0("stolen",a),a.transport=e,a.originalDescriptor=n,a.deviceList=s,a.deviceList.options.clearSession&&(a.clearSession=!0,a.deviceList.options.clearSessionTime&&(a.clearSessionTime=a.deviceList.options.clearSessionTime)),a.deviceList.options.rememberDevicePassphrase&&(a.rememberPlaintextPassphrase=!0),a.features=r,a.connected=!0,a._watch(),a}return s(t,e),d(t,[{key:"waitForSessionAndRun",value:function(e,t){var n=null==t?{}:t;return this.run(e,p({},n,{waiting:!0}))}},{key:"runAggressive",value:function(e,t){var n=null==t?{}:t;return this.run(e,p({},n,{aggressive:!0}))}},{key:"run",value:function(e,n){var r=this;if(!this.connected)return Promise.reject(new Error("Device disconnected."));var i=null==n?{}:n,o=!!i.aggressive,s=!!i.skipFinalReload,a=!!i.waiting;if(!!i.onlyOneActivity&&this.activityInProgress)return Promise.reject(new Error("One activity already running."));this.activityInProgress=!0,this._stopClearSessionTimeout();var u=this.deviceList.getSession(this.originalDescriptor.path);if(!o&&!a&&null!=u)return Promise.reject(new Error("Device used in another window."));if(o&&a)return Promise.reject(new Error("Combination of aggressive and waiting doesn't make sense."));var f=Promise.resolve(u);a&&null!=u&&(f=this._waitForNullSession());var c=function(e,t){return t&&"wrong previous session"===t.message&&a||r.clearSession&&r._startClearSessionTimeout(),Promise.resolve()};return f.then(function(i){var o=p({},r.originalDescriptor,{session:i}),u=new g.EventEmitter,f=new Promise(function(e,t){var n=function(){u.removeAllListeners(),t(new Error("The action was interrupted by another application."))};r._stolenEvent.once(n),u.once("done",function(){r._stolenEvent.removeListener(n),e()})}),l=t._run(function(t,n){return r._runInside(e,t,n,s)},r.transport,o,r.deviceList,function(e){r.currentSessionObject=e},function(e){return r.currentSessionObject=null,r.activityInProgress=!1,null!=e&&r.connected?"Action was interrupted."===e.message?(r._stolenEvent.emit(),Promise.resolve()):new Promise(function(e,t){var n=function(){},i=function(){r.isStolen()&&r._stolenEvent.emit(),r.disconnectEvent.removeListener(n),e()};n=function(){r.changedSessionsEvent.removeListener(i),e()},r.changedSessionsEvent.once(i),r.disconnectEvent.once(n)}):Promise.resolve()});return h(Promise.all([h(l,function(e,t){return u.emit("done"),Promise.resolve()}),f]).then(function(){return l}),function(e,t){return c(0,t)}).catch(function(t){if(!r.connected)throw new Error("Device was disconnected during action.");if("wrong previous session"===t.message&&a)return r._waitForNullSession().then(function(){return r.run(e,n)});throw t})})}},{key:"_reloadFeaturesOrInitialize",value:function(e){var t=this,n=void 0;return n=this.atLeast("1.3.3")?e.getFeatures():e.initialize(),n.then(function(e){t.features=e.message})}},{key:"_startClearSessionTimeout",value:function(){var e=this;this.features.bootloader_mode||(this.clearSessionTimeout=window.setTimeout(function(){var t={onlyOneActivity:!0};e.run(function(e){return e.clearSession()},t),e.clearSessionTimeout=null},this.clearSessionTime),this.clearSessionFuture=Date.now()+this.clearSessionTime)}},{key:"clearSessionRest",value:function(){return null==this.clearSessionTimeout?0:this.clearSessionFuture-Date.now()}},{key:"_stopClearSessionTimeout",value:function(){null!=this.clearSessionTimeout&&(window.clearTimeout(this.clearSessionTimeout),this.clearSessionTimeout=null)}},{key:"forwardPassphrase",value:function(e){var t=this;e.on(function(e){if(null!=t.rememberedPlaintextPasshprase){var n=t.rememberedPlaintextPasshprase;return void e(null,n)}var r=function(n,r){t.rememberPlaintextPassphrase&&(t.rememberedPlaintextPasshprase=r),e(n,r)};t.passphraseEvent.emit(r)})}},{key:"_runInside",value:function(e,t,n,r){var i=this;this.features=n,l(t.sendEvent,this.sendEvent),l(t.receiveEvent,this.receiveEvent),a(t.errorEvent,this.errorEvent),c(t.buttonEvent,this.buttonEvent),f(t.pinEvent,this.pinEvent),u(t.wordEvent,this.wordEvent),this.forwardPassphrase(t.passphraseEvent);var o=function(){return t.deactivateEvents(),r?Promise.resolve():i._reloadFeaturesOrInitialize(t)};return h(Promise.resolve(e(t)),function(){return o()})}},{key:"_waitForNullSession",value:function(){var e=this;return new Promise(function(t,n){var r=function(){},i=function n(){var i=e.deviceList.getSession(e.originalDescriptor.path),o=e.deviceList.devices[e.originalDescriptor.path.toString()];null==i&&null!=o&&(e.deviceList.disconnectEvent.removeListener(r),e.deviceList.updateEvent.removeListener(n),t(i))};r=function(t){t===e&&(e.deviceList.disconnectEvent.removeListener(r),e.deviceList.updateEvent.removeListener(i),n(new Error("Device disconnected")))},i(),e.deviceList.updateEvent.on(i),e.deviceList.onDisconnect(e,r)})}},{key:"reloadFeatures",value:function(){return this.run(function(){return!0})}},{key:"steal",value:function(){return this.run(function(){return!0},{aggressive:!0})}},{key:"isBootloader",value:function(){return this.features.bootloader_mode}},{key:"isInitialized",value:function(){return this.features.initialized}},{key:"getVersion",value:function(){return[this.features.major_version,this.features.minor_version,this.features.patch_version].join(".")}},{key:"atLeast",value:function(e){return(0,v.default)(this.getVersion(),e)>=0}},{key:"getCoin",value:function(e){for(var t=this.features.coins,n=0;n<t.length;n++)if(t[n].coin_name===e)return t[n];throw new Error("Device does not support given coin type")}},{key:"_watch",value:function(){var e=this,t=function(t){t===e&&(e.changedSessionsEvent.emit(e.isUsed(),e.isUsedHere()),e.isStolen()&&null!=e.currentSessionObject&&e._stolenEvent.emit())},n=function n(r){if(r===e){e.disconnectEvent.emit(),e.deviceList.disconnectEvent.removeListener(n),e.deviceList.changedSessionsEvent.removeListener(t),e.connected=!1;[e.changedSessionsEvent,e.sendEvent,e.receiveEvent,e.errorEvent,e.buttonEvent,e.pinEvent,e.wordEvent].forEach(function(e){return e.removeAllListeners()})}};t(this),this.deviceList.changedSessionsEvent.on(t),this.deviceList.onDisconnect(this,n)}},{key:"isUsed",value:function(){return null!=this.deviceList.getSession(this.originalDescriptor.path)}},{key:"isUsedHere",value:function(){var e=this.deviceList.getSession(this.originalDescriptor.path),t=null!=this.currentSessionObject?this.currentSessionObject.getId():null;return null!=e&&t===e}},{key:"isUsedElsewhere",value:function(){return this.isUsed()&&!this.isUsedHere()}},{key:"isStolen",value:function(){var e=null!=this.currentSessionObject;return this.isUsed()?!e||this.isUsedElsewhere():!!e}},{key:"onbeforeunload",value:function(){var e=this.currentSessionObject;null!=e&&(this.clearSession&&e.clearSession(),e.release())}}],[{key:"_run",value:function(e,n,r,i,o,s){return t._acquire(n,r,i,o).then(function(n){return h(n.initialize().then(function(t){return e(n,t.message)}),function(){return t._release(r,n,i,s)})})}},{key:"_release",value:function(e,t,n,r){return h((0,E.lock)(function(){return h(t.release(),function(t,r){return null==r&&n.setHard(e.path,null),Promise.resolve()})}),function(e,t){return null!=r?r(t):Promise.resolve()})}},{key:"_acquire",value:function(e,t,n,r){return(0,E.lock)(function(){return e.acquire({path:t.path,previous:t.session,checkPrevious:!0}).then(function(e){return n.setHard(t.path,e),e})}).then(function(i){var o=new w.default(e,i,t,!!n.options.debugInfo);return null!=r&&r(o),o})}},{key:"fromDescriptor",value:function(e,n,r){var i=p({},n,{session:null});return t._run(function(n,o){return new t(e,i,o,r)},e,i,r)}}]),t}(g.EventEmitter);n.default=_,t.exports=n.default},{"./events":4,"./flow-events":5,"./session":8,"./utils/connectionLock":12,"semver-compare":144}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=e("events"),a=s.EventEmitter;n.EventEmitter=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),t}(a)},{events:96}],5:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e("events");o.EventEmitter,n.Event0=function(){function e(t,n){r(this,e),this.type=t,this.parent=n}return i(e,[{key:"on",value:function(e){this.parent.on(this.type,e)}},{key:"once",value:function(e){this.parent.once(this.type,e)}},{key:"removeListener",value:function(e){this.parent.removeListener(this.type,e)}},{key:"removeAllListeners",value:function(){this.parent.removeAllListeners(this.type)}},{key:"emit",value:function(){return this.parent.emit(this.type)}},{key:"listenerCount",value:function(){return this.parent.listenerCount(this.type)}}]),e}(),n.Event1=function(){function e(t,n){r(this,e),this.type=t,this.parent=n}return i(e,[{key:"on",value:function(e){this.parent.on(this.type,e)}},{key:"once",value:function(e){this.parent.once(this.type,e)}},{key:"removeListener",value:function(e){this.parent.removeListener(this.type,e)}},{key:"removeAllListeners",value:function(){this.parent.removeAllListeners(this.type)}},{key:"emit",value:function(e){return this.parent.emit(this.type,e)}},{key:"listenerCount",value:function(){return this.parent.listenerCount(this.type)}}]),e}(),n.Event2=function(){function e(t,n){r(this,e),this.type=t,this.parent=n}return i(e,[{key:"on",value:function(e){this.parent.on(this.type,e)}},{key:"once",value:function(e){this.parent.once(this.type,e)}},{key:"removeListener",value:function(e){this.parent.removeListener(this.type,e)}},{key:"removeAllListeners",value:function(){this.parent.removeAllListeners(this.type)}},{key:"emit",value:function(e,t){return this.parent.emit(this.type,e,t)}},{key:"listenerCount",value:function(){return this.parent.listenerCount(this.type)}}]),e}()},{events:96}],6:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){m=e}Object.defineProperty(n,"__esModule",{value:!0}),n.udevInstallers=n.latestVersion=n.installers=n.DeviceList=n.DescriptorStream=n.Device=n.UnacquiredDevice=n.Session=void 0;var o=e("./session");Object.defineProperty(n,"Session",{enumerable:!0,get:function(){return r(o).default}});var s=e("./unacquired-device");Object.defineProperty(n,"UnacquiredDevice",{enumerable:!0,get:function(){return r(s).default}});var a=e("./device");Object.defineProperty(n,"Device",{enumerable:!0,get:function(){return r(a).default}});var u=e("./descriptor-stream");Object.defineProperty(n,"DescriptorStream",{enumerable:!0,get:function(){return r(u).default}});var f=e("./device-list");Object.defineProperty(n,"DeviceList",{enumerable:!0,get:function(){return r(f).default}}),n.setSharedWorkerFactory=i;var c=e("./installers");Object.defineProperty(n,"installers",{enumerable:!0,get:function(){return c.installers}}),Object.defineProperty(n,"latestVersion",{enumerable:!0,get:function(){return c.latestVersion}}),Object.defineProperty(n,"udevInstallers",{enumerable:!0,get:function(){return c.udevInstallers}}),e("whatwg-fetch"),e("unorm");var l=e("trezor-link"),h=r(l),p=r(f),d=h.default.Bridge,y=h.default.Extension,v=h.default.Lowlevel,g=h.default.WebUsb,b=h.default.Fallback,m=function(){throw new Error("Shared worker not set.")};p.default._setTransport(function(){return new b([new y,new d,new v(new g,function(){return m()})])}),p.default._setFetch(window.fetch),(0,c.setFetch)(window.fetch)},{"./descriptor-stream":1,"./device":3,"./device-list":2,"./installers":7,"./session":8,"./unacquired-device":10,"trezor-link":163,unorm:180,"whatwg-fetch":186}],7:[function(e,t,n){"use strict";function r(e){c=e}function i(e,t){return{url:t+e.shortUrl,label:e.label,platform:e.platform}}function o(e){var t=e||{},n=t.platform||f(),r=t.domain||l;return d.map(function(e){return i(e,r)}).map(function(e){return{url:e.url,label:e.label,platform:e.platform,preferred:u(e.platform,n)}})}function s(e){return c((e||{}).bridgeUrl||h).then(function(e){return e.ok?e.text():e.text().then(function(e){return Promise.reject(e)})}).then(function(e){if("string"!=typeof e)throw new Error("Wrong version load result.");return e.trim()})}function a(e){var t=e||{};return Promise.resolve(t.version||s(e)).then(function(e){var n=t.platform||f(),r=t.domain||l;return p.map(function(e){return i(e,r)}).map(function(t){return{version:e,url:t.url.replace(/%version%/g,e),label:t.label,platform:t.platform,preferred:u(t.platform,n)}})})}function u(e,t){if("string"==typeof e)return e===t;for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1}function f(){var e=navigator.userAgent;return e.match(/Win64|WOW64/)?"win64":e.match(/Win/)?"win32":e.match(/Mac/)?"mac":e.match(/Linux i[3456]86/)?e.match(/CentOS|Fedora|Mandriva|Mageia|Red Hat|Scientific|SUSE/)?"rpm32":"deb32":e.match(/Linux/)?e.match(/CentOS|Fedora|Mandriva|Mageia|Red Hat|Scientific|SUSE/)?"rpm64":"deb64":"win32"}Object.defineProperty(n,"__esModule",{value:!0}),n.setFetch=r,n.udevInstallers=o,n.latestVersion=s,n.installers=a;var c="undefined"==typeof window?function(){return Promise.reject()}:window.fetch,l="https://mytrezor.s3.amazonaws.com",h=l+"/bridge/latest.txt",p=[{shortUrl:"/bridge/%version%/trezor-bridge-%version%-win32-install.exe",label:"Windows",platform:["win32","win64"]},{shortUrl:"/bridge/%version%/trezor-bridge-%version%.pkg",label:"Mac OS X",platform:"mac"},{shortUrl:"/bridge/%version%/trezor-bridge_%version%_amd64.deb",label:"Linux 64-bit (deb)",platform:"deb64"},{shortUrl:"/bridge/%version%/trezor-bridge-%version%-1.x86_64.rpm",label:"Linux 64-bit (rpm)",platform:"rpm64"},{shortUrl:"/bridge/%version%/trezor-bridge_%version%_i386.deb",label:"Linux 32-bit (deb)",platform:"deb32"},{shortUrl:"/bridge/%version%/trezor-bridge-%version%-1.i386.rpm",label:"Linux 32-bit (rpm)",platform:"rpm32"}],d=[{shortUrl:"/udev/trezor-udev-1-1.noarch.rpm",label:"RPM package",platform:["rpm32","rpm64"]},{shortUrl:"/udev/trezor-udev_1_all.deb",label:"DEB package",platform:["deb32","deb64"]}]},{}],8:[function(e,t,n){(function(t){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){return"string"==typeof e?e.charAt(0).toUpperCase()+e.slice(1):e.coin_name}function u(e){var t=e;if("string"==typeof e.messagePrefix)return t;var n=a(t).toLowerCase(),r=y.networks[n];if(null==r)throw new Error("No network with the name "+n+".");return r}function f(e,t){var n=null==t?y.networks.bitcoin:t;if(null==e.node&&null==e.mnemonic){if(null==e.payload)throw new Error("Payload, mnemonic or node necessary.");try{var r=y.HDNode.fromBase58(e.payload,n);e=c({},e,{node:g.bjsNode2privNode(r)})}catch(t){e=c({},e,{mnemonic:e.payload})}delete e.payload}return e}Object.defineProperty(n,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n.coinName=a,n.coinNetwork=u;var h=e("./events"),p=e("./flow-events"),d=e("bitcoinjs-lib-zcash"),y=r(d),v=e("./utils/hdnode"),g=r(v),b=e("./utils/signtx"),m=r(b),w=e("./utils/signbjstx"),E=r(w),_=e("./utils/signethtx"),T=r(_),S=e("./utils/call"),P=e("./trezortypes"),O=(r(P),function(e){function n(e,t,r,s){i(this,n);var a=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return a.sendEvent=new p.Event2("send",a),a.receiveEvent=new p.Event2("receive",a),a.errorEvent=new p.Event1("error",a),a.buttonEvent=new p.Event1("button",a),a.pinEvent=new p.Event2("pin",a),
|
||
a.passphraseEvent=new p.Event1("passphrase",a),a.wordEvent=new p.Event1("word",a),a._transport=e,a._sessionId=t,a._descriptor=r,a.callHelper=new S.CallHelper(e,t,a),a.debug=s,a}return s(n,e),l(n,[{key:"deactivateEvents",value:function(){[this.sendEvent,this.receiveEvent,this.errorEvent,this.buttonEvent,this.pinEvent,this.passphraseEvent,this.wordEvent].forEach(function(e){return e.removeAllListeners()})}},{key:"getId",value:function(){return this._sessionId}},{key:"getPath",value:function(){return this._descriptor.path}},{key:"isDescriptor",value:function(e){return this._descriptor.path===e.path}},{key:"release",value:function(){return this.debug&&console.log("[trezor.js] [session] releasing"),this._transport.release(this._sessionId)}},{key:"initialize",value:function(){return this.typedCall("Initialize","Features")}},{key:"getFeatures",value:function(){return this.typedCall("GetFeatures","Features")}},{key:"getEntropy",value:function(e){return this.typedCall("GetEntropy","Entropy",{size:e})}},{key:"getAddress",value:function(e,t,n,r){var i=a(t);return this.typedCall("GetAddress","Address",{address_n:e,coin_name:i,show_display:!!n,script_type:r?"SPENDP2SHWITNESS":"SPENDADDRESS"}).then(function(t){return t.message.path=e||[],t})}},{key:"ethereumGetAddress",value:function(e,t){return this.typedCall("EthereumGetAddress","EthereumAddress",{address_n:e,show_display:!!t}).then(function(t){return t.message.path=e||[],t})}},{key:"getPublicKey",value:function(e,t){var n=t?a(t):"Bitcoin";return this.typedCall("GetPublicKey","PublicKey",{address_n:e,coin_name:n}).then(function(t){return t.message.node.path=e||[],t})}},{key:"wipeDevice",value:function(){return this.typedCall("WipeDevice","Success")}},{key:"resetDevice",value:function(e){return this.typedCall("ResetDevice","Success",e)}},{key:"loadDevice",value:function(e,t){var n=null==t?null:u(t);return this.typedCall("LoadDevice","Success",f(e,n))}},{key:"recoverDevice",value:function(e){return this.typedCall("RecoveryDevice","Success",c({},e,{enforce_wordlist:!0}))}},{key:"applySettings",value:function(e){return this.typedCall("ApplySettings","Success",e)}},{key:"clearSession",value:function(e){return this.typedCall("ClearSession","Success",e)}},{key:"changePin",value:function(e){return this.typedCall("ChangePin","Success",{remove:e||!1})}},{key:"eraseFirmware",value:function(){return this.typedCall("FirmwareErase","Success")}},{key:"uploadFirmware",value:function(e){return this.typedCall("FirmwareUpload","Success",{payload:e})}},{key:"updateFirmware",value:function(e){var t=this;return this.eraseFirmware().then(function(){return t.uploadFirmware(e)})}},{key:"verifyMessage",value:function(e,t,n,r){return this.typedCall("VerifyMessage","Success",{address:e,signature:t,message:n,coin_name:a(r)})}},{key:"verifyEthMessage",value:function(e,t,n){return this.typedCall("EthereumVerifyMessage","Success",{address:e,signature:t,message:n})}},{key:"signMessage",value:function(e,t,n,r){return this.typedCall("SignMessage","MessageSignature",{address_n:e,message:t,coin_name:a(n),script_type:r?"SPENDP2SHWITNESS":void 0})}},{key:"signEthMessage",value:function(e,t){return this.typedCall("EthereumSignMessage","EthereumMessageSignature",{address_n:e,message:t})}},{key:"signIdentity",value:function(e,t,n){return this.typedCall("SignIdentity","SignedIdentity",{identity:e,challenge_hidden:t,challenge_visual:n})}},{key:"cipherKeyValue",value:function(e,t,n,r,i,o,s){var a=n.toString("hex"),u=null==s?null:s.toString("hex");return this.typedCall("CipherKeyValue","CipheredKeyValue",{address_n:e,key:t,value:a,encrypt:r,ask_on_encrypt:i,ask_on_decrypt:o,iv:u})}},{key:"cipherKeyValueBuffer",value:function(e,n,r,i,o,s,a){return this.cipherKeyValue(e,n,r,i,o,s,a).then(function(e){var n=e.message.value;return new t(n,"hex")})}},{key:"measureTx",value:function(e,t,n){return this.typedCall("EstimateTxSize","TxSize",{inputs_count:e.length,outputs_count:t.length,coin_name:a(n)})}},{key:"signTx",value:function(e,t,n,r,i){return m.signTx(this,e,t,n,r,i)}},{key:"signBjsTx",value:function(e,t,n,r,i,o){return E.signBjsTx(this,e,t,n,r,i,o)}},{key:"signEthTx",value:function(e,t,n,r,i,o,s,a){return T.signEthTx(this,e,t,n,r,i,o,s,a)}},{key:"typedCall",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.callHelper.typedCall(e,t,n)}},{key:"verifyAddress",value:function(e,t,n,r){var i=this;return this.getAddress(e,n,!0,r).then(function(n){var r=n.message.address===t;return r||i.debug&&console.warn("[trezor.js] [session] Address verification failed",{path:e,jsAddress:t,trezorAddress:n.message.address}),r})}},{key:"changeLabel",value:function(e){return e.length>n.LABEL_MAX_LENGTH&&(e=e.slice(0,n.LABEL_MAX_LENGTH)),this.applySettings({label:e})}},{key:"togglePassphrase",value:function(e){return this.applySettings({use_passphrase:e})}},{key:"changeHomescreen",value:function(e){return this.applySettings({homescreen:e})}},{key:"getHDNode",value:function(e,t){return g.getHDNode(this,e,u(t))}},{key:"setU2FCounter",value:function(e){return this.typedCall("SetU2FCounter","Success",{u2f_counter:e})}},{key:"backupDevice",value:function(){return this.typedCall("BackupDevice","Success")}},{key:"nemGetAddress",value:function(e,t,n){return this.typedCall("NEMGetAddress","NEMAddress",{address_n:e,network:t,show_display:!!n})}},{key:"nemSignTx",value:function(e){return this.typedCall("NEMSignTx","NEMSignedTx",e)}}]),n}(h.EventEmitter));O.LABEL_MAX_LENGTH=16,n.default=O}).call(this,e("buffer").Buffer)},{"./events":4,"./flow-events":5,"./trezortypes":9,"./utils/call":11,"./utils/hdnode":13,"./utils/signbjstx":14,"./utils/signethtx":15,"./utils/signtx":16,"bitcoinjs-lib-zcash":35,buffer:68}],9:[function(e,t,n){"use strict"},{}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("./device"),f=function(e){return e&&e.__esModule?e:{default:e}}(u),c=e("./events"),l=e("./flow-events"),h=function(e){function t(e,n,o){r(this,t);var s=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return s.connected=!0,s.connectEvent=new l.Event1("connect",s),s.disconnectEvent=new l.Event0("disconnect",s),s.transport=e,s.originalDescriptor=n,s.deviceList=o,s._watch(),s}return o(t,e),a(t,[{key:"_watchConnectDisconnect",value:function(e,t){var n=this,r=function(e){},i=function t(i,o){n===o&&(n.deviceList.connectEvent.removeListener(t),n.deviceList.disconnectUnacquiredEvent.removeListener(r),e(i))};r=function(e){n===e&&(n.deviceList.connectEvent.removeListener(i),n.deviceList.disconnectUnacquiredEvent.removeListener(r),t())},this.deviceList.onUnacquiredConnect(this,i),this.deviceList.onUnacquiredDisconnect(this,r)}},{key:"steal",value:function(){var e=this,t=new Promise(function(t,n){e._watchConnectDisconnect(function(e){return t(e)},function(){return n(new Error("Device disconnected before grabbing"))})}),n=this.deviceList.getSession(this.originalDescriptor.path),r=s({},this.originalDescriptor,{session:n});return f.default._run(function(){return!0},this.transport,r,this.deviceList).then(function(){return t})}},{key:"_watch",value:function(){var e=this;this._watchConnectDisconnect(function(t){e.connected=!1,e.connectEvent.emit(t)},function(){e.connected=!1,e.disconnectEvent.emit()})}}],[{key:"fromDescriptor",value:function(e,n,r){return Promise.resolve(new t(e,n,r))}}]),t}(c.EventEmitter);n.default=h,t.exports=n.default},{"./device":3,"./events":4,"./flow-events":5}],11:[function(e,t,n){(function(t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(e.type!==t)throw new TypeError("Response of unexpected type: "+e.type)}function o(e){if(t.crypto||t.msCrypto)return(0,c.default)(e);throw new Error("Browser does not support crypto random")}function s(e,t){var n={PassphraseAck:{passphrase:"(redacted...)"},CipheredKeyValue:{value:"(redacted...)"},GetPublicKey:{address_n:"(redacted...)"},PublicKey:{node:"(redacted...)",xpub:"(redacted...)"},DecryptedMessage:{message:"(redacted...)",address:"(redacted...)"}};return e in n?u({},t,n[e]):t}Object.defineProperty(n,"__esModule",{value:!0}),n.CallHelper=void 0;var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=e("randombytes"),c=function(e){return e&&e.__esModule?e:{default:e}}(f);n.CallHelper=function(){function e(t,n,i){r(this,e),this.transport=t,this.sessionId=n,this.session=i}return a(e,[{key:"call",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=s(e,n);return this.session.debug&&console.log("[trezor.js] [call] Sending",e,r),this.session.sendEvent.emit(e,n),this.transport.call(this.sessionId,e,n).then(function(e){var n=s(e.type,e.message);return t.session.debug&&console.log("[trezor.js] [call] Received",e.type,n),t.session.receiveEvent.emit(e.type,e.message),e},function(e){throw t.session.debug&&console.log("[trezor.js] [call] Received error",e),t.session.errorEvent.emit(e),e})}},{key:"typedCall",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._commonCall(e,n).then(function(e){return i(e,t),e})}},{key:"_commonCall",value:function(e,t){var n=this;return this.call(e,t).then(function(e){return n._filterCommonTypes(e)})}},{key:"_filterCommonTypes",value:function(e){var t=this;if("Failure"===e.type){var n=new Error(e.message.message);return n.code=e.message.code,Promise.reject(n)}return"ButtonRequest"===e.type?(this.session.buttonEvent.emit(e.message.code),this._commonCall("ButtonAck",{})):"EntropyRequest"===e.type?this._commonCall("EntropyAck",{entropy:o(32).toString("hex")}):"PinMatrixRequest"===e.type?this._promptPin(e.message.type).then(function(e){return t._commonCall("PinMatrixAck",{pin:e})},function(){return t._commonCall("Cancel",{})}):"PassphraseRequest"===e.type?this._promptPassphrase().then(function(e){return t._commonCall("PassphraseAck",{passphrase:e})},function(e){return t._commonCall("Cancel",{}).catch(function(t){throw e||t})}):"WordRequest"===e.type?this._promptWord().then(function(e){return t._commonCall("WordAck",{word:e})},function(){return t._commonCall("Cancel",{})}):Promise.resolve(e)}},{key:"_promptPin",value:function(e){var t=this;return new Promise(function(n,r){t.session.pinEvent.emit(e,function(e,t){e||null==t?r(e):n(t)})||(t.session.debug&&console.warn("[trezor.js] [call] PIN callback not configured, cancelling request"),r(new Error("PIN callback not configured")))})}},{key:"_promptPassphrase",value:function(){var e=this;return new Promise(function(t,n){e.session.passphraseEvent.emit(function(e,r){e||null==r?n(e):t(r.normalize("NFKD"))})||(e.session.debug&&console.warn("[trezor.js] [call] Passphrase callback not configured, cancelling request"),n(new Error("Passphrase callback not configured")))})}},{key:"_promptWord",value:function(){var e=this;return new Promise(function(t,n){e.session.wordEvent.emit(function(e,r){e||null==r?n(e):t(r.toLocaleLowerCase())})||(e.session.debug&&console.warn("[trezor.js] [call] Word callback not configured, cancelling request"),n(new Error("Word callback not configured")))})}}]),e}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{randombytes:128}],12:[function(e,t,n){"use strict";function r(e){var t=i.then(function(){return e()});return i=t.catch(function(){return!0}),t}Object.defineProperty(n,"__esModule",{value:!0}),n.lock=r;var i=Promise.resolve()},{}],13:[function(e,t,n){(function(t){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){var t=e.keyPair.d;if(!t)throw new Error("Not a private node.");var n=e.depth,r=e.parentFingerprint,i=e.index,o=t.toString(16);return{depth:n,fingerprint:r,child_num:i,chain_code:e.chainCode.toString("hex"),private_key:o}}function o(e,n){var r=new t(e.chain_code,"hex"),i=new t(e.public_key,"hex");if(null==v)throw new Error("secp256k1 is null");var o=d.Point.decodeFrom(v,i),s=new h.HDNode(new h.ECPair(null,o,{network:n}),r);return s.depth=+e.depth,s.index=+e.child_num,s.parentFingerprint=e.fingerprint,s}function s(e,t){if(76067358===t.bip32.public)return e;var n=h.HDNode.fromBase58(e);return n.keyPair.network=t,n.toBase58()}function a(e,t){var n=e.message.node,r=o(n,t),i=r.toBase58(),a=s(e.message.xpub,t);if(i!==a)throw new Error("Invalid public key transmission detected - invalid xpub check. Key: "+i+", Received: "+a);return r}function u(e,t,n){var r=e.derive(n),i=r.toBase58(),o=t.toBase58();if(i!==o)throw new Error("Invalid public key transmission detected - invalid child cross-check. Computed derived: "+i+", Computed received: "+o)}function f(e,t,n){return e[t].derive(n).getIdentifier()}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.networks.bitcoin,r=t.concat([0]);return e.getPublicKey(t).then(function(t){var i=a(t,n);return e.getPublicKey(r).then(function(e){var t=a(e,n);return u(i,t,0),i})})}Object.defineProperty(n,"__esModule",{value:!0}),n.bjsNode2privNode=i,n.pubNode2bjsNode=o,n.pubKey2bjsNode=a,n.checkDerivation=u,n.derivePubKeyHash=f,n.getHDNode=c;var l=e("bitcoinjs-lib-zcash"),h=r(l),p=e("ecurve"),d=r(p),y=e("../trezortypes"),v=(r(y),d.getCurveByName("secp256k1"))}).call(this,e("buffer").Buffer)},{"../trezortypes":9,"bitcoinjs-lib-zcash":35,buffer:68,ecurve:80}],14:[function(e,t,n){(function(t){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n=e.hash,r=e.index,i=e.path,o=e.amount;return{prev_index:r,prev_hash:g(n).toString("hex"),address_n:i,script_type:e.segwit?"SPENDP2SHWITNESS":"SPENDADDRESS",amount:o,sequence:t}}function o(e){if(!Array.isArray(e))throw new Error("Both address and path of an output cannot be null.");var t=[];return e.forEach(function(e){"number"==typeof e&&t.push(e)}),t}function s(e,t){if(null==e.address){if(null!=e.opReturnData){if(null!=e.value)throw new Error("Wrong type.");return{amount:0,op_return_data:e.opReturnData.toString("hex"),script_type:"PAYTOOPRETURN"}}if(!e.path)throw new Error("Both address and path of an output cannot be null.");var n=o(e.path),r=e.value;return e.segwit?{address_n:n,amount:r,script_type:"PAYTOP2SHWITNESS"}:{address_n:n,amount:r,script_type:"PAYTOADDRESS"}}var i=e.address;if("string"!=typeof i)throw new Error("Wrong type.");var s=e.value;return d(i,t),{address:i,amount:s,script_type:"PAYTOADDRESS"}}function a(e){return m.Transaction.fromHex(e.message.serialized.serialized_tx)}function u(e){var t=y(e),n=null==t?null:t.toString("hex");return{lock_time:e.locktime,version:e.version,hash:e.getId(),inputs:e.ins.map(function(e){return{prev_index:e.index,sequence:e.sequence,prev_hash:g(e.hash).toString("hex"),script_sig:e.script.toString("hex")}}),bin_outputs:e.outs.map(function(e){return{amount:e.value,script_pubkey:e.script.toString("hex")}}),extra_data:n}}function f(e){if(e.path){return o(e.path)}if("string"==typeof e.address)return e.address;throw new Error("Wrong output type.")}function c(e){return!!e.segwit}function l(e){var n=new t(e.length+2);n[0]=0,n[1]=20,e.copy(n,2);var r=m.crypto.hash160(n),i=new t(23);return i[0]=169,i[1]=20,i[22]=135,r.copy(i,2),i}function h(e,t,n,r){var i="string"==typeof e?d(e,n)?"PAYTOSCRIPTHASH":"PAYTOADDRESS":r?"PAYTOP2SHWITNESS":"PAYTOADDRESS",o="string"==typeof e?m.address.fromBase58Check(e).hash:_.derivePubKeyHash(t,e[e.length-2],e[e.length-1]);if("PAYTOADDRESS"===i)return m.script.pubKeyHash.output.encode(o);if("PAYTOSCRIPTHASH"===i)return m.script.scriptHash.output.encode(o);if("PAYTOP2SHWITNESS"===i)return l(o);throw new Error("Unknown script type "+i)}function p(e,t,n,r,i){if(e.length!==r.ins.length)throw new Error("Signed transaction has wrong length.");if(t.length!==r.outs.length)throw new Error("Signed transaction has wrong length.");t.map(function(e,t){var o=r.outs[t].script;if(null!=e.opReturnData){if(0!==m.script.nullData.output.encode(e.opReturnData).compare(o))throw new Error("Scripts differ")}else{if(e.value!==r.outs[t].value)throw new Error("Signed transaction has wrong output value.");if(null==e.address&&null==e.path)throw new Error("Both path and address cannot be null.");var s=f(e),a=c(e);if(0!==h(s,n,i,a).compare(o))throw new Error("Scripts differ")}})}function d(e,t){var n=m.address.fromBase58Check(e);if(n.version===t.pubKeyHash)return!1;if(n.version===t.scriptHash)return!0;throw new Error("Unknown address type.")}function y(e){if(e.version<2)return null;var t=e.toBuffer(),n=e.joinsplitByteLength();return t.slice(t.length-n)}function v(e,t,n,r,o,f,c){var l=null==f?m.networks[o.toLowerCase()]:f;if(null==l)return Promise.reject(new Error("No network "+o));var h=c?4294967294:4294967295,d=t.inputs.map(function(e){return i(e,h)}),y=t.outputs.map(function(e){return s(e,l)}),v=n.map(function(e){return u(e)});return e.signTx(d,y,v,o,c).then(function(e){return a(e)}).then(function(e){return p(t.inputs,t.outputs,r,e,l),e})}function g(e){var n=new t(e.length);return e.copy(n),[].reverse.call(n),n}Object.defineProperty(n,"__esModule",{value:!0}),n.signBjsTx=v;var b=e("bitcoinjs-lib-zcash"),m=r(b),w=e("../trezortypes"),E=(r(w),e("./hdnode")),_=r(E)}).call(this,e("buffer").Buffer)},{"../trezortypes":9,"./hdnode":13,"bitcoinjs-lib-zcash":35,buffer:68}],15:[function(e,t,n){"use strict";function r(e,t){return null==e?["",""]:[e.slice(0,t),e.slice(t)]}function i(e,t,n){if(!t.data_length){var o=t.signature_v,s=t.signature_r,a=t.signature_s;if(null==o||null==s||null==a)throw new Error("Unexpected request.");return Promise.resolve({v:o,r:s,s:a})}var f=r(n,2*t.data_length),c=u(f,2),l=c[0],h=c[1];return e.typedCall("EthereumTxAck","EthereumTxRequest",{data_chunk:l}).then(function(t){return i(e,t.message,h)})}function o(e){for(;/^00/.test(e);)e=e.slice(2);return e}function s(e,t,n,s,f,c,l,h,p){var d=null==h?0:h.length/2,y=r(h,2048),v=u(y,2),g=v[0],b=v[1],m={address_n:t,nonce:o(n),gas_price:o(s),gas_limit:o(f),to:c,value:o(l)};return 0!==d&&(m=a({},m,{data_length:d,data_initial_chunk:g})),null!=p&&(m=a({},m,{chain_id:p})),e.typedCall("EthereumSignTx","EthereumTxRequest",m).then(function(t){return i(e,t.message,b)})}Object.defineProperty(n,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();n.signEthTx=s;var f=e("../trezortypes");!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(f)},{"../trezortypes":9}],16:[function(e,t,n){"use strict";function r(e){var t={};return e.forEach(function(e){t[e.hash.toLowerCase()]=e}),t}function i(e,t,n,r){var i=e.details,a=i.tx_hash;if(a){var u=t[a.toLowerCase()];if(!u)throw new Error("Requested unknown tx: "+a);return o(u,e.request_type,i.request_index,i.extra_data_len,i.extra_data_offset)}return s(n,r,e.request_type,i.request_index)}function o(e,t,n,r,i){var o=+n;if("TXINPUT"===t)return{inputs:[e.inputs[o]]};if("TXOUTPUT"===t)return{bin_outputs:[e.bin_outputs[o]]};if("TXEXTRADATA"===t){if(null==r)throw new Error("Missing extra_data_len");var s=+r;if(null==i)throw new Error("Missing extra_data_offset");var a=+i;if(null==e.extra_data)throw new Error("No extra data for transaction "+e.hash);return{extra_data:e.extra_data.substring(2*a,2*(a+s))}}if("TXMETA"===t){var u=e.bin_outputs.length,f=e.extra_data;if(null!=f&&0!==f.length){var c=f;return{version:e.version,lock_time:e.lock_time,inputs_cnt:e.inputs.length,outputs_cnt:u,extra_data_len:c.length/2}}return{version:e.version,lock_time:e.lock_time,inputs_cnt:e.inputs.length,outputs_cnt:u}}throw new Error("Unknown request type: "+t)}function s(e,t,n,r){var i=+r;if("TXINPUT"===n)return{inputs:[e[i]]};if("TXOUTPUT"===n)return{outputs:[t[i]]};if("TXMETA"===n)throw new Error("Cannot read TXMETA from signed transaction");if("TXEXTRADATA"===n)throw new Error("Cannot read TXEXTRADATA from signed transaction");throw new Error("Unknown request type: "+n)}function a(e,t,n){if(e){var r=e.signature_index,i=e.signature,o=e.serialized_tx;if(null!=o&&(t.serialized+=o),null!=r){if(null==i)throw new Error("Unexpected null in trezor.TxRequestSerialized signature.");n[r]=i}}}function u(e,t,n,r,o,s,f){if(a(t.serialized,n,r),"TXFINISHED"===t.request_type)return Promise.resolve({message:{serialized:{signatures:r,serialized_tx:n.serialized}},type:"trezor.SignedTx"});var c=i(t,o,s,f);return e.typedCall("TxAck","TxRequest",{tx:c}).then(function(t){return u(e,t.message,n,r,o,s,f)})}function f(e,t,n,i,o,s){var a=r(i),f=[],c={serialized:""},l="string"==typeof o?o:o.coin_name,h=l.charAt(0).toUpperCase()+l.slice(1);return e.typedCall("SignTx","TxRequest",{inputs_count:t.length,outputs_count:n.length,coin_name:h,lock_time:s}).then(function(r){return u(e,r.message,c,f,a,t,n)})}Object.defineProperty(n,"__esModule",{value:!0}),n.signTx=f;var c=e("../trezortypes");!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(c)},{"../trezortypes":9}],17:[function(e,t,n){(function(n){"use strict";function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function i(e){return n.Buffer&&"function"==typeof n.Buffer.isBuffer?n.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}function o(e){return Object.prototype.toString.call(e)}function s(e){return!i(e)&&("function"==typeof n.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}function a(e){if(w.isFunction(e)){if(T)return e.name;var t=e.toString(),n=t.match(P);return n&&n[1]}}function u(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function f(e){if(T||!w.isFunction(e))return w.inspect(e);var t=a(e);return"[Function"+(t?": "+t:"")+"]"}function c(e){return u(f(e.actual),128)+" "+e.operator+" "+u(f(e.expected),128)}function l(e,t,n,r,i){throw new S.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function h(e,t){e||l(e,!0,t,"==",S.ok)}function p(e,t,n,a){if(e===t)return!0;if(i(e)&&i(t))return 0===r(e,t);if(w.isDate(e)&&w.isDate(t))return e.getTime()===t.getTime();if(w.isRegExp(e)&&w.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(s(e)&&s(t)&&o(e)===o(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;a=a||{actual:[],expected:[]};var u=a.actual.indexOf(e);return-1!==u&&u===a.expected.indexOf(t)||(a.actual.push(e),a.expected.push(t),y(e,t,n,a))}return n?e===t:e==t}function d(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function y(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(w.isPrimitive(e)||w.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=d(e),o=d(t);if(i&&!o||!i&&o)return!1;if(i)return e=_.call(e),t=_.call(t),p(e,t,n);var s,a,u=O(e),f=O(t);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),a=u.length-1;a>=0;a--)if(u[a]!==f[a])return!1;for(a=u.length-1;a>=0;a--)if(s=u[a],!p(e[s],t[s],n,r))return!1;return!0}function v(e,t,n){p(e,t,!0)&&l(e,t,n,"notDeepStrictEqual",v)}function g(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function b(e){var t;try{e()}catch(e){t=e}return t}function m(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=b(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&l(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&w.isError(i),a=!e&&i&&!n;if((s&&o&&g(i,n)||a)&&l(i,n,"Got unwanted exception"+r),e&&i&&n&&!g(i,n)||!e&&i)throw i}var w=e("util/"),E=Object.prototype.hasOwnProperty,_=Array.prototype.slice,T=function(){return"foo"===function(){}.name}(),S=t.exports=h,P=/\s*function\s+([^\(\s]*)\s*/;S.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var t=e.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=a(t),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},w.inherits(S.AssertionError,Error),S.fail=l,S.ok=h,S.equal=function(e,t,n){e!=t&&l(e,t,n,"==",S.equal)},S.notEqual=function(e,t,n){e==t&&l(e,t,n,"!=",S.notEqual)},S.deepEqual=function(e,t,n){p(e,t,!1)||l(e,t,n,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(e,t,n){p(e,t,!0)||l(e,t,n,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(e,t,n){p(e,t,!1)&&l(e,t,n,"notDeepEqual",S.notDeepEqual)},S.notDeepStrictEqual=v,S.strictEqual=function(e,t,n){e!==t&&l(e,t,n,"===",S.strictEqual)},S.notStrictEqual=function(e,t,n){e===t&&l(e,t,n,"!==",S.notStrictEqual)},S.throws=function(e,t,n){m(!0,e,t,n)},S.doesNotThrow=function(e,t,n){m(!1,e,t,n)},S.ifError=function(e){if(e)throw e};var O=Object.keys||function(e){var t=[];for(var n in e)E.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":184}],18:[function(e,t,n){var r=e("safe-buffer").Buffer;t.exports=function(e){function t(t){if(0===t.length)return"";for(var n=[0],r=0;r<t.length;++r){for(var i=0,o=t[r];i<n.length;++i)o+=n[i]<<8,n[i]=o%s,o=o/s|0;for(;o>0;)n.push(o%s),o=o/s|0}for(var a="",u=0;0===t[u]&&u<t.length-1;++u)a+=e[0];for(var f=n.length-1;f>=0;--f)a+=e[n[f]];return a}function n(e){if(0===e.length)return r.allocUnsafe(0);for(var t=[0],n=0;n<e.length;n++){var i=o[e[n]];if(void 0===i)return;for(var u=0,f=i;u<t.length;++u)f+=t[u]*s,t[u]=255&f,f>>=8;for(;f>0;)t.push(255&f),f>>=8}for(var c=0;e[c]===a&&c<e.length-1;++c)t.push(0);return r.from(t.reverse())}function i(e){var t=n(e);if(t)return t;throw new Error("Non-base"+s+" character")}for(var o={},s=e.length,a=e.charAt(0),u=0;u<e.length;u++){var f=e.charAt(u);if(void 0!==o[f])throw new TypeError(f+" is ambiguous");o[f]=u}return{encode:t,decodeUnsafe:n,decode:i}}},{"safe-buffer":143}],19:[function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return 3*e.length/4-r(e)}function o(e){var t,n,i,o,s,a=e.length;o=r(e),s=new l(3*a/4-o),n=o>0?a-4:a;var u=0;for(t=0;t<n;t+=4)i=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function s(e){return f[e>>18&63]+f[e>>12&63]+f[e>>6&63]+f[63&e]}function a(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(s(r));return i.join("")}function u(e){for(var t,n=e.length,r=n%3,i="",o=[],s=0,u=n-r;s<u;s+=16383)o.push(a(e,s,s+16383>u?u:s+16383));return 1===r?(t=e[n-1],i+=f[t>>2],i+=f[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=f[t>>10],i+=f[t>>4&63],i+=f[t<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=i,n.toByteArray=o,n.fromByteArray=u;for(var f=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,d=h.length;p<d;++p)f[p]=h[p],c[h.charCodeAt(p)]=p;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],20:[function(e,t,n){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function i(e,t,n,r,i,o){for(;--o>=0;){var s=t*this[e++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i}function o(e){return it.charAt(e)}function s(e,t){var n=ot[e.charCodeAt(t)];return null==n?-1:n}function a(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function u(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+tt:this.t=0}function f(e){var t=new r;return t.fromInt(e),t}function c(e,t){var n,i=this;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void i.fromRadix(e,t);n=2}i.t=0,i.s=0;for(var o=e.length,a=!1,u=0;--o>=0;){var f=8==n?255&e[o]:s(e,o);f<0?"-"==e.charAt(o)&&(a=!0):(a=!1,0==u?i[i.t++]=f:u+n>i.DB?(i[i.t-1]|=(f&(1<<i.DB-u)-1)<<u,i[i.t++]=f>>i.DB-u):i[i.t-1]|=f<<u,(u+=n)>=i.DB&&(u-=i.DB))}8==n&&0!=(128&e[0])&&(i.s=-1,u>0&&(i[i.t-1]|=(1<<i.DB-u)-1<<u)),i.clamp(),a&&r.ZERO.subTo(i,i)}function l(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t}function h(e){var t=this;if(t.s<0)return"-"+t.negate().toString(e);var n;if(16==e)n=4;else if(8==e)n=3;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return t.toRadix(e);n=2}var r,i=(1<<n)-1,s=!1,a="",u=t.t,f=t.DB-u*t.DB%n;if(u-- >0)for(f<t.DB&&(r=t[u]>>f)>0&&(s=!0,a=o(r));u>=0;)f<n?(r=(t[u]&(1<<f)-1)<<n-f,r|=t[--u]>>(f+=t.DB-n)):(r=t[u]>>(f-=n)&i,f<=0&&(f+=t.DB,--u)),r>0&&(s=!0),s&&(a+=o(r));return s?a:"0"}function p(){var e=new r;return r.ZERO.subTo(this,e),e}function d(){return this.s<0?this.negate():this}function y(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0}function v(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function g(){return this.t<=0?0:this.DB*(this.t-1)+v(this[this.t-1]^this.s&this.DM)}function b(){return this.bitLength()>>3}function m(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n]
|
||
;for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function w(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function E(e,t){var n,r=this,i=e%r.DB,o=r.DB-i,s=(1<<o)-1,a=Math.floor(e/r.DB),u=r.s<<i&r.DM;for(n=r.t-1;n>=0;--n)t[n+a+1]=r[n]>>o|u,u=(r[n]&s)<<i;for(n=a-1;n>=0;--n)t[n]=0;t[a]=u,t.t=r.t+a+1,t.s=r.s,t.clamp()}function _(e,t){var n=this;t.s=n.s;var r=Math.floor(e/n.DB);if(r>=n.t)return void(t.t=0);var i=e%n.DB,o=n.DB-i,s=(1<<i)-1;t[0]=n[r]>>i;for(var a=r+1;a<n.t;++a)t[a-r-1]|=(n[a]&s)<<o,t[a-r]=n[a]>>i;i>0&&(t[n.t-r-1]|=(n.s&s)<<o),t.t=n.t-r,t.clamp()}function T(e,t){for(var n=this,r=0,i=0,o=Math.min(e.t,n.t);r<o;)i+=n[r]-e[r],t[r++]=i&n.DM,i>>=n.DB;if(e.t<n.t){for(i-=e.s;r<n.t;)i+=n[r],t[r++]=i&n.DM,i>>=n.DB;i+=n.s}else{for(i+=n.s;r<e.t;)i-=e[r],t[r++]=i&n.DM,i>>=n.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[r++]=n.DV+i:i>0&&(t[r++]=i),t.t=r,t.clamp()}function S(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)}function P(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function O(e,t,n){var i=this,o=e.abs();if(!(o.t<=0)){var s=i.abs();if(s.t<o.t)return null!=t&&t.fromInt(0),void(null!=n&&i.copyTo(n));null==n&&(n=new r);var a=new r,u=i.s,f=e.s,c=i.DB-v(o[o.t-1]);c>0?(o.lShiftTo(c,a),s.lShiftTo(c,n)):(o.copyTo(a),s.copyTo(n));var l=a.t,h=a[l-1];if(0!=h){var p=h*(1<<i.F1)+(l>1?a[l-2]>>i.F2:0),d=i.FV/p,y=(1<<i.F1)/p,g=1<<i.F2,b=n.t,m=b-l,w=null==t?new r:t;for(a.dlShiftTo(m,w),n.compareTo(w)>=0&&(n[n.t++]=1,n.subTo(w,n)),r.ONE.dlShiftTo(l,w),w.subTo(a,a);a.t<l;)a[a.t++]=0;for(;--m>=0;){var E=n[--b]==h?i.DM:Math.floor(n[b]*d+(n[b-1]+g)*y);if((n[b]+=a.am(0,E,n,m,0,l))<E)for(a.dlShiftTo(m,w),n.subTo(w,n);n[b]<--E;)n.subTo(w,n)}null!=t&&(n.drShiftTo(l,t),u!=f&&r.ZERO.subTo(t,t)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),u<0&&r.ZERO.subTo(n,n)}}}function I(e){var t=new r;return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t}function k(e){this.m=e}function x(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function j(e){return e}function A(e){e.divRemTo(this.m,null,e)}function N(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function L(e,t){e.squareTo(t),this.reduce(t)}function R(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function B(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function U(e){var t=new r;return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t}function D(e){var t=new r;return e.copyTo(t),this.reduce(t),t}function C(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function M(e,t){e.squareTo(t),this.reduce(t)}function F(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function z(){return 0==(this.t>0?1&this[0]:this.s)}function q(e,t){if(e>4294967295||e<1)return r.ONE;var n=new r,i=new r,o=t.convert(this),s=v(e)-1;for(o.copyTo(n);--s>=0;)if(t.sqrTo(n,i),(e&1<<s)>0)t.mulTo(i,o,n);else{var a=n;n=i,i=a}return t.revert(n)}function H(e,t){var n;return n=e<256||t.isEven()?new k(t):new B(t),this.exp(e,n)}function $(){var e=new r;return this.copyTo(e),e}function V(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function Y(){return 0==this.t?this.s:this[0]<<24>>24}function W(){return 0==this.t?this.s:this[0]<<16>>16}function K(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function G(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function Z(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=f(n),o=new r,s=new r,a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(n+s.intValue()).toString(e).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(e)+a}function X(e,t){var n=this;n.fromInt(0),null==t&&(t=10);for(var i=n.chunkSize(t),o=Math.pow(t,i),a=!1,u=0,f=0,c=0;c<e.length;++c){var l=s(e,c);l<0?"-"==e.charAt(c)&&0==n.signum()&&(a=!0):(f=t*f+l,++u>=i&&(n.dMultiply(o),n.dAddOffset(f,0),u=0,f=0))}u>0&&(n.dMultiply(Math.pow(t,u)),n.dAddOffset(f,0)),a&&r.ZERO.subTo(n,n)}function J(e,t,n){var i=this;if("number"==typeof t)if(e<2)i.fromInt(1);else for(i.fromNumber(e,n),i.testBit(e-1)||i.bitwiseTo(r.ONE.shiftLeft(e-1),se,i),i.isEven()&&i.dAddOffset(1,0);!i.isProbablePrime(t);)i.dAddOffset(2,0),i.bitLength()>e&&i.subTo(r.ONE.shiftLeft(e-1),i);else{var o=new Array,s=7&e;o.length=1+(e>>3),t.nextBytes(o),s>0?o[0]&=(1<<s)-1:o[0]=0,i.fromString(o,256)}}function Q(){var e=this,t=e.t,n=new Array;n[0]=e.s;var r,i=e.DB-t*e.DB%8,o=0;if(t-- >0)for(i<e.DB&&(r=e[t]>>i)!=(e.s&e.DM)>>i&&(n[o++]=r|e.s<<e.DB-i);t>=0;)i<8?(r=(e[t]&(1<<i)-1)<<8-i,r|=e[--t]>>(i+=e.DB-8)):(r=e[t]>>(i-=8)&255,i<=0&&(i+=e.DB,--t)),0!=(128&r)&&(r|=-256),0===o&&(128&e.s)!=(128&r)&&++o,(o>0||r!=e.s)&&(n[o++]=r);return n}function ee(e){return 0==this.compareTo(e)}function te(e){return this.compareTo(e)<0?this:e}function ne(e){return this.compareTo(e)>0?this:e}function re(e,t,n){var r,i,o=this,s=Math.min(e.t,o.t);for(r=0;r<s;++r)n[r]=t(o[r],e[r]);if(e.t<o.t){for(i=e.s&o.DM,r=s;r<o.t;++r)n[r]=t(o[r],i);n.t=o.t}else{for(i=o.s&o.DM,r=s;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(o.s,e.s),n.clamp()}function ie(e,t){return e&t}function oe(e){var t=new r;return this.bitwiseTo(e,ie,t),t}function se(e,t){return e|t}function ae(e){var t=new r;return this.bitwiseTo(e,se,t),t}function ue(e,t){return e^t}function fe(e){var t=new r;return this.bitwiseTo(e,ue,t),t}function ce(e,t){return e&~t}function le(e){var t=new r;return this.bitwiseTo(e,ce,t),t}function he(){for(var e=new r,t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}function pe(e){var t=new r;return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function de(e){var t=new r;return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function ye(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function ve(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+ye(this[e]);return this.s<0?this.t*this.DB:-1}function ge(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function be(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=ge(this[n]^t);return e}function me(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)}function we(e,t){var n=r.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function Ee(e){return this.changeBit(e,se)}function _e(e){return this.changeBit(e,ce)}function Te(e){return this.changeBit(e,ue)}function Se(e,t){for(var n=this,r=0,i=0,o=Math.min(e.t,n.t);r<o;)i+=n[r]+e[r],t[r++]=i&n.DM,i>>=n.DB;if(e.t<n.t){for(i+=e.s;r<n.t;)i+=n[r],t[r++]=i&n.DM,i>>=n.DB;i+=n.s}else{for(i+=n.s;r<e.t;)i+=e[r],t[r++]=i&n.DM,i>>=n.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[r++]=i:i<-1&&(t[r++]=n.DV+i),t.t=r,t.clamp()}function Pe(e){var t=new r;return this.addTo(e,t),t}function Oe(e){var t=new r;return this.subTo(e,t),t}function Ie(e){var t=new r;return this.multiplyTo(e,t),t}function ke(){var e=new r;return this.squareTo(e),e}function xe(e){var t=new r;return this.divRemTo(e,t,null),t}function je(e){var t=new r;return this.divRemTo(e,null,t),t}function Ae(e){var t=new r,n=new r;return this.divRemTo(e,t,n),new Array(t,n)}function Ne(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function Le(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function Re(){}function Be(e){return e}function Ue(e,t,n){e.multiplyTo(t,n)}function De(e,t){e.squareTo(t)}function Ce(e){return this.exp(e,new Re)}function Me(e,t,n){var r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;var i;for(i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()}function Fe(e,t,n){--t;var r=n.t=this.t+e.t-t;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function ze(e){this.r2=new r,this.q3=new r,r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function qe(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=new r;return e.copyTo(t),this.reduce(t),t}function He(e){return e}function $e(e){var t=this;for(e.drShiftTo(t.m.t-1,t.r2),e.t>t.m.t+1&&(e.t=t.m.t+1,e.clamp()),t.mu.multiplyUpperTo(t.r2,t.m.t+1,t.q3),t.m.multiplyLowerTo(t.q3,t.m.t+1,t.r2);e.compareTo(t.r2)<0;)e.dAddOffset(1,t.m.t+1);for(e.subTo(t.r2,e);e.compareTo(t.m)>=0;)e.subTo(t.m,e)}function Ve(e,t){e.squareTo(t),this.reduce(t)}function Ye(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function We(e,t){var n,i,o=e.bitLength(),s=f(1);if(o<=0)return s;n=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new k(t):t.isEven()?new ze(t):new B(t);var a=new Array,u=3,c=n-1,l=(1<<n)-1;if(a[1]=i.convert(this),n>1){var h=new r;for(i.sqrTo(a[1],h);u<=l;)a[u]=new r,i.mulTo(h,a[u-2],a[u]),u+=2}var p,d,y=e.t-1,g=!0,b=new r;for(o=v(e[y])-1;y>=0;){for(o>=c?p=e[y]>>o-c&l:(p=(e[y]&(1<<o+1)-1)<<c-o,y>0&&(p|=e[y-1]>>this.DB+o-c)),u=n;0==(1&p);)p>>=1,--u;if((o-=u)<0&&(o+=this.DB,--y),g)a[p].copyTo(s),g=!1;else{for(;u>1;)i.sqrTo(s,b),i.sqrTo(b,s),u-=2;u>0?i.sqrTo(s,b):(d=s,s=b,b=d),i.mulTo(b,a[p],s)}for(;y>=0&&0==(e[y]&1<<o);)i.sqrTo(s,b),d=s,s=b,b=d,--o<0&&(o=this.DB-1,--y)}return i.revert(s)}function Ke(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n}function Ge(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}function Ze(e){var t=e.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&t||0==e.signum())return r.ZERO;for(var n=e.clone(),i=this.clone(),o=f(1),s=f(0),a=f(0),u=f(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),t?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(e,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),t&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),t&&a.subTo(o,a),u.subTo(s,u))}if(0!=i.compareTo(r.ONE))return r.ZERO;for(;u.compareTo(e)>=0;)u.subTo(e,u);for(;u.signum()<0;)u.addTo(e,u);return u}function Xe(e){var t,n=this.abs();if(1==n.t&&n[0]<=st[st.length-1]){for(t=0;t<st.length;++t)if(n[0]==st[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<st.length;){for(var r=st[t],i=t+1;i<st.length&&r<at;)r*=st[i++];for(r=n.modInt(r);t<i;)if(r%st[t++]==0)return!1}return n.millerRabin(e)}function Je(e){var t=this.subtract(r.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);(e=e+1>>1)>st.length&&(e=st.length);for(var o,s=new r(null),a=[],u=0;u<e;++u){for(;o=st[Math.floor(Math.random()*st.length)],-1!=a.indexOf(o););a.push(o),s.fromInt(o);var f=s.modPow(i,this);if(0!=f.compareTo(r.ONE)&&0!=f.compareTo(t)){for(var o=1;o++<n&&0!=f.compareTo(t);)if(f=f.modPowInt(2,this),0==f.compareTo(r.ONE))return!1;if(0!=f.compareTo(t))return!1}}return!0}var Qe=r.prototype;Qe.__bigi=e("../package.json").version,r.isBigInteger=function(e,t){return e&&e.__bigi&&(!t||e.__bigi===Qe.__bigi)};var et;r.prototype.am=i,et=26,r.prototype.DB=et,r.prototype.DM=(1<<et)-1;var tt=r.prototype.DV=1<<et;r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-et,r.prototype.F2=2*et-52;var nt,rt,it="0123456789abcdefghijklmnopqrstuvwxyz",ot=new Array;for(nt="0".charCodeAt(0),rt=0;rt<=9;++rt)ot[nt++]=rt;for(nt="a".charCodeAt(0),rt=10;rt<36;++rt)ot[nt++]=rt;for(nt="A".charCodeAt(0),rt=10;rt<36;++rt)ot[nt++]=rt;k.prototype.convert=x,k.prototype.revert=j,k.prototype.reduce=A,k.prototype.mulTo=N,k.prototype.sqrTo=L,B.prototype.convert=U,B.prototype.revert=D,B.prototype.reduce=C,B.prototype.mulTo=F,B.prototype.sqrTo=M,Qe.copyTo=a,Qe.fromInt=u,Qe.fromString=c,Qe.clamp=l,Qe.dlShiftTo=m,Qe.drShiftTo=w,Qe.lShiftTo=E,Qe.rShiftTo=_,Qe.subTo=T,Qe.multiplyTo=S,Qe.squareTo=P,Qe.divRemTo=O,Qe.invDigit=R,Qe.isEven=z,Qe.exp=q,Qe.toString=h,Qe.negate=p,Qe.abs=d,Qe.compareTo=y,Qe.bitLength=g,Qe.byteLength=b,Qe.mod=I,Qe.modPowInt=H,Re.prototype.convert=Be,Re.prototype.revert=Be,Re.prototype.mulTo=Ue,Re.prototype.sqrTo=De,ze.prototype.convert=qe,ze.prototype.revert=He,ze.prototype.reduce=$e,ze.prototype.mulTo=Ye,ze.prototype.sqrTo=Ve;var st=[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],at=(1<<26)/st[st.length-1];Qe.chunkSize=K,Qe.toRadix=Z,Qe.fromRadix=X,Qe.fromNumber=J,Qe.bitwiseTo=re,Qe.changeBit=we,Qe.addTo=Se,Qe.dMultiply=Ne,Qe.dAddOffset=Le,Qe.multiplyLowerTo=Me,Qe.multiplyUpperTo=Fe,Qe.modInt=Ge,Qe.millerRabin=Je,Qe.clone=$,Qe.intValue=V,Qe.byteValue=Y,Qe.shortValue=W,Qe.signum=G,Qe.toByteArray=Q,Qe.equals=ee,Qe.min=te,Qe.max=ne,Qe.and=oe,Qe.or=ae,Qe.xor=fe,Qe.andNot=le,Qe.not=he,Qe.shiftLeft=pe,Qe.shiftRight=de,Qe.getLowestSetBit=ve,Qe.bitCount=be,Qe.testBit=me,Qe.setBit=Ee,Qe.clearBit=_e,Qe.flipBit=Te,Qe.add=Pe,Qe.subtract=Oe,Qe.multiply=Ie,Qe.divide=xe,Qe.remainder=je,Qe.divideAndRemainder=Ae,Qe.modPow=We,Qe.modInverse=Ze,Qe.pow=Ce,Qe.gcd=Ke,Qe.isProbablePrime=Xe,Qe.square=ke,r.ZERO=f(0),r.ONE=f(1),r.valueOf=f,t.exports=r},{"../package.json":23}],21:[function(e,t,n){(function(t){var n=e("assert"),r=e("./bigi");r.fromByteArrayUnsigned=function(e){return new r(128&e[0]?[0].concat(e):e)},r.prototype.toByteArrayUnsigned=function(){var e=this.toByteArray();return 0===e[0]?e.slice(1):e},r.fromDERInteger=function(e){return new r(e)},r.prototype.toDERInteger=r.prototype.toByteArray,r.fromBuffer=function(e){if(128&e[0]){var t=Array.prototype.slice.call(e);return new r([0].concat(t))}return new r(e)},r.fromHex=function(e){return""===e?r.ZERO:(n.equal(e,e.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),n.equal(e.length%2,0,"Incomplete hex"),new r(e,16))},r.prototype.toBuffer=function(e){for(var n=this.toByteArrayUnsigned(),r=[],i=e-n.length;r.length<i;)r.push(0);return new t(r.concat(n))},r.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")}}).call(this,e("buffer").Buffer)},{"./bigi":20,assert:17,buffer:68}],22:[function(e,t,n){var r=e("./bigi");e("./convert"),t.exports=r},{"./bigi":20,"./convert":21}],23:[function(e,t,n){t.exports={_args:[["bigi@1.4.2","/home/peepee/dev/trezor.js"]],_from:"bigi@1.4.2",_id:"bigi@1.4.2",_inBundle:!1,_integrity:"sha1-nGZalfiLiwj8Bc/XMfVhhZ1yWCU=",_location:"/bigi",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"bigi@1.4.2",name:"bigi",escapedName:"bigi",rawSpec:"1.4.2",saveSpec:null,fetchSpec:"1.4.2"},_requiredBy:["/bitcoinjs-lib-zcash","/ecurve","/trezor-link-node"],_resolved:"https://registry.npmjs.org/bigi/-/bigi-1.4.2.tgz",_spec:"1.4.2",_where:"/home/peepee/dev/trezor.js",bugs:{url:"https://github.com/cryptocoinjs/bigi/issues"},dependencies:{},description:"Big integers.",devDependencies:{coveralls:"^2.11.2",istanbul:"^0.3.5",jshint:"^2.5.1",mocha:"^2.1.0",mochify:"^2.1.0"},homepage:"https://github.com/cryptocoinjs/bigi#readme",keywords:["cryptography","math","bitcoin","arbitrary","precision","arithmetic","big","integer","int","number","biginteger","bigint","bignumber","decimal","float"],main:"./lib/index.js",name:"bigi",repository:{url:"git+https://github.com/cryptocoinjs/bigi.git",type:"git"},scripts:{"browser-test":"mochify --wd -R spec",coverage:"istanbul cover ./node_modules/.bin/_mocha -- --reporter list test/*.js",coveralls:"npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info",jshint:"jshint --config jshint.json lib/*.js ; true",test:"_mocha -- test/*.js",unit:"mocha"},testling:{files:"test/*.js",harness:"mocha",browsers:["ie/9..latest","firefox/latest","chrome/latest","safari/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},version:"1.4.2"}},{}],24:[function(e,t,n){function r(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var n=e[5+t];return 0!==n&&(6+t+n===e.length&&(!(128&e[4])&&(!(t>1&&0===e[4]&&!(128&e[5]))&&(!(128&e[t+6])&&!(n>1&&0===e[t+6]&&!(128&e[t+7]))))))}function i(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var n=e[5+t];if(0===n)throw new Error("S length is zero");if(6+t+n!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(n>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}}function o(e,t){var n=e.length,r=t.length;if(0===n)throw new Error("R length is zero");if(0===r)throw new Error("S length is zero");if(n>33)throw new Error("R length is too long");if(r>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(n>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(r>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var i=s.allocUnsafe(6+n+r);return i[0]=48,i[1]=i.length-2,i[2]=2,i[3]=e.length,e.copy(i,4),i[4+n]=2,i[5+n]=t.length,t.copy(i,6+n),i}var s=e("safe-buffer").Buffer;t.exports={check:r,decode:i,encode:o}},{"safe-buffer":143}],25:[function(e,t,n){t.exports={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_1:81,OP_TRUE:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255}},{}],26:[function(e,t,n){var r=e("./index.json"),i={};for(var o in r){i[r[o]]=o}t.exports=i},{"./index.json":25}],27:[function(e,t,n){(function(n){function r(e){var t=a.decode(e);if(t.length<21)throw new TypeError(e+" is too short");if(t.length>22)throw new TypeError(e+" is too long");var n=22===t.length,r=n?2:1,i=n?t.readUInt16BE(0):t[0];return{hash:t.slice(r),version:i}}function i(e,t){c(l.tuple(l.Hash160bit,l.UInt16),arguments);var r=t>255,i=r?22:21,o=r?2:1,s=new n(i);return r?s.writeUInt16BE(t,0):s.writeUInt8(t,0),e.copy(s,o),a.encode(s)}function o(e,t){if(t=t||f.bitcoin,u.pubKeyHash.output.check(e))return i(u.compile(e).slice(3,23),t.pubKeyHash);if(u.scriptHash.output.check(e))return i(u.compile(e).slice(2,22),t.scriptHash);throw new Error(u.toASM(e)+" has no matching Address")}function s(e,t){t=t||f.bitcoin;var n=r(e);if(n.version===t.pubKeyHash)return u.pubKeyHash.output.encode(n.hash);if(n.version===t.scriptHash)return u.scriptHash.output.encode(n.hash);throw new Error(e+" has no matching Script")}var a=e("bs58check"),u=e("./script"),f=e("./networks"),c=e("typeforce"),l=e("./types");t.exports={fromBase58Check:r,fromOutputScript:o,toBase58Check:i,toOutputScript:s}}).call(this,e("buffer").Buffer)},{"./networks":36,"./script":37,"./types":63,bs58check:67,buffer:68,typeforce:178}],28:[function(e,t,n){(function(n){function r(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}var i=e("./bufferutils"),o=e("./crypto"),s=e("merkle-lib/fastRoot"),a=e("typeforce"),u=e("./types"),f=e("./transaction");r.fromBuffer=function(e){function t(t){return o+=t,e.slice(o-t,o)}function n(){var t=e.readUInt32LE(o);return o+=4,t}if(e.length<80)throw new Error("Buffer too small (< 80 bytes)");var o=0,s=new r;if(s.version=function(){var t=e.readInt32LE(o);return o+=4,t}(),s.prevHash=t(32),s.merkleRoot=t(32),s.timestamp=n(),s.bits=n(),s.nonce=n(),80===e.length)return s;var a=function(){var t=i.readVarInt(e,o);return o+=t.size,t.number}();s.transactions=[];for(var u=0;u<a;++u){var c=function(){var t=f.fromBuffer(e.slice(o),!1,!0);return o+=t.byteLength(),t}();s.transactions.push(c)}return s},r.fromHex=function(e){return r.fromBuffer(new n(e,"hex"))},r.prototype.getHash=function(){return o.hash256(this.toBuffer(!0))},r.prototype.getId=function(){return this.getHash().reverse().toString("hex")},r.prototype.getUTCDate=function(){var e=new Date(0);return e.setUTCSeconds(this.timestamp),e},r.prototype.toBuffer=function(e){function t(e){e.copy(o,s),s+=e.length}function r(e){o.writeUInt32LE(e,s),s+=4}var o=new n(80),s=0;if(function(e){o.writeInt32LE(e,s),s+=4}(this.version),t(this.prevHash),t(this.merkleRoot),r(this.timestamp),r(this.bits),r(this.nonce),e||!this.transactions)return o;var a=i.varIntBuffer(this.transactions.length),u=this.transactions.map(function(e){return e.toBuffer()});return n.concat([o,a].concat(u))},r.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")},r.calculateTarget=function(e){var t=((4278190080&e)>>24)-3,r=8388607&e,i=new n(32);return i.fill(0),i.writeUInt32BE(r,28-t),i},r.calculateMerkleRoot=function(e){if(a([{getHash:u.Function}],e),0===e.length)throw TypeError("Cannot compute merkle root for zero transactions");var t=e.map(function(e){return e.getHash()});return s(t,o.hash256)},r.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;var e=r.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)},r.prototype.checkProofOfWork=function(){var e=this.getHash().reverse(),t=r.calculateTarget(this.bits);return e.compare(t)<=0},t.exports=r}).call(this,e("buffer").Buffer)},{"./bufferutils":29,"./crypto":30,"./transaction":61,"./types":63,buffer:68,"merkle-lib/fastRoot":115,typeforce:178}],29:[function(e,t,n){function r(e,t){if("number"!=typeof e)throw new Error("cannot write a non-number as a number");if(e<0)throw new Error("specified a negative value for writing an unsigned value");if(e>t)throw new Error("RangeError: value out of range");if(Math.floor(e)!==e)throw new Error("value has a fractional component")}function i(e,t){var n=e.readUInt32LE(t),i=e.readUInt32LE(t+4);return i*=4294967296,r(i+n,9007199254740991),i+n}function o(e,t,n){return r(t,9007199254740991),e.writeInt32LE(-1&t,n),e.writeUInt32LE(Math.floor(t/4294967296),n+4),n+8}function s(e,t){return{number:f.decode(e,t),size:f.decode.bytes}}function a(e,t,n){return f.encode(t,e,n),f.encode.bytes}var u=e("pushdata-bitcoin"),f=e("varuint-bitcoin");t.exports={pushDataSize:u.encodingLength,readPushDataInt:u.decode,readUInt64LE:i,readVarInt:s,varIntBuffer:f.encode,varIntSize:f.encodingLength,writePushDataInt:u.encode,writeUInt64LE:o,writeVarInt:a}},{"pushdata-bitcoin":127,"varuint-bitcoin":185}],30:[function(e,t,n){function r(e){return u("rmd160").update(e).digest()}function i(e){return u("sha1").update(e).digest()}function o(e){return u("sha256").update(e).digest()}function s(e){return r(o(e))}function a(e){return o(o(e))}var u=e("create-hash");t.exports={hash160:s,hash256:a,ripemd160:r,sha1:i,sha256:o}},{"create-hash":72}],31:[function(e,t,n){(function(n){function r(e,t,r){a(u.tuple(u.Hash256bit,u.Buffer256bit,u.Function),arguments);var i=new n(32),o=new n(32);o.fill(1),i.fill(0),i=s("sha256",i).update(o).update(l).update(t).update(e).digest(),o=s("sha256",i).update(o).digest(),i=s("sha256",i).update(o).update(h).update(t).update(e).digest(),o=s("sha256",i).update(o).digest(),o=s("sha256",i).update(o).digest();for(var c=f.fromBuffer(o);c.signum()<=0||c.compareTo(d.n)>=0||!r(c);)i=s("sha256",i).update(o).update(l).digest(),o=s("sha256",i).update(o).digest(),o=s("sha256",i).update(o).digest(),c=f.fromBuffer(o);return c}function i(e,t){a(u.tuple(u.Hash256bit,u.BigInt),arguments);var n,i,o=t.toBuffer(32),s=f.fromBuffer(e),l=d.n,h=d.G;return r(e,o,function(e){var r=h.multiply(e);return!d.isInfinity(r)&&(n=r.affineX.mod(l),0!==n.signum()&&(i=e.modInverse(l).multiply(s.add(t.multiply(n))).mod(l),0!==i.signum()))}),i.compareTo(y)>0&&(i=l.subtract(i)),new c(n,i)}function o(e,t,n){a(u.tuple(u.Hash256bit,u.ECSignature,u.ECPoint),arguments);var r=d.n,i=d.G,o=t.r,s=t.s;if(o.signum()<=0||o.compareTo(r)>=0)return!1;if(s.signum()<=0||s.compareTo(r)>=0)return!1;var c=f.fromBuffer(e),l=s.modInverse(r),h=c.multiply(l).mod(r),p=o.multiply(l).mod(r),y=i.multiplyTwo(h,n,p);return!d.isInfinity(y)&&y.affineX.mod(r).equals(o)}var s=e("create-hmac"),a=e("typeforce"),u=e("./types"),f=e("bigi"),c=e("./ecsignature"),l=new n([0]),h=new n([1]),p=e("ecurve"),d=p.getCurveByName("secp256k1"),y=d.n.shiftRight(1);t.exports={deterministicGenerateK:r,sign:i,verify:o,__curve:d}}).call(this,e("buffer").Buffer)},{"./ecsignature":33,"./types":63,bigi:22,buffer:68,"create-hmac":75,ecurve:80,typeforce:178}],32:[function(e,t,n){function r(e,t,n){if(n&&u({compressed:f.maybe(f.Boolean),network:f.maybe(f.Network)},n),n=n||{},e){if(e.signum()<=0)throw new Error("Private key must be greater than 0");if(e.compareTo(d.n)>=0)throw new Error("Private key must be less than the curve order");if(t)throw new TypeError("Unexpected publicKey parameter");this.d=e}else u(f.ECPoint,t),this.__Q=t;this.compressed=void 0===n.compressed||n.compressed,this.network=n.network||l.bitcoin}var i=e("./address"),o=e("./crypto"),s=e("./ecdsa"),a=e("randombytes"),u=e("typeforce"),f=e("./types"),c=e("wif"),l=e("./networks"),h=e("bigi"),p=e("ecurve"),d=s.__curve;Object.defineProperty(r.prototype,"Q",{get:function(){return!this.__Q&&this.d&&(this.__Q=d.G.multiply(this.d)),this.__Q}}),r.fromPublicKeyBuffer=function(e,t){var n=p.Point.decodeFrom(d,e);return new r(null,n,{compressed:n.compressed,network:t})},r.fromWIF=function(e,t){var n=c.decode(e),i=n.version;if(f.Array(t)){if(!(t=t.filter(function(e){return i===e.wif}).pop()))throw new Error("Unknown network version")}else if(t=t||l.bitcoin,i!==t.wif)throw new Error("Invalid network version");return new r(h.fromBuffer(n.privateKey),null,{compressed:n.compressed,network:t})},r.makeRandom=function(e){e=e||{};var t,n=e.rng||a;do{var i=n(32);u(f.Buffer256bit,i),t=h.fromBuffer(i)}while(t.signum()<=0||t.compareTo(d.n)>=0);return new r(t,null,e)},r.prototype.getAddress=function(){return i.toBase58Check(o.hash160(this.getPublicKeyBuffer()),this.getNetwork().pubKeyHash)},r.prototype.getNetwork=function(){return this.network},r.prototype.getPublicKeyBuffer=function(){return this.Q.getEncoded(this.compressed)},r.prototype.sign=function(e){if(!this.d)throw new Error("Missing private key");return s.sign(e,this.d)},r.prototype.toWIF=function(){if(!this.d)throw new Error("Missing private key");return c.encode(this.network.wif,this.d.toBuffer(32),this.compressed)},r.prototype.verify=function(e,t){return s.verify(e,t,this.Q)},t.exports=r},{"./address":27,"./crypto":30,"./ecdsa":31,"./networks":36,"./types":63,bigi:22,ecurve:80,randombytes:128,typeforce:178,wif:187}],33:[function(e,t,n){(function(n){function r(e,t){o(s.tuple(s.BigInt,s.BigInt),arguments),this.r=e,this.s=t}var i=e("bip66"),o=e("typeforce"),s=e("./types"),a=e("bigi");r.parseCompact=function(e){if(65!==e.length)throw new Error("Invalid signature length");var t=e.readUInt8(0)-27;if(t!==(7&t))throw new Error("Invalid signature parameter");return{compressed:!!(4&t),i:3&t,signature:new r(a.fromBuffer(e.slice(1,33)),a.fromBuffer(e.slice(33)))}},r.fromDER=function(e){var t=i.decode(e);return new r(a.fromDERInteger(t.r),a.fromDERInteger(t.s))},r.parseScriptSignature=function(e){var t=e.readUInt8(e.length-1),n=-129&t;if(n<=0||n>=4)throw new Error("Invalid hashType "+t);return{signature:r.fromDER(e.slice(0,-1)),hashType:t}},r.prototype.toCompact=function(e,t){t&&(e+=4),e+=27;var r=new n(65);return r.writeUInt8(e,0),this.r.toBuffer(32).copy(r,1),this.s.toBuffer(32).copy(r,33),r},r.prototype.toDER=function(){var e=new n(this.r.toDERInteger()),t=new n(this.s.toDERInteger());return i.encode(e,t)},r.prototype.toScriptSignature=function(e){var t=-129&e;if(t<=0||t>=4)throw new Error("Invalid hashType "+e);var r=new n(1);return r.writeUInt8(e,0),n.concat([this.toDER(),r])},t.exports=r}).call(this,e("buffer").Buffer)},{"./types":63,bigi:22,bip66:24,buffer:68,typeforce:178}],34:[function(e,t,n){(function(n){function r(e,t){if(a(u.tuple("ECPair",u.Buffer256bit),arguments),!e.compressed)throw new TypeError("BIP32 only allows compressed keyPairs");this.keyPair=e,this.chainCode=t,this.depth=0,this.index=0,this.parentFingerprint=0}var i=e("bs58check"),o=e("./crypto"),s=e("create-hmac"),a=e("typeforce"),u=e("./types"),f=e("./networks"),c=e("bigi"),l=e("./ecpair"),h=e("ecurve"),p=h.getCurveByName("secp256k1");r.HIGHEST_BIT=2147483648,r.LENGTH=78,r.MASTER_SECRET=new n("Bitcoin seed"),r.fromSeedBuffer=function(e,t){if(a(u.tuple(u.Buffer,u.maybe(u.Network)),arguments),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");var n=s("sha512",r.MASTER_SECRET).update(e).digest(),i=n.slice(0,32),o=n.slice(32),f=c.fromBuffer(i);return new r(new l(f,null,{network:t}),o)},
|
||
r.fromSeedHex=function(e,t){return r.fromSeedBuffer(new n(e,"hex"),t)},r.fromBase58=function(e,t,n){var o=i.decode(e);if(78!==o.length)throw new Error("Invalid buffer length");var s,a=o.readUInt32BE(0);if(Array.isArray(t)){if(!(s=t.filter(function(e){return a===e.bip32.private||a===e.bip32.public}).pop()))throw new Error("Unknown network version")}else s=t||f.bitcoin;if(a!==s.bip32.private&&a!==s.bip32.public)throw new Error("Invalid network version");var u=o[4],d=o.readUInt32BE(5);if(0===u&&0!==d)throw new Error("Invalid parent fingerprint");var y=o.readUInt32BE(9);if(0===u&&0!==y)throw new Error("Invalid index");var v,g=o.slice(13,45);if(a===s.bip32.private){if(0!==o.readUInt8(45))throw new Error("Invalid private key");var b=c.fromBuffer(o.slice(46,78));v=new l(b,null,{network:s})}else{var m=h.Point.decodeFrom(p,o.slice(45,78));n||p.validate(m),v=new l(null,m,{network:s})}var w=new r(v,g);return w.depth=u,w.index=y,w.parentFingerprint=d,w},r.prototype.getAddress=function(){return this.keyPair.getAddress()},r.prototype.getIdentifier=function(){return o.hash160(this.keyPair.getPublicKeyBuffer())},r.prototype.getFingerprint=function(){return this.getIdentifier().slice(0,4)},r.prototype.getNetwork=function(){return this.keyPair.getNetwork()},r.prototype.getPublicKeyBuffer=function(){return this.keyPair.getPublicKeyBuffer()},r.prototype.neutered=function(){var e=new l(null,this.keyPair.Q,{network:this.keyPair.network}),t=new r(e,this.chainCode);return t.depth=this.depth,t.index=this.index,t.parentFingerprint=this.parentFingerprint,t},r.prototype.sign=function(e){return this.keyPair.sign(e)},r.prototype.verify=function(e,t){return this.keyPair.verify(e,t)},r.prototype.toBase58=function(e){if(void 0!==e)throw new TypeError("Unsupported argument in 2.0.0");var t=this.keyPair.network,r=this.isNeutered()?t.bip32.public:t.bip32.private,o=new n(78);return o.writeUInt32BE(r,0),o.writeUInt8(this.depth,4),o.writeUInt32BE(this.parentFingerprint,5),o.writeUInt32BE(this.index,9),this.chainCode.copy(o,13),this.isNeutered()?this.keyPair.getPublicKeyBuffer().copy(o,45):(o.writeUInt8(0,45),this.keyPair.d.toBuffer(32).copy(o,46)),i.encode(o)},r.prototype.derive=function(e){a(u.UInt32,e);var t=e>=r.HIGHEST_BIT,i=new n(37);if(t){if(this.isNeutered())throw new TypeError("Could not derive hardened child key");i[0]=0,this.keyPair.d.toBuffer(32).copy(i,1),i.writeUInt32BE(e,33)}else this.keyPair.getPublicKeyBuffer().copy(i,0),i.writeUInt32BE(e,33);var o=s("sha512",this.chainCode).update(i).digest(),f=o.slice(0,32),h=o.slice(32),d=c.fromBuffer(f);if(d.compareTo(p.n)>=0)return this.derive(e+1);var y;if(this.isNeutered()){var v=p.G.multiply(d).add(this.keyPair.Q);if(p.isInfinity(v))return this.derive(e+1);y=new l(null,v,{network:this.keyPair.network})}else{var g=d.add(this.keyPair.d).mod(p.n);if(0===g.signum())return this.derive(e+1);y=new l(g,null,{network:this.keyPair.network})}var b=new r(y,h);return b.depth=this.depth+1,b.index=e,b.parentFingerprint=this.getFingerprint().readUInt32BE(0),b},r.prototype.deriveHardened=function(e){return a(u.UInt31,e),this.derive(e+r.HIGHEST_BIT)},r.prototype.isNeutered=function(){return!this.keyPair.d},r.prototype.derivePath=function(e){a(u.BIP32Path,e);var t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new Error("Not a master node");t=t.slice(1)}return t.reduce(function(e,t){var n;return"'"===t.slice(-1)?(n=parseInt(t.slice(0,-1),10),e.deriveHardened(n)):(n=parseInt(t,10),e.derive(n))},this)},t.exports=r}).call(this,e("buffer").Buffer)},{"./crypto":30,"./ecpair":32,"./networks":36,"./types":63,bigi:22,bs58check:67,buffer:68,"create-hmac":75,ecurve:80,typeforce:178}],35:[function(e,t,n){t.exports={Block:e("./block"),ECPair:e("./ecpair"),ECSignature:e("./ecsignature"),HDNode:e("./hdnode"),Transaction:e("./transaction"),TransactionBuilder:e("./transaction_builder"),address:e("./address"),bufferutils:e("./bufferutils"),crypto:e("./crypto"),networks:e("./networks"),opcodes:e("bitcoin-ops"),script:e("./script")}},{"./address":27,"./block":28,"./bufferutils":29,"./crypto":30,"./ecpair":32,"./ecsignature":33,"./hdnode":34,"./networks":36,"./script":37,"./transaction":61,"./transaction_builder":62,"bitcoin-ops":25}],36:[function(e,t,n){t.exports={bitcoin:{messagePrefix:"Bitcoin Signed Message:\n",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},testnet:{messagePrefix:"Bitcoin Signed Message:\n",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239},litecoin:{messagePrefix:"Litecoin Signed Message:\n",bip32:{public:27108450,private:27106558},pubKeyHash:48,scriptHash:5,wif:176}}},{}],37:[function(e,t,n){(function(n){function r(e){return g.Number(e)&&(e===m.OP_0||e>=m.OP_1&&e<=m.OP_16||e===m.OP_1NEGATE)}function i(e){return g.Buffer(e)||r(e)}function o(e){return g.Array(e)&&e.every(i)}function s(e){if(n.isBuffer(e))return e;v(g.Array,e);var t=e.reduce(function(e,t){return n.isBuffer(t)?1===t.length&&(129===t[0]||t[0]>=1&&t[0]<=16)?e+1:e+y.encodingLength(t.length)+t.length:e+1},0),r=new n(t),i=0;if(e.forEach(function(e){if(n.isBuffer(e)){if(1===e.length&&e[0]>=1&&e[0]<=16){var t=E+e[0];return r.writeUInt8(t,i),void(i+=1)}if(1===e.length&&129===e[0])return r.writeUInt8(m.OP_1NEGATE,i),void(i+=1);i+=y.encode(r,e.length,i),e.copy(r,i),i+=e.length}else r.writeUInt8(e,i),i+=1}),i!==r.length)throw new Error("Could not decode chunks");return r}function a(e){if(g.Array(e))return e;v(g.Buffer,e);for(var t=[],n=0;n<e.length;){var r=e[n];if(r>m.OP_0&&r<=m.OP_PUSHDATA4){var i=y.decode(e,n);if(null===i)return[];if((n+=i.size)+i.number>e.length)return[];var o=e.slice(n,n+i.number);n+=i.number,t.push(o)}else t.push(r),n+=1}return t}function u(e){return n.isBuffer(e)&&(e=a(e)),e.map(function(e){return n.isBuffer(e)?e.toString("hex"):w[e]}).join(" ")}function f(e){return v(g.String,e),s(e.split(" ").map(function(e){return void 0!==m[e]?m[e]:(v(g.Hex,e),new n(e,"hex"))}))}function c(e){return e=a(e),v(o,e),e.map(function(e){return n.isBuffer(e)?e:e===m.OP_0?new n(0):b.encode(e-E)})}function l(e){if(!n.isBuffer(e))return!1;if(e.length<33)return!1;switch(e[0]){case 2:case 3:return 33===e.length;case 4:return 65===e.length}return!1}function h(e){var t=-129&e;return t>0&&t<4}function p(e){return!!n.isBuffer(e)&&(!!h(e[e.length-1])&&d.check(e.slice(0,-1)))}var d=e("bip66"),y=e("pushdata-bitcoin"),v=e("typeforce"),g=e("./types"),b=e("./script_number"),m=e("bitcoin-ops"),w=e("bitcoin-ops/map"),E=m.OP_RESERVED;t.exports={compile:s,decompile:a,fromASM:f,toASM:u,toStack:c,number:e("./script_number"),isCanonicalPubKey:l,isCanonicalSignature:p,isPushOnly:o,isDefinedHashType:h};var _=e("./templates");for(var T in _)t.exports[T]=_[T]}).call(this,e("buffer").Buffer)},{"./script_number":38,"./templates":39,"./types":63,bip66:24,"bitcoin-ops":25,"bitcoin-ops/map":26,buffer:68,"pushdata-bitcoin":127,typeforce:178}],38:[function(e,t,n){(function(e){function n(e,t,n){t=t||4,n=void 0===n||n;var r=e.length;if(0===r)return 0;if(r>t)throw new TypeError("Script number overflow");if(n&&0==(127&e[r-1])&&(r<=1||0==(128&e[r-2])))throw new Error("Non-minimally encoded script number");if(5===r){var i=e.readUInt32LE(0),o=e.readUInt8(4);return 128&o?-(4294967296*(-129&o)+i):4294967296*o+i}for(var s=0,a=0;a<r;++a)s|=e[a]<<8*a;return 128&e[r-1]?-(s&~(128<<8*(r-1))):s}function r(e){return e>2147483647?5:e>8388607?4:e>32767?3:e>127?2:e>0?1:0}function i(t){for(var n=Math.abs(t),i=r(n),o=new e(i),s=t<0,a=0;a<i;++a)o.writeUInt8(255&n,a),n>>=8;return 128&o[i-1]?o.writeUInt8(s?128:0,i-1):s&&(o[i-1]|=128),o}t.exports={decode:n,encode:i}}).call(this,e("buffer").Buffer)},{buffer:68}],39:[function(e,t,n){function r(e){if(h.output.check(e))return y.P2WPKH;if(p.output.check(e))return y.P2WSH;if(c.output.check(e))return y.P2PKH;if(l.output.check(e))return y.P2SH;var t=s(e);return a.output.check(t)?y.MULTISIG:f.output.check(t)?y.P2PK:d.output.check(t)?y.WITNESS_COMMITMENT:u.output.check(t)?y.NULLDATA:y.NONSTANDARD}function i(e,t){var n=s(e);return c.input.check(n)?y.P2PKH:l.input.check(n,t)?y.P2SH:a.input.check(n,t)?y.MULTISIG:f.input.check(n)?y.P2PK:y.NONSTANDARD}function o(e,t){var n=s(e);return h.input.check(n)?y.P2WPKH:p.input.check(n)?y.P2WSH:y.NONSTANDARD}var s=e("../script").decompile,a=e("./multisig"),u=e("./nulldata"),f=e("./pubkey"),c=e("./pubkeyhash"),l=e("./scripthash"),h=e("./witnesspubkeyhash"),p=e("./witnessscripthash"),d=e("./witnesscommitment"),y={MULTISIG:"multisig",NONSTANDARD:"nonstandard",NULLDATA:"nulldata",P2PK:"pubkey",P2PKH:"pubkeyhash",P2SH:"scripthash",P2WPKH:"witnesspubkeyhash",P2WSH:"witnessscripthash",WITNESS_COMMITMENT:"witnesscommitment"};t.exports={classifyInput:i,classifyOutput:r,classifyWitness:o,multisig:a,nullData:u,pubKey:f,pubKeyHash:c,scriptHash:l,witnessPubKeyHash:h,witnessScriptHash:p,witnessCommitment:d,types:y}},{"../script":37,"./multisig":40,"./nulldata":43,"./pubkey":44,"./pubkeyhash":47,"./scripthash":50,"./witnesscommitment":53,"./witnesspubkeyhash":55,"./witnessscripthash":58}],40:[function(e,t,n){t.exports={input:e("./input"),output:e("./output")}},{"./input":41,"./output":42}],41:[function(e,t,n){(function(n){function r(e){return e===l.OP_0||f.isCanonicalSignature(e)}function i(e,t){var n=f.decompile(e);return!(n.length<2)&&(n[0]===l.OP_0&&(t?n.slice(1).every(r):n.slice(1).every(f.isCanonicalSignature)))}function o(e,t){if(c([r],e),t){var i=f.multisig.output.decode(t);if(e.length<i.m)throw new TypeError("Not enough signatures provided");if(e.length>i.pubKeys.length)throw new TypeError("Too many signatures provided")}return[].concat(new n(0),e)}function s(e,t){return f.compile(o(e,t))}function a(e,t){return c(i,e,t),e.slice(1)}function u(e,t){return a(f.decompile(e),t)}var f=e("../../script"),c=e("typeforce"),l=e("bitcoin-ops");i.toJSON=function(){return"multisig input"},t.exports={check:i,decode:u,decodeStack:a,encode:s,encodeStack:o}}).call(this,e("buffer").Buffer)},{"../../script":37,"bitcoin-ops":25,buffer:68,typeforce:178}],42:[function(e,t,n){function r(e,t){var n=s.decompile(e);if(n.length<4)return!1;if(n[n.length-1]!==f.OP_CHECKMULTISIG)return!1;if(!a.Number(n[0]))return!1;if(!a.Number(n[n.length-2]))return!1;var r=n[0]-c,i=n[n.length-2]-c;return!(r<=0)&&(!(i>16)&&(!(r>i)&&(i===n.length-3&&(!!t||n.slice(1,-2).every(s.isCanonicalPubKey)))))}function i(e,t){u({m:a.Number,pubKeys:[s.isCanonicalPubKey]},{m:e,pubKeys:t});var n=t.length;if(n<e)throw new TypeError("Not enough pubKeys provided");return s.compile([].concat(c+e,t,c+n,f.OP_CHECKMULTISIG))}function o(e,t){var n=s.decompile(e);return u(r,n,t),{m:n[0]-c,pubKeys:n.slice(1,-2)}}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops"),c=f.OP_RESERVED;r.toJSON=function(){return"multi-sig output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"../../types":63,"bitcoin-ops":25,typeforce:178}],43:[function(e,t,n){function r(e){var t=s.compile(e);return t.length>1&&t[0]===f.OP_RETURN}function i(e){return u(a.Buffer,e),s.compile([f.OP_RETURN,e])}function o(e){return u(r,e),e.slice(2)}var s=e("../script"),a=e("../types"),u=e("typeforce"),f=e("bitcoin-ops");r.toJSON=function(){return"null data output"},t.exports={output:{check:r,decode:o,encode:i}}},{"../script":37,"../types":63,"bitcoin-ops":25,typeforce:178}],44:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./input":45,"./output":46,dup:40}],45:[function(e,t,n){function r(e){var t=u.decompile(e);return 1===t.length&&u.isCanonicalSignature(t[0])}function i(e){return c(f.Buffer,e),[e]}function o(e){return u.compile(i(e))}function s(e){return c(r,e),e[0]}function a(e){return s(u.decompile(e))}var u=e("../../script"),f=e("../../types"),c=e("typeforce");r.toJSON=function(){return"pubKey input"},t.exports={check:r,decode:a,decodeStack:s,encode:o,encodeStack:i}},{"../../script":37,"../../types":63,typeforce:178}],46:[function(e,t,n){function r(e){var t=s.decompile(e);return 2===t.length&&s.isCanonicalPubKey(t[0])&&t[1]===u.OP_CHECKSIG}function i(e){return a(s.isCanonicalPubKey,e),s.compile([e,u.OP_CHECKSIG])}function o(e){var t=s.decompile(e);return a(r,t),t[0]}var s=e("../../script"),a=e("typeforce"),u=e("bitcoin-ops");r.toJSON=function(){return"pubKey output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"bitcoin-ops":25,typeforce:178}],47:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./input":48,"./output":49,dup:40}],48:[function(e,t,n){function r(e){var t=u.decompile(e);return 2===t.length&&u.isCanonicalSignature(t[0])&&u.isCanonicalPubKey(t[1])}function i(e,t){return c({signature:f.Buffer,pubKey:f.Buffer},{signature:e,pubKey:t}),[e,t]}function o(e,t){return u.compile(i(e,t))}function s(e){return c(r,e),{signature:e[0],pubKey:e[1]}}function a(e){return s(u.decompile(e))}var u=e("../../script"),f=e("../../types"),c=e("typeforce");r.toJSON=function(){return"pubKeyHash input"},t.exports={check:r,decode:a,decodeStack:s,encode:o,encodeStack:i}},{"../../script":37,"../../types":63,typeforce:178}],49:[function(e,t,n){function r(e){var t=s.compile(e);return 25===t.length&&t[0]===f.OP_DUP&&t[1]===f.OP_HASH160&&20===t[2]&&t[23]===f.OP_EQUALVERIFY&&t[24]===f.OP_CHECKSIG}function i(e){return u(a.Hash160bit,e),s.compile([f.OP_DUP,f.OP_HASH160,e,f.OP_EQUALVERIFY,f.OP_CHECKSIG])}function o(e){return u(r,e),e.slice(3,23)}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops");r.toJSON=function(){return"pubKeyHash output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"../../types":63,"bitcoin-ops":25,typeforce:178}],50:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./input":51,"./output":52,dup:40}],51:[function(e,t,n){(function(n){function r(e,t){var r=u.decompile(e);if(r.length<1)return!1;var i=r[r.length-1];if(!n.isBuffer(i))return!1;var o=u.decompile(u.compile(r.slice(0,-1))),s=u.decompile(i);if(0===s.length)return!1;if(!u.isPushOnly(o))return!1;var a=u.classifyInput(o,t),f=u.classifyOutput(s);return 1===r.length?f===u.types.P2WSH||f===u.types.P2WPKH:a===f}function i(e,t){return[].concat(e,u.compile(t))}function o(e,t){var n=u.decompile(e);return u.compile(i(n,t))}function s(e){return f(r,e),{redeemScriptStack:e.slice(0,-1),redeemScript:e[e.length-1]}}function a(e){var t=u.decompile(e),n=s(t);return n.redeemScriptSig=u.compile(n.redeemScriptStack),delete n.redeemScriptStack,n}var u=e("../../script"),f=e("typeforce");r.toJSON=function(){return"scriptHash input"},t.exports={check:r,decode:a,decodeStack:s,encode:o,encodeStack:i}}).call(this,{isBuffer:e("../../../../is-buffer/index.js")})},{"../../../../is-buffer/index.js":104,"../../script":37,typeforce:178}],52:[function(e,t,n){function r(e){var t=s.compile(e);return 23===t.length&&t[0]===f.OP_HASH160&&20===t[1]&&t[22]===f.OP_EQUAL}function i(e){return u(a.Hash160bit,e),s.compile([f.OP_HASH160,e,f.OP_EQUAL])}function o(e){return u(r,e),e.slice(2,22)}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops");r.toJSON=function(){return"scriptHash output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"../../types":63,"bitcoin-ops":25,typeforce:178}],53:[function(e,t,n){t.exports={output:e("./output")}},{"./output":54}],54:[function(e,t,n){(function(n){function r(e){var t=s.compile(e);return t.length>37&&t[0]===f.OP_RETURN&&36===t[1]&&t.slice(2,6).equals(c)}function i(e){return u(a.Hash256bit,e),s.compile([f.OP_RETURN,n.concat([c,e])])}function o(e){return u(r,e),s.decompile(e)[1].slice(4,36)}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops"),c=new n("aa21a9ed","hex");r.toJSON=function(){return"Witness commitment output"},t.exports={check:r,decode:o,encode:i}}).call(this,e("buffer").Buffer)},{"../../script":37,"../../types":63,"bitcoin-ops":25,buffer:68,typeforce:178}],55:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./input":56,"./output":57,dup:40}],56:[function(e,t,n){var r=e("../pubkeyhash/input");t.exports={check:r.check,decodeStack:r.decodeStack,encodeStack:r.encodeStack}},{"../pubkeyhash/input":48}],57:[function(e,t,n){function r(e){var t=s.compile(e);return 22===t.length&&t[0]===f.OP_0&&20===t[1]}function i(e){return u(a.Hash160bit,e),s.compile([f.OP_0,e])}function o(e){return u(r,e),e.slice(2)}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops");r.toJSON=function(){return"Witness pubKeyHash output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"../../types":63,"bitcoin-ops":25,typeforce:178}],58:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./input":59,"./output":60,dup:40}],59:[function(e,t,n){var r=e("../scripthash/input");t.exports={check:r.check,decodeStack:r.decodeStack,encodeStack:r.encodeStack}},{"../scripthash/input":51}],60:[function(e,t,n){function r(e){var t=s.compile(e);return 34===t.length&&t[0]===f.OP_0&&32===t[1]}function i(e){return u(a.Hash256bit,e),s.compile([f.OP_0,e])}function o(e){return u(r,e),e.slice(2)}var s=e("../../script"),a=e("../../types"),u=e("typeforce"),f=e("bitcoin-ops");r.toJSON=function(){return"Witness scriptHash output"},t.exports={check:r,decode:o,encode:i}},{"../../script":37,"../../types":63,"bitcoin-ops":25,typeforce:178}],61:[function(e,t,n){(function(n){function r(e){var t=e.length;return u.varIntSize(t)+t}function i(e){var t=e.length;return u.varIntSize(t)+e.reduce(function(e,t){return e+r(t)},0)}function o(){this.version=1,this.locktime=0,this.ins=[],this.outs=[],this.joinsplits=[]}var s=e("./crypto"),a=e("./script"),u=e("./bufferutils"),f=e("bitcoin-ops"),c=e("typeforce"),l=e("./types");o.DEFAULT_SEQUENCE=4294967295,o.SIGHASH_ALL=1,o.SIGHASH_NONE=2,o.SIGHASH_SINGLE=3,o.SIGHASH_ANYONECANPAY=128,o.ADVANCED_TRANSACTION_MARKER=0,o.ADVANCED_TRANSACTION_FLAG=1;var h=new n(0),p=[],d=new n("0000000000000000000000000000000000000000000000000000000000000000","hex"),y=new n("0000000000000000000000000000000000000000000000000000000000000001","hex"),v=new n("ffffffffffffffff","hex"),g={script:h,valueBuffer:v};o.ZCASH_NUM_JS_INPUTS=2,o.ZCASH_NUM_JS_OUTPUTS=2,o.ZCASH_NOTECIPHERTEXT_SIZE=601,o.ZCASH_G1_PREFIX_MASK=2,o.ZCASH_G2_PREFIX_MASK=10,o.fromBuffer=function(e,t,n){function r(t){return h+=t,e.slice(h-t,h)}function i(){var t=e.readUInt8(h);return h+=1,t}function s(){var t=e.readUInt32LE(h);return h+=4,t}function a(){var t=u.readUInt64LE(e,h);return h+=8,t}function f(){var t=u.readVarInt(e,h);return h+=t.size,t.number}function c(){return r(f())}function l(){var e=1&i();return{x:r(32),yLsb:e}}var h=0,d=new o;d.version=function(){var t=e.readInt32LE(h);return h+=4,t}();var y=e.readUInt8(h),v=e.readUInt8(h+1),g=!1;t||y===o.ADVANCED_TRANSACTION_MARKER&&v===o.ADVANCED_TRANSACTION_FLAG&&(h+=2,g=!0);for(var b=f(),m=0;m<b;++m)d.ins.push({hash:r(32),index:s(),script:c(),sequence:s(),witness:p});var w=f();for(m=0;m<w;++m)d.outs.push({value:a(),script:c()});if(g){for(m=0;m<b;++m)d.ins[m].witness=function(){for(var e=f(),t=[],n=0;n<e;n++)t.push(c());return t}();if(!d.hasWitnesses())throw new Error("Transaction has superfluous witness data")}if(d.locktime=s(),d.version>=2&&t){var E=f();for(m=0;m<E;++m){for(var _=a(),T=a(),S=r(32),P=[],O=0;O<o.ZCASH_NUM_JS_INPUTS;O++)P.push(r(32));var I=[];for(O=0;O<o.ZCASH_NUM_JS_OUTPUTS;O++)I.push(r(32));var k=r(32),x=r(32),j=[];for(O=0;O<o.ZCASH_NUM_JS_INPUTS;O++)j.push(r(32));var A={gA:l(),gAPrime:l(),gB:function(){var e=1&i();return{x:r(64),yLsb:e}}(),gBPrime:l(),gC:l(),gCPrime:l(),gK:l(),gH:l()},N=[];for(O=0;O<o.ZCASH_NUM_JS_OUTPUTS;O++)N.push(r(o.ZCASH_NOTECIPHERTEXT_SIZE));d.joinsplits.push({vpubOld:_,vpubNew:T,anchor:S,nullifiers:P,commitments:I,ephemeralKey:k,randomSeed:x,macs:j,zproof:A,ciphertexts:N})}E>0&&(d.joinsplitPubkey=r(32),d.joinsplitSig=r(64))}if(d.zcash=!!t,n)return d;if(h!==e.length)throw new Error("Transaction has unexpected data");return d},o.fromHex=function(e,t){return o.fromBuffer(new n(e,"hex"),t)},o.isCoinbaseHash=function(e){c(l.Hash256bit,e);for(var t=0;t<32;++t)if(0!==e[t])return!1;return!0},o.prototype.isCoinbase=function(){return 1===this.ins.length&&o.isCoinbaseHash(this.ins[0].hash)},o.prototype.addInput=function(e,t,n,r){return c(l.tuple(l.Hash256bit,l.UInt32,l.maybe(l.UInt32),l.maybe(l.Buffer)),arguments),l.Null(n)&&(n=o.DEFAULT_SEQUENCE),this.ins.push({hash:e,index:t,script:r||h,sequence:n,witness:p})-1},o.prototype.addOutput=function(e,t){return c(l.tuple(l.Buffer,l.Satoshi),arguments),this.outs.push({script:e,value:t})-1},o.prototype.hasWitnesses=function(){return this.ins.some(function(e){return 0!==e.witness.length})},o.prototype.byteLength=function(){return this.__byteLength(!0)},o.prototype.joinsplitByteLength=function(){if(this.version<2)return 0;if(!this.zcash)return 0;var e=this.joinsplits.length>0?96:0;return u.varIntSize(this.joinsplits.length)+this.joinsplits.reduce(function(e,t){return e+8+8+32+32*t.nullifiers.length+32*t.commitments.length+32+32+32*t.macs.length+65+231+t.ciphertexts.length*o.ZCASH_NOTECIPHERTEXT_SIZE},0)+e},o.prototype.__byteLength=function(e){var t=e&&this.hasWitnesses();return(t?10:8)+u.varIntSize(this.ins.length)+u.varIntSize(this.outs.length)+this.ins.reduce(function(e,t){return e+40+r(t.script)},0)+this.outs.reduce(function(e,t){return e+8+r(t.script)},0)+(t?this.ins.reduce(function(e,t){return e+i(t.witness)},0):0)+this.joinsplitByteLength()},o.prototype.clone=function(){var e=new o;return e.version=this.version,e.locktime=this.locktime,e.zcash=this.zcash,e.ins=this.ins.map(function(e){return{hash:e.hash,index:e.index,script:e.script,sequence:e.sequence,witness:e.witness}}),e.outs=this.outs.map(function(e){return{script:e.script,value:e.value}}),e},o.prototype.hashForSignature=function(e,t,r){if(c(l.tuple(l.UInt32,l.Buffer,l.Number),arguments),e>=this.ins.length)return y;var i=a.compile(a.decompile(t).filter(function(e){return e!==f.OP_CODESEPARATOR})),u=this.clone();if((31&r)===o.SIGHASH_NONE)u.outs=[],u.ins.forEach(function(t,n){n!==e&&(t.sequence=0)});else if((31&r)===o.SIGHASH_SINGLE){if(e>=this.outs.length)return y;u.outs.length=e+1;for(var p=0;p<e;p++)u.outs[p]=g;u.ins.forEach(function(t,n){n!==e&&(t.sequence=0)})}r&o.SIGHASH_ANYONECANPAY?(u.ins=[u.ins[e]],u.ins[0].script=i):(u.ins.forEach(function(e){e.script=h}),u.ins[e].script=i);var d=new n(u.__byteLength(!1)+4);return d.writeInt32LE(r,d.length-4),u.__toBuffer(d,0,!1),s.hash256(d)},o.prototype.hashForWitnessV0=function(e,t,i,a){function f(e){b+=e.copy(g,b)}function h(e){b=g.writeUInt32LE(e,b)}function p(e){b=u.writeUInt64LE(g,e,b)}function y(e){b+=u.writeVarInt(g,e,b)}function v(e){y(e.length),f(e)}c(l.tuple(l.UInt32,l.Buffer,l.Satoshi,l.UInt32),arguments);var g,b,m=d,w=d,E=d;if(a&o.SIGHASH_ANYONECANPAY||(g=new n(36*this.ins.length),b=0,this.ins.forEach(function(e){f(e.hash),h(e.index)}),w=s.hash256(g)),a&o.SIGHASH_ANYONECANPAY||(31&a)===o.SIGHASH_SINGLE||(31&a)===o.SIGHASH_NONE||(g=new n(4*this.ins.length),b=0,this.ins.forEach(function(e){h(e.sequence)}),E=s.hash256(g)),(31&a)!==o.SIGHASH_SINGLE&&(31&a)!==o.SIGHASH_NONE){var _=this.outs.reduce(function(e,t){return e+8+r(t.script)},0);g=new n(_),b=0,this.outs.forEach(function(e){p(e.value),v(e.script)}),m=s.hash256(g)}else if((31&a)===o.SIGHASH_SINGLE&&e<this.outs.length){var T=this.outs[e];g=new n(8+r(T.script)),b=0,p(T.value),v(T.script),m=s.hash256(g)}g=new n(156+r(t)),b=0;var S=this.ins[e];return h(this.version),f(w),f(E),f(S.hash),h(S.index),v(t),p(i),h(S.sequence),f(m),h(this.locktime),h(a),s.hash256(g)},o.prototype.getHash=function(){return s.hash256(this.__toBuffer(void 0,void 0,!1))},o.prototype.getId=function(){return this.getHash().reverse().toString("hex")},o.prototype.toBuffer=function(e,t){return this.__toBuffer(e,t,!0)},o.prototype.__toBuffer=function(e,t,r){function i(t){y+=t.copy(e,y)}function s(t){y=e.writeUInt8(t,y)}function a(t){y=e.writeUInt32LE(t,y)}function f(t){y=u.writeUInt64LE(e,t,y)}function c(t){y+=u.writeVarInt(e,t,y)}function l(e){c(e.length),i(e)}function h(e){c(e.length),e.forEach(l)}function p(e){s(o.ZCASH_G1_PREFIX_MASK|e.yLsb),i(e.x)}function d(e){s(o.ZCASH_G2_PREFIX_MASK|e.yLsb),i(e.x)}e||(e=new n(this.__byteLength(r)));var y=t||0;!function(t){y=e.writeInt32LE(t,y)}(this.version);var v=r&&this.hasWitnesses();return v&&(s(o.ADVANCED_TRANSACTION_MARKER),s(o.ADVANCED_TRANSACTION_FLAG)),c(this.ins.length),this.ins.forEach(function(e){i(e.hash),a(e.index),l(e.script),a(e.sequence)}),c(this.outs.length),this.outs.forEach(function(e){e.valueBuffer?i(e.valueBuffer):f(e.value),l(e.script)}),v&&this.ins.forEach(function(e){h(e.witness)}),a(this.locktime),this.version>=2&&this.zcash&&(c(this.joinsplits.length),this.joinsplits.forEach(function(e){f(e.vpubOld),f(e.vpubNew),i(e.anchor),e.nullifiers.forEach(function(e){i(e)}),e.commitments.forEach(function(e){i(e)}),i(e.ephemeralKey),i(e.randomSeed),e.macs.forEach(function(e){i(e)}),p(e.zproof.gA),p(e.zproof.gAPrime),d(e.zproof.gB),p(e.zproof.gBPrime),p(e.zproof.gC),p(e.zproof.gCPrime),p(e.zproof.gK),p(e.zproof.gH),e.ciphertexts.forEach(function(e){i(e)})}),this.joinsplits.length>0&&(i(this.joinsplitPubkey),i(this.joinsplitSig))),void 0!==t?e.slice(t,y):e},o.prototype.toHex=function(){return this.toBuffer().toString("hex")},o.prototype.setInputScript=function(e,t){c(l.tuple(l.Number,l.Buffer),arguments),this.ins[e].script=t},o.prototype.setWitness=function(e,t){c(l.tuple(l.Number,[l.Buffer]),arguments),this.ins[e].witness=t},t.exports=o}).call(this,e("buffer").Buffer)},{"./bufferutils":29,"./crypto":30,"./script":37,"./types":63,"bitcoin-ops":25,buffer:68,typeforce:178}],62:[function(e,t,n){(function(n){function r(e,t,n){var r=[],i=[];switch(e){case _.P2PKH:r=t.slice(1),i=t.slice(0,1);break;case _.P2PK:r[0]=n?g.pubKey.output.decode(n):void 0,i=t.slice(0,1);break;case _.MULTISIG:if(n){r=g.multisig.output.decode(n).pubKeys}i=t.slice(1).map(function(e){return 0===e.length?void 0:e})}return{pubKeys:r,signatures:i}}function i(e,t){var n,i,o,s,a,u,f,c,l,h,p=!1,d=!1,y=g.decompile(e);g.classifyInput(y,!0)===_.P2SH&&(d=!0,a=y[y.length-1],c=g.classifyOutput(a),n=g.scriptHash.output.encode(v.hash160(a)),i=_.P2SH,s=a);var b=g.classifyWitness(t);if(b===_.P2WSH){if(u=t[t.length-1],f=g.classifyOutput(u),p=!0,0===e.length){if(n=g.witnessScriptHash.output.encode(v.sha256(u)),i=_.P2WSH,void 0!==a)throw new Error("Redeem script given when unnecessary")}else{if(!a)throw new Error("No redeemScript provided for P2WSH, but scriptSig non-empty");if(l=g.witnessScriptHash.output.encode(v.sha256(u)),!a.equals(l))throw new Error("Redeem script didn't match witnessScript")}if(-1===T.indexOf(g.classifyOutput(u)))throw new Error("unsupported witness script");s=u,o=f,h=t.slice(0,-1)}else if(b===_.P2WPKH){var m=t[t.length-1],w=v.hash160(m);if(0===e.length){if(n=g.witnessPubKeyHash.output.encode(w),i=_.P2WPKH,void 0!==a)throw new Error("Redeem script given when unnecessary")}else{if(!a)throw new Error("No redeemScript provided for P2WPKH, but scriptSig wasn't empty");if(l=g.witnessPubKeyHash.output.encode(w),!a.equals(l))throw new Error("Redeem script did not have the right witness program")}o=_.P2PKH,h=t}else if(a){if(-1===S.indexOf(c))throw new Error("Bad redeemscript!");s=a,o=c,h=y.slice(0,-1)}else i=o=g.classifyInput(e),h=y;var E=r(o,h,s),P={pubKeys:E.pubKeys,signatures:E.signatures,prevOutScript:n,prevOutType:i,signType:o,signScript:s,witness:Boolean(!1)};return d&&(P.redeemScript=a,P.redeemScriptType=c),p&&(P.witnessScript=u,P.witnessScriptType=f),P}function o(e,t,n){if(e.redeemScriptType===_.MULTISIG&&e.redeemScript&&e.pubKeys.length!==e.signatures.length){var r=e.signatures.concat();e.signatures=e.pubKeys.map(function(i,o){var s,a=P.fromPublicKeyBuffer(i);return r.some(function(i,o){if(!i)return!1;var u=O.parseScriptSignature(i),f=t.hashForSignature(n,e.redeemScript,u.hashType);return!!a.verify(f,u.signature)&&(r[o]=void 0,s=i,!0)}),s})}}function s(e,t,n){w(E.Buffer,e);var r=g.decompile(e);t||(t=g.classifyOutput(e));var i=[];switch(t){case _.P2PKH:if(!n)break;var o=r[2],s=v.hash160(n);o.equals(s)&&(i=[n]);break;case _.P2WPKH:if(!n)break;var a=r[1],u=v.hash160(n);a.equals(u)&&(i=[n]);break;case _.P2PK:i=r.slice(0,1);break;case _.MULTISIG:i=r.slice(1,-2);break;default:return{scriptType:t}}return{pubKeys:i,scriptType:t,signatures:i.map(function(){})}}function a(e,t){if(e.prevOutType){if(e.prevOutType!==_.P2SH)throw new Error("PrevOutScript must be P2SH");if(!g.decompile(e.prevOutScript)[1].equals(t))throw new Error("Inconsistent hash160(RedeemScript)")}}function u(e,t){if(e.prevOutType){if(e.prevOutType!==_.P2WSH)throw new Error("PrevOutScript must be P2WSH");if(!g.decompile(e.prevOutScript)[1].equals(t))throw new Error("Inconsistent sha25(WitnessScript)")}}function f(e,t,n,r,i){var o,f,c,l,h,p,d,y,b,m=!1,w=!1,T=!1;if(n&&i){if(h=v.hash160(n),d=v.sha256(i),a(e,h),!n.equals(g.witnessScriptHash.output.encode(d)))throw new Error("Witness script inconsistent with redeem script");if(o=s(i,void 0,t),!o.pubKeys)throw new Error('WitnessScript not supported "'+g.toASM(n)+'"');f=g.types.P2SH,c=g.scriptHash.output.encode(h),m=w=T=!0,l=g.types.P2WSH,y=p=o.scriptType,b=i}else if(n){if(h=v.hash160(n),a(e,h),o=s(n,void 0,t),!o.pubKeys)throw new Error('RedeemScript not supported "'+g.toASM(n)+'"');f=g.types.P2SH,c=g.scriptHash.output.encode(h),m=!0,y=l=o.scriptType,b=n,w=y===g.types.P2WPKH}else if(i){if(d=v.sha256(i),u(e,d),o=s(i,void 0,t),!o.pubKeys)throw new Error('WitnessScript not supported "'+g.toASM(n)+'"');f=g.types.P2WSH,c=g.witnessScriptHash.output.encode(d),w=T=!0,y=p=o.scriptType,b=i}else if(e.prevOutType){if(e.prevOutType===_.P2SH||e.prevOutType===_.P2WSH)throw new Error("PrevOutScript is "+e.prevOutType+", requires redeemScript");if(f=e.prevOutType,c=e.prevOutScript,o=s(e.prevOutScript,e.prevOutType,t),!o.pubKeys)return;w=e.prevOutType===_.P2WPKH,y=f,b=c}else c=g.pubKeyHash.output.encode(v.hash160(t)),o=s(c,_.P2PKH,t),f=_.P2PKH,w=!1,y=f,b=c;if(w&&!E.Satoshi(r))throw new Error("Input was witness but not given witness value");y===_.P2WPKH&&(b=g.pubKeyHash.output.encode(g.witnessPubKeyHash.output.decode(b))),m&&(e.redeemScript=n,e.redeemScriptType=l),T&&(e.witnessScript=i,e.witnessScriptType=p),e.pubKeys=o.pubKeys,e.signatures=o.signatures,e.signScript=b,e.signType=y,e.prevOutScript=c,e.prevOutType=f,e.witness=w}function c(e,t,r,i){if(e===_.P2PKH){if(1===t.length&&t[0]instanceof n&&1===r.length)return g.pubKeyHash.input.encodeStack(t[0],r[0])}else if(e===_.P2PK){if(1===t.length&&t[0]instanceof n)return g.pubKey.input.encodeStack(t[0])}else{if(e!==_.MULTISIG)throw new Error("Not yet supported");if(t.length>0)return t=t.map(function(e){return e||m.OP_0}),i||(t=t.filter(function(e){return e!==m.OP_0})),g.multisig.input.encodeStack(t)}if(!i)throw new Error("Not enough signatures provided");return[]}function l(e,t){var n=e.prevOutType,r=[],i=[];-1!==T.indexOf(n)&&(r=c(n,e.signatures,e.pubKeys,e.script,t));var o=!1;if(n===g.types.P2SH){if(-1===S.indexOf(e.redeemScriptType))throw new Error("Impossible to sign this type");o=!0,-1!==T.indexOf(e.redeemScriptType)&&(r=c(e.redeemScriptType,e.signatures,e.pubKeys,t)),n=e.redeemScriptType}if(n===g.types.P2WPKH)i=c(g.types.P2PKH,e.signatures,e.pubKeys,t);else if(n===g.types.P2WSH){if(-1===T.indexOf(e.witnessScriptType))throw new Error;i=c(e.witnessScriptType,e.signatures,e.pubKeys,t),i.push(e.witnessScript),n=e.witnessScriptType}return o&&r.push(e.redeemScript),{type:n,script:g.compile(r),witness:i}}function h(e,t){this.prevTxMap={},this.network=e||b.bitcoin,this.maximumFeeRate=t||1e3,this.inputs=[],this.tx=new I}function p(e){return void 0!==e.prevOutScript&&void 0!==e.signScript&&void 0!==e.pubKeys&&void 0!==e.signatures&&e.signatures.length===e.pubKeys.length&&e.pubKeys.length>0&&void 0!==e.witness}function d(e){return e.readUInt8(e.length-1)}var y=e("./address"),v=e("./crypto"),g=e("./script"),b=e("./networks"),m=e("bitcoin-ops"),w=e("typeforce"),E=e("./types"),_=g.types,T=[g.types.P2PKH,g.types.P2PK,g.types.MULTISIG],S=T.concat([g.types.P2WPKH,g.types.P2WSH]),P=e("./ecpair"),O=e("./ecsignature"),I=e("./transaction");h.prototype.setLockTime=function(e){if(w(E.UInt32,e),this.inputs.some(function(e){
|
||
return!!e.signatures&&e.signatures.some(function(e){return e})}))throw new Error("No, this would invalidate signatures");this.tx.locktime=e},h.prototype.setVersion=function(e){w(E.UInt32,e),this.tx.version=e},h.fromTransaction=function(e,t){var n=new h(t);return n.setVersion(e.version),n.setLockTime(e.locktime),e.outs.forEach(function(e){n.addOutput(e.script,e.value)}),e.ins.forEach(function(e){n.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),n.inputs.forEach(function(t,n){o(t,e,n)}),n},h.prototype.addInput=function(e,t,r,i){if(!this.__canModifyInputs())throw new Error("No, this would invalidate signatures");var o;if("string"==typeof e)e=new n(e,"hex").reverse();else if(e instanceof I){var s=e.outs[t];i=s.script,o=s.value,e=e.getHash()}return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:i,value:o})},h.prototype.__addInputUnsafe=function(e,t,n){if(I.isCoinbaseHash(e))throw new Error("coinbase inputs not supported");var r=e.toString("hex")+":"+t;if(void 0!==this.prevTxMap[r])throw new Error("Duplicate TxOut: "+r);var o={};if(void 0!==n.script&&(o=i(n.script,n.witness)),void 0!==n.value&&(o.value=n.value),!o.prevOutScript&&n.prevOutScript){var a;if(!o.pubKeys&&!o.signatures){var u=s(n.prevOutScript);u.pubKeys&&(o.pubKeys=u.pubKeys,o.signatures=u.signatures),a=u.scriptType}o.prevOutScript=n.prevOutScript,o.prevOutType=a||g.classifyOutput(n.prevOutScript)}var f=this.tx.addInput(e,t,n.sequence,n.scriptSig);return this.inputs[f]=o,this.prevTxMap[r]=f,f},h.prototype.addOutput=function(e,t){if(!this.__canModifyOutputs())throw new Error("No, this would invalidate signatures");return"string"==typeof e&&(e=y.toOutputScript(e,this.network)),this.tx.addOutput(e,t)},h.prototype.build=function(){return this.__build(!1)},h.prototype.buildIncomplete=function(){return this.__build(!0)},h.prototype.__build=function(e){if(!e){if(!this.tx.ins.length)throw new Error("Transaction has no inputs");if(!this.tx.outs.length)throw new Error("Transaction has no outputs")}var t=this.tx.clone();if(this.inputs.forEach(function(n,r){if(!(n.witnessScriptType||n.redeemScriptType||n.prevOutType||e))throw new Error("Transaction is not complete");var i=l(n,e);if(!e&&-1===T.indexOf(i.type)&&i.type!==g.types.P2WPKH)throw new Error(i.type+" not supported");t.setInputScript(r,i.script),t.setWitness(r,i.witness)}),!e&&this.__overMaximumFees(t.byteLength()))throw new Error("Transaction has absurd fees");return t},h.prototype.sign=function(e,t,n,r,i,o){if(t.network!==this.network)throw new Error("Inconsistent network");if(!this.inputs[e])throw new Error("No input at index: "+e);r=r||I.SIGHASH_ALL;var s=this.inputs[e];if(void 0!==s.redeemScript&&n&&!s.redeemScript.equals(n))throw new Error("Inconsistent redeemScript");var a=t.getPublicKeyBuffer();if(!p(s)&&(f(s,a,n,i,o),!p(s)))throw Error(s.prevOutType+" not supported");var u;if(u=s.witness?this.tx.hashForWitnessV0(e,s.signScript,i,r):this.tx.hashForSignature(e,s.signScript,r),!s.pubKeys.some(function(e,n){if(!a.equals(e))return!1;if(s.signatures[n])throw new Error("Signature already exists");return s.signatures[n]=t.sign(u).toScriptSignature(r),!0}))throw new Error("Key pair cannot sign for this input")},h.prototype.__canModifyInputs=function(){return this.inputs.every(function(e){return void 0===e.signatures||e.signatures.every(function(e){return!e||d(e)&I.SIGHASH_ANYONECANPAY})})},h.prototype.__canModifyOutputs=function(){var e=this.tx.ins.length,t=this.tx.outs.length;return this.inputs.every(function(n){return void 0===n.signatures||n.signatures.every(function(n){if(!n)return!0;var r=d(n),i=31&r;return i===I.SIGHASH_NONE||(i===I.SIGHASH_SINGLE?e<=t:void 0)})})},h.prototype.__overMaximumFees=function(e){return(this.inputs.reduce(function(e,t){return e+(t.value>>>0)},0)-this.tx.outs.reduce(function(e,t){return e+t.value},0))/e>this.maximumFeeRate},t.exports=h}).call(this,e("buffer").Buffer)},{"./address":27,"./crypto":30,"./ecpair":32,"./ecsignature":33,"./networks":36,"./script":37,"./transaction":61,"./types":63,"bitcoin-ops":25,buffer:68,typeforce:178}],63:[function(e,t,n){function r(e){return s.UInt32(e)&&e<=a}function i(e){return s.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function o(e){return s.UInt53(e)&&e<=u}var s=e("typeforce"),a=Math.pow(2,31)-1;i.toJSON=function(){return"BIP32 derivation path"};var u=21e14,f=s.quacksLike("BigInteger"),c=s.quacksLike("Point"),l=s.compile({r:f,s:f}),h=s.compile({messagePrefix:s.oneOf(s.Buffer,s.String),bip32:{public:s.UInt32,private:s.UInt32},pubKeyHash:s.UInt16,scriptHash:s.UInt16,wif:s.UInt8}),p={BigInt:f,BIP32Path:i,Buffer256bit:s.BufferN(32),ECPoint:c,ECSignature:l,Hash160bit:s.BufferN(20),Hash256bit:s.BufferN(32),Network:h,Satoshi:o,UInt31:r};for(var d in s)p[d]=s[d];t.exports=p},{typeforce:178}],64:[function(e,t,n){},{}],65:[function(e,t,n){function r(e){if(e&&!u(e))throw new Error("Unknown encoding: "+e)}function i(e){return e.toString(this.encoding)}function o(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function s(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}var a=e("buffer").Buffer,u=a.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},f=n.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),r(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=s;break;default:return void(this.write=i)}this.charBuffer=new a(6),this.charReceived=0,this.charLength=0};f.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";e=e.slice(n,e.length),t=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=t.charCodeAt(t.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);var i=t.length-1,r=t.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;t+=r.slice(0,n).toString(i)}return t}},{buffer:68}],66:[function(e,t,n){var r=e("base-x");t.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"base-x":18}],67:[function(e,t,n){(function(n){"use strict";function r(e){var t=f("sha256").update(e).digest();return f("sha256").update(t).digest()}function i(e){var t=r(e);return u.encode(n.concat([e,t],e.length+4))}function o(e){var t=e.slice(0,-4),n=e.slice(-4),i=r(t);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return t}function s(e){var t=u.decodeUnsafe(e);if(t)return o(t)}function a(e){var t=u.decode(e),n=o(t);if(!n)throw new Error("Invalid checksum");return n}var u=e("bs58"),f=e("create-hash");t.exports={encode:i,decode:a,decodeUnsafe:s}}).call(this,e("buffer").Buffer)},{bs58:66,buffer:68,"create-hash":72}],68:[function(e,t,n){(function(t){"use strict";function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=o.prototype):(null===e&&(e=new o(t)),e.length=t),e}function o(e,t,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?h(e,t,n,r):"string"==typeof t?c(e,t,n):p(e,t)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t,n,r){return a(t),t<=0?i(e,t):void 0!==n?"string"==typeof r?i(e,t).fill(n,r):i(e,t).fill(n):i(e,t)}function f(e,t){if(a(t),e=i(e,t<0?0:0|d(t)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function c(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=i(e,r);var s=e.write(t,n);return s!==r&&(e=e.slice(0,s)),e}function l(e,t){var n=t.length<0?0:0|d(t.length);e=i(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),o.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=o.prototype):e=l(e,t),e}function p(e,t){if(o.isBuffer(t)){var n=0|d(t.length);return e=i(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||G(t.length)?i(e,0):l(e,t);if("Buffer"===t.type&&J(t.data))return l(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),o.alloc(+e)}function v(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=o.from(t,r)),o.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}var f;if(i){var c=-1;for(f=n;f<a;f++)if(o(e,f)===o(t,-1===c?0:f-c)){if(-1===c&&(c=f),f-c+1===u)return c*s}else-1!==c&&(f-=f-c),c=-1}else for(n+u>a&&(n=a-u),f=n;f>=0;f--){for(var l=!0,h=0;h<u;h++)if(o(e,f+h)!==o(t,h)){l=!1;break}if(l)return f}return-1}function E(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function _(e,t,n,r){return K($(t,e.length-n),e,n,r)}function T(e,t,n,r){return K(V(t),e,n,r)}function S(e,t,n,r){return T(e,t,n,r)}function P(e,t,n,r){return K(W(t),e,n,r)}function O(e,t,n,r){return K(Y(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?Z.fromByteArray(e):Z.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o=e[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,f,c,l;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],128==(192&u)&&(l=(31&o)<<6|63&u)>127&&(s=l);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(l=(15&o)<<12|(63&u)<<6|63&f)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:u=e[i+1],f=e[i+2],c=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&c)&&(l=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&c)>65535&&l<1114112&&(s=l)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return x(r)}function x(e){var t=e.length;if(t<=Q)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=Q));return n}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=H(e[o]);return i}function L(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function U(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function C(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||C(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||C(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function z(e){if(e=q(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function $(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Y(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function W(e){return Z.toByteArray(z(e))}function K(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e){return e!==e}var Z=e("base64-js"),X=e("ieee754"),J=e("isarray");n.Buffer=o,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),n.kMaxLength=r(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,n){return s(null,e,t,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,n){return u(null,e,t,n)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!J(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=o.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var s=e[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},o.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?k(this,0,e):g.apply(this,arguments)},o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},o.prototype.compare=function(e,t,n,r,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var s=i-r,a=n-t,u=Math.min(s,a),f=this.slice(r,i),c=e.slice(t,n),l=0;l<u;++l)if(f[l]!==c[l]){s=f[l],a=c[l];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},o.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},o.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},o.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Q=4096;o.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=o.prototype;else{var i=t-e;r=new o(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+e]}return r},o.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},o.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},o.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},o.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),X.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),X.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),X.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),X.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){B(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},o.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){B(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},o.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},o.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},o.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,s=r-n;if(this===e&&n<t&&t<r)for(i=s-1;i>=0;--i)e[i+t]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},o.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var a=o.isBuffer(e)?e:$(new o(e,r).toString()),u=a.length;for(s=0;s<n-t;++s)this[s+t]=a[s%u]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":19,ieee754:102,isarray:109}],69:[function(e,t,n){!function(n){"use strict";function r(e){function t(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function n(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+a.apply(String,e);e.length+arguments.length>1024&&(t.push(a.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}}var r=function(e,t,n){if(void 0===e&&(e=r.DEFAULT_CAPACITY),void 0===t&&(t=r.DEFAULT_ENDIAN),void 0===n&&(n=r.DEFAULT_NOASSERT),!n){if((e|=0)<0)throw RangeError("Illegal capacity");t=!!t,n=!!n}this.buffer=0===e?s:new ArrayBuffer(e),this.view=0===e?null:new DataView(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian=void 0!==t&&!!t,this.noAssert=!!n};r.VERSION="3.5.5",r.LITTLE_ENDIAN=!0,r.BIG_ENDIAN=!1,r.DEFAULT_CAPACITY=16,r.DEFAULT_ENDIAN=r.BIG_ENDIAN,r.DEFAULT_NOASSERT=!1,r.Long=e||null;var o=r.prototype,s=new ArrayBuffer(0),a=String.fromCharCode;r.allocate=function(e,t,n){return new r(e,t,n)},r.concat=function(e,t,n,i){"boolean"!=typeof t&&"string"==typeof t||(i=n,n=t,t=void 0);for(var o,s=0,a=0,u=e.length;a<u;++a)r.isByteBuffer(e[a])||(e[a]=r.wrap(e[a],t)),(o=e[a].limit-e[a].offset)>0&&(s+=o);if(0===s)return new r(0,n,i);var f,c=new r(s,n,i),l=new Uint8Array(c.buffer);for(a=0;a<u;)f=e[a++],(o=f.limit-f.offset)<=0||(l.set(new Uint8Array(f.buffer).subarray(f.offset,f.limit),c.offset),c.offset+=o);return c.limit=c.offset,c.offset=0,c},r.isByteBuffer=function(e){return!0===(e&&e instanceof r)},r.type=function(){return ArrayBuffer},r.wrap=function(e,t,n,s){if("string"!=typeof t&&(s=n,n=t,t=void 0),"string"==typeof e)switch(void 0===t&&(t="utf8"),t){case"base64":return r.fromBase64(e,n);case"hex":return r.fromHex(e,n);case"binary":return r.fromBinary(e,n);case"utf8":return r.fromUTF8(e,n);case"debug":return r.fromDebug(e,n);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var a;if(r.isByteBuffer(e))return a=o.clone.call(e),a.markedOffset=-1,a;if(e instanceof Uint8Array)a=new r(0,n,s),e.length>0&&(a.buffer=e.buffer,a.offset=e.byteOffset,a.limit=e.byteOffset+e.length,a.view=e.length>0?new DataView(e.buffer):null);else if(e instanceof ArrayBuffer)a=new r(0,n,s),e.byteLength>0&&(a.buffer=e,a.offset=0,a.limit=e.byteLength,a.view=e.byteLength>0?new DataView(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");for(a=new r(e.length,n,s),a.limit=e.length,i=0;i<e.length;++i)a.view.setUint8(i,e[i])}return a},o.writeInt8=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view.setInt8(t,e),n&&(this.offset+=1),this},o.writeByte=o.writeInt8,o.readInt8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=this.view.getInt8(e);return t&&(this.offset+=1),n},o.readByte=o.readInt8,o.writeUint8=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view.setUint8(t,e),n&&(this.offset+=1),this},o.readUint8=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){
|
||
if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=this.view.getUint8(e);return t&&(this.offset+=1),n},o.writeInt16=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.view.setInt16(t,e,this.littleEndian),n&&(this.offset+=2),this},o.writeShort=o.writeInt16,o.readInt16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var n=this.view.getInt16(e,this.littleEndian);return t&&(this.offset+=2),n},o.readShort=o.readInt16,o.writeUint16=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=2;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=2,this.view.setUint16(t,e,this.littleEndian),n&&(this.offset+=2),this},o.readUint16=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+2) <= "+this.buffer.byteLength)}var n=this.view.getUint16(e,this.littleEndian);return t&&(this.offset+=2),n},o.writeInt32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.view.setInt32(t,e,this.littleEndian),n&&(this.offset+=4),this},o.writeInt=o.writeInt32,o.readInt32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=this.view.getInt32(e,this.littleEndian);return t&&(this.offset+=4),n},o.readInt=o.readInt32,o.writeUint32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.view.setUint32(t,e,this.littleEndian),n&&(this.offset+=4),this},o.readUint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=this.view.getUint32(e,this.littleEndian);return t&&(this.offset+=4),n},e&&(o.writeInt64=function(t,n){var r=void 0===n;if(r&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),n+=8;var i=this.buffer.byteLength;return n>i&&this.resize((i*=2)>n?i:n),n-=8,this.littleEndian?(this.view.setInt32(n,t.low,!0),this.view.setInt32(n+4,t.high,!0)):(this.view.setInt32(n,t.high,!1),this.view.setInt32(n+4,t.low,!1)),r&&(this.offset+=8),this},o.writeLong=o.writeInt64,o.readInt64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=this.littleEndian?new e(this.view.getInt32(t,!0),this.view.getInt32(t+4,!0),!1):new e(this.view.getInt32(t+4,!1),this.view.getInt32(t,!1),!1);return n&&(this.offset+=8),r},o.readLong=o.readInt64,o.writeUint64=function(t,n){var r=void 0===n;if(r&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t)),n+=8;var i=this.buffer.byteLength;return n>i&&this.resize((i*=2)>n?i:n),n-=8,this.littleEndian?(this.view.setInt32(n,t.low,!0),this.view.setInt32(n+4,t.high,!0)):(this.view.setInt32(n,t.high,!1),this.view.setInt32(n+4,t.low,!1)),r&&(this.offset+=8),this},o.readUint64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=this.littleEndian?new e(this.view.getInt32(t,!0),this.view.getInt32(t+4,!0),!0):new e(this.view.getInt32(t+4,!1),this.view.getInt32(t,!1),!0);return n&&(this.offset+=8),r}),o.writeFloat32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=4;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=4,this.view.setFloat32(t,e,this.littleEndian),n&&(this.offset+=4),this},o.writeFloat=o.writeFloat32,o.readFloat32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var n=this.view.getFloat32(e,this.littleEndian);return t&&(this.offset+=4),n},o.readFloat=o.readFloat32,o.writeFloat64=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e)throw TypeError("Illegal value: "+e+" (not a number)");if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=8;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=8,this.view.setFloat64(t,e,this.littleEndian),n&&(this.offset+=8),this},o.writeDouble=o.writeFloat64,o.readFloat64=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=this.view.getFloat64(e,this.littleEndian);return t&&(this.offset+=8),n},o.readDouble=o.readFloat64,r.MAX_VARINT32_BYTES=5,r.calculateVarint32=function(e){return e>>>=0,e<128?1:e<16384?2:e<1<<21?3:e<1<<28?4:5},r.zigZagEncode32=function(e){return((e|=0)<<1^e>>31)>>>0},r.zigZagDecode32=function(e){return e>>>1^-(1&e)|0},o.writeVarint32=function(e,t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}var i,o=r.calculateVarint32(e);t+=o;var s=this.buffer.byteLength;return t>s&&this.resize((s*=2)>t?s:t),t-=o,this.view.setUint8(t,i=128|e),e>>>=0,e>=128?(i=e>>7|128,this.view.setUint8(t+1,i),e>=16384?(i=e>>14|128,this.view.setUint8(t+2,i),e>=1<<21?(i=e>>21|128,this.view.setUint8(t+3,i),e>=1<<28?(this.view.setUint8(t+4,e>>28&15),o=5):(this.view.setUint8(t+3,127&i),o=4)):(this.view.setUint8(t+2,127&i),o=3)):(this.view.setUint8(t+1,127&i),o=2)):(this.view.setUint8(t,127&i),o=1),n?(this.offset+=o,this):o},o.writeVarint32ZigZag=function(e,t){return this.writeVarint32(r.zigZagEncode32(e),t)},o.readVarint32=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n,r,i=0,o=0;do{if(r=e+i,!this.noAssert&&r>this.limit){var s=Error("Truncated");throw s.truncated=!0,s}n=this.view.getUint8(r),i<5&&(o|=(127&n)<<7*i>>>0),++i}while(128==(128&n));return o|=0,t?(this.offset+=i,o):{value:o,length:i}},o.readVarint32ZigZag=function(e){var t=this.readVarint32(e);return"object"==typeof t?t.value=r.zigZagDecode32(t.value):t=r.zigZagDecode32(t),t},e&&(r.MAX_VARINT64_BYTES=10,r.calculateVarint64=function(t){"number"==typeof t?t=e.fromNumber(t):"string"==typeof t&&(t=e.fromString(t));var n=t.toInt()>>>0,r=t.shiftRightUnsigned(28).toInt()>>>0,i=t.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==r?n<16384?n<128?1:2:n<1<<21?3:4:r<16384?r<128?5:6:r<1<<21?7:8:i<128?9:10},r.zigZagEncode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftLeft(1).xor(t.shiftRight(63)).toUnsigned()},r.zigZagDecode64=function(t){return"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned()),t.shiftRightUnsigned(1).xor(t.and(e.ONE).toSigned().negate()).toSigned()},o.writeVarint64=function(t,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"==typeof t)t=e.fromNumber(t);else if("string"==typeof t)t=e.fromString(t);else if(!(t&&t instanceof e))throw TypeError("Illegal value: "+t+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof t?t=e.fromNumber(t,!1):"string"==typeof t?t=e.fromString(t,!1):!1!==t.unsigned&&(t=t.toSigned());var o=r.calculateVarint64(t),s=t.toInt()>>>0,a=t.shiftRightUnsigned(28).toInt()>>>0,u=t.shiftRightUnsigned(56).toInt()>>>0;n+=o;var f=this.buffer.byteLength;switch(n>f&&this.resize((f*=2)>n?f:n),n-=o,o){case 10:this.view.setUint8(n+9,u>>>7&1);case 9:this.view.setUint8(n+8,9!==o?128|u:127&u);case 8:this.view.setUint8(n+7,8!==o?a>>>21|128:a>>>21&127);case 7:this.view.setUint8(n+6,7!==o?a>>>14|128:a>>>14&127);case 6:this.view.setUint8(n+5,6!==o?a>>>7|128:a>>>7&127);case 5:this.view.setUint8(n+4,5!==o?128|a:127&a);case 4:this.view.setUint8(n+3,4!==o?s>>>21|128:s>>>21&127);case 3:this.view.setUint8(n+2,3!==o?s>>>14|128:s>>>14&127);case 2:this.view.setUint8(n+1,2!==o?s>>>7|128:s>>>7&127);case 1:this.view.setUint8(n,1!==o?128|s:127&s)}return i?(this.offset+=o,this):o},o.writeVarint64ZigZag=function(e,t){return this.writeVarint64(r.zigZagEncode64(e),t)},o.readVarint64=function(t){var n=void 0===t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=t,i=0,o=0,s=0,a=0;if(a=this.view.getUint8(t++),i=127&a,128&a&&(a=this.view.getUint8(t++),i|=(127&a)<<7,128&a&&(a=this.view.getUint8(t++),i|=(127&a)<<14,128&a&&(a=this.view.getUint8(t++),i|=(127&a)<<21,128&a&&(a=this.view.getUint8(t++),o=127&a,128&a&&(a=this.view.getUint8(t++),o|=(127&a)<<7,128&a&&(a=this.view.getUint8(t++),o|=(127&a)<<14,128&a&&(a=this.view.getUint8(t++),o|=(127&a)<<21,128&a&&(a=this.view.getUint8(t++),s=127&a,128&a&&(a=this.view.getUint8(t++),s|=(127&a)<<7,128&a))))))))))throw Error("Buffer overrun");var u=e.fromBits(i|o<<28,o>>>4|s<<24,!1);return n?(this.offset=t,u):{value:u,length:t-r}},o.readVarint64ZigZag=function(t){var n=this.readVarint64(t);return n&&n.value instanceof e?n.value=r.zigZagDecode64(n.value):n=r.zigZagDecode64(n),n}),o.writeCString=function(e,n){var r=void 0===n;r&&(n=this.offset);var i,o=e.length;if(!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");for(i=0;i<o;++i)if(0===e.charCodeAt(i))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}o=f.calculateUTF16asUTF8(t(e))[1],n+=o+1;var s=this.buffer.byteLength;return n>s&&this.resize((s*=2)>n?s:n),n-=o+1,f.encodeUTF16toUTF8(t(e),function(e){this.view.setUint8(n++,e)}.bind(this)),this.view.setUint8(n++,0),r?(this.offset=n,this):o},o.readCString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r,i=e,o=-1;return f.decodeUTF8toUTF16(function(){if(0===o)return null;if(e>=this.limit)throw RangeError("Illegal range: Truncated data, "+e+" < "+this.limit);return 0===(o=this.view.getUint8(e++))?null:o}.bind(this),r=n(),!0),t?(this.offset=e,r()):{string:r(),length:e-i}},o.writeIString=function(e,n){var r=void 0===n;if(r&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var i,o=n;i=f.calculateUTF16asUTF8(t(e),this.noAssert)[1],n+=4+i;var s=this.buffer.byteLength;if(n>s&&this.resize((s*=2)>n?s:n),n-=4+i,this.view.setUint32(n,i,this.littleEndian),n+=4,f.encodeUTF16toUTF8(t(e),function(e){this.view.setUint8(n++,e)}.bind(this)),n!==o+4+i)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+4+i));return r?(this.offset=n,this):n-o},o.readIString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+4) <= "+this.buffer.byteLength)}var r,i=0,o=e;i=this.view.getUint32(e,this.littleEndian),e+=4;var s,a=e+i;return f.decodeUTF8toUTF16(function(){return e<a?this.view.getUint8(e++):null}.bind(this),s=n(),this.noAssert),r=s(),t?(this.offset=e,r):{string:r,length:e-o}},r.METRICS_CHARS="c",r.METRICS_BYTES="b",o.writeUTF8String=function(e,n){var r=void 0===n;if(r&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var i,o=n;i=f.calculateUTF16asUTF8(t(e))[1],n+=i;var s=this.buffer.byteLength;return n>s&&this.resize((s*=2)>n?s:n),n-=i,f.encodeUTF16toUTF8(t(e),function(e){this.view.setUint8(n++,e)}.bind(this)),r?(this.offset=n,this):n-o},o.writeString=o.writeUTF8String,r.calculateUTF8Chars=function(e){return f.calculateUTF16asUTF8(t(e))[0]},r.calculateUTF8Bytes=function(e){return f.calculateUTF16asUTF8(t(e))[1]},o.readUTF8String=function(e,t,i){"number"==typeof t&&(i=t,t=void 0);var o=void 0===i;if(o&&(i=this.offset),void 0===t&&(t=r.METRICS_CHARS),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");if(e|=0,"number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+0) <= "+this.buffer.byteLength)}var s,a=0,u=i;if(t===r.METRICS_CHARS){if(s=n(),f.decodeUTF8(function(){return a<e&&i<this.limit?this.view.getUint8(i++):null}.bind(this),function(e){++a,f.UTF8toUTF16(e,s)}.bind(this)),a!==e)throw RangeError("Illegal range: Truncated data, "+a+" == "+e);return o?(this.offset=i,s()):{string:s(),length:i-u}}if(t===r.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof i||i%1!=0)throw TypeError("Illegal offset: "+i+" (not an integer)");if((i>>>=0)<0||i+e>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+i+" (+"+e+") <= "+this.buffer.byteLength)}var c=i+e;if(f.decodeUTF8toUTF16(function(){return i<c?this.view.getUint8(i++):null}.bind(this),s=n(),this.noAssert),i!==c)throw RangeError("Illegal range: Truncated data, "+i+" == "+c);return o?(this.offset=i,s()):{string:s(),length:i-u}}throw TypeError("Unsupported metrics: "+t)},o.readString=o.readUTF8String,o.writeVString=function(e,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var o,s,a=n;o=f.calculateUTF16asUTF8(t(e),this.noAssert)[1],s=r.calculateVarint32(o),n+=s+o;var u=this.buffer.byteLength;if(n>u&&this.resize((u*=2)>n?u:n),n-=s+o,n+=this.writeVarint32(o,n),f.encodeUTF16toUTF8(t(e),function(e){this.view.setUint8(n++,e)}.bind(this)),n!==a+o+s)throw RangeError("Illegal range: Truncated data, "+n+" == "+(n+o+s));return i?(this.offset=n,this):n-a},o.readVString=function(e){var t=void 0===e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var r,i=this.readVarint32(e),o=e;e+=i.length,i=i.value;var s=e+i,a=n();return f.decodeUTF8toUTF16(function(){return e<s?this.view.getUint8(e++):null}.bind(this),a,this.noAssert),r=a(),t?(this.offset=e,r):{string:r,length:e-o}},o.append=function(e,t,n){"number"!=typeof t&&"string"==typeof t||(n=t,t=void 0);var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}e instanceof r||(e=r.wrap(e,t));var o=e.limit-e.offset;if(o<=0)return this;n+=o;var s=this.buffer.byteLength;return n>s&&this.resize((s*=2)>n?s:n),n-=o,new Uint8Array(this.buffer,n).set(new Uint8Array(e.buffer).subarray(e.offset,e.limit)),e.offset+=o,i&&(this.offset+=o),this},o.appendTo=function(e,t){return e.append(this,t),this},o.assert=function(e){return this.noAssert=!e,this},o.capacity=function(){return this.buffer.byteLength},o.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},o.clone=function(e){var t=new r(0,this.littleEndian,this.noAssert);if(e){var n=new ArrayBuffer(this.buffer.byteLength);new Uint8Array(n).set(this.buffer),t.buffer=n,t.view=new DataView(n)}else t.buffer=this.buffer,t.view=this.view;return t.offset=this.offset,t.markedOffset=this.markedOffset,t.limit=this.limit,t},o.compact=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(0===e&&t===this.buffer.byteLength)return this;var n=t-e;if(0===n)return this.buffer=s,this.view=null,this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=0,this;var r=new ArrayBuffer(n);return new Uint8Array(r).set(new Uint8Array(this.buffer).subarray(e,t)),this.buffer=r,this.view=new DataView(r),this.markedOffset>=0&&(this.markedOffset-=e),this.offset=0,this.limit=n,this},o.copy=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return new r(0,this.littleEndian,this.noAssert);var n=t-e,i=new r(n,this.littleEndian,this.noAssert);return i.offset=0,i.limit=n,i.markedOffset>=0&&(i.markedOffset-=e),this.copyTo(i,0,e,t),i},o.copyTo=function(e,t,n,i){var o,s;if(!this.noAssert&&!r.isByteBuffer(e))throw TypeError("Illegal target: Not a ByteBuffer");if(t=(s=void 0===t)?e.offset:0|t,n=(o=void 0===n)?this.offset:0|n,i=void 0===i?this.limit:0|i,t<0||t>e.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+t+" <= "+e.buffer.byteLength);if(n<0||i>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+n+" <= "+this.buffer.byteLength);var a=i-n;return 0===a?e:(e.ensureCapacity(t+a),new Uint8Array(e.buffer).set(new Uint8Array(this.buffer).subarray(n,i),t),o&&(this.offset+=a),s&&(e.offset+=a),this)},o.ensureCapacity=function(e){var t=this.buffer.byteLength;return t<e?this.resize((t*=2)>e?t:e):this},o.fill=function(e,t,n){var r=void 0===t;if(r&&(t=this.offset),"string"==typeof e&&e.length>0&&(e=e.charCodeAt(0)),void 0===t&&(t=this.offset),void 0===n&&(n=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal end: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(t>=n)return this;for(;t<n;)this.view.setUint8(t++,e);return r&&(this.offset=t),this},o.flip=function(){return this.limit=this.offset,this.offset=0,this},o.mark=function(e){if(e=void 0===e?this.offset:e,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=e,this},o.order=function(e){if(!this.noAssert&&"boolean"!=typeof e)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!e,this},o.LE=function(e){return this.littleEndian=void 0===e||!!e,this},o.BE=function(e){return this.littleEndian=void 0!==e&&!e,this},o.prepend=function(e,t,n){"number"!=typeof t&&"string"==typeof t||(n=t,t=void 0);var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}e instanceof r||(e=r.wrap(e,t));var o=e.limit-e.offset;if(o<=0)return this;var s,a=o-n;if(a>0){var u=new ArrayBuffer(this.buffer.byteLength+a);s=new Uint8Array(u),s.set(new Uint8Array(this.buffer).subarray(n,this.buffer.byteLength),o),this.buffer=u,this.view=new DataView(u),this.offset+=a,this.markedOffset>=0&&(this.markedOffset+=a),this.limit+=a,n+=a}else s=new Uint8Array(this.buffer);return s.set(new Uint8Array(e.buffer).subarray(e.offset,e.limit),n-o),e.offset=e.limit,i&&(this.offset-=o),this},o.prependTo=function(e,t){return e.prepend(this,t),this},o.printDebug=function(e){"function"!=typeof e&&(e=console.log.bind(console)),e(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},o.remaining=function(){return this.limit-this.offset},o.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},o.resize=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal capacity: "+e+" (not an integer)");if((e|=0)<0)throw RangeError("Illegal capacity: 0 <= "+e)}if(this.buffer.byteLength<e){var t=new ArrayBuffer(e);new Uint8Array(t).set(new Uint8Array(this.buffer)),this.buffer=t,this.view=new DataView(t)}return this},o.reverse=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}return e===t?this:(Array.prototype.reverse.call(new Uint8Array(this.buffer).subarray(e,t)),this.view=new DataView(this.buffer),this)},o.skip=function(e){if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal length: "+e+" (not an integer)");e|=0}var t=this.offset+e;if(!this.noAssert&&(t<0||t>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+e+" <= "+this.buffer.byteLength);return this.offset=t,this},o.slice=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var n=this.clone();return n.offset=e,n.limit=t,n},o.toBuffer=function(e){var t=this.offset,n=this.limit;if(t>n){var r=t;t=n,n=r}if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: Not an integer");if(t>>>=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal limit: Not an integer");if(n>>>=0,t<0||t>n||n>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+n+" <= "+this.buffer.byteLength)}if(!e&&0===t&&n===this.buffer.byteLength)return this.buffer;if(t===n)return s;var i=new ArrayBuffer(n-t);return new Uint8Array(i).set(new Uint8Array(this.buffer).subarray(t,n),0),i},o.toArrayBuffer=o.toBuffer,o.toString=function(e,t,n){if(void 0===e)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof e&&(e="utf8",t=e,n=t),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var u=function(){for(var e={},t=[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],n=[],r=0,i=t.length;r<i;++r)n[t[r]]=r;return e.encode=function(e,n){for(var r,i;null!==(r=e());)n(t[r>>2&63]),i=(3&r)<<4,null!==(r=e())?(i|=r>>4&15,n(t[63&(i|r>>4&15)]),i=(15&r)<<2,null!==(r=e())?(n(t[63&(i|r>>6&3)]),n(t[63&r])):(n(t[63&i]),n(61))):(n(t[63&i]),n(61),n(61))},e.decode=function(e,t){function r(e){throw Error("Illegal character code: "+e)}for(var i,o,s;null!==(i=e());)if(o=n[i],void 0===o&&r(i),null!==(i=e())&&(s=n[i],void 0===s&&r(i),t(o<<2>>>0|(48&s)>>4),null!==(i=e()))){if(void 0===(o=n[i])){if(61===i)break;r(i)}if(t((15&s)<<4>>>0|(60&o)>>2),null!==(i=e())){if(void 0===(s=n[i])){if(61===i)break;r(i)}t((3&o)<<6>>>0|s)}}},e.test=function(e){return/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e)},e}();o.toBase64=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;return u.encode(function(){return e<t?this.view.getUint8(e++):null}.bind(this),r=n()),r()},r.fromBase64=function(e,n,i){if(!i){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%4!=0)throw TypeError("Illegal str: Length not a multiple of 4")}var o=new r(e.length/4*3,n,i),s=0;return u.decode(t(e),function(e){o.view.setUint8(s++,e)}),o.limit=s,o},r.btoa=function(e){return r.fromBinary(e).toBase64()},r.atob=function(e){return r.fromBase64(e).toBinary()},o.toBinary=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return"";for(var n=[],r=[];e<t;)n.push(this.view.getUint8(e++)),n.length>=1024&&(r.push(String.fromCharCode.apply(String,n)),n=[]);return r.join("")+String.fromCharCode.apply(String,n)},r.fromBinary=function(e,t,n){if(!n&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");for(var i,o=0,s=e.length,a=new r(s,t,n);o<s;){if(i=e.charCodeAt(o),!n&&i>255)throw RangeError("Illegal charCode at "+o+": 0 <= "+i+" <= 255");a.view.setUint8(o++,i)}return a.limit=s,a},o.toDebug=function(e){for(var t,n=-1,r=this.buffer.byteLength,i="",o="",s="";n<r;){if(-1!==n&&(t=this.view.getUint8(n),i+=t<16?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&t<127?String.fromCharCode(t):".")),++n,e&&n>0&&n%16==0&&n!==r){for(;i.length<51;)i+=" ";s+=i+o+"\n",i=o=""}n===this.offset&&n===this.limit?i+=n===this.markedOffset?"!":"|":n===this.offset?i+=n===this.markedOffset?"[":"<":n===this.limit?i+=n===this.markedOffset?"]":">":i+=n===this.markedOffset?"'":e||0!==n&&n!==r?" ":""}if(e&&" "!==i){for(;i.length<51;)i+=" ";s+=i+o+"\n"}return e?s:i},r.fromDebug=function(e,t,n){for(var i,o,s=e.length,a=new r((s+1)/3|0,t,n),u=0,f=0,c=!1,l=!1,h=!1,p=!1,d=!1;u<s;){switch(i=e.charAt(u++)){case"!":if(!n){if(l||h||p){d=!0;break}l=h=p=!0}a.offset=a.markedOffset=a.limit=f,c=!1;break;case"|":if(!n){if(l||p){d=!0;break}l=p=!0}a.offset=a.limit=f,c=!1;break;case"[":if(!n){if(l||h){d=!0;break}l=h=!0}a.offset=a.markedOffset=f,c=!1;break;case"<":if(!n){if(l){d=!0;break}l=!0}a.offset=f,c=!1;break;case"]":if(!n){if(p||h){d=!0;break}p=h=!0}a.limit=a.markedOffset=f,c=!1;break;case">":if(!n){if(p){d=!0;break}p=!0}a.limit=f,c=!1;break;case"'":if(!n){if(h){d=!0;break}h=!0}a.markedOffset=f,c=!1;break;case" ":c=!1;break;default:if(!n&&c){d=!0;break}
|
||
if(o=parseInt(i+e.charAt(u++),16),!n&&(isNaN(o)||o<0||o>255))throw TypeError("Illegal str: Not a debug encoded string");a.view.setUint8(f++,o),c=!0}if(d)throw TypeError("Illegal str: Invalid symbol at "+u)}if(!n){if(!l||!p)throw TypeError("Illegal str: Missing offset or limit");if(f<a.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+f+" < "+s)}return a},o.toHex=function(e,t){if(e=void 0===e?this.offset:e,t=void 0===t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}for(var n,r=new Array(t-e);e<t;)n=this.view.getUint8(e++),n<16?r.push("0",n.toString(16)):r.push(n.toString(16));return r.join("")},r.fromHex=function(e,t,n){if(!n){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var i,o=e.length,s=new r(o/2|0,t),a=0,u=0;a<o;a+=2){if(i=parseInt(e.substring(a,a+2),16),!n&&(!isFinite(i)||i<0||i>255))throw TypeError("Illegal str: Contains non-hex characters");s.view.setUint8(u++,i)}return s.limit=u,s};var f=function(){var e={};return e.MAX_CODEPOINT=1114111,e.encodeUTF8=function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null},e.decodeUTF8=function(e,t){for(var n,r,i,o,s=function(e){e=e.slice(0,e.indexOf(null));var t=Error(e.toString());throw t.name="TruncatedError",t.bytes=e,t};null!==(n=e());)if(0==(128&n))t(n);else if(192==(224&n))null===(r=e())&&s([n,r]),t((31&n)<<6|63&r);else if(224==(240&n))(null===(r=e())||null===(i=e()))&&s([n,r,i]),t((15&n)<<12|(63&r)<<6|63&i);else{if(240!=(248&n))throw RangeError("Illegal starting byte: "+n);(null===(r=e())||null===(i=e())||null===(o=e()))&&s([n,r,i,o]),t((7&n)<<18|(63&r)<<12|(63&i)<<6|63&o)}},e.UTF16toUTF8=function(e,t){for(var n,r=null;;){if(null===(n=null!==r?r:e()))break;n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n)}null!==r&&t(r)},e.UTF8toUTF16=function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<=65535?t(n):(n-=65536,t(55296+(n>>10)),t(n%1024+56320)),n=null},e.encodeUTF16toUTF8=function(t,n){e.UTF16toUTF8(t,function(t){e.encodeUTF8(t,n)})},e.decodeUTF8toUTF16=function(t,n){e.decodeUTF8(t,function(t){e.UTF8toUTF16(t,n)})},e.calculateCodePoint=function(e){return e<128?1:e<2048?2:e<65536?3:4},e.calculateUTF8=function(t){for(var n,r=0;null!==(n=t());)r+=e.calculateCodePoint(n);return r},e.calculateUTF16asUTF8=function(t){var n=0,r=0;return e.UTF16toUTF8(t,function(t){++n,r+=e.calculateCodePoint(t)}),[n,r]},e}();return o.toUTF8=function(e,t){if(void 0===e&&(e=this.offset),void 0===t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!=0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,e<0||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;try{f.decodeUTF8toUTF16(function(){return e<t?this.view.getUint8(e++):null}.bind(this),r=n())}catch(n){if(e!==t)throw RangeError("Illegal range: Truncated data, "+e+" != "+t)}return r()},r.fromUTF8=function(e,n,i){if(!i&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");var o=new r(f.calculateUTF16asUTF8(t(e),!0)[1],n,i),s=0;return f.encodeUTF16toUTF8(t(e),function(e){o.view.setUint8(s++,e)}),o.limit=s,o},r}t.exports=function(){var t;try{t=e("long")}catch(e){}return r(t)}()}()},{long:114}],70:[function(e,t,n){function r(e){o.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=e("safe-buffer").Buffer,o=e("stream").Transform,s=e("string_decoder").StringDecoder;e("inherits")(r,o),r.prototype.update=function(e,t,n){"string"==typeof e&&(e=i.from(e,t));var r=this._update(e);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},r.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},r.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},r.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new s(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},t.exports=r},{inherits:103,"safe-buffer":143,stream:153,string_decoder:65}],71:[function(e,t,n){(function(e){function t(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function o(e){return null==e}function s(e){return"number"==typeof e}function a(e){return"string"==typeof e}function u(e){return"symbol"==typeof e}function f(e){return void 0===e}function c(e){return"[object RegExp]"===v(e)}function l(e){return"object"==typeof e&&null!==e}function h(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function d(e){return"function"==typeof e}function y(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function v(e){return Object.prototype.toString.call(e)}n.isArray=t,n.isBoolean=r,n.isNull=i,n.isNullOrUndefined=o,n.isNumber=s,n.isString=a,n.isSymbol=u,n.isUndefined=f,n.isRegExp=c,n.isObject=l,n.isDate=h,n.isError=p,n.isFunction=d,n.isPrimitive=y,n.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":104}],72:[function(e,t,n){(function(n){"use strict";function r(e){f.call(this,"digest"),this._hash=e,this.buffers=[]}function i(e){f.call(this,"digest"),this._hash=e}var o=e("inherits"),s=e("./md5"),a=e("ripemd160"),u=e("sha.js"),f=e("cipher-base");o(r,f),r.prototype._update=function(e){this.buffers.push(e)},r.prototype._final=function(){var e=n.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},o(i,f),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return e=e.toLowerCase(),"md5"===e?new r(s):new i("rmd160"===e||"ripemd160"===e?new a:u(e))}}).call(this,e("buffer").Buffer)},{"./md5":74,buffer:68,"cipher-base":70,inherits:103,ripemd160:142,"sha.js":146}],73:[function(e,t,n){(function(e){"use strict";function n(t){if(t.length%r!=0){var n=t.length+(r-t.length%r);t=e.concat([t,i],n)}for(var o=new Array(t.length>>>2),s=0,a=0;s<t.length;s+=r,a++)o[a]=t.readInt32LE(s);return o}var r=4,i=new e(r);i.fill(0);t.exports=function(t,r){var i=r(n(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(this,e("buffer").Buffer)},{buffer:68}],74:[function(e,t,n){"use strict";function r(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,c=271733878,l=0;l<e.length;l+=16){var h=n,p=r,d=i,y=c;n=o(n,r,i,c,e[l+0],7,-680876936),c=o(c,n,r,i,e[l+1],12,-389564586),i=o(i,c,n,r,e[l+2],17,606105819),r=o(r,i,c,n,e[l+3],22,-1044525330),n=o(n,r,i,c,e[l+4],7,-176418897),c=o(c,n,r,i,e[l+5],12,1200080426),i=o(i,c,n,r,e[l+6],17,-1473231341),r=o(r,i,c,n,e[l+7],22,-45705983),n=o(n,r,i,c,e[l+8],7,1770035416),c=o(c,n,r,i,e[l+9],12,-1958414417),i=o(i,c,n,r,e[l+10],17,-42063),r=o(r,i,c,n,e[l+11],22,-1990404162),n=o(n,r,i,c,e[l+12],7,1804603682),c=o(c,n,r,i,e[l+13],12,-40341101),i=o(i,c,n,r,e[l+14],17,-1502002290),r=o(r,i,c,n,e[l+15],22,1236535329),n=s(n,r,i,c,e[l+1],5,-165796510),c=s(c,n,r,i,e[l+6],9,-1069501632),i=s(i,c,n,r,e[l+11],14,643717713),r=s(r,i,c,n,e[l+0],20,-373897302),n=s(n,r,i,c,e[l+5],5,-701558691),c=s(c,n,r,i,e[l+10],9,38016083),i=s(i,c,n,r,e[l+15],14,-660478335),r=s(r,i,c,n,e[l+4],20,-405537848),n=s(n,r,i,c,e[l+9],5,568446438),c=s(c,n,r,i,e[l+14],9,-1019803690),i=s(i,c,n,r,e[l+3],14,-187363961),r=s(r,i,c,n,e[l+8],20,1163531501),n=s(n,r,i,c,e[l+13],5,-1444681467),c=s(c,n,r,i,e[l+2],9,-51403784),i=s(i,c,n,r,e[l+7],14,1735328473),r=s(r,i,c,n,e[l+12],20,-1926607734),n=a(n,r,i,c,e[l+5],4,-378558),c=a(c,n,r,i,e[l+8],11,-2022574463),i=a(i,c,n,r,e[l+11],16,1839030562),r=a(r,i,c,n,e[l+14],23,-35309556),n=a(n,r,i,c,e[l+1],4,-1530992060),c=a(c,n,r,i,e[l+4],11,1272893353),i=a(i,c,n,r,e[l+7],16,-155497632),r=a(r,i,c,n,e[l+10],23,-1094730640),n=a(n,r,i,c,e[l+13],4,681279174),c=a(c,n,r,i,e[l+0],11,-358537222),i=a(i,c,n,r,e[l+3],16,-722521979),r=a(r,i,c,n,e[l+6],23,76029189),n=a(n,r,i,c,e[l+9],4,-640364487),c=a(c,n,r,i,e[l+12],11,-421815835),i=a(i,c,n,r,e[l+15],16,530742520),r=a(r,i,c,n,e[l+2],23,-995338651),n=u(n,r,i,c,e[l+0],6,-198630844),c=u(c,n,r,i,e[l+7],10,1126891415),i=u(i,c,n,r,e[l+14],15,-1416354905),r=u(r,i,c,n,e[l+5],21,-57434055),n=u(n,r,i,c,e[l+12],6,1700485571),c=u(c,n,r,i,e[l+3],10,-1894986606),i=u(i,c,n,r,e[l+10],15,-1051523),r=u(r,i,c,n,e[l+1],21,-2054922799),n=u(n,r,i,c,e[l+8],6,1873313359),c=u(c,n,r,i,e[l+15],10,-30611744),i=u(i,c,n,r,e[l+6],15,-1560198380),r=u(r,i,c,n,e[l+13],21,1309151649),n=u(n,r,i,c,e[l+4],6,-145523070),c=u(c,n,r,i,e[l+11],10,-1120210379),i=u(i,c,n,r,e[l+2],15,718787259),r=u(r,i,c,n,e[l+9],21,-343485551),n=f(n,h),r=f(r,p),i=f(i,d),c=f(c,y)}return[n,r,i,c]}function i(e,t,n,r,i,o){return f(c(f(f(t,e),f(r,o)),i),n)}function o(e,t,n,r,o,s,a){return i(t&n|~t&r,e,t,o,s,a)}function s(e,t,n,r,o,s,a){return i(t&r|n&~r,e,t,o,s,a)}function a(e,t,n,r,o,s,a){return i(t^n^r,e,t,o,s,a)}function u(e,t,n,r,o,s,a){return i(n^(t|~r),e,t,o,s,a)}function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function c(e,t){return e<<t|e>>>32-t}var l=e("./make-hash");t.exports=function(e){return l(e,r)}},{"./make-hash":73}],75:[function(e,t,n){"use strict";function r(e,t){s.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>n){t=("rmd160"===e?new f:c(e)).update(t).digest()}else t.length<n&&(t=a.concat([t,l],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),o=0;o<n;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new f:c(e),this._hash.update(r)}var i=e("inherits"),o=e("./legacy"),s=e("cipher-base"),a=e("safe-buffer").Buffer,u=e("create-hash/md5"),f=e("ripemd160"),c=e("sha.js"),l=a.alloc(128);i(r,s),r.prototype._update=function(e){this._hash.update(e)},r.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new f:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return e=e.toLowerCase(),"rmd160"===e||"ripemd160"===e?new r("rmd160",t):"md5"===e?new o(u,t):new r(e,t)}},{"./legacy":76,"cipher-base":70,"create-hash/md5":74,inherits:103,ripemd160:142,"safe-buffer":143,"sha.js":146}],76:[function(e,t,n){"use strict";function r(e,t){s.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,this._key=t,t.length>u?t=e(t):t.length<u&&(t=o.concat([t,a],u));for(var n=this._ipad=o.allocUnsafe(u),r=this._opad=o.allocUnsafe(u),i=0;i<u;i++)n[i]=54^t[i],r[i]=92^t[i];this._hash=[n]}var i=e("inherits"),o=e("safe-buffer").Buffer,s=e("cipher-base"),a=o.alloc(128),u=64;i(r,s),r.prototype._update=function(e){this._hash.push(e)},r.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},t.exports=r},{"cipher-base":70,inherits:103,"safe-buffer":143}],77:[function(e,t,n){"use strict";var r=e("object-keys"),i=e("foreach"),o="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=function(e){return"function"==typeof e&&"[object Function]"===s.call(e)},u=Object.defineProperty&&function(){var e={};try{Object.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(e){return!1}}(),f=function(e,t,n,r){(!(t in e)||a(r)&&r())&&(u?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},c=function(e,t){var n=arguments.length>2?arguments[2]:{},s=r(t);o&&(s=s.concat(Object.getOwnPropertySymbols(t))),i(s,function(r){f(e,r,t[r],n[r])})};c.supportsDescriptors=!!u,t.exports=c},{foreach:97,"object-keys":116}],78:[function(e,t,n){function r(e,t,n,r,i,a,u){this.p=e,this.a=t,this.b=n,this.G=s.fromAffine(this,r,i),this.n=a,this.h=u,this.infinity=new s(this,null,null,o.ZERO),this.pOverFour=e.add(o.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}var i=e("assert"),o=e("bigi"),s=e("./point");r.prototype.pointFromX=function(e,t){var n=t.pow(3).add(this.a.multiply(t)).add(this.b).mod(this.p),r=n.modPow(this.pOverFour,this.p),i=r;return r.isEven()^!e&&(i=this.p.subtract(i)),s.fromAffine(this,t,i)},r.prototype.isInfinity=function(e){return e===this.infinity||0===e.z.signum()&&0!==e.y.signum()},r.prototype.isOnCurve=function(e){if(this.isInfinity(e))return!0;var t=e.affineX,n=e.affineY,r=this.a,i=this.b,o=this.p;if(t.signum()<0||t.compareTo(o)>=0)return!1;if(n.signum()<0||n.compareTo(o)>=0)return!1;var s=n.square().mod(o),a=t.pow(3).add(r.multiply(t)).add(i).mod(o);return s.equals(a)},r.prototype.validate=function(e){i(!this.isInfinity(e),"Point is at infinity"),i(this.isOnCurve(e),"Point is not on the curve");var t=e.multiply(this.n);return i(this.isInfinity(t),"Point is not a scalar multiple of G"),!0},t.exports=r},{"./point":82,assert:17,bigi:22}],79:[function(e,t,n){t.exports={secp128r1:{p:"fffffffdffffffffffffffffffffffff",a:"fffffffdfffffffffffffffffffffffc",b:"e87579c11079f43dd824993c2cee5ed3",n:"fffffffe0000000075a30d1b9038a115",h:"01",Gx:"161ff7528b899b2d0c28607ca52c5b86",Gy:"cf5ac8395bafeb13c02da292dded7a83"},secp160k1:{p:"fffffffffffffffffffffffffffffffeffffac73",a:"00",b:"07",n:"0100000000000000000001b8fa16dfab9aca16b6b3",h:"01",Gx:"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb",Gy:"938cf935318fdced6bc28286531733c3f03c4fee"},secp160r1:{p:"ffffffffffffffffffffffffffffffff7fffffff",a:"ffffffffffffffffffffffffffffffff7ffffffc",b:"1c97befc54bd7a8b65acf89f81d4d4adc565fa45",n:"0100000000000000000001f4c8f927aed3ca752257",h:"01",Gx:"4a96b5688ef573284664698968c38bb913cbfc82",Gy:"23a628553168947d59dcc912042351377ac5fb32"},secp192k1:{p:"fffffffffffffffffffffffffffffffffffffffeffffee37",a:"00",b:"03",n:"fffffffffffffffffffffffe26f2fc170f69466a74defd8d",h:"01",Gx:"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d",Gy:"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},secp192r1:{p:"fffffffffffffffffffffffffffffffeffffffffffffffff",a:"fffffffffffffffffffffffffffffffefffffffffffffffc",b:"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1",n:"ffffffffffffffffffffffff99def836146bc9b1b4d22831",h:"01",Gx:"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012",Gy:"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},secp256k1:{p:"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f",a:"00",b:"07",n:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",h:"01",Gx:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",Gy:"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},secp256r1:{p:"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff",a:"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc",b:"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b",n:"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551",h:"01",Gx:"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296",Gy:"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}},{}],80:[function(e,t,n){var r=e("./point"),i=e("./curve"),o=e("./names");t.exports={Curve:i,Point:r,getCurveByName:o}},{"./curve":78,"./names":81,"./point":82}],81:[function(e,t,n){function r(e){var t=o[e];if(!t)return null;var n=new i(t.p,16),r=new i(t.a,16),a=new i(t.b,16),u=new i(t.n,16),f=new i(t.h,16),c=new i(t.Gx,16),l=new i(t.Gy,16);return new s(n,r,a,c,l,u,f)}var i=e("bigi"),o=e("./curves.json"),s=e("./curve");t.exports=r},{"./curve":78,"./curves.json":79,bigi:22}],82:[function(e,t,n){(function(n){function r(e,t,n,r){i.notStrictEqual(r,void 0,"Missing Z coordinate"),this.curve=e,this.x=t,this.y=n,this.z=r,this._zInv=null,this.compressed=!0}var i=e("assert"),o=e("bigi"),s=o.valueOf(3);Object.defineProperty(r.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(r.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(r.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),r.fromAffine=function(e,t,n){return new r(e,t,n,o.ONE)},r.prototype.equals=function(e){return e===this||(this.curve.isInfinity(this)?this.curve.isInfinity(e):this.curve.isInfinity(e)?this.curve.isInfinity(this):0===e.y.multiply(this.z).subtract(this.y.multiply(e.z)).mod(this.curve.p).signum()&&0===e.x.multiply(this.z).subtract(this.x.multiply(e.z)).mod(this.curve.p).signum())},r.prototype.negate=function(){var e=this.curve.p.subtract(this.y);return new r(this.curve,this.x,e,this.z)},r.prototype.add=function(e){if(this.curve.isInfinity(this))return e;if(this.curve.isInfinity(e))return this;var t=this.x,n=this.y,i=e.x,o=e.y,a=o.multiply(this.z).subtract(n.multiply(e.z)).mod(this.curve.p),u=i.multiply(this.z).subtract(t.multiply(e.z)).mod(this.curve.p);if(0===u.signum())return 0===a.signum()?this.twice():this.curve.infinity;var f=u.square(),c=f.multiply(u),l=t.multiply(f),h=a.square().multiply(this.z),p=h.subtract(l.shiftLeft(1)).multiply(e.z).subtract(c).multiply(u).mod(this.curve.p),d=l.multiply(s).multiply(a).subtract(n.multiply(c)).subtract(h.multiply(a)).multiply(e.z).add(a.multiply(c)).mod(this.curve.p),y=c.multiply(this.z).multiply(e.z).mod(this.curve.p);return new r(this.curve,p,d,y)},r.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var e=this.x,t=this.y,n=t.multiply(this.z).mod(this.curve.p),i=n.multiply(t).mod(this.curve.p),o=this.curve.a,a=e.square().multiply(s);0!==o.signum()&&(a=a.add(this.z.square().multiply(o))),a=a.mod(this.curve.p);var u=a.square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.p),f=a.multiply(s).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.pow(3)).mod(this.curve.p),c=n.pow(3).shiftLeft(3).mod(this.curve.p);return new r(this.curve,u,f,c)},r.prototype.multiply=function(e){if(this.curve.isInfinity(this))return this;if(0===e.signum())return this.curve.infinity;for(var t=e,n=t.multiply(s),r=this.negate(),i=this,o=n.bitLength()-2;o>0;--o){var a=n.testBit(o),u=t.testBit(o);i=i.twice(),a!==u&&(i=i.add(a?this:r))}return i},r.prototype.multiplyTwo=function(e,t,n){for(var r=Math.max(e.bitLength(),n.bitLength())-1,i=this.curve.infinity,o=this.add(t);r>=0;){var s=e.testBit(r),a=n.testBit(r);i=i.twice(),s?i=a?i.add(o):i.add(this):a&&(i=i.add(t)),--r}return i},r.prototype.getEncoded=function(e){if(null==e&&(e=this.compressed),this.curve.isInfinity(this))return new n("00","hex");var t,r=this.affineX,i=this.affineY,o=this.curve.pLength;return e?(t=new n(1+o),t.writeUInt8(i.isEven()?2:3,0)):(t=new n(1+o+o),t.writeUInt8(4,0),i.toBuffer(o).copy(t,1+o)),r.toBuffer(o).copy(t,1),t},r.decodeFrom=function(e,t){var n,s=t.readUInt8(0),a=4!==s,u=Math.floor((e.p.bitLength()+7)/8),f=o.fromBuffer(t.slice(1,1+u));if(a){i.equal(t.length,u+1,"Invalid sequence length"),i(2===s||3===s,"Invalid sequence tag");var c=3===s;n=e.pointFromX(c,f)}else{i.equal(t.length,1+u+u,"Invalid sequence length");var l=o.fromBuffer(t.slice(1+u));n=r.fromAffine(e,f,l)}return n.compressed=a,n},r.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},t.exports=r}).call(this,e("buffer").Buffer)},{assert:17,bigi:22,buffer:68}],83:[function(e,t,n){"use strict";var r=e("has"),i=e("es-to-primitive/es6"),o=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=e("./helpers/isNaN"),u=e("./helpers/isFinite"),f=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,c=e("./helpers/assign"),l=e("./helpers/sign"),h=e("./helpers/mod"),p=e("./helpers/isPrimitive"),d=parseInt,y=e("function-bind"),v=y.call(Function.call,Array.prototype.slice),g=y.call(Function.call,String.prototype.slice),b=y.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),m=y.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),w=y.call(Function.call,RegExp.prototype.exec),E=["
","",""].join(""),_=new RegExp("["+E+"]","g"),T=y.call(Function.call,RegExp.prototype.test,_),S=/^[-+]0x[0-9a-f]+$/i,P=y.call(Function.call,RegExp.prototype.test,S),O=["\t\n\v\f\r "," \u2028","\u2029\ufeff"].join(""),I=new RegExp("(^["+O+"]+)|(["+O+"]+$)","g"),k=y.call(Function.call,String.prototype.replace),x=function(e){return k(e,I,"")},j=e("./es5"),A=e("is-regex"),N=c(c({},j),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new TypeError(e+" is not a function");return e.apply(t,n)},ToPrimitive:i,ToNumber:function(e){var t=p(e)?e:i(e,Number);if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof t){if(b(t))return this.ToNumber(d(g(t,2),2));if(m(t))return this.ToNumber(d(g(t,2),8));if(T(t)||P(t))return NaN;var n=x(t);if(n!==t)return this.ToNumber(n)}return Number(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(a(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return h(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(a(t)||t<=0)return 0;if(t>=255)return 255;var n=Math.floor(e);return n+.5<t?n+1:t<n+.5?n:n%2!=0?n+1:n},ToString:function(e){if("symbol"==typeof e)throw new TypeError("Cannot convert a Symbol value to a string");return String(e)},ToObject:function(e){return this.RequireObjectCoercible(e),Object(e)},ToPropertyKey:function(e){var t=this.ToPrimitive(e,String);return"symbol"==typeof t?t:this.ToString(t)},ToLength:function(e){var t=this.ToInteger(e);return t<=0?0:t>f?f:t},CanonicalNumericIndexString:function(e){if("[object String]"!==o.call(e))throw new TypeError("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:j.CheckObjectCoercible,IsArray:Array.isArray||function(e){return"[object Array]"===o.call(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:function(e){return!Object.preventExtensions||!p(e)&&Object.isExtensible(e)},IsInteger:function(e){if("number"!=typeof e||a(e)||!u(e))return!1;var t=Math.abs(e);return Math.floor(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(s){var t=e[Symbol.match];if(void 0!==t)return j.ToBoolean(t)}return A(e)},SameValueZero:function(e,t){return e===t||a(e)&&a(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new TypeError(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":j.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new TypeError("O.constructor is not an Object");var r=s&&Symbol.species?n[Symbol.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");if("Boolean"!==this.Type(r))throw new TypeError("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(s&&"symbol"==typeof Symbol.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");var n=v(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new TypeError("R must be an Object");if("String"!==this.Type(t))throw new TypeError("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new TypeError('"exec" method must return `null` or an Object')}return w(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&s&&Symbol.species&&null===(n=this.Get(n,Symbol.species))&&(n=void 0)),void 0===n)return Array(r);if(!this.IsConstructor(n))throw new TypeError("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=Object.getOwnPropertyDescriptor(e,t),i=r||"function"!=typeof Object.isExtensible||Object.isExtensible(e);if(r&&(!r.writable||!r.configurable)||!i)return!1;var o={configurable:!0,enumerable:!0,value:n,writable:!0};return Object.defineProperty(e,t,o),!0},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new TypeError("unable to create data property");return r}});delete N.CheckObjectCoercible,t.exports=N},{"./es5":85,"./helpers/assign":87,"./helpers/isFinite":88,"./helpers/isNaN":89,"./helpers/isPrimitive":90,"./helpers/mod":91,"./helpers/sign":92,"es-to-primitive/es6":94,"function-bind":99,has:100,"is-regex":107}],84:[function(e,t,n){"use strict";var r=e("./es2015"),i=e("./helpers/assign"),o=i(i({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});t.exports=o},{"./es2015":83,"./helpers/assign":87}],85:[function(e,t,n){"use strict";var r=e("./helpers/isNaN"),i=e("./helpers/isFinite"),o=e("./helpers/sign"),s=e("./helpers/mod"),a=e("is-callable"),u=e("es-to-primitive/es5"),f=e("has"),c={ToPrimitive:u,ToBoolean:function(e){return!!e},ToNumber:function(e){return Number(e)},ToInteger:function(e){var t=this.ToNumber(e);return r(t)?0:0!==t&&i(t)?o(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(r(t)||0===t||!i(t))return 0;var n=o(t)*Math.floor(Math.abs(t));return s(n,65536)},ToString:function(e){return String(e)},ToObject:function(e){return this.CheckObjectCoercible(e),Object(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},IsCallable:a,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(f(e,n)&&!t[n])return!1;var r=f(e,"[[Value]]"),i=f(e,"[[Get]]")||f(e,"[[Set]]");if(r&&i)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!f(e,"[[Get]]")&&!f(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!f(e,"[[Value]]")&&!f(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new TypeError("ToPropertyDescriptor requires an object");var t={};if(f(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),f(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),f(e,"value")&&(t["[[Value]]"]=e.value),f(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),f(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(f(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("setter must be a function");t["[[Set]]"]=r}
|
||
if((f(t,"[[Get]]")||f(t,"[[Set]]"))&&(f(t,"[[Value]]")||f(t,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};t.exports=c},{"./helpers/isFinite":88,"./helpers/isNaN":89,"./helpers/mod":91,"./helpers/sign":92,"es-to-primitive/es5":93,has:100,"is-callable":105}],86:[function(e,t,n){"use strict";t.exports=e("./es2016")},{"./es2016":84}],87:[function(e,t,n){var r=Object.prototype.hasOwnProperty;t.exports=function(e,t){if(Object.assign)return Object.assign(e,t);for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}},{}],88:[function(e,t,n){var r=Number.isNaN||function(e){return e!==e};t.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},{}],89:[function(e,t,n){t.exports=Number.isNaN||function(e){return e!==e}},{}],90:[function(e,t,n){t.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},{}],91:[function(e,t,n){t.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},{}],92:[function(e,t,n){t.exports=function(e){return e>=0?1:-1}},{}],93:[function(e,t,n){"use strict";var r=Object.prototype.toString,i=e("./helpers/isPrimitive"),o=e("is-callable"),s={"[[DefaultValue]]":function(e,t){var n=t||("[object Date]"===r.call(e)?String:Number);if(n===String||n===Number){var s,a,u=n===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<u.length;++a)if(o(e[u[a]])&&(s=e[u[a]](),i(s)))return s;throw new TypeError("No default value")}throw new TypeError("invalid [[DefaultValue]] hint supplied")}};t.exports=function(e,t){return i(e)?e:s["[[DefaultValue]]"](e,t)}},{"./helpers/isPrimitive":95,"is-callable":105}],94:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=e("./helpers/isPrimitive"),o=e("is-callable"),s=e("is-date-object"),a=e("is-symbol"),u=function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s<a.length;++s)if(n=e[a[s]],o(n)&&(r=n.call(e),i(r)))return r;throw new TypeError("No default value")},f=function(e,t){var n=e[t];if(null!==n&&void 0!==n){if(!o(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}};t.exports=function(e,t){if(i(e))return e;var n="default";arguments.length>1&&(t===String?n="string":t===Number&&(n="number"));var o;if(r&&(Symbol.toPrimitive?o=f(e,Symbol.toPrimitive):a(e)&&(o=Symbol.prototype.valueOf)),void 0!==o){var c=o.call(e,n);if(i(c))return c;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(s(e)||a(e))&&(n="string"),u(e,"default"===n?"number":n)}},{"./helpers/isPrimitive":95,"is-callable":105,"is-date-object":106,"is-symbol":108}],95:[function(e,t,n){arguments[4][90][0].apply(n,arguments)},{dup:90}],96:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,o,u,f;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var c=new Error('Uncaught, unspecified "error" event. ('+t+")");throw c.context=t,c}if(n=this._events[e],a(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),n.apply(this,o)}else if(s(n))for(o=Array.prototype.slice.call(arguments,1),f=n.slice(),r=f.length,u=0;u<r;u++)f[u].apply(this,o);return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,s(this._events[e])&&!this._events[e].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,o,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(s(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],97:[function(e,t,n){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;t.exports=function(e,t,n){if("[object Function]"!==i.call(t))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)t.call(n,e[s],s,e);else for(var a in e)r.call(e,a)&&t.call(n,e[a],a,e)}},{}],98:[function(e,t,n){"use strict";var r=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==i.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,o=r.call(arguments,1),s=function(){if(this instanceof n){var i=t.apply(this,o.concat(r.call(arguments)));return Object(i)===i?i:this}return t.apply(e,o.concat(r.call(arguments)))},a=Math.max(0,t.length-o.length),u=[],f=0;f<a;f++)u.push("$"+f);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var c=function(){};c.prototype=t.prototype,n.prototype=new c,c.prototype=null}return n}},{}],99:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=Function.prototype.bind||r},{"./implementation":98}],100:[function(e,t,n){var r=e("function-bind");t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":99}],101:[function(e,t,n){(function(n){"use strict";function r(e){i.call(this),this._block=new n(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=e("stream").Transform;e("inherits")(r,i),r.prototype._transform=function(e,t,r){var i=null;try{"buffer"!==t&&(e=new n(e,t)),this.update(e)}catch(e){i=e}r(i)},r.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=new n(e,t||"binary"));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(e){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r}).call(this,e("buffer").Buffer)},{buffer:68,inherits:103,stream:153}],102:[function(e,t,n){n.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,f=u>>1,c=-7,l=n?i-1:0,h=n?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,r),o-=f}return(p?-1:1)*s*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),t+=s+l>=1?h/u:h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[n+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[n+p]=255&s,p+=d,s/=256,f-=8);e[n+p-d]|=128*y}},{}],103:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],104:[function(e,t,n){function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}t.exports=function(e){return null!=e&&(r(e)||i(e)||!!e._isBuffer)}},{}],105:[function(e,t,n){"use strict";var r=Function.prototype.toString,i=/^\s*class /,o=function(e){try{var t=r.call(e),n=t.replace(/\/\/.*\n/g,""),o=n.replace(/\/\*[.\s\S]*\*\//g,""),s=o.replace(/\n/gm," ").replace(/ {2}/g," ");return i.test(s)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=a.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},{}],106:[function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(e){return!1}},o=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){return"object"==typeof e&&null!==e&&(s?i(e):"[object Date]"===o.call(e))}},{}],107:[function(e,t,n){"use strict";var r=e("has"),i=RegExp.prototype.exec,o=Object.getOwnPropertyDescriptor,s=function(e){try{var t=e.lastIndex;return e.lastIndex=0,i.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}},a=Object.prototype.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u)return"[object RegExp]"===a.call(e);var t=o(e,"lastIndex");return!(!t||!r(t,"value"))&&s(e)}},{has:100}],108:[function(e,t,n){"use strict";var r=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/,s=function(e){return"symbol"==typeof e.valueOf()&&o.test(i.call(e))};t.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return s(e)}catch(e){return!1}}}else t.exports=function(e){return!1}},{}],109:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],110:[function(e,t,n){var r="undefined"!=typeof JSON?JSON:e("jsonify");t.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var s="boolean"==typeof t.cycles&&t.cycles,a=t.replacer||function(e,t){return t},u=t.cmp&&function(e){return function(t){return function(n,r){var i={key:n,value:t[n]},o={key:r,value:t[r]};return e(i,o)}}}(t.cmp),f=[];return function e(t,c,l,h){var p=n?"\n"+new Array(h+1).join(n):"",d=n?": ":":";if(l&&l.toJSON&&"function"==typeof l.toJSON&&(l=l.toJSON()),void 0!==(l=a.call(t,c,l))){if("object"!=typeof l||null===l)return r.stringify(l);if(i(l)){for(var y=[],v=0;v<l.length;v++){var g=e(l,v,l[v],h+1)||r.stringify(null);y.push(p+n+g)}return"["+y.join(",")+p+"]"}if(-1!==f.indexOf(l)){if(s)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}f.push(l);for(var b=o(l).sort(u&&u(l)),y=[],v=0;v<b.length;v++){var c=b[v],m=e(l,c,l[c],h+1);if(m){var w=r.stringify(c)+d+m;y.push(p+n+w)}}return f.splice(f.indexOf(l),1),"{"+y.join(",")+p+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},{jsonify:111}],111:[function(e,t,n){n.parse=e("./lib/parse"),n.stringify=e("./lib/stringify")},{"./lib/parse":112,"./lib/stringify":113}],112:[function(e,t,n){var r,i,o,s,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(e){throw{name:"SyntaxError",message:e,at:r,text:o}},f=function(e){return e&&e!==i&&u("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(r),r+=1,i},c=function(){var e,t="";for("-"===i&&(t="-",f("-"));i>="0"&&i<="9";)t+=i,f();if("."===i)for(t+=".";f()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,f(),"-"!==i&&"+"!==i||(t+=i,f());i>="0"&&i<="9";)t+=i,f();if(e=+t,isFinite(e))return e;u("Bad number")},l=function(){var e,t,n,r="";if('"'===i)for(;f();){if('"'===i)return f(),r;if("\\"===i)if(f(),"u"===i){for(n=0,t=0;t<4&&(e=parseInt(f(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof a[i])break;r+=a[i]}else r+=i}u("Bad string")},h=function(){for(;i&&i<=" ";)f()},p=function(){switch(i){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}u("Unexpected '"+i+"'")},d=function(){var e=[];if("["===i){if(f("["),h(),"]"===i)return f("]"),e;for(;i;){if(e.push(s()),h(),"]"===i)return f("]"),e;f(","),h()}}u("Bad array")},y=function(){var e,t={};if("{"===i){if(f("{"),h(),"}"===i)return f("}"),t;for(;i;){if(e=l(),h(),f(":"),Object.hasOwnProperty.call(t,e)&&u('Duplicate key "'+e+'"'),t[e]=s(),h(),"}"===i)return f("}"),t;f(","),h()}}u("Bad object")};s=function(){switch(h(),i){case"{":return y();case"[":return d();case'"':return l();case"-":return c();default:return i>="0"&&i<="9"?c():p()}},t.exports=function(e,t){var n;return o=e,r=0,i=" ",n=s(),h(),i&&u("Syntax error"),"function"==typeof t?function e(n,r){var i,o,s=n[r];if(s&&"object"==typeof s)for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(o=e(s,i),void 0!==o?s[i]=o:delete s[i]);return t.call(n,r,s)}({"":n},""):n}},{}],113:[function(e,t,n){function r(e){return u.lastIndex=0,u.test(e)?'"'+e.replace(u,function(e){var t=f[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function i(e,t){var n,u,f,c,l,h=o,p=t[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),"function"==typeof a&&(p=a.call(t,e,p)),typeof p){case"string":return r(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(o+=s,l=[],"[object Array]"===Object.prototype.toString.apply(p)){for(c=p.length,n=0;n<c;n+=1)l[n]=i(n,p)||"null";return f=0===l.length?"[]":o?"[\n"+o+l.join(",\n"+o)+"\n"+h+"]":"["+l.join(",")+"]",o=h,f}if(a&&"object"==typeof a)for(c=a.length,n=0;n<c;n+=1)"string"==typeof(u=a[n])&&(f=i(u,p))&&l.push(r(u)+(o?": ":":")+f);else for(u in p)Object.prototype.hasOwnProperty.call(p,u)&&(f=i(u,p))&&l.push(r(u)+(o?": ":":")+f);return f=0===l.length?"{}":o?"{\n"+o+l.join(",\n"+o)+"\n"+h+"}":"{"+l.join(",")+"}",o=h,f}}var o,s,a,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};t.exports=function(e,t,n){var r;if(o="",s="","number"==typeof n)for(r=0;r<n;r+=1)s+=" ";else"string"==typeof n&&(s=n);if(a=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return i("",{"":e})}},{}],114:[function(t,n,r){!function(r,i){"function"==typeof e&&e.amd?e([],i):"function"==typeof t&&"object"==typeof n&&n&&n.exports?n.exports=i():(r.dcodeIO=r.dcodeIO||{}).Long=i()}(this,function(){"use strict";function e(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}e.__isLong__,Object.defineProperty(e.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),e.isLong=function(e){return!0===(e&&e.__isLong__)};var t={},n={};e.fromInt=function(r,i){var o,s;return i?0<=(r>>>=0)&&r<256&&(s=n[r])?s:(o=new e(r,(0|r)<0?-1:0,!0),0<=r&&r<256&&(n[r]=o),o):-128<=(r|=0)&&r<128&&(s=t[r])?s:(o=new e(r,r<0?-1:0,!1),-128<=r&&r<128&&(t[r]=o),o)},e.fromNumber=function(t,n){return n=!!n,isNaN(t)||!isFinite(t)?e.ZERO:!n&&t<=-o?e.MIN_VALUE:!n&&t+1>=o?e.MAX_VALUE:n&&t>=i?e.MAX_UNSIGNED_VALUE:t<0?e.fromNumber(-t,n).negate():new e(t%r|0,t/r|0,n)},e.fromBits=function(t,n,r){return new e(t,n,r)},e.fromString=function(t,n,r){if(0===t.length)throw Error("number format error: empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return e.ZERO;if("number"==typeof n&&(r=n,n=!1),(r=r||10)<2||36<r)throw Error("radix out of range: "+r);var i;if((i=t.indexOf("-"))>0)throw Error('number format error: interior "-" character: '+t);if(0===i)return e.fromString(t.substring(1),n,r).negate();for(var o=e.fromNumber(Math.pow(r,8)),s=e.ZERO,a=0;a<t.length;a+=8){var u=Math.min(8,t.length-a),f=parseInt(t.substring(a,a+u),r);if(u<8){var c=e.fromNumber(Math.pow(r,u));s=s.multiply(c).add(e.fromNumber(f))}else s=s.multiply(o),s=s.add(e.fromNumber(f))}return s.unsigned=n,s},e.fromValue=function(t){return t instanceof e?t:"number"==typeof t?e.fromNumber(t):"string"==typeof t?e.fromString(t):new e(t.low,t.high,t.unsigned)};var r=4294967296,i=r*r,o=i/2,s=e.fromInt(1<<24);return e.ZERO=e.fromInt(0),e.UZERO=e.fromInt(0,!0),e.ONE=e.fromInt(1),e.UONE=e.fromInt(1,!0),e.NEG_ONE=e.fromInt(-1),e.MAX_VALUE=e.fromBits(-1,2147483647,!1),e.MAX_UNSIGNED_VALUE=e.fromBits(-1,-1,!0),e.MIN_VALUE=e.fromBits(0,-2147483648,!1),e.prototype.toInt=function(){return this.unsigned?this.low>>>0:this.low},e.prototype.toNumber=function(){return this.unsigned?(this.high>>>0)*r+(this.low>>>0):this.high*r+(this.low>>>0)},e.prototype.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix out of range: "+t);if(this.isZero())return"0";var n;if(this.isNegative()){if(this.equals(e.MIN_VALUE)){var r=e.fromNumber(t),i=this.divide(r);return n=i.multiply(r).subtract(this),i.toString(t)+n.toInt().toString(t)}return"-"+this.negate().toString(t)}var o=e.fromNumber(Math.pow(t,6),this.unsigned);n=this;for(var s="";;){var a=n.divide(o),u=n.subtract(a.multiply(o)).toInt()>>>0,f=u.toString(t);if(n=a,n.isZero())return f+s;for(;f.length<6;)f="0"+f;s=""+f+s}},e.prototype.getHighBits=function(){return this.high},e.prototype.getHighBitsUnsigned=function(){return this.high>>>0},e.prototype.getLowBits=function(){return this.low},e.prototype.getLowBitsUnsigned=function(){return this.low>>>0},e.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equals(e.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,n=31;n>0&&0==(t&1<<n);n--);return 0!=this.high?n+33:n+1},e.prototype.isZero=function(){return 0===this.high&&0===this.low},e.prototype.isNegative=function(){return!this.unsigned&&this.high<0},e.prototype.isPositive=function(){return this.unsigned||this.high>=0},e.prototype.isOdd=function(){return 1==(1&this.low)},e.prototype.isEven=function(){return 0==(1&this.low)},e.prototype.equals=function(t){return e.isLong(t)||(t=e.fromValue(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&(this.high===t.high&&this.low===t.low)},e.eq=e.prototype.equals,e.prototype.notEquals=function(e){return!this.equals(e)},e.neq=e.prototype.notEquals,e.prototype.lessThan=function(e){return this.compare(e)<0},e.prototype.lt=e.prototype.lessThan,e.prototype.lessThanOrEqual=function(e){return this.compare(e)<=0},e.prototype.lte=e.prototype.lessThanOrEqual,e.prototype.greaterThan=function(e){return this.compare(e)>0},e.prototype.gt=e.prototype.greaterThan,e.prototype.greaterThanOrEqual=function(e){return this.compare(e)>=0},e.prototype.gte=e.prototype.greaterThanOrEqual,e.prototype.compare=function(t){if(e.isLong(t)||(t=e.fromValue(t)),this.equals(t))return 0;var n=this.isNegative(),r=t.isNegative();return n&&!r?-1:!n&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.subtract(t).isNegative()?-1:1},e.prototype.negate=function(){return!this.unsigned&&this.equals(e.MIN_VALUE)?e.MIN_VALUE:this.not().add(e.ONE)},e.prototype.neg=e.prototype.negate,e.prototype.add=function(t){e.isLong(t)||(t=e.fromValue(t));var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,f=65535&t.low,c=0,l=0,h=0,p=0;return p+=o+f,h+=p>>>16,p&=65535,h+=i+u,l+=h>>>16,h&=65535,l+=r+a,c+=l>>>16,l&=65535,c+=n+s,c&=65535,e.fromBits(h<<16|p,c<<16|l,this.unsigned)},e.prototype.subtract=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.add(t.negate())},e.prototype.sub=e.prototype.subtract,e.prototype.multiply=function(t){if(this.isZero())return e.ZERO;if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())return e.ZERO;if(this.equals(e.MIN_VALUE))return t.isOdd()?e.MIN_VALUE:e.ZERO;if(t.equals(e.MIN_VALUE))return this.isOdd()?e.MIN_VALUE:e.ZERO;if(this.isNegative())return t.isNegative()?this.negate().multiply(t.negate()):this.negate().multiply(t).negate();if(t.isNegative())return this.multiply(t.negate()).negate();if(this.lessThan(s)&&t.lessThan(s))return e.fromNumber(this.toNumber()*t.toNumber(),this.unsigned);var n=this.high>>>16,r=65535&this.high,i=this.low>>>16,o=65535&this.low,a=t.high>>>16,u=65535&t.high,f=t.low>>>16,c=65535&t.low,l=0,h=0,p=0,d=0;return d+=o*c,p+=d>>>16,d&=65535,p+=i*c,h+=p>>>16,p&=65535,p+=o*f,h+=p>>>16,p&=65535,h+=r*c,l+=h>>>16,h&=65535,h+=i*f,l+=h>>>16,h&=65535,h+=o*u,l+=h>>>16,h&=65535,l+=n*c+r*f+i*u+o*a,l&=65535,e.fromBits(p<<16|d,l<<16|h,this.unsigned)},e.prototype.mul=e.prototype.multiply,e.prototype.divide=function(t){if(e.isLong(t)||(t=e.fromValue(t)),t.isZero())throw new Error("division by zero");if(this.isZero())return this.unsigned?e.UZERO:e.ZERO;var n,r,i;if(this.equals(e.MIN_VALUE)){if(t.equals(e.ONE)||t.equals(e.NEG_ONE))return e.MIN_VALUE;if(t.equals(e.MIN_VALUE))return e.ONE;return n=this.shiftRight(1).divide(t).shiftLeft(1),n.equals(e.ZERO)?t.isNegative()?e.ONE:e.NEG_ONE:(r=this.subtract(t.multiply(n)),i=n.add(r.divide(t)))}if(t.equals(e.MIN_VALUE))return this.unsigned?e.UZERO:e.ZERO;if(this.isNegative())return t.isNegative()?this.negate().divide(t.negate()):this.negate().divide(t).negate();if(t.isNegative())return this.divide(t.negate()).negate();for(i=e.ZERO,r=this;r.greaterThanOrEqual(t);){n=Math.max(1,Math.floor(r.toNumber()/t.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),s=o<=48?1:Math.pow(2,o-48),a=e.fromNumber(n),u=a.multiply(t);u.isNegative()||u.greaterThan(r);)n-=s,a=e.fromNumber(n,this.unsigned),u=a.multiply(t);a.isZero()&&(a=e.ONE),i=i.add(a),r=r.subtract(u)}return i},e.prototype.div=e.prototype.divide,e.prototype.modulo=function(t){return e.isLong(t)||(t=e.fromValue(t)),this.subtract(this.divide(t).multiply(t))},e.prototype.mod=e.prototype.modulo,e.prototype.not=function(){return e.fromBits(~this.low,~this.high,this.unsigned)},e.prototype.and=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low&t.low,this.high&t.high,this.unsigned)},e.prototype.or=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low|t.low,this.high|t.high,this.unsigned)},e.prototype.xor=function(t){return e.isLong(t)||(t=e.fromValue(t)),e.fromBits(this.low^t.low,this.high^t.high,this.unsigned)},e.prototype.shiftLeft=function(t){return e.isLong(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?e.fromBits(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):e.fromBits(0,this.low<<t-32,this.unsigned)},e.prototype.shl=e.prototype.shiftLeft,e.prototype.shiftRight=function(t){return e.isLong(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?e.fromBits(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):e.fromBits(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},e.prototype.shr=e.prototype.shiftRight,e.prototype.shiftRightUnsigned=function(t){if(e.isLong(t)&&(t=t.toInt()),0===(t&=63))return this;var n=this.high;if(t<32){var r=this.low;return e.fromBits(r>>>t|n<<32-t,n>>>t,this.unsigned)}return 32===t?e.fromBits(n,0,this.unsigned):e.fromBits(n>>>t-32,0,this.unsigned)},e.prototype.shru=e.prototype.shiftRightUnsigned,e.prototype.toSigned=function(){return this.unsigned?new e(this.low,this.high,!1):this},e.prototype.toUnsigned=function(){return this.unsigned?this:new e(this.low,this.high,!0)},e})},{}],115:[function(e,t,n){(function(e){t.exports=function(t,n){if(!Array.isArray(t))throw TypeError("Expected values Array");if("function"!=typeof n)throw TypeError("Expected digest Function");for(var r=t.length,i=t.concat();r>1;){for(var o=0,s=0;s<r;s+=2,++o){var a=e.concat([i[s],s+1!==r?i[s+1]:i[s]]);i[o]=n(a)}r=o}return i[0]}}).call(this,e("buffer").Buffer)},{buffer:68}],116:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Array.prototype.slice,s=e("./isArguments"),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},h={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),d=function(e){if("undefined"==typeof window||!p)return l(e);try{return l(e)}catch(e){return!1}},y=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),o=s(e),a=t&&"[object String]"===i.call(e),l=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var h=f&&n;if(a&&e.length>0&&!r.call(e,0))for(var p=0;p<e.length;++p)l.push(String(p));if(o&&e.length>0)for(var y=0;y<e.length;++y)l.push(String(y));else for(var v in e)h&&"prototype"===v||!r.call(e,v)||l.push(String(v));if(u)for(var g=d(e),b=0;b<c.length;++b)g&&"constructor"===c[b]||!r.call(e,c[b])||l.push(c[b]);return l};y.shim=function(){if(Object.keys){if(!function(){return 2===(Object.keys(arguments)||"").length}(1,2)){var e=Object.keys;Object.keys=function(t){return e(s(t)?o.call(t):t)}}}else Object.keys=y;return Object.keys||y},t.exports=y},{"./isArguments":117}],117:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},{}],118:[function(e,t,n){"use strict";var r=e("es-abstract/es7"),i=e("has"),o=e("function-bind"),s=o.call(Function.call,Object.prototype.propertyIsEnumerable);t.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var o in t)i(t,o)&&s(t,o)&&n.push(t[o]);return n}},{"es-abstract/es7":86,"function-bind":99,has:100}],119:[function(e,t,n){"use strict";var r=e("define-properties"),i=e("./implementation"),o=e("./polyfill"),s=e("./shim"),a=o();r(a,{getPolyfill:o,implementation:i,shim:s}),t.exports=a},{"./implementation":118,"./polyfill":120,"./shim":121,"define-properties":77}],120:[function(e,t,n){"use strict";var r=e("./implementation");t.exports=function(){return"function"==typeof Object.values?Object.values:r}},{"./implementation":118}],121:[function(e,t,n){"use strict";var r=e("./polyfill"),i=e("define-properties");t.exports=function(){var e=r();return i(Object,{values:e},{values:function(){return Object.values!==e}}),e}},{"./polyfill":120,"define-properties":77}],122:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return i.exec(e).slice(1)};n.resolve=function(){for(var n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(n=s+"/"+n,i="/"===s.charAt(0))}return n=t(r(n.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+n||"."},n.normalize=function(e){var i=n.isAbsolute(e),o="/"===s(e,-1);return e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&o&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u<s;u++)if(i[u]!==o[u]){a=u;break}for(var f=[],u=a;u<i.length;u++)f.push("..");return f=f.concat(o.slice(a)),f.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:124}],123:[function(e,t,n){(function(e){"use strict";function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){
|
||
t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(this,e("_process"))},{_process:124}],124:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function s(e){if(h===clearTimeout)return clearTimeout(e);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(e);try{return h(e)}catch(t){try{return h.call(null,e)}catch(t){return h.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?y=d.concat(y):g=-1,y.length&&u())}function u(){if(!v){var e=o(a);v=!0;for(var t=y.length;t;){for(d=y,y=[];++g<t;)d&&d[g].run();g=-1,t=y.length}d=null,v=!1,s(e)}}function f(e,t){this.fun=e,this.array=t}function c(){}var l,h,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(e){l=r}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(e){h=i}}();var d,y=[],v=!1,g=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];y.push(new f(e,t)),1!==y.length||v||o(u)},f.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},{}],125:[function(e,t,n){!function(n){"use strict";t.exports=function(t){var n={};return n.VERSION="3.8.2",n.WIRE_TYPES={},n.WIRE_TYPES.VARINT=0,n.WIRE_TYPES.BITS64=1,n.WIRE_TYPES.LDELIM=2,n.WIRE_TYPES.STARTGROUP=3,n.WIRE_TYPES.ENDGROUP=4,n.WIRE_TYPES.BITS32=5,n.PACKABLE_WIRE_TYPES=[n.WIRE_TYPES.VARINT,n.WIRE_TYPES.BITS64,n.WIRE_TYPES.BITS32],n.TYPES={int32:{name:"int32",wireType:n.WIRE_TYPES.VARINT},uint32:{name:"uint32",wireType:n.WIRE_TYPES.VARINT},sint32:{name:"sint32",wireType:n.WIRE_TYPES.VARINT},int64:{name:"int64",wireType:n.WIRE_TYPES.VARINT},uint64:{name:"uint64",wireType:n.WIRE_TYPES.VARINT},sint64:{name:"sint64",wireType:n.WIRE_TYPES.VARINT},bool:{name:"bool",wireType:n.WIRE_TYPES.VARINT},double:{name:"double",wireType:n.WIRE_TYPES.BITS64},string:{name:"string",wireType:n.WIRE_TYPES.LDELIM},bytes:{name:"bytes",wireType:n.WIRE_TYPES.LDELIM},fixed32:{name:"fixed32",wireType:n.WIRE_TYPES.BITS32},sfixed32:{name:"sfixed32",wireType:n.WIRE_TYPES.BITS32},fixed64:{name:"fixed64",wireType:n.WIRE_TYPES.BITS64},sfixed64:{name:"sfixed64",wireType:n.WIRE_TYPES.BITS64},float:{name:"float",wireType:n.WIRE_TYPES.BITS32},enum:{name:"enum",wireType:n.WIRE_TYPES.VARINT},message:{name:"message",wireType:n.WIRE_TYPES.LDELIM},group:{name:"group",wireType:n.WIRE_TYPES.STARTGROUP}},n.ID_MIN=1,n.ID_MAX=536870911,n.ByteBuffer=t,n.Long=t.Long||null,n.convertFieldsToCamelCase=!1,n.populateAccessors=!0,n.Util=function(){Object.create||(Object.create=function(e){function t(){}if(arguments.length>1)throw Error("Object.create polyfill only accepts the first parameter.");return t.prototype=e,new t});var e={};return e.IS_NODE=!1,e.XHR=function(){for(var e=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],t=null,n=0;n<e.length;n++){try{t=e[n]()}catch(e){continue}break}if(!t)throw Error("XMLHttpRequest is not supported");return t},e.fetch=function(t,n){if(n&&"function"!=typeof n&&(n=null),e.IS_NODE);else{var r=e.XHR();if(r.open("GET",t,!!n),r.setRequestHeader("Accept","text/plain"),"function"==typeof r.overrideMimeType&&r.overrideMimeType("text/plain"),!n)return r.send(null),200==r.status||0==r.status&&"string"==typeof r.responseText?r.responseText:null;if(r.onreadystatechange=function(){4==r.readyState&&n(200==r.status||0==r.status&&"string"==typeof r.responseText?r.responseText:null)},4==r.readyState)return;r.send(null)}},e.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},e}(),n.Lang={OPEN:"{",CLOSE:"}",OPTOPEN:"[",OPTCLOSE:"]",OPTEND:",",EQUAL:"=",END:";",STRINGOPEN:'"',STRINGCLOSE:'"',STRINGOPEN_SQ:"'",STRINGCLOSE_SQ:"'",COPTOPEN:"(",COPTCLOSE:")",DELIM:/[\s\{\}=;\[\],'"\(\)]/g,RULE:/^(?:required|optional|repeated)$/,TYPE:/^(?:double|float|int32|uint32|sint32|int64|uint64|sint64|fixed32|sfixed32|fixed64|sfixed64|bool|string|bytes)$/,NAME:/^[a-zA-Z_][a-zA-Z_0-9]*$/,TYPEDEF:/^[a-zA-Z][a-zA-Z_0-9]*$/,TYPEREF:/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)+$/,FQTYPEREF:/^(?:\.[a-zA-Z][a-zA-Z_0-9]*)+$/,NUMBER:/^-?(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+|([0-9]*\.[0-9]+([Ee][+-]?[0-9]+)?))$/,NUMBER_DEC:/^(?:[1-9][0-9]*|0)$/,NUMBER_HEX:/^0x[0-9a-fA-F]+$/,NUMBER_OCT:/^0[0-7]+$/,NUMBER_FLT:/^[0-9]*\.[0-9]+([Ee][+-]?[0-9]+)?$/,ID:/^(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,NEGID:/^\-?(?:[1-9][0-9]*|0|0x[0-9a-fA-F]+|0[0-7]+)$/,WHITESPACE:/\s/,STRING:/(?:"([^"\\]*(?:\\.[^"\\]*)*)")|(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,BOOL:/^(?:true|false)$/i},n.DotProto=function(e,t){var n={},r=function(e){this.source=""+e,this.index=0,this.line=1,this.stack=[],this.readingString=!1,this.stringEndsWith=t.STRINGCLOSE},i=r.prototype;i._readString=function(){t.STRING.lastIndex=this.index-1;var e;if(null!==(e=t.STRING.exec(this.source))){var n=void 0!==e[1]?e[1]:e[2];return this.index=t.STRING.lastIndex,this.stack.push(this.stringEndsWith),n}throw Error("Unterminated string at line "+this.line+", index "+this.index)},i.next=function(){if(this.stack.length>0)return this.stack.shift();if(this.index>=this.source.length)return null;if(this.readingString)return this.readingString=!1,this._readString();var e,n;do{for(e=!1;t.WHITESPACE.test(n=this.source.charAt(this.index));)if(this.index++,"\n"===n&&this.line++,this.index===this.source.length)return null;if("/"===this.source.charAt(this.index))if("/"===this.source.charAt(++this.index)){for(;"\n"!==this.source.charAt(this.index);)if(++this.index==this.source.length)return null;this.index++,this.line++,e=!0}else{if("*"!==this.source.charAt(this.index))throw Error("Unterminated comment at line "+this.line+": /"+this.source.charAt(this.index));for(n="";n+(n=this.source.charAt(this.index))!=="*/";)if(this.index++,"\n"===n&&this.line++,this.index===this.source.length)return null;this.index++,e=!0}}while(e);if(this.index===this.source.length)return null;var r=this.index;if(t.DELIM.lastIndex=0,t.DELIM.test(this.source.charAt(r)))++r;else for(++r;r<this.source.length&&!t.DELIM.test(this.source.charAt(r));)r++;var i=this.source.substring(this.index,this.index=r);return i===t.STRINGOPEN?(this.readingString=!0,this.stringEndsWith=t.STRINGCLOSE):i===t.STRINGOPEN_SQ&&(this.readingString=!0,this.stringEndsWith=t.STRINGCLOSE_SQ),i},i.peek=function(){if(0===this.stack.length){var e=this.next();if(null===e)return null;this.stack.push(e)}return this.stack[0]},i.toString=function(){return"Tokenizer("+this.index+"/"+this.source.length+" at line "+this.line+")"},n.Tokenizer=r;var o=function(e){this.tn=new r(e)},s=o.prototype;return s.parse=function(){for(var e,t={name:"[ROOT]",package:null,messages:[],enums:[],imports:[],options:{},services:[]},n=!0;e=this.tn.next();)switch(e){case"package":if(!n||null!==t.package)throw Error("Unexpected package at line "+this.tn.line);t.package=this._parsePackage(e);break;case"import":if(!n)throw Error("Unexpected import at line "+this.tn.line);t.imports.push(this._parseImport(e));break;case"message":this._parseMessage(t,null,e),n=!1;break;case"enum":this._parseEnum(t,e),n=!1;break;case"option":if(!n)throw Error("Unexpected option at line "+this.tn.line);this._parseOption(t,e);break;case"service":this._parseService(t,e);break;case"extend":this._parseExtend(t,e);break;case"syntax":this._parseIgnoredStatement(t,e);break;default:throw Error("Unexpected token at line "+this.tn.line+": "+e)}return delete t.name,t},s._parseNumber=function(e){var n=1;if("-"==e.charAt(0)&&(n=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))return n*parseInt(e,10);if(t.NUMBER_HEX.test(e))return n*parseInt(e.substring(2),16);if(t.NUMBER_OCT.test(e))return n*parseInt(e.substring(1),8);if(t.NUMBER_FLT.test(e))return n*parseFloat(e);throw Error("Illegal number at line "+this.tn.line+": "+(n<0?"-":"")+e)},s._parseString=function(){var e,n="";do{if(e=this.tn.next(),n+=this.tn.next(),(e=this.tn.next())!==this.tn.stringEndsWith)throw Error("Illegal end of string at line "+this.tn.line+": "+e);e=this.tn.peek()}while(e===t.STRINGOPEN||e===t.STRINGOPEN_SQ);return n},s._parseId=function(e,n){var r=-1,i=1;if("-"==e.charAt(0)&&(i=-1,e=e.substring(1)),t.NUMBER_DEC.test(e))r=parseInt(e);else if(t.NUMBER_HEX.test(e))r=parseInt(e.substring(2),16);else{if(!t.NUMBER_OCT.test(e))throw Error("Illegal id at line "+this.tn.line+": "+(i<0?"-":"")+e);r=parseInt(e.substring(1),8)}if(r=i*r|0,!n&&r<0)throw Error("Illegal id at line "+this.tn.line+": "+(i<0?"-":"")+e);return r},s._parsePackage=function(e){if(e=this.tn.next(),!t.TYPEREF.test(e))throw Error("Illegal package name at line "+this.tn.line+": "+e);var n=e;if((e=this.tn.next())!=t.END)throw Error("Illegal end of package at line "+this.tn.line+": "+e);return n},s._parseImport=function(e){if(e=this.tn.peek(),"public"===e&&(this.tn.next(),e=this.tn.peek()),e!==t.STRINGOPEN&&e!==t.STRINGOPEN_SQ)throw Error("Illegal start of import at line "+this.tn.line+": "+e);var n=this._parseString();if((e=this.tn.next())!==t.END)throw Error("Illegal end of import at line "+this.tn.line+": "+e);return n},s._parseOption=function(e,n){n=this.tn.next();var r=!1;if(n==t.COPTOPEN&&(r=!0,n=this.tn.next()),!t.TYPEREF.test(n)&&!/google\.protobuf\./.test(n))throw Error("Illegal option name in message "+e.name+" at line "+this.tn.line+": "+n);var i=n;if(n=this.tn.next(),r){if(n!==t.COPTCLOSE)throw Error("Illegal end in message "+e.name+", option "+i+" at line "+this.tn.line+": "+n);i="("+i+")",n=this.tn.next(),t.FQTYPEREF.test(n)&&(i+=n,n=this.tn.next())}if(n!==t.EQUAL)throw Error("Illegal operator in message "+e.name+", option "+i+" at line "+this.tn.line+": "+n);var o;if((n=this.tn.peek())===t.STRINGOPEN||n===t.STRINGOPEN_SQ)o=this._parseString();else if(this.tn.next(),t.NUMBER.test(n))o=this._parseNumber(n,!0);else if(t.BOOL.test(n))o="true"===n;else{if(!t.TYPEREF.test(n))throw Error("Illegal option value in message "+e.name+", option "+i+" at line "+this.tn.line+": "+n);o=n}if((n=this.tn.next())!==t.END)throw Error("Illegal end of option in message "+e.name+", option "+i+" at line "+this.tn.line+": "+n);e.options[i]=o},s._parseIgnoredStatement=function(e,n){for(var r;;){if(null===(r=this.tn.next()))throw Error("Unexpected EOF in "+e.name+", "+n+" at line "+this.tn.line);if(r===t.END)break}},s._parseService=function(e,n){if(n=this.tn.next(),!t.NAME.test(n))throw Error("Illegal service name at line "+this.tn.line+": "+n);var r=n,i={name:r,rpc:{},options:{}};if((n=this.tn.next())!==t.OPEN)throw Error("Illegal start of service "+r+" at line "+this.tn.line+": "+n);do{if("option"===(n=this.tn.next()))this._parseOption(i,n);else if("rpc"===n)this._parseServiceRPC(i,n);else if(n!==t.CLOSE)throw Error("Illegal type of service "+r+" at line "+this.tn.line+": "+n)}while(n!==t.CLOSE);e.services.push(i)},s._parseServiceRPC=function(e,n){var r=n;if(n=this.tn.next(),!t.NAME.test(n))throw Error("Illegal method name in service "+e.name+" at line "+this.tn.line+": "+n);var i=n,o={request:null,response:null,options:{}};if((n=this.tn.next())!==t.COPTOPEN)throw Error("Illegal start of request type in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if(n=this.tn.next(),!t.TYPEREF.test(n))throw Error("Illegal request type in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if(o.request=n,(n=this.tn.next())!=t.COPTCLOSE)throw Error("Illegal end of request type in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if(n=this.tn.next(),"returns"!==n.toLowerCase())throw Error("Illegal delimiter in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if((n=this.tn.next())!=t.COPTOPEN)throw Error("Illegal start of response type in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if(n=this.tn.next(),o.response=n,(n=this.tn.next())!==t.COPTCLOSE)throw Error("Illegal end of response type in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);if((n=this.tn.next())===t.OPEN){do{if("option"===(n=this.tn.next()))this._parseOption(o,n);else if(n!==t.CLOSE)throw Error("Illegal start of option inservice "+e.name+"#"+i+" at line "+this.tn.line+": "+n)}while(n!==t.CLOSE);this.tn.peek()===t.END&&this.tn.next()}else if(n!==t.END)throw Error("Illegal delimiter in service "+e.name+"#"+i+" at line "+this.tn.line+": "+n);void 0===e[r]&&(e[r]={}),e[r][i]=o},s._parseMessage=function(e,n,r){var i={},o="group"===r;if(r=this.tn.next(),!t.NAME.test(r))throw Error("Illegal "+(o?"group":"message")+" name"+(e?" in message "+e.name:"")+" at line "+this.tn.line+": "+r);if(i.name=r,o){if((r=this.tn.next())!==t.EQUAL)throw Error("Illegal id assignment after group "+i.name+" at line "+this.tn.line+": "+r);r=this.tn.next();try{n.id=this._parseId(r)}catch(e){throw Error("Illegal field id value for group "+i.name+"#"+n.name+" at line "+this.tn.line+": "+r)}i.isGroup=!0}if(i.fields=[],i.enums=[],i.messages=[],i.options={},i.oneofs={},r=this.tn.next(),r===t.OPTOPEN&&n&&(this._parseFieldOptions(i,n,r),r=this.tn.next()),r!==t.OPEN)throw Error("Illegal start of "+(o?"group":"message")+" "+i.name+" at line "+this.tn.line+": "+r);for(;;){if((r=this.tn.next())===t.CLOSE){r=this.tn.peek(),r===t.END&&this.tn.next();break}if(t.RULE.test(r))this._parseMessageField(i,r);else if("oneof"===r)this._parseMessageOneOf(i,r);else if("enum"===r)this._parseEnum(i,r);else if("message"===r)this._parseMessage(i,null,r);else if("option"===r)this._parseOption(i,r);else if("extensions"===r)i.extensions=this._parseExtensions(i,r);else{if("extend"!==r)throw Error("Illegal token in message "+i.name+" at line "+this.tn.line+": "+r);this._parseExtend(i,r)}}return e.messages.push(i),i},s._parseMessageField=function(e,n){var r={},i=null;if(r.rule=n,r.options={},"group"===(n=this.tn.next())){if(i=this._parseMessage(e,r,n),!/^[A-Z]/.test(i.name))throw Error("Group names must start with a capital letter");r.type=i.name,r.name=i.name.toLowerCase(),n=this.tn.peek(),n===t.END&&this.tn.next()}else{if(!t.TYPE.test(n)&&!t.TYPEREF.test(n))throw Error("Illegal field type in message "+e.name+" at line "+this.tn.line+": "+n);if(r.type=n,n=this.tn.next(),!t.NAME.test(n))throw Error("Illegal field name in message "+e.name+" at line "+this.tn.line+": "+n);if(r.name=n,(n=this.tn.next())!==t.EQUAL)throw Error("Illegal token in field "+e.name+"#"+r.name+" at line "+this.tn.line+": "+n);n=this.tn.next();try{r.id=this._parseId(n)}catch(t){throw Error("Illegal field id in message "+e.name+"#"+r.name+" at line "+this.tn.line+": "+n)}if(n=this.tn.next(),n===t.OPTOPEN&&(this._parseFieldOptions(e,r,n),n=this.tn.next()),n!==t.END)throw Error("Illegal delimiter in message "+e.name+"#"+r.name+" at line "+this.tn.line+": "+n)}return e.fields.push(r),r},s._parseMessageOneOf=function(e,n){if(n=this.tn.next(),!t.NAME.test(n))throw Error("Illegal oneof name in message "+e.name+" at line "+this.tn.line+": "+n);var r,i=n,o=[];if((n=this.tn.next())!==t.OPEN)throw Error("Illegal start of oneof "+i+" at line "+this.tn.line+": "+n);for(;this.tn.peek()!==t.CLOSE;)r=this._parseMessageField(e,"optional"),r.oneof=i,o.push(r.id);this.tn.next(),e.oneofs[i]=o},s._parseFieldOptions=function(e,n,r){for(var i=!0;;){if((r=this.tn.next())===t.OPTCLOSE)break;if(r===t.OPTEND){if(i)throw Error("Illegal start of options in message "+e.name+"#"+n.name+" at line "+this.tn.line+": "+r);r=this.tn.next()}this._parseFieldOption(e,n,r),i=!1}},s._parseFieldOption=function(e,n,r){var i=!1;if(r===t.COPTOPEN&&(r=this.tn.next(),i=!0),!t.TYPEREF.test(r))throw Error("Illegal field option in "+e.name+"#"+n.name+" at line "+this.tn.line+": "+r);var o=r;if(r=this.tn.next(),i){if(r!==t.COPTCLOSE)throw Error("Illegal delimiter in "+e.name+"#"+n.name+" at line "+this.tn.line+": "+r);o="("+o+")",r=this.tn.next(),t.FQTYPEREF.test(r)&&(o+=r,r=this.tn.next())}if(r!==t.EQUAL)throw Error("Illegal token in "+e.name+"#"+n.name+" at line "+this.tn.line+": "+r);var s;if((r=this.tn.peek())===t.STRINGOPEN||r===t.STRINGOPEN_SQ)s=this._parseString();else if(t.NUMBER.test(r,!0))s=this._parseNumber(this.tn.next(),!0);else if(t.BOOL.test(r))s="true"===this.tn.next().toLowerCase();else{if(!t.TYPEREF.test(r))throw Error("Illegal value in message "+e.name+"#"+n.name+", option "+o+" at line "+this.tn.line+": "+r);s=this.tn.next()}n.options[o]=s},s._parseEnum=function(e,n){var r={};if(n=this.tn.next(),!t.NAME.test(n))throw Error("Illegal enum name in message "+e.name+" at line "+this.tn.line+": "+n);if(r.name=n,(n=this.tn.next())!==t.OPEN)throw Error("Illegal start of enum "+r.name+" at line "+this.tn.line+": "+n);for(r.values=[],r.options={};;){if((n=this.tn.next())===t.CLOSE){n=this.tn.peek(),n===t.END&&this.tn.next();break}if("option"==n)this._parseOption(r,n);else{if(!t.NAME.test(n))throw Error("Illegal name in enum "+r.name+" at line "+this.tn.line+": "+n);this._parseEnumValue(r,n)}}e.enums.push(r)},s._parseEnumValue=function(e,n){var r={};if(r.name=n,(n=this.tn.next())!==t.EQUAL)throw Error("Illegal token in enum "+e.name+" at line "+this.tn.line+": "+n);n=this.tn.next();try{r.id=this._parseId(n,!0)}catch(t){throw Error("Illegal id in enum "+e.name+" at line "+this.tn.line+": "+n)}if(e.values.push(r),(n=this.tn.next())===t.OPTOPEN){var i={options:{}};this._parseFieldOptions(e,i,n),n=this.tn.next()}if(n!==t.END)throw Error("Illegal delimiter in enum "+e.name+" at line "+this.tn.line+": "+n)},s._parseExtensions=function(n,r){var i=[];if(r=this.tn.next(),"min"===r?i.push(e.ID_MIN):"max"===r?i.push(e.ID_MAX):i.push(this._parseNumber(r)),"to"!==(r=this.tn.next()))throw Error("Illegal extensions delimiter in message "+n.name+" at line "+this.tn.line+": "+r);if(r=this.tn.next(),"min"===r?i.push(e.ID_MIN):"max"===r?i.push(e.ID_MAX):i.push(this._parseNumber(r)),(r=this.tn.next())!==t.END)throw Error("Illegal extensions delimiter in message "+n.name+" at line "+this.tn.line+": "+r);return i},s._parseExtend=function(e,n){if(n=this.tn.next(),!t.TYPEREF.test(n))throw Error("Illegal message name at line "+this.tn.line+": "+n);var r={};if(r.ref=n,r.fields=[],(n=this.tn.next())!==t.OPEN)throw Error("Illegal start of extend "+r.name+" at line "+this.tn.line+": "+n);for(;;){if((n=this.tn.next())===t.CLOSE){n=this.tn.peek(),n==t.END&&this.tn.next();break}if(!t.RULE.test(n))throw Error("Illegal token in extend "+r.name+" at line "+this.tn.line+": "+n);this._parseMessageField(r,n)}return e.messages.push(r),r},s.toString=function(){return"Parser"},n.Parser=o,n}(n,n.Lang),n.Reflect=function(e){function n(t,r){var i=r.readVarint32(),o=7&i,s=i>>3;switch(o){case e.WIRE_TYPES.VARINT:do{i=r.readUint8()}while(128==(128&i));break;case e.WIRE_TYPES.BITS64:r.offset+=8;break;case e.WIRE_TYPES.LDELIM:i=r.readVarint32(),r.offset+=i;break;case e.WIRE_TYPES.STARTGROUP:n(s,r);break;case e.WIRE_TYPES.ENDGROUP:if(s===t)return!1;throw Error("Illegal GROUPEND after unknown group: "+s+" ("+t+" expected)");case e.WIRE_TYPES.BITS32:r.offset+=4;break;default:throw Error("Illegal wire type in unknown group "+t+": "+o)}return!0}function r(t,n){if(t&&"number"==typeof t.low&&"number"==typeof t.high&&"boolean"==typeof t.unsigned&&t.low===t.low&&t.high===t.high)return new e.Long(t.low,t.high,void 0===n?t.unsigned:n);if("string"==typeof t)return e.Long.fromString(t,n||!1,10);if("number"==typeof t)return e.Long.fromNumber(t,n||!1);throw Error("not convertible to Long")}var i={},o=function(e,t,n){this.builder=e,this.parent=t,this.name=n,this.className},s=o.prototype;s.fqn=function(){for(var e=this.name,t=this;;){if(null==(t=t.parent))break;e=t.name+"."+e}return e},s.toString=function(e){return(e?this.className+" ":"")+this.fqn()},s.build=function(){throw Error(this.toString(!0)+" cannot be built directly")},i.T=o;var a=function(e,t,n,r){o.call(this,e,t,n),this.className="Namespace",this.children=[],this.options=r||{}},u=a.prototype=Object.create(o.prototype);u.getChildren=function(e){if(null==(e=e||null))return this.children.slice();for(var t=[],n=0,r=this.children.length;n<r;++n)this.children[n]instanceof e&&t.push(this.children[n]);return t},u.addChild=function(e){var t;if(t=this.getChild(e.name))if(t instanceof f.Field&&t.name!==t.originalName&&null===this.getChild(t.originalName))t.name=t.originalName;else{if(!(e instanceof f.Field&&e.name!==e.originalName&&null===this.getChild(e.originalName)))throw Error("Duplicate name in namespace "+this.toString(!0)+": "+e.name);e.name=e.originalName}this.children.push(e)},u.getChild=function(e){for(var t="number"==typeof e?"id":"name",n=0,r=this.children.length;n<r;++n)if(this.children[n][t]===e)return this.children[n];return null},u.resolve=function(e,t){var n=e.split("."),r=this,o=0;if(""===n[o]){for(;null!==r.parent;)r=r.parent;o++}var s;do{do{if(!(s=r.getChild(n[o]))||!(s instanceof i.T)||t&&s instanceof i.Message.Field){r=null;break}r=s,o++}while(o<n.length);if(null!=r)break;if(null!==this.parent)return this.parent.resolve(e,t)}while(null!=r);return r},u.build=function(){for(var e,t={},n=this.children,r=0,i=n.length;r<i;++r)(e=n[r])instanceof a&&(t[e.name]=e.build());return Object.defineProperty&&Object.defineProperty(t,"$options",{value:this.buildOpt()}),t},u.buildOpt=function(){for(var e={},t=Object.keys(this.options),n=0,r=t.length;n<r;++n){var i=t[n],o=this.options[t[n]];e[i]=o}return e},u.getOption=function(e){return void 0===e?this.options:void 0!==this.options[e]?this.options[e]:null},i.Namespace=a;var f=function(t,n,r,i,o){a.call(this,t,n,r,i),this.className="Message",this.extensions=[e.ID_MIN,e.ID_MAX],this.clazz=null,this.isGroup=!!o,this._fields=null,this._fieldsById=null,this._fieldsByName=null},c=f.prototype=Object.create(a.prototype);c.build=function(n){if(this.clazz&&!n)return this.clazz;var r=function(e,n){function r(e,n){var i={};for(var o in e)e.hasOwnProperty(o)&&(null===e[o]||"object"!=typeof e[o]?i[o]=e[o]:e[o]instanceof t?n&&(i[o]=e[o].toBase64()):i[o]=r(e[o],n));return i}var i=n.getChildren(e.Reflect.Message.Field),o=n.getChildren(e.Reflect.Message.OneOf),s=function(n,r){e.Builder.Message.call(this);for(var s=0,a=o.length;s<a;++s)this[o[s].name]=null;for(s=0,a=i.length;s<a;++s){var u=i[s];this[u.name]=u.repeated?[]:null,u.required&&null!==u.defaultValue&&(this[u.name]=u.defaultValue)}if(arguments.length>0)if(1!==arguments.length||"object"!=typeof n||"function"==typeof n.encode||e.Util.isArray(n)||n instanceof t||n instanceof ArrayBuffer||e.Long&&n instanceof e.Long)for(s=0,a=arguments.length;s<a;++s)this.$set(i[s].name,arguments[s]);else{var f=Object.keys(n);for(s=0,a=f.length;s<a;++s)this.$set(f[s],n[f[s]])}},a=s.prototype=Object.create(e.Builder.Message.prototype);a.add=function(t,r,i){var o=n._fieldsByName[t];if(!i){if(!o)throw Error(this+"#"+t+" is undefined");if(!(o instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+o.toString(!0));if(!o.repeated)throw Error(this+"#"+t+" is not a repeated field")}null===this[o.name]&&(this[o.name]=[]),this[o.name].push(i?r:o.verifyValue(r,!0))},a.$add=a.add,a.set=function(t,r,i){if(t&&"object"==typeof t){for(var o in t)t.hasOwnProperty(o)&&this.$set(o,t[o],i);return this}var s=n._fieldsByName[t];if(i)this[s.name]=r;else{if(!s)throw Error(this+"#"+t+" is not a field: undefined");if(!(s instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+s.toString(!0));this[s.name]=r=s.verifyValue(r)}return s.oneof&&(null!==r?(null!==this[s.oneof.name]&&(this[this[s.oneof.name]]=null),this[s.oneof.name]=s.name):s.oneof.name===t&&(this[s.oneof.name]=null)),this},a.$set=a.set,a.get=function(t,r){if(r)return this[t];var i=n._fieldsByName[t];if(!(i&&i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: undefined");if(!(i instanceof e.Reflect.Message.Field))throw Error(this+"#"+t+" is not a field: "+i.toString(!0));return this[i.name]},a.$get=a.get;for(var u=0;u<i.length;u++){var f=i[u];f instanceof e.Reflect.Message.ExtensionField||n.builder.options.populateAccessors&&function(e){var t=e.originalName.replace(/(_[a-zA-Z])/g,function(e){return e.toUpperCase().replace("_","")});t=t.substring(0,1).toUpperCase()+t.substring(1);var r=e.originalName.replace(/([A-Z])/g,function(e){return"_"+e}),i=function(t,n){return this[e.name]=n?t:e.verifyValue(t),this},o=function(){return this[e.name]};null===n.getChild("set"+t)&&(a["set"+t]=i),null===n.getChild("set_"+r)&&(a["set_"+r]=i),null===n.getChild("get"+t)&&(a["get"+t]=o),null===n.getChild("get_"+r)&&(a["get_"+r]=o)}(f)}a.encode=function(e,r){"boolean"==typeof e&&(r=e,e=void 0);var i=!1;e||(e=new t,i=!0);var o=e.littleEndian;try{return n.encode(this,e.LE(),r),(i?e.flip():e).LE(o)}catch(t){throw e.LE(o),t}},a.calculate=function(){return n.calculate(this)},a.encodeDelimited=function(e){var r=!1;e||(e=new t,r=!0);var i=(new t).LE();return n.encode(this,i).flip(),e.writeVarint32(i.remaining()),e.append(i),r?e.flip():e},a.encodeAB=function(){try{return this.encode().toArrayBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toArrayBuffer()),e}},a.toArrayBuffer=a.encodeAB,a.encodeNB=function(){try{return this.encode().toBuffer()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBuffer()),e}},a.toBuffer=a.encodeNB,a.encode64=function(){try{return this.encode().toBase64()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toBase64()),e}},a.toBase64=a.encode64,a.encodeHex=function(){try{return this.encode().toHex()}catch(e){throw e.encoded&&(e.encoded=e.encoded.toHex()),e}},a.toHex=a.encodeHex,a.toRaw=function(e){return r(this,!!e)},s.decode=function(e,r){"string"==typeof e&&(e=t.wrap(e,r||"base64")),e=e instanceof t?e:t.wrap(e);var i=e.littleEndian;try{var o=n.decode(e.LE());return e.LE(i),o}catch(t){throw e.LE(i),t}},s.decodeDelimited=function(e,r){if("string"==typeof e&&(e=t.wrap(e,r||"base64")),e=e instanceof t?e:t.wrap(e),e.remaining()<1)return null;var i=e.offset,o=e.readVarint32();if(e.remaining()<o)return e.offset=i,null;try{var s=n.decode(e.slice(e.offset,e.offset+o).LE());return e.offset+=o,s}catch(t){throw e.offset+=o,t}},s.decode64=function(e){return s.decode(e,"base64")},s.decodeHex=function(e){return s.decode(e,"hex")},a.toString=function(){return n.toString()};return Object.defineProperty&&(Object.defineProperty(s,"$options",{value:n.buildOpt()}),Object.defineProperty(a,"$type",{get:function(){return n}})),s}(e,this);this._fields=[],this._fieldsById={},this._fieldsByName={};for(var i,o=0,s=this.children.length;o<s;o++)if((i=this.children[o])instanceof y)r[i.name]=i.build();else if(i instanceof f)r[i.name]=i.build();else if(i instanceof f.Field)i.build(),this._fields.push(i),this._fieldsById[i.id]=i,this._fieldsByName[i.name]=i;else if(!(i instanceof f.OneOf||i instanceof g))throw Error("Illegal reflect child of "+this.toString(!0)+": "+children[o].toString(!0));return this.clazz=r},c.encode=function(e,t,n){for(var r,i,o=null,s=0,a=this._fields.length;s<a;++s)r=this._fields[s],i=e[r.name],r.required&&null===i?null===o&&(o=r):r.encode(n?i:r.verifyValue(i),t);if(null!==o){var u=Error("Missing at least one required field for "+this.toString(!0)+": "+o);throw u.encoded=t,u}return t},c.calculate=function(e){for(var t,n,r=0,i=0,o=this._fields.length;i<o;++i){if(t=this._fields[i],n=e[t.name],t.required&&null===n)throw Error("Missing at least one required field for "+this.toString(!0)+": "+t);r+=t.calculate(n)}return r},c.decode=function(t,r,i){r="number"==typeof r?r:-1;for(var o,s,a,u,f=t.offset,c=new this.clazz;t.offset<f+r||-1===r&&t.remaining()>0;){if(o=t.readVarint32(),s=7&o,a=o>>3,s===e.WIRE_TYPES.ENDGROUP){if(a!==i)throw Error("Illegal group end indicator for "+this.toString(!0)+": "+a+" ("+(i?i+" expected":"not a group")+")");break}if(u=this._fieldsById[a])u.repeated&&!u.options.packed?c[u.name].push(u.decode(s,t)):(c[u.name]=u.decode(s,t),u.oneof&&(null!==this[u.oneof.name]&&(this[this[u.oneof.name]]=null),c[u.oneof.name]=u.name));else switch(s){case e.WIRE_TYPES.VARINT:t.readVarint32();break;case e.WIRE_TYPES.BITS32:t.offset+=4;break;case e.WIRE_TYPES.BITS64:t.offset+=8;break;case e.WIRE_TYPES.LDELIM:var l=t.readVarint32();t.offset+=l;break;case e.WIRE_TYPES.STARTGROUP:for(;n(a,t););break;default:throw Error("Illegal wire type for unknown field "+a+" in "+this.toString(!0)+"#decode: "+s)}}for(var h=0,p=this._fields.length;h<p;++h)if(u=this._fields[h],null===c[u.name]){if(u.required){var d=Error("Missing at least one required field for "+this.toString(!0)+": "+u.name);throw d.decoded=c,d}null!==u.defaultValue&&(c[u.name]=u.defaultValue)}return c},i.Message=f;var l=function(e,t,n,r,i,s,a,u){o.call(this,e,t,i),this.className="Message.Field",this.required="required"===n,this.repeated="repeated"===n,this.type=r,this.resolvedType=null,this.id=s,this.options=a||{},this.defaultValue=null,this.oneof=u||null,this.originalName=this.name,!this.builder.options.convertFieldsToCamelCase||this instanceof f.ExtensionField||(this.name=l._toCamelCase(this.name))};l._toCamelCase=function(e){return e.replace(/_([a-zA-Z])/g,function(e,t){return t.toUpperCase()})};var h=l.prototype=Object.create(o.prototype);h.build=function(){this.defaultValue=void 0!==this.options.default?this.verifyValue(this.options.default):null},h.verifyValue=function(n,i){i=i||!1;var o=function(e,t){throw Error("Illegal value for "+this.toString(!0)+" of type "+this.type.name+": "+e+" ("+t+")")}.bind(this);if(null===n)return this.required&&o(typeof n,"required"),null;var s;if(this.repeated&&!i){e.Util.isArray(n)||(n=[n]);var a=[];for(s=0;s<n.length;s++)a.push(this.verifyValue(n[s],!0));return a}switch(!this.repeated&&e.Util.isArray(n)&&o(typeof n,"no array expected"),this.type){case e.TYPES.int32:case e.TYPES.sint32:case e.TYPES.sfixed32:return("number"!=typeof n||n===n&&n%1!=0)&&o(typeof n,"not an integer"),n>4294967295?0|n:n;case e.TYPES.uint32:case e.TYPES.fixed32:return("number"!=typeof n||n===n&&n%1!=0)&&o(typeof n,"not an integer"),n<0?n>>>0:n;case e.TYPES.int64:case e.TYPES.sint64:case e.TYPES.sfixed64:if(e.Long)try{return r(n,!1)}catch(e){o(typeof n,e.message)}else o(typeof n,"requires Long.js");case e.TYPES.uint64:case e.TYPES.fixed64:if(e.Long)try{return r(n,!0)}catch(e){o(typeof n,e.message)}else o(typeof n,"requires Long.js");case e.TYPES.bool:return"boolean"!=typeof n&&o(typeof n,"not a boolean"),n;case e.TYPES.float:case e.TYPES.double:return"number"!=typeof n&&o(typeof n,"not a number"),n;case e.TYPES.string:return"string"==typeof n||n&&n instanceof String||o(typeof n,"not a string"),""+n;case e.TYPES.bytes:return t.isByteBuffer(n)?n:t.wrap(n,"base64");case e.TYPES.enum:var u=this.resolvedType.getChildren(y.Value);for(s=0;s<u.length;s++){if(u[s].name==n)return u[s].id;if(u[s].id==n)return u[s].id}o(n,"not a valid enum value");case e.TYPES.group:case e.TYPES.message:if(n&&"object"==typeof n||o(typeof n,"object expected"),n instanceof this.resolvedType.clazz)return n;if(n instanceof e.Builder.Message){var f={};for(var s in n)n.hasOwnProperty(s)&&(f[s]=n[s]);n=f}return new this.resolvedType.clazz(n)}throw Error("[INTERNAL] Illegal value for "+this.toString(!0)+": "+n+" (undefined type "+this.type+")")},h.encode=function(n,r){
|
||
if(null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===n||this.repeated&&0==n.length)return r;try{if(this.repeated){var i;if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){r.writeVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),r.ensureCapacity(r.offset+=1);var o=r.offset;for(i=0;i<n.length;i++)this.encodeValue(n[i],r);var s=r.offset-o,a=t.calculateVarint32(s);if(a>1){var u=r.slice(o,r.offset);o+=a-1,r.offset=o,r.append(u)}r.writeVarint32(s,o-a)}else for(i=0;i<n.length;i++)r.writeVarint32(this.id<<3|this.type.wireType),this.encodeValue(n[i],r)}else r.writeVarint32(this.id<<3|this.type.wireType),this.encodeValue(n,r)}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+n+" ("+e+")")}return r},h.encodeValue=function(n,r){if(null===n)return r;switch(this.type){case e.TYPES.int32:n<0?r.writeVarint64(n):r.writeVarint32(n);break;case e.TYPES.uint32:r.writeVarint32(n);break;case e.TYPES.sint32:r.writeVarint32ZigZag(n);break;case e.TYPES.fixed32:r.writeUint32(n);break;case e.TYPES.sfixed32:r.writeInt32(n);break;case e.TYPES.int64:case e.TYPES.uint64:r.writeVarint64(n);break;case e.TYPES.sint64:r.writeVarint64ZigZag(n);break;case e.TYPES.fixed64:r.writeUint64(n);break;case e.TYPES.sfixed64:r.writeInt64(n);break;case e.TYPES.bool:"string"==typeof n?r.writeVarint32("false"===n.toLowerCase()?0:!!n):r.writeVarint32(n?1:0);break;case e.TYPES.enum:r.writeVarint32(n);break;case e.TYPES.float:r.writeFloat32(n);break;case e.TYPES.double:r.writeFloat64(n);break;case e.TYPES.string:r.writeVString(n);break;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");var i=n.offset;r.writeVarint32(n.remaining()),r.append(n),n.offset=i;break;case e.TYPES.message:var o=(new t).LE();this.resolvedType.encode(n,o),r.writeVarint32(o.offset),r.append(o.flip());break;case e.TYPES.group:this.resolvedType.encode(n,r),r.writeVarint32(this.id<<3|e.WIRE_TYPES.ENDGROUP);break;default:throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")}return r},h.calculate=function(n){if(n=this.verifyValue(n),null===this.type||"object"!=typeof this.type)throw Error("[INTERNAL] Unresolved type in "+this.toString(!0)+": "+this.type);if(null===n||this.repeated&&0==n.length)return 0;var r=0;try{if(this.repeated){var i,o;if(this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0){for(r+=t.calculateVarint32(this.id<<3|e.WIRE_TYPES.LDELIM),o=0,i=0;i<n.length;i++)o+=this.calculateValue(n[i]);r+=t.calculateVarint32(o),r+=o}else for(i=0;i<n.length;i++)r+=t.calculateVarint32(this.id<<3|this.type.wireType),r+=this.calculateValue(n[i])}else r+=t.calculateVarint32(this.id<<3|this.type.wireType),r+=this.calculateValue(n)}catch(e){throw Error("Illegal value for "+this.toString(!0)+": "+n+" ("+e+")")}return r},h.calculateValue=function(n){if(null===n)return 0;var r;switch(this.type){case e.TYPES.int32:return n<0?t.calculateVarint64(n):t.calculateVarint32(n);case e.TYPES.uint32:return t.calculateVarint32(n);case e.TYPES.sint32:return t.calculateVarint32(t.zigZagEncode32(n));case e.TYPES.fixed32:case e.TYPES.sfixed32:case e.TYPES.float:return 4;case e.TYPES.int64:case e.TYPES.uint64:return t.calculateVarint64(n);case e.TYPES.sint64:return t.calculateVarint64(t.zigZagEncode64(n));case e.TYPES.fixed64:case e.TYPES.sfixed64:return 8;case e.TYPES.bool:return 1;case e.TYPES.enum:return t.calculateVarint32(n);case e.TYPES.double:return 8;case e.TYPES.string:return r=t.calculateUTF8Bytes(n),t.calculateVarint32(r)+r;case e.TYPES.bytes:if(n.remaining()<0)throw Error("Illegal value for "+this.toString(!0)+": "+n.remaining()+" bytes remaining");return t.calculateVarint32(n.remaining())+n.remaining();case e.TYPES.message:return r=this.resolvedType.calculate(n),t.calculateVarint32(r)+r;case e.TYPES.group:return(r=this.resolvedType.calculate(n))+t.calculateVarint32(this.id<<3|e.WIRE_TYPES.ENDGROUP)}throw Error("[INTERNAL] Illegal value to encode in "+this.toString(!0)+": "+n+" (unknown type)")},h.decode=function(t,n,r){var i,o;if(t!=this.type.wireType&&(r||t!=e.WIRE_TYPES.LDELIM||!this.repeated))throw Error("Illegal wire type for field "+this.toString(!0)+": "+t+" ("+this.type.wireType+" expected)");if(t==e.WIRE_TYPES.LDELIM&&this.repeated&&this.options.packed&&e.PACKABLE_WIRE_TYPES.indexOf(this.type.wireType)>=0&&!r){o=n.readVarint32(),o=n.offset+o;for(var s=[];n.offset<o;)s.push(this.decode(this.type.wireType,n,!0));return s}switch(this.type){case e.TYPES.int32:return 0|n.readVarint32();case e.TYPES.uint32:return n.readVarint32()>>>0;case e.TYPES.sint32:return 0|n.readVarint32ZigZag();case e.TYPES.fixed32:return n.readUint32()>>>0;case e.TYPES.sfixed32:return 0|n.readInt32();case e.TYPES.int64:return n.readVarint64();case e.TYPES.uint64:return n.readVarint64().toUnsigned();case e.TYPES.sint64:return n.readVarint64ZigZag();case e.TYPES.fixed64:return n.readUint64();case e.TYPES.sfixed64:return n.readInt64();case e.TYPES.bool:return!!n.readVarint32();case e.TYPES.enum:return n.readVarint32();case e.TYPES.float:return n.readFloat();case e.TYPES.double:return n.readDouble();case e.TYPES.string:return n.readVString();case e.TYPES.bytes:if(o=n.readVarint32(),n.remaining()<o)throw Error("Illegal number of bytes for "+this.toString(!0)+": "+o+" required but got only "+n.remaining());return i=n.clone(),i.limit=i.offset+o,n.offset+=o,i;case e.TYPES.message:return o=n.readVarint32(),this.resolvedType.decode(n,o);case e.TYPES.group:return this.resolvedType.decode(n,-1,this.id)}throw Error("[INTERNAL] Illegal wire type for "+this.toString(!0)+": "+t)},i.Message.Field=l;var p=function(e,t,n,r,i,o,s){l.call(this,e,t,n,r,i,o,s),this.extension};p.prototype=Object.create(l.prototype),i.Message.ExtensionField=p;var d=function(e,t,n){o.call(this,e,t,n),this.fields=[]};i.Message.OneOf=d;var y=function(e,t,n,r){a.call(this,e,t,n,r),this.className="Enum",this.object=null};(y.prototype=Object.create(a.prototype)).build=function(){for(var e={},t=this.getChildren(y.Value),n=0,r=t.length;n<r;++n)e[t[n].name]=t[n].id;return Object.defineProperty&&Object.defineProperty(e,"$options",{value:this.buildOpt()}),this.object=e},i.Enum=y;var v=function(e,t,n,r){o.call(this,e,t,n),this.className="Enum.Value",this.id=r};v.prototype=Object.create(o.prototype),i.Enum.Value=v;var g=function(e,t,n,r){o.call(this,e,t,n),this.field=r};g.prototype=Object.create(o.prototype),i.Extension=g;var b=function(e,t,n,r){a.call(this,e,t,n,r),this.className="Service",this.clazz=null};(b.prototype=Object.create(a.prototype)).build=function(t){return this.clazz&&!t?this.clazz:this.clazz=function(e,t){var n=function(t){e.Builder.Service.call(this),this.rpcImpl=t||function(e,t,n){setTimeout(n.bind(this,Error("Not implemented, see: https://github.com/dcodeIO/ProtoBuf.js/wiki/Services")),0)}},r=n.prototype=Object.create(e.Builder.Service.prototype);Object.defineProperty&&(Object.defineProperty(n,"$options",{value:t.buildOpt()}),Object.defineProperty(r,"$options",{value:n.$options}));for(var i=t.getChildren(e.Reflect.Service.RPCMethod),o=0;o<i.length;o++)!function(e){r[e.name]=function(n,r){try{if(!(n&&n instanceof e.resolvedRequestType.clazz))return void setTimeout(r.bind(this,Error("Illegal request type provided to service method "+t.name+"#"+e.name)),0);this.rpcImpl(e.fqn(),n,function(n,i){if(n)return void r(n);try{i=e.resolvedResponseType.clazz.decode(i)}catch(e){}if(!(i&&i instanceof e.resolvedResponseType.clazz))return void r(Error("Illegal response type received in service method "+t.name+"#"+e.name));r(null,i)})}catch(e){setTimeout(r.bind(this,e),0)}},n[e.name]=function(t,r,i){new n(t)[e.name](r,i)},Object.defineProperty&&(Object.defineProperty(n[e.name],"$options",{value:e.buildOpt()}),Object.defineProperty(r[e.name],"$options",{value:n[e.name].$options}))}(i[o]);return n}(e,this)},i.Service=b;var m=function(e,t,n,r){o.call(this,e,t,n),this.className="Service.Method",this.options=r||{}};(m.prototype=Object.create(o.prototype)).buildOpt=u.buildOpt,i.Service.Method=m;var w=function(e,t,n,r,i,o){m.call(this,e,t,n,o),this.className="Service.RPCMethod",this.requestName=r,this.responseName=i,this.resolvedRequestType=null,this.resolvedResponseType=null};return w.prototype=Object.create(m.prototype),i.Service.RPCMethod=w,i}(n),n.Builder=function(t,n,r){var i=function(e){this.ns=new r.Namespace(this,null,""),this.ptr=this.ns,this.resolved=!1,this.result=null,this.files={},this.importRoot=null,this.options=e||{}},o=i.prototype;return o.reset=function(){this.ptr=this.ns},o.define=function(e,t){if("string"!=typeof e||!n.TYPEREF.test(e))throw Error("Illegal package: "+e);var i,o=e.split(".");for(i=0;i<o.length;i++)if(!n.NAME.test(o[i]))throw Error("Illegal package: "+o[i]);for(i=0;i<o.length;i++)null===this.ptr.getChild(o[i])&&this.ptr.addChild(new r.Namespace(this,this.ptr,o[i],t)),this.ptr=this.ptr.getChild(o[i]);return this},i.isValidMessage=function(e){if("string"!=typeof e.name||!n.NAME.test(e.name))return!1;if(void 0!==e.values||void 0!==e.rpc)return!1;var r;if(void 0!==e.fields){if(!t.Util.isArray(e.fields))return!1;var o,s=[];for(r=0;r<e.fields.length;r++){if(!i.isValidMessageField(e.fields[r]))return!1;if(o=parseInt(e.fields[r].id,10),s.indexOf(o)>=0)return!1;s.push(o)}s=null}if(void 0!==e.enums){if(!t.Util.isArray(e.enums))return!1;for(r=0;r<e.enums.length;r++)if(!i.isValidEnum(e.enums[r]))return!1}if(void 0!==e.messages){if(!t.Util.isArray(e.messages))return!1;for(r=0;r<e.messages.length;r++)if(!i.isValidMessage(e.messages[r])&&!i.isValidExtend(e.messages[r]))return!1}return!!(void 0===e.extensions||t.Util.isArray(e.extensions)&&2===e.extensions.length&&"number"==typeof e.extensions[0]&&"number"==typeof e.extensions[1])},i.isValidMessageField=function(e){if("string"!=typeof e.rule||"string"!=typeof e.name||"string"!=typeof e.type||void 0===e.id)return!1;if(!(n.RULE.test(e.rule)&&n.NAME.test(e.name)&&n.TYPEREF.test(e.type)&&n.ID.test(""+e.id)))return!1;if(void 0!==e.options){if("object"!=typeof e.options)return!1;for(var t,r=Object.keys(e.options),i=0;i<r.length;i++)if("string"!=typeof(t=r[i])||"string"!=typeof e.options[t]&&"number"!=typeof e.options[t]&&"boolean"!=typeof e.options[t])return!1}return!0},i.isValidEnum=function(e){if("string"!=typeof e.name||!n.NAME.test(e.name))return!1;if(void 0===e.values||!t.Util.isArray(e.values)||0==e.values.length)return!1;for(var r=0;r<e.values.length;r++){if("object"!=typeof e.values[r])return!1;if("string"!=typeof e.values[r].name||void 0===e.values[r].id)return!1;if(!n.NAME.test(e.values[r].name)||!n.NEGID.test(""+e.values[r].id))return!1}return!0},o.create=function(e){if(!e)return this;if(t.Util.isArray(e)||(e=[e]),0==e.length)return this;var n=[];for(n.push(e);n.length>0;){if(e=n.pop(),!t.Util.isArray(e))throw Error("Not a valid namespace: "+JSON.stringify(e));for(;e.length>0;){var o=e.shift();if(i.isValidMessage(o)){var s=new r.Message(this,this.ptr,o.name,o.options,o.isGroup),a={};if(o.oneofs)for(var u=Object.keys(o.oneofs),f=0,c=u.length;f<c;++f)s.addChild(a[u[f]]=new r.Message.OneOf(this,s,u[f]));if(o.fields&&o.fields.length>0)for(f=0,c=o.fields.length;f<c;++f){var l=o.fields[f];if(null!==s.getChild(l.id))throw Error("Duplicate field id in message "+s.name+": "+l.id);if(l.options)for(var h=Object.keys(l.options),p=0,d=h.length;p<d;++p){if("string"!=typeof h[p])throw Error("Illegal field option name in message "+s.name+"#"+l.name+": "+h[p]);if("string"!=typeof l.options[h[p]]&&"number"!=typeof l.options[h[p]]&&"boolean"!=typeof l.options[h[p]])throw Error("Illegal field option value in message "+s.name+"#"+l.name+"#"+h[p]+": "+l.options[h[p]])}var y=null;if("string"==typeof l.oneof&&void 0===(y=a[l.oneof]))throw Error("Illegal oneof in message "+s.name+"#"+l.name+": "+l.oneof);l=new r.Message.Field(this,s,l.rule,l.type,l.name,l.id,l.options,y),y&&y.fields.push(l),s.addChild(l)}var v=[];if(void 0!==o.enums&&o.enums.length>0)for(f=0;f<o.enums.length;f++)v.push(o.enums[f]);if(o.messages&&o.messages.length>0)for(f=0;f<o.messages.length;f++)v.push(o.messages[f]);if(o.extensions&&(s.extensions=o.extensions,s.extensions[0]<t.ID_MIN&&(s.extensions[0]=t.ID_MIN),s.extensions[1]>t.ID_MAX&&(s.extensions[1]=t.ID_MAX)),this.ptr.addChild(s),v.length>0){n.push(e),e=v,v=null,this.ptr=s,s=null;continue}v=null,s=null}else if(i.isValidEnum(o)){for(s=new r.Enum(this,this.ptr,o.name,o.options),f=0;f<o.values.length;f++)s.addChild(new r.Enum.Value(this,s,o.values[f].name,o.values[f].id));this.ptr.addChild(s),s=null}else if(i.isValidService(o)){s=new r.Service(this,this.ptr,o.name,o.options);for(f in o.rpc)o.rpc.hasOwnProperty(f)&&s.addChild(new r.Service.RPCMethod(this,s,f,o.rpc[f].request,o.rpc[f].response,o.rpc[f].options));this.ptr.addChild(s),s=null}else{if(!i.isValidExtend(o))throw Error("Not a valid definition: "+JSON.stringify(o));if(s=this.ptr.resolve(o.ref))for(f=0;f<o.fields.length;f++){if(null!==s.getChild(o.fields[f].id))throw Error("Duplicate extended field id in message "+s.name+": "+o.fields[f].id);if(o.fields[f].id<s.extensions[0]||o.fields[f].id>s.extensions[1])throw Error("Illegal extended field id in message "+s.name+": "+o.fields[f].id+" ("+s.extensions.join(" to ")+" expected)");var g=o.fields[f].name;this.options.convertFieldsToCamelCase&&(g=r.Message.Field._toCamelCase(o.fields[f].name)),l=new r.Message.ExtensionField(this,s,o.fields[f].rule,o.fields[f].type,this.ptr.fqn()+"."+g,o.fields[f].id,o.fields[f].options);var b=new r.Extension(this,this.ptr,o.fields[f].name,l);l.extension=b,this.ptr.addChild(b),s.addChild(l)}else if(!/\.?google\.protobuf\./.test(o.ref))throw Error("Extended message "+o.ref+" is not defined")}o=null}e=null,this.ptr=this.ptr.parent}return this.resolved=!1,this.result=null,this},o.import=function(n,r){if("string"==typeof r){if(t.Util.IS_NODE&&(r=e("path").resolve(r)),!0===this.files[r])return this.reset(),this;this.files[r]=!0}if(n.imports&&n.imports.length>0){var i,o="/",s=!1;"object"==typeof r?(this.importRoot=r.root,s=!0,i=this.importRoot,r=r.file,(i.indexOf("\\")>=0||r.indexOf("\\")>=0)&&(o="\\")):"string"==typeof r?this.importRoot?i=this.importRoot:r.indexOf("/")>=0?""===(i=r.replace(/\/[^\/]*$/,""))&&(i="/"):r.indexOf("\\")>=0?(i=r.replace(/\\[^\\]*$/,""),o="\\"):i=".":i=null;for(var a=0;a<n.imports.length;a++)if("string"==typeof n.imports[a]){if(!i)throw Error("Cannot determine import root: File name is unknown");var u=n.imports[a];if(/^google\/protobuf\//.test(u))continue;if(u=i+o+u,!0===this.files[u])continue;/\.proto$/i.test(u)&&!t.DotProto&&(u=u.replace(/\.proto$/,".json"));var f=t.Util.fetch(u);if(null===f)throw Error("Failed to import '"+u+"' in '"+r+"': File not found");/\.json$/i.test(u)?this.import(JSON.parse(f+""),u):this.import(new t.DotProto.Parser(f+"").parse(),u)}else r?/\.(\w+)$/.test(r)?this.import(n.imports[a],r.replace(/^(.+)\.(\w+)$/,function(e,t,n){return t+"_import"+a+"."+n})):this.import(n.imports[a],r+"_import"+a):this.import(n.imports[a]);s&&(this.importRoot=null)}return n.messages&&(n.package&&this.define(n.package,n.options),this.create(n.messages),this.reset()),n.enums&&(n.package&&this.define(n.package,n.options),this.create(n.enums),this.reset()),n.services&&(n.package&&this.define(n.package,n.options),this.create(n.services),this.reset()),n.extends&&(n.package&&this.define(n.package,n.options),this.create(n.extends),this.reset()),this},i.isValidService=function(e){return!("string"!=typeof e.name||!n.NAME.test(e.name)||"object"!=typeof e.rpc)},i.isValidExtend=function(e){if("string"!=typeof e.ref||!n.TYPEREF.test(e.ref))return!1;var r;if(void 0!==e.fields){if(!t.Util.isArray(e.fields))return!1;var o,s=[];for(r=0;r<e.fields.length;r++){if(!i.isValidMessageField(e.fields[r]))return!1;if(o=parseInt(e.id,10),s.indexOf(o)>=0)return!1;s.push(o)}s=null}return!0},o.resolveAll=function(){var e;if(null!=this.ptr&&"object"!=typeof this.ptr.type){if(this.ptr instanceof r.Namespace)for(var i=this.ptr.children,o=0,s=i.length;o<s;++o)this.ptr=i[o],this.resolveAll();else if(this.ptr instanceof r.Message.Field)if(n.TYPE.test(this.ptr.type))this.ptr.type=t.TYPES[this.ptr.type];else{if(!n.TYPEREF.test(this.ptr.type))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(!(e=(this.ptr instanceof r.Message.ExtensionField?this.ptr.extension.parent:this.ptr.parent).resolve(this.ptr.type,!0)))throw Error("Unresolvable type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);if(this.ptr.resolvedType=e,e instanceof r.Enum)this.ptr.type=t.TYPES.enum;else{if(!(e instanceof r.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.type);this.ptr.type=e.isGroup?t.TYPES.group:t.TYPES.message}}else if(this.ptr instanceof t.Reflect.Enum.Value);else if(this.ptr instanceof t.Reflect.Service.Method){if(!(this.ptr instanceof t.Reflect.Service.RPCMethod))throw Error("Illegal service type in "+this.ptr.toString(!0));if(!((e=this.ptr.parent.resolve(this.ptr.requestName))&&e instanceof t.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.requestName);if(this.ptr.resolvedRequestType=e,!((e=this.ptr.parent.resolve(this.ptr.responseName))&&e instanceof t.Reflect.Message))throw Error("Illegal type reference in "+this.ptr.toString(!0)+": "+this.ptr.responseName);this.ptr.resolvedResponseType=e}else if(!(this.ptr instanceof t.Reflect.Message.OneOf||this.ptr instanceof t.Reflect.Extension))throw Error("Illegal object in namespace: "+typeof this.ptr+":"+this.ptr);this.reset()}},o.build=function(e){if(this.reset(),this.resolved||(this.resolveAll(),this.resolved=!0,this.result=null),null==this.result&&(this.result=this.ns.build()),e){for(var t=e.split("."),n=this.result,r=0;r<t.length;r++){if(!n[t[r]]){n=null;break}n=n[t[r]]}return n}return this.result},o.lookup=function(e){return e?this.ns.resolve(e):this.ns},o.toString=function(){return"Builder"},i.Message=function(){},i.Service=function(){},i}(n,n.Lang,n.Reflect),n.loadProto=function(e,t,r){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(r=t,t=void 0),n.loadJson(new n.DotProto.Parser(e).parse(),t,r)},n.protoFromString=n.loadProto,n.loadProtoFile=function(e,t,r){if(t&&"object"==typeof t?(r=t,t=null):t&&"function"==typeof t||(t=null),t)return n.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,function(i){if(null===i)return void t(Error("Failed to fetch file"));try{t(null,n.loadProto(i,r,e))}catch(e){t(e)}});var i=n.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===i?null:n.loadProto(i,r,e)},n.protoFromFile=n.loadProtoFile,n.newBuilder=function(e){return e=e||{},void 0===e.convertFieldsToCamelCase&&(e.convertFieldsToCamelCase=n.convertFieldsToCamelCase),void 0===e.populateAccessors&&(e.populateAccessors=n.populateAccessors),new n.Builder(e)},n.loadJson=function(e,t,r){return("string"==typeof t||t&&"string"==typeof t.file&&"string"==typeof t.root)&&(r=t,t=null),t&&"object"==typeof t||(t=n.newBuilder()),"string"==typeof e&&(e=JSON.parse(e)),t.import(e,r),t.resolveAll(),t},n.loadJsonFile=function(e,t,r){if(t&&"object"==typeof t?(r=t,t=null):t&&"function"==typeof t||(t=null),t)return n.Util.fetch("string"==typeof e?e:e.root+"/"+e.file,function(i){if(null===i)return void t(Error("Failed to fetch file"));try{t(null,n.loadJson(JSON.parse(i),r,e))}catch(e){t(e)}});var i=n.Util.fetch("object"==typeof e?e.root+"/"+e.file:e);return null===i?null:n.loadJson(JSON.parse(i),r,e)},n}(e("bytebuffer-old-fixed-webpack"))}()},{"bytebuffer-old-fixed-webpack":69,path:122}],126:[function(e,t,n){var r=e("./dist/ProtoBuf.js");t.exports=r},{"./dist/ProtoBuf.js":125}],127:[function(e,t,n){function r(e){return e<s.OP_PUSHDATA1?1:e<=255?2:e<=65535?3:5}function i(e,t,n){var i=r(t);return 1===i?e.writeUInt8(t,n):2===i?(e.writeUInt8(s.OP_PUSHDATA1,n),e.writeUInt8(t,n+1)):3===i?(e.writeUInt8(s.OP_PUSHDATA2,n),e.writeUInt16LE(t,n+1)):(e.writeUInt8(s.OP_PUSHDATA4,n),e.writeUInt32LE(t,n+1)),i}function o(e,t){var n,r,i=e.readUInt8(t);if(i<s.OP_PUSHDATA1)n=i,r=1;else if(i===s.OP_PUSHDATA1){if(t+2>e.length)return null;n=e.readUInt8(t+1),r=2}else if(i===s.OP_PUSHDATA2){if(t+3>e.length)return null;n=e.readUInt16LE(t+1),r=3}else{if(t+5>e.length)return null;if(i!==s.OP_PUSHDATA4)throw new Error("Unexpected opcode");n=e.readUInt32LE(t+1),r=5}return{opcode:i,number:n,size:r}}var s=e("bitcoin-ops");t.exports={encodingLength:r,encode:i,decode:o}},{"bitcoin-ops":25}],128:[function(e,t,n){(function(n,r){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(e,t){if(e>65536)throw new Error("requested too many random bytes");var i=new r.Uint8Array(e);e>0&&a.getRandomValues(i);var o=s.from(i.buffer);return"function"==typeof t?n.nextTick(function(){t(null,o)}):o}var s=e("safe-buffer").Buffer,a=r.crypto||r.msCrypto;a&&a.getRandomValues?t.exports=o:t.exports=i}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:124,"safe-buffer":143}],129:[function(e,t,n){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":130}],130:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);f.call(this,e),c.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(e){e.end()}var s=e("process-nextick-args"),a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=r;var u=e("core-util-is");u.inherits=e("inherits");var f=e("./_stream_readable"),c=e("./_stream_writable");u.inherits(r,f);for(var l=a(c.prototype),h=0;h<l.length;h++){var p=l[h];r.prototype[p]||(r.prototype[p]=c.prototype[p])}Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),r.prototype._destroy=function(e,t){this.push(null),this.end(),s(t,e)}},{"./_stream_readable":132,"./_stream_writable":134,"core-util-is":71,inherits:103,"process-nextick-args":123}],131:[function(e,t,n){"use strict";function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}t.exports=r;var i=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":133,"core-util-is":71,inherits:103}],132:[function(e,t,n){(function(n,r){"use strict";function i(e){return D.from(e)}function o(e){return D.isBuffer(e)||e instanceof C}function s(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?R(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function a(t,n){L=L||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof L&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(q||(q=e("string_decoder/").StringDecoder),this.decoder=new q(t.encoding),this.encoding=t.encoding)}function u(t){if(L=L||e("./_stream_duplex"),!(this instanceof u))return new u(t);this._readableState=new a(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),U.call(this)}function f(e,t,n,r,o){var s=e._readableState;if(null===t)s.reading=!1,y(e,s);else{var a;o||(a=l(s,t)),a?e.emit("error",a):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===D.prototype||(t=i(t)),r?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):c(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?c(e,s,t,!1):b(e,s)):c(e,s,t,!1))):r||(s.reading=!1)}return h(s)}function c(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&v(e)),b(e,t)}function l(e,t){var n;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function h(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}function p(e){return e>=Y?e=Y:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function d(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=p(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function y(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,v(e)}}function v(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(z("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?N(g,e):g(e))}function g(e){z("emit readable"),e.emit("readable"),S(e)}function b(e,t){t.readingMore||(t.readingMore=!0,N(m,e,t))}function m(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(z("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function w(e){return function(){var t=e._readableState;z("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&B(e,"data")&&(t.flowing=!0,S(e))}}function E(e){z("readable nexttick read 0"),e.read(0)}function _(e,t){t.resumeScheduled||(t.resumeScheduled=!0,N(T,e,t))}function T(e,t){t.reading||(z("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),S(e),t.flowing&&!t.reading&&e.read(0)}function S(e){var t=e._readableState;for(z("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){if(0===t.length)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=O(e,t.buffer,t.decoder),n}function O(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?I(e,t):k(e,t),r}function I(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}function k(e,t){var n=D.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),0===(e-=s)){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}function x(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,N(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function A(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}var N=e("process-nextick-args");t.exports=u;var L,R=e("isarray");u.ReadableState=a;var B=(e("events").EventEmitter,function(e,t){return e.listeners(t).length}),U=e("./internal/streams/stream"),D=e("safe-buffer").Buffer,C=r.Uint8Array||function(){},M=e("core-util-is");M.inherits=e("inherits");var F=e("util"),z=void 0;z=F&&F.debuglog?F.debuglog("stream"):function(){};var q,H=e("./internal/streams/BufferList"),$=e("./internal/streams/destroy");M.inherits(u,U);var V=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),u.prototype.destroy=$.destroy,u.prototype._undestroy=$.undestroy,u.prototype._destroy=function(e,t){this.push(null),t(e)},u.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=D.from(e,t),t=""),n=!0),f(this,e,t,!1,n)},u.prototype.unshift=function(e){return f(this,e,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return q||(q=e("string_decoder/").StringDecoder),this._readableState.decoder=new q(t),this._readableState.encoding=t,this};var Y=8388608;u.prototype.read=function(e){z("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return z("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?x(this):v(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&x(this),null;var r=t.needReadable;z("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,z("length less than watermark",r)),t.ended||t.reading?(r=!1,z("reading or ended",r)):r&&(z("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=d(n,t)));var i;return i=e>0?P(e,t):null,null===i?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&x(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){z("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){z("onend"),e.end()}function o(){z("cleanup"),e.removeListener("close",f),e.removeListener("finish",c),e.removeListener("drain",v),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",l),h.removeListener("data",a),g=!0,!p.awaitDrain||e._writableState&&!e._writableState.needDrain||v()}function a(t){z("ondata"),b=!1,!1!==e.write(t)||b||((1===p.pipesCount&&p.pipes===e||p.pipesCount>1&&-1!==A(p.pipes,e))&&!g&&(z("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,b=!0),h.pause())}function u(t){z("onerror",t),l(),e.removeListener("error",u),0===B(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",c),l()}function c(){z("onfinish"),e.removeListener("close",f),l()}function l(){z("unpipe"),h.unpipe(e)}var h=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=e;break;case 1:p.pipes=[p.pipes,e];break;default:p.pipes.push(e)}p.pipesCount+=1,z("pipe count=%d opts=%j",p.pipesCount,t);var d=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,y=d?i:l;p.endEmitted?N(y):h.once("end",y),e.on("unpipe",r);var v=w(h);e.on("drain",v);var g=!1,b=!1;return h.on("data",a),s(e,"error",u),e.once("close",f),e.once("finish",c),e.emit("pipe",h),p.flowing||(z("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=A(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},
|
||
u.prototype.on=function(e,t){var n=U.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&v(this):N(E,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var e=this._readableState;return e.flowing||(z("resume"),e.flowing=!0,_(this,e)),this},u.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(z("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;e.on("end",function(){if(z("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){if(z("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)){r.push(i)||(n=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<V.length;o++)e.on(V[o],r.emit.bind(r,V[o]));return r._read=function(t){z("wrapped _read",t),n&&(n=!1,e.resume())},r},u._fromList=P}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":130,"./internal/streams/BufferList":135,"./internal/streams/destroy":136,"./internal/streams/stream":137,_process:124,"core-util-is":71,events:96,inherits:103,isarray:109,"process-nextick-args":123,"safe-buffer":143,"string_decoder/":154,util:64}],133:[function(e,t,n){"use strict";function r(e){this.afterTransform=function(t,n){return i(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&e.push(n),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);a.call(this,e),this._transformState=new r(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!==n&&void 0!==n&&e.push(n);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}t.exports=o;var a=e("./_stream_duplex"),u=e("core-util-is");u.inherits=e("inherits"),u.inherits(o,a),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,a.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var n=this;a.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},{"./_stream_duplex":130,"core-util-is":71,inherits:103}],134:[function(e,t,n){(function(n,r){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){O(t,e)}}function o(e){return L.from(e)}function s(e){return L.isBuffer(e)||e instanceof R}function a(){}function u(t,n){k=k||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,n instanceof k&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){g(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function f(t){if(k=k||e("./_stream_duplex"),!(U.call(f,this)||this instanceof k))return new f(t);this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),N.call(this)}function c(e,t){var n=new Error("write after end");e.emit("error",n),I(t,n)}function l(e,t,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),I(r,o),i=!1),i}function h(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=L.from(t,n)),t}function p(e,t,n,r,i,o){if(!n){var s=h(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else d(e,t,!1,a,r,i,o);return u}function d(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function y(e,t,n,r,i){--t.pendingcb,n?(I(i,r),I(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}function v(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function g(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(v(n),t)y(e,n,r,t,i);else{var o=E(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?x(b,e,n,o,i):b(e,n,o,i)}}function b(e,t,n,r){n||m(e,t),t.pendingcb--,r(),S(e,t)}function m(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),s=t.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,d(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t)}else{for(;n;){var f=n.chunk,c=n.encoding,l=n.callback;if(d(e,t,!1,t.objectMode?1:f.length,f,c,l),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function T(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,I(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function S(e,t){var n=E(t);return n&&(T(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}function P(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?I(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function O(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}var I=e("process-nextick-args");t.exports=f;var k,x=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?setImmediate:I;f.WritableState=u;var j=e("core-util-is");j.inherits=e("inherits");var A={deprecate:e("util-deprecate")},N=e("./internal/streams/stream"),L=e("safe-buffer").Buffer,R=r.Uint8Array||function(){},B=e("./internal/streams/destroy");j.inherits(f,N),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var U;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(U=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(e){return!!U.call(this,e)||e&&e._writableState instanceof u}})):U=function(e){return e instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(e,t,n){var r=this._writableState,i=!1,u=s(e)&&!r.objectMode;return u&&!L.isBuffer(e)&&(e=o(e)),"function"==typeof t&&(n=t,t=null),u?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=a),r.ended?c(this,n):(u||l(this,r,e,n))&&(r.pendingcb++,i=p(this,r,u,e,t,n)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},f.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},f.prototype._writev=null,f.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||P(this,r,n)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),f.prototype.destroy=B.destroy,f.prototype._undestroy=B.undestroy,f.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":130,"./internal/streams/destroy":136,"./internal/streams/stream":137,_process:124,"core-util-is":71,inherits:103,"process-nextick-args":123,"safe-buffer":143,"util-deprecate":181}],135:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){e.copy(t,n)}var o=e("safe-buffer").Buffer;t.exports=function(){function e(){r(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),n=this.head,r=0;n;)i(n.data,t,r),r+=n.data.length,n=n.next;return t},e}()},{"safe-buffer":143}],136:[function(e,t,n){"use strict";function r(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(r||i)return void(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||s(o,this,e));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(s(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}var s=e("process-nextick-args");t.exports={destroy:r,undestroy:i}},{"process-nextick-args":123}],137:[function(e,t,n){t.exports=e("events").EventEmitter},{events:96}],138:[function(e,t,n){t.exports=e("./readable").PassThrough},{"./readable":139}],139:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":130,"./lib/_stream_passthrough.js":131,"./lib/_stream_readable.js":132,"./lib/_stream_transform.js":133,"./lib/_stream_writable.js":134}],140:[function(e,t,n){t.exports=e("./readable").Transform},{"./readable":139}],141:[function(e,t,n){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":134}],142:[function(e,t,n){(function(n){"use strict";function r(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(e,t){return e<<t|e>>>32-t}function o(e,t,n,r,o,s,a,u){return i(e+(t^n^r)+s+a|0,u)+o|0}function s(e,t,n,r,o,s,a,u){return i(e+(t&n|~t&r)+s+a|0,u)+o|0}function a(e,t,n,r,o,s,a,u){return i(e+((t|~n)^r)+s+a|0,u)+o|0}function u(e,t,n,r,o,s,a,u){return i(e+(t&r|n&~r)+s+a|0,u)+o|0}function f(e,t,n,r,o,s,a,u){return i(e+(t^(n|~r))+s+a|0,u)+o|0}var c=e("inherits"),l=e("hash-base");c(r,l),r.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,c=this._c,l=this._d,h=this._e;n=o(n,r,c,l,h,e[0],0,11),c=i(c,10),h=o(h,n,r,c,l,e[1],0,14),r=i(r,10),l=o(l,h,n,r,c,e[2],0,15),n=i(n,10),c=o(c,l,h,n,r,e[3],0,12),h=i(h,10),r=o(r,c,l,h,n,e[4],0,5),l=i(l,10),n=o(n,r,c,l,h,e[5],0,8),c=i(c,10),h=o(h,n,r,c,l,e[6],0,7),r=i(r,10),l=o(l,h,n,r,c,e[7],0,9),n=i(n,10),c=o(c,l,h,n,r,e[8],0,11),h=i(h,10),r=o(r,c,l,h,n,e[9],0,13),l=i(l,10),n=o(n,r,c,l,h,e[10],0,14),c=i(c,10),h=o(h,n,r,c,l,e[11],0,15),r=i(r,10),l=o(l,h,n,r,c,e[12],0,6),n=i(n,10),c=o(c,l,h,n,r,e[13],0,7),h=i(h,10),r=o(r,c,l,h,n,e[14],0,9),l=i(l,10),n=o(n,r,c,l,h,e[15],0,8),c=i(c,10),h=s(h,n,r,c,l,e[7],1518500249,7),r=i(r,10),l=s(l,h,n,r,c,e[4],1518500249,6),n=i(n,10),c=s(c,l,h,n,r,e[13],1518500249,8),h=i(h,10),r=s(r,c,l,h,n,e[1],1518500249,13),l=i(l,10),n=s(n,r,c,l,h,e[10],1518500249,11),c=i(c,10),h=s(h,n,r,c,l,e[6],1518500249,9),r=i(r,10),l=s(l,h,n,r,c,e[15],1518500249,7),n=i(n,10),c=s(c,l,h,n,r,e[3],1518500249,15),h=i(h,10),r=s(r,c,l,h,n,e[12],1518500249,7),l=i(l,10),n=s(n,r,c,l,h,e[0],1518500249,12),c=i(c,10),h=s(h,n,r,c,l,e[9],1518500249,15),r=i(r,10),l=s(l,h,n,r,c,e[5],1518500249,9),n=i(n,10),c=s(c,l,h,n,r,e[2],1518500249,11),h=i(h,10),r=s(r,c,l,h,n,e[14],1518500249,7),l=i(l,10),n=s(n,r,c,l,h,e[11],1518500249,13),c=i(c,10),h=s(h,n,r,c,l,e[8],1518500249,12),r=i(r,10),l=a(l,h,n,r,c,e[3],1859775393,11),n=i(n,10),c=a(c,l,h,n,r,e[10],1859775393,13),h=i(h,10),r=a(r,c,l,h,n,e[14],1859775393,6),l=i(l,10),n=a(n,r,c,l,h,e[4],1859775393,7),c=i(c,10),h=a(h,n,r,c,l,e[9],1859775393,14),r=i(r,10),l=a(l,h,n,r,c,e[15],1859775393,9),n=i(n,10),c=a(c,l,h,n,r,e[8],1859775393,13),h=i(h,10),r=a(r,c,l,h,n,e[1],1859775393,15),l=i(l,10),n=a(n,r,c,l,h,e[2],1859775393,14),c=i(c,10),h=a(h,n,r,c,l,e[7],1859775393,8),r=i(r,10),l=a(l,h,n,r,c,e[0],1859775393,13),n=i(n,10),c=a(c,l,h,n,r,e[6],1859775393,6),h=i(h,10),r=a(r,c,l,h,n,e[13],1859775393,5),l=i(l,10),n=a(n,r,c,l,h,e[11],1859775393,12),c=i(c,10),h=a(h,n,r,c,l,e[5],1859775393,7),r=i(r,10),l=a(l,h,n,r,c,e[12],1859775393,5),n=i(n,10),c=u(c,l,h,n,r,e[1],2400959708,11),h=i(h,10),r=u(r,c,l,h,n,e[9],2400959708,12),l=i(l,10),n=u(n,r,c,l,h,e[11],2400959708,14),c=i(c,10),h=u(h,n,r,c,l,e[10],2400959708,15),r=i(r,10),l=u(l,h,n,r,c,e[0],2400959708,14),n=i(n,10),c=u(c,l,h,n,r,e[8],2400959708,15),h=i(h,10),r=u(r,c,l,h,n,e[12],2400959708,9),l=i(l,10),n=u(n,r,c,l,h,e[4],2400959708,8),c=i(c,10),h=u(h,n,r,c,l,e[13],2400959708,9),r=i(r,10),l=u(l,h,n,r,c,e[3],2400959708,14),n=i(n,10),c=u(c,l,h,n,r,e[7],2400959708,5),h=i(h,10),r=u(r,c,l,h,n,e[15],2400959708,6),l=i(l,10),n=u(n,r,c,l,h,e[14],2400959708,8),c=i(c,10),h=u(h,n,r,c,l,e[5],2400959708,6),r=i(r,10),l=u(l,h,n,r,c,e[6],2400959708,5),n=i(n,10),c=u(c,l,h,n,r,e[2],2400959708,12),h=i(h,10),r=f(r,c,l,h,n,e[4],2840853838,9),l=i(l,10),n=f(n,r,c,l,h,e[0],2840853838,15),c=i(c,10),h=f(h,n,r,c,l,e[5],2840853838,5),r=i(r,10),l=f(l,h,n,r,c,e[9],2840853838,11),n=i(n,10),c=f(c,l,h,n,r,e[7],2840853838,6),h=i(h,10),r=f(r,c,l,h,n,e[12],2840853838,8),l=i(l,10),n=f(n,r,c,l,h,e[2],2840853838,13),c=i(c,10),h=f(h,n,r,c,l,e[10],2840853838,12),r=i(r,10),l=f(l,h,n,r,c,e[14],2840853838,5),n=i(n,10),c=f(c,l,h,n,r,e[1],2840853838,12),h=i(h,10),r=f(r,c,l,h,n,e[3],2840853838,13),l=i(l,10),n=f(n,r,c,l,h,e[8],2840853838,14),c=i(c,10),h=f(h,n,r,c,l,e[11],2840853838,11),r=i(r,10),l=f(l,h,n,r,c,e[6],2840853838,8),n=i(n,10),c=f(c,l,h,n,r,e[15],2840853838,5),h=i(h,10),r=f(r,c,l,h,n,e[13],2840853838,6),l=i(l,10);var p=this._a,d=this._b,y=this._c,v=this._d,g=this._e;p=f(p,d,y,v,g,e[5],1352829926,8),y=i(y,10),g=f(g,p,d,y,v,e[14],1352829926,9),d=i(d,10),v=f(v,g,p,d,y,e[7],1352829926,9),p=i(p,10),y=f(y,v,g,p,d,e[0],1352829926,11),g=i(g,10),d=f(d,y,v,g,p,e[9],1352829926,13),v=i(v,10),p=f(p,d,y,v,g,e[2],1352829926,15),y=i(y,10),g=f(g,p,d,y,v,e[11],1352829926,15),d=i(d,10),v=f(v,g,p,d,y,e[4],1352829926,5),p=i(p,10),y=f(y,v,g,p,d,e[13],1352829926,7),g=i(g,10),d=f(d,y,v,g,p,e[6],1352829926,7),v=i(v,10),p=f(p,d,y,v,g,e[15],1352829926,8),y=i(y,10),g=f(g,p,d,y,v,e[8],1352829926,11),d=i(d,10),v=f(v,g,p,d,y,e[1],1352829926,14),p=i(p,10),y=f(y,v,g,p,d,e[10],1352829926,14),g=i(g,10),d=f(d,y,v,g,p,e[3],1352829926,12),v=i(v,10),p=f(p,d,y,v,g,e[12],1352829926,6),y=i(y,10),g=u(g,p,d,y,v,e[6],1548603684,9),d=i(d,10),v=u(v,g,p,d,y,e[11],1548603684,13),p=i(p,10),y=u(y,v,g,p,d,e[3],1548603684,15),g=i(g,10),d=u(d,y,v,g,p,e[7],1548603684,7),v=i(v,10),p=u(p,d,y,v,g,e[0],1548603684,12),y=i(y,10),g=u(g,p,d,y,v,e[13],1548603684,8),d=i(d,10),v=u(v,g,p,d,y,e[5],1548603684,9),p=i(p,10),y=u(y,v,g,p,d,e[10],1548603684,11),g=i(g,10),d=u(d,y,v,g,p,e[14],1548603684,7),v=i(v,10),p=u(p,d,y,v,g,e[15],1548603684,7),y=i(y,10),g=u(g,p,d,y,v,e[8],1548603684,12),d=i(d,10),v=u(v,g,p,d,y,e[12],1548603684,7),p=i(p,10),y=u(y,v,g,p,d,e[4],1548603684,6),g=i(g,10),d=u(d,y,v,g,p,e[9],1548603684,15),v=i(v,10),p=u(p,d,y,v,g,e[1],1548603684,13),y=i(y,10),g=u(g,p,d,y,v,e[2],1548603684,11),d=i(d,10),v=a(v,g,p,d,y,e[15],1836072691,9),p=i(p,10),y=a(y,v,g,p,d,e[5],1836072691,7),g=i(g,10),d=a(d,y,v,g,p,e[1],1836072691,15),v=i(v,10),p=a(p,d,y,v,g,e[3],1836072691,11),y=i(y,10),g=a(g,p,d,y,v,e[7],1836072691,8),d=i(d,10),v=a(v,g,p,d,y,e[14],1836072691,6),p=i(p,10),y=a(y,v,g,p,d,e[6],1836072691,6),g=i(g,10),d=a(d,y,v,g,p,e[9],1836072691,14),v=i(v,10),p=a(p,d,y,v,g,e[11],1836072691,12),y=i(y,10),g=a(g,p,d,y,v,e[8],1836072691,13),d=i(d,10),v=a(v,g,p,d,y,e[12],1836072691,5),p=i(p,10),y=a(y,v,g,p,d,e[2],1836072691,14),g=i(g,10),d=a(d,y,v,g,p,e[10],1836072691,13),v=i(v,10),p=a(p,d,y,v,g,e[0],1836072691,13),y=i(y,10),g=a(g,p,d,y,v,e[4],1836072691,7),d=i(d,10),v=a(v,g,p,d,y,e[13],1836072691,5),p=i(p,10),y=s(y,v,g,p,d,e[8],2053994217,15),g=i(g,10),d=s(d,y,v,g,p,e[6],2053994217,5),v=i(v,10),p=s(p,d,y,v,g,e[4],2053994217,8),y=i(y,10),g=s(g,p,d,y,v,e[1],2053994217,11),d=i(d,10),v=s(v,g,p,d,y,e[3],2053994217,14),p=i(p,10),y=s(y,v,g,p,d,e[11],2053994217,14),g=i(g,10),d=s(d,y,v,g,p,e[15],2053994217,6),v=i(v,10),p=s(p,d,y,v,g,e[0],2053994217,14),y=i(y,10),g=s(g,p,d,y,v,e[5],2053994217,6),d=i(d,10),v=s(v,g,p,d,y,e[12],2053994217,9),p=i(p,10),y=s(y,v,g,p,d,e[2],2053994217,12),g=i(g,10),d=s(d,y,v,g,p,e[13],2053994217,9),v=i(v,10),p=s(p,d,y,v,g,e[9],2053994217,12),y=i(y,10),g=s(g,p,d,y,v,e[7],2053994217,5),d=i(d,10),v=s(v,g,p,d,y,e[10],2053994217,15),p=i(p,10),y=s(y,v,g,p,d,e[14],2053994217,8),g=i(g,10),d=o(d,y,v,g,p,e[12],0,8),v=i(v,10),p=o(p,d,y,v,g,e[15],0,5),y=i(y,10),g=o(g,p,d,y,v,e[10],0,12),d=i(d,10),v=o(v,g,p,d,y,e[4],0,9),p=i(p,10),y=o(y,v,g,p,d,e[1],0,12),g=i(g,10),d=o(d,y,v,g,p,e[5],0,5),v=i(v,10),p=o(p,d,y,v,g,e[8],0,14),y=i(y,10),g=o(g,p,d,y,v,e[7],0,6),d=i(d,10),v=o(v,g,p,d,y,e[6],0,8),p=i(p,10),y=o(y,v,g,p,d,e[2],0,13),g=i(g,10),d=o(d,y,v,g,p,e[13],0,6),v=i(v,10),p=o(p,d,y,v,g,e[14],0,5),y=i(y,10),g=o(g,p,d,y,v,e[0],0,15),d=i(d,10),v=o(v,g,p,d,y,e[3],0,13),p=i(p,10),y=o(y,v,g,p,d,e[9],0,11),g=i(g,10),d=o(d,y,v,g,p,e[11],0,11),v=i(v,10);var b=this._b+c+v|0;this._b=this._c+l+g|0,this._c=this._d+h+p|0,this._d=this._e+n+d|0,this._e=this._a+r+y|0,this._a=b},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=r}).call(this,e("buffer").Buffer)},{buffer:68,"hash-base":101,inherits:103}],143:[function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return s(e,t,n)}var o=e("buffer"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,n),n.Buffer=i),r(s,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return s(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=s(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return s(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:68}],144:[function(e,t,n){t.exports=function(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(r[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}},{}],145:[function(e,t,n){function r(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var i=e("safe-buffer").Buffer;r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var n=this._block,r=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var u=s%r,f=Math.min(o-a,r-u),c=0;c<f;c++)n[u+c]=e[a+c];s+=f,a+=f,s%r==0&&this._update(n)}return this._len+=o,this},r.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=4294967295&n,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},{"safe-buffer":143}],146:[function(e,t,n){var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":147,"./sha1":148,"./sha224":149,"./sha256":150,"./sha384":151,"./sha512":152}],147:[function(e,t,n){function r(){this.init(),this._w=l,u.call(this,64,56)}function i(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function s(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var a=e("inherits"),u=e("./hash"),f=e("safe-buffer").Buffer,c=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);a(r,u),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,a=0|this._c,u=0|this._d,f=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var h=0;h<80;++h){var p=~~(h/20),d=i(n)+s(p,r,a,u)+f+t[h]+c[p]|0;f=u,u=a,a=o(r),r=n,n=d}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=u+this._d|0,this._e=f+this._e|0},r.prototype._hash=function(){var e=f.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=r},{"./hash":145,inherits:103,"safe-buffer":143}],148:[function(e,t,n){function r(){this.init(),this._w=h,f.call(this,64,56)}function i(e){return e<<1|e>>>31}function o(e){return e<<5|e>>>27}function s(e){return e<<30|e>>>2}function a(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}var u=e("inherits"),f=e("./hash"),c=e("safe-buffer").Buffer,l=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);u(r,f),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,u=0|this._c,f=0|this._d,c=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=i(t[h-3]^t[h-8]^t[h-14]^t[h-16]);for(var p=0;p<80;++p){var d=~~(p/20),y=o(n)+a(d,r,u,f)+c+t[p]+l[d]|0;c=f,f=u,u=s(r),r=n,n=y}this._a=n+this._a|0,this._b=r+this._b|0,this._c=u+this._c|0,this._d=f+this._d|0,this._e=c+this._e|0},r.prototype._hash=function(){var e=c.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=r},{"./hash":145,inherits:103,"safe-buffer":143}],149:[function(e,t,n){function r(){this.init(),this._w=u,s.call(this,64,56)}var i=e("inherits"),o=e("./sha256"),s=e("./hash"),a=e("safe-buffer").Buffer,u=new Array(64);i(r,o),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=r},{"./hash":145,"./sha256":150,inherits:103,"safe-buffer":143}],150:[function(e,t,n){function r(){this.init(),this._w=d,l.call(this,64,56)}function i(e,t,n){return n^e&(t^n)}function o(e,t,n){return e&t|n&(e|t)}function s(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function a(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function u(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function f(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var c=e("inherits"),l=e("./hash"),h=e("safe-buffer").Buffer,p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=new Array(64);c(r,l),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._a,r=0|this._b,c=0|this._c,l=0|this._d,h=0|this._e,d=0|this._f,y=0|this._g,v=0|this._h,g=0;g<16;++g)t[g]=e.readInt32BE(4*g);for(;g<64;++g)t[g]=f(t[g-2])+t[g-7]+u(t[g-15])+t[g-16]|0;for(var b=0;b<64;++b){var m=v+a(h)+i(h,d,y)+p[b]+t[b]|0,w=s(n)+o(n,r,c)|0;v=y,y=d,d=h,h=l+m|0,l=c,c=r,r=n,n=m+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=c+this._c|0,this._d=l+this._d|0,this._e=h+this._e|0,this._f=d+this._f|0,this._g=y+this._g|0,this._h=v+this._h|0},r.prototype._hash=function(){var e=h.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=r},{"./hash":145,inherits:103,"safe-buffer":143}],151:[function(e,t,n){function r(){this.init(),this._w=u,s.call(this,128,112)}var i=e("inherits"),o=e("./sha512"),s=e("./hash"),a=e("safe-buffer").Buffer,u=new Array(160);i(r,o),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=a.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=r},{"./hash":145,"./sha512":152,inherits:103,"safe-buffer":143}],152:[function(e,t,n){function r(){this.init(),this._w=g,d.call(this,128,112)}function i(e,t,n){return n^e&(t^n)}function o(e,t,n){return e&t|n&(e|t)}function s(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function a(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function c(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0<t>>>0?1:0}
|
||
var p=e("inherits"),d=e("./hash"),y=e("safe-buffer").Buffer,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],g=new Array(160);p(r,d),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,p=0|this._ch,d=0|this._dh,y=0|this._eh,g=0|this._fh,b=0|this._gh,m=0|this._hh,w=0|this._al,E=0|this._bl,_=0|this._cl,T=0|this._dl,S=0|this._el,P=0|this._fl,O=0|this._gl,I=0|this._hl,k=0;k<32;k+=2)t[k]=e.readInt32BE(4*k),t[k+1]=e.readInt32BE(4*k+4);for(;k<160;k+=2){var x=t[k-30],j=t[k-30+1],A=u(x,j),N=f(j,x);x=t[k-4],j=t[k-4+1];var L=c(x,j),R=l(j,x),B=t[k-14],U=t[k-14+1],D=t[k-32],C=t[k-32+1],M=N+U|0,F=A+B+h(M,N)|0;M=M+R|0,F=F+L+h(M,R)|0,M=M+C|0,F=F+D+h(M,C)|0,t[k]=F,t[k+1]=M}for(var z=0;z<160;z+=2){F=t[z],M=t[z+1];var q=o(n,r,p),H=o(w,E,_),$=s(n,w),V=s(w,n),Y=a(y,S),W=a(S,y),K=v[z],G=v[z+1],Z=i(y,g,b),X=i(S,P,O),J=I+W|0,Q=m+Y+h(J,I)|0;J=J+X|0,Q=Q+Z+h(J,X)|0,J=J+G|0,Q=Q+K+h(J,G)|0,J=J+M|0,Q=Q+F+h(J,M)|0;var ee=V+H|0,te=$+q+h(ee,V)|0;m=b,I=O,b=g,O=P,g=y,P=S,S=T+J|0,y=d+Q+h(S,T)|0,d=p,T=_,p=r,_=E,r=n,E=w,w=J+ee|0,n=Q+te+h(w,J)|0}this._al=this._al+w|0,this._bl=this._bl+E|0,this._cl=this._cl+_|0,this._dl=this._dl+T|0,this._el=this._el+S|0,this._fl=this._fl+P|0,this._gl=this._gl+O|0,this._hl=this._hl+I|0,this._ah=this._ah+n+h(this._al,w)|0,this._bh=this._bh+r+h(this._bl,E)|0,this._ch=this._ch+p+h(this._cl,_)|0,this._dh=this._dh+d+h(this._dl,T)|0,this._eh=this._eh+y+h(this._el,S)|0,this._fh=this._fh+g+h(this._fl,P)|0,this._gh=this._gh+b+h(this._gl,O)|0,this._hh=this._hh+m+h(this._hl,I)|0},r.prototype._hash=function(){function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}var t=y.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=r},{"./hash":145,inherits:103,"safe-buffer":143}],153:[function(e,t,n){function r(){i.call(this)}t.exports=r;var i=e("events").EventEmitter;e("inherits")(r,i),r.Readable=e("readable-stream/readable.js"),r.Writable=e("readable-stream/writable.js"),r.Duplex=e("readable-stream/duplex.js"),r.Transform=e("readable-stream/transform.js"),r.PassThrough=e("readable-stream/passthrough.js"),r.Stream=r,r.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&f.pause&&f.pause()}function r(){f.readable&&f.resume&&f.resume()}function o(){c||(c=!0,e.end())}function s(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(u(),0===i.listenerCount(this,"error"))throw e}function u(){f.removeListener("data",n),e.removeListener("drain",r),f.removeListener("end",o),f.removeListener("close",s),f.removeListener("error",a),e.removeListener("error",a),f.removeListener("end",u),f.removeListener("close",u),e.removeListener("close",u)}var f=this;f.on("data",n),e.on("drain",r),e._isStdio||t&&!1===t.end||(f.on("end",o),f.on("close",s));var c=!1;return f.on("error",a),e.on("error",a),f.on("end",u),f.on("close",u),e.on("close",u),e.emit("pipe",f),e}},{events:96,inherits:103,"readable-stream/duplex.js":129,"readable-stream/passthrough.js":138,"readable-stream/readable.js":139,"readable-stream/transform.js":140,"readable-stream/writable.js":141}],154:[function(e,t,n){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=r(e);if("string"!=typeof t&&(b.isEncoding===m||!m(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){this.encoding=i(e);var t;switch(this.encoding){case"utf16le":this.text=h,this.end=p,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=d,this.end=y,t=3;break;default:return this.write=v,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function a(e,t,n){var r=t.length-1;if(r<n)return 0;var i=s(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n?0:(i=s(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n?0:(i=s(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0)}function u(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"<22>".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>".repeat(n+2)}}function f(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){var n=a(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>".repeat(this.lastTotal-this.lastNeed):t}function h(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}var b=e("safe-buffer").Buffer,m=b.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=l,o.prototype.text=c,o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":143}],155:[function(e,t,n){(function(e){"use strict";function t(e){u=e}function r(e){return"string"==typeof e?""===e?"text/plain":"application/octet-stream":"application/json"}function i(e){return"string"==typeof e?e:JSON.stringify(e)}function o(e){try{return JSON.parse(e)}catch(t){return e}}function s(e){return new Promise(function(t,n){var s,a,f;return u(e.url,{method:e.method,headers:{"Content-Type":r(e.body||"")},body:i(e.body)}).then(function(e){return s=e,s.text().then(function(e){return a=e,s.ok?t(o(a)):(f=o(a),n("object"==typeof f&&null!=f&&null!=f.error?new Error(f.error):new Error(a)))}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.setFetch=t,n.request=s,Function.prototype.$asyncbind=function t(n,r){function i(){return o.apply(n,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:t,enumerable:!1,configurable:!0,writable:!0}),t.trampoline||(t.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),t.LazyThenable||(t.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),t.EagerThenable=t.Thenable=(t.EagerThenableFactory=function(t){function n(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function r(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}t=t||"object"===(void 0===e?"undefined":a(e))&&e.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function e(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&t(e)}}();return n.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":a(e))))try{var n=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){n++||t.resolve(e)},function(e){n++||t.reject(e)})}catch(e){return void(n||this.reject(e))}this.state=r,this.v=e,t.c&&o(function(){for(var n=0,i=t.c.length;n<i;n++)r(t.c[n],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,t){var r=new n,i={y:e,n:t,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},n.resolve=function(e){if(e&&e instanceof n)return e;var t=new n;return t.resolve(e),t},n.reject=function(e){if(e&&e instanceof n)return e;var t=new n;return t.reject(e),t},n.version="2.3.3-nodent",n})());var o=this;switch(r){case!0:return new t.Thenable(i);case 0:return new t.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(n,arguments)}catch(e){return r(e)}}}};var u="undefined"==typeof window?function(){return Promise.reject()}:window.fetch}).call(this,e("_process"))},{_process:124}],156:[function(e,t,n){(function(r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=e("semver-compare"),l=function(e){return e&&e.__esModule?e:{default:e}}(c),h=e("./http"),p=e("../highlevel-checks"),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(p),y=e("../debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return o.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":s(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":s(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&o(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var o=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(t,arguments)}catch(e){return n(e)}}}};var v="https://localback.net:21324",g="https://wallet.trezor.io/data/bridge/latest.txt",b=(a=function(){function e(t,n){i(this,e),this.name="BridgeTransport",this.version="",this.configured=!1,this.debug=!1,this.requestNeeded=!1,this.url=null==t?v:t,this.newestVersionUrl=null==n?g:n}return f(e,[{key:"_post",value:function(e){return new Promise(function(t,n){return(0,h.request)(u({},e,{method:"POST",url:this.url+e.url})).then(t,n)}.$asyncbind(this))}},{key:"_get",value:function(e){return new Promise(function(t,n){return(0,h.request)(u({},e,{method:"GET",url:this.url+e.url})).then(t,n)}.$asyncbind(this))}},{key:"init",value:function(e){return new Promise(function(t,n){return this.debug=!!e,this._silentInit().then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"_silentInit",value:function(){return new Promise(function(e,t){var n,r,i;return(0,h.request)({url:this.url,method:"GET"}).then(function(o){return n=o,r=d.info(n),this.version=r.version,this.configured=r.configured,(0,h.request)({url:this.newestVersionUrl+"?"+Date.now(),method:"GET"}).then(function(t){return i=d.version(t),this.isOutdated=(0,l.default)(this.version,i)<0,e()}.$asyncbind(this,t),t)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"configure",value:function(e){return new Promise(function(t,n){return this._post({url:"/configure",body:e}).then(function(e){return this._silentInit().then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"listen",value:function(e){return new Promise(function(t,n){var r,i;return(null==e?this._get({url:"/listen"}):this._post({url:"/listen",body:e.map(function(e){return u({},e,{product:1,vendor:21324})})})).then(function(e){return r=e,i=d.devices(r),t(i)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"enumerate",value:function(){return new Promise(function(e,t){var n,r;return this._get({url:"/enumerate"}).then(function(t){return n=t,r=d.devices(n),e(r)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"_acquireMixed",value:function(e){return new Promise(function(t,n){if(e.checkPrevious&&(0,l.default)(this.version,"1.1.3")>=0){var r=null==e.previous?"null":e.previous,i="/acquire/"+e.path+"/"+r;return t(this._post({url:i}))}return t(this._post({url:"/acquire/"+e.path}))}.$asyncbind(this))}},{key:"acquire",value:function(e){return new Promise(function(t,n){var r;return this._acquireMixed(e).then(function(e){return r=e,t(d.acquire(r))}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"release",value:function(e){return new Promise(function(t,n){return this._post({url:"/release/"+e}).then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"call",value:function(e,t,n){return new Promise(function(r,i){var o;return this._post({url:"/call/"+e,body:{type:t,message:n}}).then(function(e){return o=e,r(d.call(o))}.$asyncbind(this,i),i)}.$asyncbind(this))}},{key:"requestDevice",value:function(){return Promise.reject()}}],[{key:"setFetch",value:function(e){(0,h.setFetch)(e)}}]),e}(),o(a.prototype,"init",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"init"),a.prototype),o(a.prototype,"configure",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"configure"),a.prototype),o(a.prototype,"listen",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"listen"),a.prototype),o(a.prototype,"enumerate",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"enumerate"),a.prototype),o(a.prototype,"acquire",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"acquire"),a.prototype),o(a.prototype,"release",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"release"),a.prototype),o(a.prototype,"call",[y.debugInOut],Object.getOwnPropertyDescriptor(a.prototype,"call"),a.prototype),a);n.default=b,t.exports=n.default}).call(this,e("_process"))},{"../debug-decorator":157,"../highlevel-checks":162,"./http":155,_process:124,"semver-compare":144}],157:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){var i=n.value;return n.value=function(){var e=this.debug||"init"===t&&arguments[0],n=this.name,o=Array.prototype.slice.call(arguments);if(e){var s;(s=console).log.apply(s,["[trezor-link] Calling "+n+"."+t+"("].concat(r(o.map(function(e){return"string"==typeof e&&e.length>1e3?e.substring(0,1e3)+"...":e})),[")"]))}return i.apply(this,arguments).then(function(r){return e&&(null==r?console.log("[trezor-link] Done "+n+"."+t):console.log("[trezor-link] Done "+n+"."+t+", result ",r)),r},function(r){throw e&&console.error("[trezor-link] Error in "+n+"."+t,r),r})},n}Object.defineProperty(n,"__esModule",{value:!0}),n.debugInOut=i},{}],158:[function(e,t,n){"use strict";function r(){var e=function(e){},t=function(e){},n=new Promise(function(n,r){e=n,t=r}),r=n.then(function(){throw new Error("Promise is always rejecting")});return r.catch(function(){}),{resolve:e,reject:t,promise:n,rejectingPromise:r}}function i(e,t){return new Promise(function(n){setTimeout(function(){n(t)},e)})}function o(e,t){return new Promise(function(n,r){setTimeout(function(){r(t)},e)})}Object.defineProperty(n,"__esModule",{value:!0}),n.create=r,n.resolveTimeoutPromise=i,n.rejectTimeoutPromise=o},{}],159:[function(e,t,n){(function(r){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function a(e){if(null==e)return null;if(isNaN(e))return e;var t=parseInt(e);return isNaN(t)?e:t}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var f,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=e("./messages"),p=i(h),d=e("../highlevel-checks"),y=i(d),v=e("../debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return o.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":u(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":u(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&o(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var o=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(t,arguments)}catch(e){return n(e)}}}};var g="jcjjhjgimijdkoamemaghajlhegmoclj",b=(f=function(){function e(t){o(this,e),this.name="ChromeExtensionTransport",this.version="",this.configured=!1,this.showUdevError=!1,this.debug=!1,this.requestNeeded=!1,this.id=null==t?g:t}return l(e,[{key:"_send",value:function(e){return new Promise(function(t,n){var r,i;return p.send(this.id,e).then(function(e){return r=e,p.send(this.id,{type:"udevStatus"}).then(function(e){return i=e,this.showUdevError="display"===i,t(r)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"ping",value:function(){return new Promise(function(e,t){var n;return this._send({type:"ping"}).then(function(r){return n=r,"pong"!==n?t(new Error('Response to "ping" should be "pong".')):e()}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"info",value:function(){return new Promise(function(e,t){var n;return this._send({type:"info"}).then(function(t){return n=t,e(y.info(n))}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"init",value:function(e){return new Promise(function(t,n){return this.debug=!!e,this._silentInit().then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"_silentInit",value:function(){return new Promise(function(e,t){var n;return p.exists().then(function(r){return this.ping().then(function(r){return this.info().then(function(t){return n=t,this.version=n.version,this.configured=n.configured,e()}.$asyncbind(this,t),t)}.$asyncbind(this,t),t)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"configure",value:function(e){return new Promise(function(t,n){return this._send({type:"configure",body:e}).then(function(e){return this._silentInit().then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"listen",value:function(e){return new Promise(function(t,n){var r,i;return this._send({type:"listen",body:null==e?null:e.map(function(e){var t=a(e.session),n=a(e.path),r={path:n,product:1,vendor:21324,serialNumber:0};return null!=t&&(r=c({session:t},r)),r})}).then(function(e){return r=e,i=y.devices(r),t(i)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"enumerate",value:function(){return new Promise(function(e,t){var n,r;return this._send({type:"enumerate"}).then(function(t){return n=t,r=y.devices(n),e(r)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"_acquireMixed",value:function(e){return new Promise(function(t,n){return t(e.checkPrevious?this._send({type:"acquire",body:{path:a(e.path),previous:a(e.previous)}}):this._send({type:"acquire",body:a(e.path)}))}.$asyncbind(this))}},{key:"acquire",value:function(e){return new Promise(function(t,n){var r;return this._acquireMixed(e).then(function(e){return r=e,t(y.acquire(r))}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"release",value:function(e){return new Promise(function(t,n){return this._send({type:"release",body:a(e)}).then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"call",value:function(e,t,n){return new Promise(function(r,i){var o;return this._send({type:"call",body:{id:a(e),type:t,message:n}}).then(function(e){return o=e,r(y.call(o))}.$asyncbind(this,i),i)}.$asyncbind(this))}},{key:"requestDevice",value:function(){return Promise.reject()}}]),e}(),s(f.prototype,"init",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"init"),f.prototype),s(f.prototype,"configure",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"configure"),f.prototype),s(f.prototype,"listen",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"listen"),f.prototype),s(f.prototype,"enumerate",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"enumerate"),f.prototype),s(f.prototype,"acquire",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"acquire"),f.prototype),s(f.prototype,"release",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"release"),f.prototype),s(f.prototype,"call",[v.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"call"),f.prototype),f);n.default=b,t.exports=n.default}).call(this,e("_process"))},{"../debug-decorator":157,"../highlevel-checks":162,"./messages":160,_process:124}],160:[function(e,t,n){(function(e){"use strict";function t(){return new Promise(function(e,t){
|
||
return"undefined"==typeof chrome?t(new Error("Global chrome does not exist; probably not running chrome")):void 0===chrome.runtime?t(new Error("Global chrome.runtime does not exist; probably not running chrome")):void 0===chrome.runtime.sendMessage?t(new Error("Global chrome.runtime.sendMessage does not exist; probably not whitelisted website in extension manifest")):e()}.$asyncbind(this))}function r(e,t){return new Promise(function(n,r){var i=function(e){return void 0===e?(console.error("[trezor.js] [chrome-messages] Chrome runtime error",chrome.runtime.lastError),void r(chrome.runtime.lastError)):"object"!=typeof e||null==e?void r(new Error("Response is not an object.")):void("response"===e.type?n(e.body):"error"===e.type?(console.error("[trezor.js] [chrome-messages] Error received",e),r(new Error(e.message))):(console.error("[trezor.js] [chrome-messages] Unknown response type ",JSON.stringify(e.type)),r(new Error("Unknown response type "+JSON.stringify(e.type)))))};chrome.runtime.id===e?chrome.runtime.sendMessage(t,{},i):chrome.runtime.sendMessage(e,t,{},i)})}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.exists=t,n.send=r,Function.prototype.$asyncbind=function t(n,r){function o(){return s.apply(n,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:t,enumerable:!1,configurable:!0,writable:!0}),t.trampoline||(t.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),t.LazyThenable||(t.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),t.EagerThenable=t.Thenable=(t.EagerThenableFactory=function(t){function n(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function r(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function o(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}t=t||"object"===(void 0===e?"undefined":i(e))&&e.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var s=function(){function e(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&t(e)}}();return n.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":i(e))))try{var n=0,o=e.then;if("function"==typeof o)return void o.call(e,function(e){n++||t.resolve(e)},function(e){n++||t.reject(e)})}catch(e){return void(n||this.reject(e))}this.state=r,this.v=e,t.c&&s(function(){for(var n=0,i=t.c.length;n<i;n++)r(t.c[n],e)})}},reject:function(e){if(void 0===this.state){this.state=o,this.v=e;var t=this.c;t&&s(function(){for(var n=0,r=t.length;n<r;n++)o(t[n],e)})}},then:function(e,t){var r=new n,i={y:e,n:t,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var o=this.state,a=this.v;s(function(){o(i,a)})}return r}},n.resolve=function(e){if(e&&e instanceof n)return e;var t=new n;return t.resolve(e),t},n.reject=function(e){if(e&&e instanceof n)return e;var t=new n;return t.reject(e),t},n.version="2.3.3-nodent",n})());var s=this;switch(r){case!0:return new t.Thenable(o);case 0:return new t.LazyThenable(o);case void 0:return o.then=o,o;default:return function(){try{return s.apply(n,arguments)}catch(e){return r(e)}}}}}).call(this,e("_process"))},{_process:124}],161:[function(e,t,n){(function(r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=e("./debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return s.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":o(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var s=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":o(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&s(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&s(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var o=this.state,a=this.v;s(function(){o(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var s=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return s.apply(t,arguments)}catch(e){return n(e)}}}};var f=(s=function(){function e(t){i(this,e),this.name="FallbackTransport",this.activeName="",this.debug=!1,this.requestNeeded=!1,this.transports=t}return a(e,[{key:"_tryInitTransports",value:function(){return new Promise(function(e,t){function n(){if(a=(l=c.next()).done)return[1];h=l.value;var e=function(){return r}.$asyncbind(this,y),t=function(t){return s=t,e()}.$asyncbind(this,y);try{return h.init(this.debug).then(function(t){return o.push(h),e()}.$asyncbind(this,t),t)}catch(e){t(e)}}function r(){return a=!0,n}function i(){return p(d)()}var o,s,a,u,f,c,l,h,p=function(e){return function(t){try{!a&&c.return&&c.return()}catch(e){throw e}finally{if(u)throw f}return e&&e.call(this,t)}.$asyncbind(this,t)}.$asyncbind(this);o=[],s=null,a=!0,u=!1,f=void 0;var d=function(){return 0===o.length?t(s||new Error("No transport could be initialized.")):e(o)}.$asyncbind(this,t),y=function(e){return u=!0,f=e,p(d)()}.$asyncbind(this,p(t));try{return c=this.transports[Symbol.iterator](),Function.$asyncbind.trampoline(this,i,r,y,!0)(n)}catch(e){y(e)}}.$asyncbind(this))}},{key:"_tryConfigureTransports",value:function(e){return new Promise(function(t,n){function r(){if(a=(l=c.next()).done)return[1];h=l.value;var n=function(){return i}.$asyncbind(this,y),r=function(e){return s=e,n()}.$asyncbind(this,y);try{return h.configure(e).then(function(e){return p(t)(h)}.$asyncbind(this,r),r)}catch(e){r(e)}}function i(){return a=!0,r}function o(){return p(d)()}var s,a,u,f,c,l,h,p=function(e){return function(t){try{!a&&c.return&&c.return()}catch(e){throw e}finally{if(u)throw f}return e&&e.call(this,t)}.$asyncbind(this,n)}.$asyncbind(this);s=null,a=!0,u=!1,f=void 0;var d=function(){return n(s||new Error("No transport could be initialized."))}.$asyncbind(this,n),y=function(e){return u=!0,f=e,p(d)()}.$asyncbind(this,p(n));try{return c=this._availableTransports[Symbol.iterator](),Function.$asyncbind.trampoline(this,o,i,y,!0)(r)}catch(e){y(e)}}.$asyncbind(this))}},{key:"init",value:function(e){return new Promise(function(t,n){var r;return this.debug=!!e,this._tryInitTransports().then(function(e){return r=e,this._availableTransports=r,this.version=r[0].version,this.configured=!1,t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"configure",value:function(e){return new Promise(function(t,n){return this._tryConfigureTransports(e).then(function(e){return this.activeTransport=e,this.configured=this.activeTransport.configured,this.version=this.activeTransport.version,this.activeName=this.activeTransport.name,this.requestNeeded=this.activeTransport.requestNeeded,t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"enumerate",value:function(){return new Promise(function(e,t){return e(this.activeTransport.enumerate())}.$asyncbind(this))}},{key:"listen",value:function(e){return new Promise(function(t,n){return t(this.activeTransport.listen(e))}.$asyncbind(this))}},{key:"acquire",value:function(e){return new Promise(function(t,n){return t(this.activeTransport.acquire(e))}.$asyncbind(this))}},{key:"release",value:function(e){return new Promise(function(t,n){return t(this.activeTransport.release(e))}.$asyncbind(this))}},{key:"call",value:function(e,t,n){return new Promise(function(r,i){return r(this.activeTransport.call(e,t,n))}.$asyncbind(this))}},{key:"requestDevice",value:function(){return new Promise(function(e,t){return e(this.activeTransport.requestDevice())}.$asyncbind(this))}}]),e}(),function(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}(s.prototype,"init",[u.debugInOut],Object.getOwnPropertyDescriptor(s.prototype,"init"),s.prototype),s);n.default=f,t.exports=n.default}).call(this,e("_process"))},{"./debug-decorator":157,_process:124}],162:[function(e,t,n){"use strict";function r(e){if("object"!=typeof e||null==e)throw new Error("Wrong result type.");var t=e.version;if("string"!=typeof t)throw new Error("Wrong result type.");return{version:t,configured:!!e.configured}}function i(e){if("string"!=typeof e)throw new Error("Wrong result type.");return e.trim()}function o(e){if("object"!=typeof e)throw new Error("Wrong result type.");if(!(e instanceof Array))throw new Error("Wrong result type.");return e.map(function(e){if("object"!=typeof e||null==e)throw new Error("Wrong result type.");var t=e.path;if("number"!=typeof t&&"string"!=typeof t)throw new Error("Wrong result type.");var n=t.toString(),r=e.session;if(null==r)return{path:n,session:null};if("number"!=typeof r&&"string"!=typeof r)throw new Error("Wrong result type.");return{path:n,session:r.toString()}})}function s(e){if("object"!=typeof e||null==e)throw new Error("Wrong result type.");var t=e.session;if("string"!=typeof t&&"number"!=typeof t)throw new Error("Wrong result type.");return t.toString()}function a(e){if("object"!=typeof e||null==e)throw new Error("Wrong result type.");var t=e.type;if("string"!=typeof t)throw new Error("Wrong result type.");var n=e.message;if("object"!=typeof n||null==n)throw new Error("Wrong result type.");return{type:t,message:n}}Object.defineProperty(n,"__esModule",{value:!0}),n.info=r,n.version=i,n.devices=o,n.acquire=s,n.call=a},{}],163:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var i=e("./bridge"),o=r(i),s=e("./lowlevel/withSharedConnections"),a=r(s),u=e("./extension"),f=r(u),c=e("./parallel"),l=r(c),h=e("./fallback"),p=r(h),d=e("./lowlevel/webusb"),y=r(d);e("whatwg-fetch"),o.default.setFetch(fetch),n.default={Bridge:o.default,Extension:f.default,Parallel:l.default,Fallback:p.default,Lowlevel:a.default,WebUsb:y.default},t.exports=n.default},{"./bridge":156,"./extension":159,"./fallback":161,"./lowlevel/webusb":173,"./lowlevel/withSharedConnections":174,"./parallel":175,"whatwg-fetch":186}],164:[function(e,t,n){"use strict";t.exports=e("protobufjs-old-fixed-webpack").newBuilder({}).import({package:null,messages:[{name:"DeviceDescriptor",fields:[{rule:"optional",options:{},type:"uint32",name:"vendor_id",id:1},{rule:"optional",options:{},type:"uint32",name:"product_id",id:2},{rule:"optional",options:{},type:"string",name:"serial_number",id:3},{rule:"optional",options:{},type:"string",name:"path",id:4}],enums:[],messages:[],options:{},oneofs:{}},{name:"Configuration",fields:[{rule:"repeated",options:{},type:"string",name:"whitelist_urls",id:1},{rule:"repeated",options:{},type:"string",name:"blacklist_urls",id:2},{rule:"required",options:{},type:"google.protobuf.FileDescriptorSet",name:"wire_protocol",id:3},{rule:"repeated",options:{},type:"DeviceDescriptor",name:"known_devices",id:4},{rule:"optional",options:{},type:"uint32",name:"valid_until",id:5}],enums:[],messages:[],options:{},oneofs:{}}],enums:[],imports:[{package:"google.protobuf",messages:[{name:"FileDescriptorSet",fields:[{rule:"repeated",options:{},type:"FileDescriptorProto",name:"file",id:1}],enums:[],messages:[],options:{},oneofs:{}},{name:"FileDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"optional",options:{},type:"string",name:"package",id:2},{rule:"repeated",options:{},type:"string",name:"dependency",id:3},{rule:"repeated",options:{},type:"int32",name:"public_dependency",id:10},{rule:"repeated",options:{},type:"int32",name:"weak_dependency",id:11},{rule:"repeated",options:{},type:"DescriptorProto",name:"message_type",id:4},{rule:"repeated",options:{},type:"EnumDescriptorProto",name:"enum_type",id:5},{rule:"repeated",options:{},type:"ServiceDescriptorProto",name:"service",id:6},{rule:"repeated",options:{},type:"FieldDescriptorProto",name:"extension",id:7},{rule:"optional",options:{},type:"FileOptions",name:"options",id:8},{rule:"optional",options:{},type:"SourceCodeInfo",name:"source_code_info",id:9}],enums:[],messages:[],options:{},oneofs:{}},{name:"DescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"repeated",options:{},type:"FieldDescriptorProto",name:"field",id:2},{rule:"repeated",options:{},type:"FieldDescriptorProto",name:"extension",id:6},{rule:"repeated",options:{},type:"DescriptorProto",name:"nested_type",id:3},{rule:"repeated",options:{},type:"EnumDescriptorProto",name:"enum_type",id:4},{rule:"repeated",options:{},type:"ExtensionRange",name:"extension_range",id:5},{rule:"optional",options:{},type:"MessageOptions",name:"options",id:7}],enums:[],messages:[{name:"ExtensionRange",fields:[{rule:"optional",options:{},type:"int32",name:"start",id:1},{rule:"optional",options:{},type:"int32",name:"end",id:2}],enums:[],messages:[],options:{},oneofs:{}}],options:{},oneofs:{}},{name:"FieldDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"optional",options:{},type:"int32",name:"number",id:3},{rule:"optional",options:{},type:"Label",name:"label",id:4},{rule:"optional",options:{},type:"Type",name:"type",id:5},{rule:"optional",options:{},type:"string",name:"type_name",id:6},{rule:"optional",options:{},type:"string",name:"extendee",id:2},{rule:"optional",options:{},type:"string",name:"default_value",id:7},{rule:"optional",options:{},type:"FieldOptions",name:"options",id:8}],enums:[{name:"Type",values:[{name:"TYPE_DOUBLE",id:1},{name:"TYPE_FLOAT",id:2},{name:"TYPE_INT64",id:3},{name:"TYPE_UINT64",id:4},{name:"TYPE_INT32",id:5},{name:"TYPE_FIXED64",id:6},{name:"TYPE_FIXED32",id:7},{name:"TYPE_BOOL",id:8},{name:"TYPE_STRING",id:9},{name:"TYPE_GROUP",id:10},{name:"TYPE_MESSAGE",id:11},{name:"TYPE_BYTES",id:12},{name:"TYPE_UINT32",id:13},{name:"TYPE_ENUM",id:14},{name:"TYPE_SFIXED32",id:15},{name:"TYPE_SFIXED64",id:16},{name:"TYPE_SINT32",id:17},{name:"TYPE_SINT64",id:18}],options:{}},{name:"Label",values:[{name:"LABEL_OPTIONAL",id:1},{name:"LABEL_REQUIRED",id:2},{name:"LABEL_REPEATED",id:3}],options:{}}],messages:[],options:{},oneofs:{}},{name:"EnumDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"repeated",options:{},type:"EnumValueDescriptorProto",name:"value",id:2},{rule:"optional",options:{},type:"EnumOptions",name:"options",id:3}],enums:[],messages:[],options:{},oneofs:{}},{name:"EnumValueDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"optional",options:{},type:"int32",name:"number",id:2},{rule:"optional",options:{},type:"EnumValueOptions",name:"options",id:3}],enums:[],messages:[],options:{},oneofs:{}},{name:"ServiceDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"repeated",options:{},type:"MethodDescriptorProto",name:"method",id:2},{rule:"optional",options:{},type:"ServiceOptions",name:"options",id:3}],enums:[],messages:[],options:{},oneofs:{}},{name:"MethodDescriptorProto",fields:[{rule:"optional",options:{},type:"string",name:"name",id:1},{rule:"optional",options:{},type:"string",name:"input_type",id:2},{rule:"optional",options:{},type:"string",name:"output_type",id:3},{rule:"optional",options:{},type:"MethodOptions",name:"options",id:4}],enums:[],messages:[],options:{},oneofs:{}},{name:"FileOptions",fields:[{rule:"optional",options:{},type:"string",name:"java_package",id:1},{rule:"optional",options:{},type:"string",name:"java_outer_classname",id:8},{rule:"optional",options:{default:!1},type:"bool",name:"java_multiple_files",id:10},{rule:"optional",options:{default:!1},type:"bool",name:"java_generate_equals_and_hash",id:20},{rule:"optional",options:{default:"SPEED"},type:"OptimizeMode",name:"optimize_for",id:9},{rule:"optional",options:{},type:"string",name:"go_package",id:11},{rule:"optional",options:{default:!1},type:"bool",name:"cc_generic_services",id:16},{rule:"optional",options:{default:!1},type:"bool",name:"java_generic_services",id:17},{rule:"optional",options:{default:!1},type:"bool",name:"py_generic_services",id:18},{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[{name:"OptimizeMode",values:[{name:"SPEED",id:1},{name:"CODE_SIZE",id:2},{name:"LITE_RUNTIME",id:3}],options:{}}],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"MessageOptions",fields:[{rule:"optional",options:{default:!1},type:"bool",name:"message_set_wire_format",id:1},{rule:"optional",options:{default:!1},type:"bool",name:"no_standard_descriptor_accessor",id:2},{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"FieldOptions",fields:[{rule:"optional",options:{default:"STRING"},type:"CType",name:"ctype",id:1},{rule:"optional",options:{},type:"bool",name:"packed",id:2},{rule:"optional",options:{default:!1},type:"bool",name:"lazy",id:5},{rule:"optional",options:{default:!1},type:"bool",name:"deprecated",id:3},{rule:"optional",options:{},type:"string",name:"experimental_map_key",id:9},{rule:"optional",options:{default:!1},type:"bool",name:"weak",id:10},{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[{name:"CType",values:[{name:"STRING",id:0},{name:"CORD",id:1},{name:"STRING_PIECE",id:2}],options:{}}],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"EnumOptions",fields:[{rule:"optional",options:{default:!0},type:"bool",name:"allow_alias",id:2},{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"EnumValueOptions",fields:[{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"ServiceOptions",fields:[{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"MethodOptions",fields:[{rule:"repeated",options:{},type:"UninterpretedOption",name:"uninterpreted_option",id:999}],enums:[],messages:[],options:{},oneofs:{},extensions:[1e3,536870911]},{name:"UninterpretedOption",fields:[{rule:"repeated",options:{},type:"NamePart",name:"name",id:2},{rule:"optional",options:{},type:"string",name:"identifier_value",id:3},{rule:"optional",options:{},type:"uint64",name:"positive_int_value",id:4},{rule:"optional",options:{},type:"int64",name:"negative_int_value",id:5},{rule:"optional",options:{},type:"double",name:"double_value",id:6},{rule:"optional",options:{},type:"bytes",name:"string_value",id:7},{rule:"optional",options:{},type:"string",name:"aggregate_value",id:8}],enums:[],messages:[{name:"NamePart",fields:[{rule:"required",options:{},type:"string",name:"name_part",id:1},{rule:"required",options:{},type:"bool",name:"is_extension",id:2}],enums:[],messages:[],options:{},oneofs:{}}],options:{},oneofs:{}},{name:"SourceCodeInfo",fields:[{rule:"repeated",options:{},type:"Location",name:"location",id:1}],enums:[],messages:[{name:"Location",fields:[{rule:"repeated",options:{packed:!0},type:"int32",name:"path",id:1},{rule:"repeated",options:{packed:!0},type:"int32",name:"span",id:2},{rule:"optional",options:{},type:"string",name:"leading_comments",id:3},{rule:"optional",options:{},type:"string",name:"trailing_comments",id:4}],enums:[],messages:[],options:{},oneofs:{}}],options:{},oneofs:{}}],enums:[],imports:[],options:{java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",optimize_for:"SPEED"},services:[]}],options:{},services:[]}).build()},{"protobufjs-old-fixed-webpack":126}],165:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t={},n=e.$type;for(var r in e)!function(r){var o=e[r];if("function"==typeof o);else if(o instanceof u){var s=o.toHex();t[r]=s}else if(o instanceof f){var c=o.toNumber();t[r]=c}else if(Array.isArray(o)){var l=o.map(function(e){return"object"==typeof e?i(e):e});t[r]=l}else if(o instanceof a.Builder.Message)t[r]=i(o);else if("enum"===n._fieldsByName[r].type.name)if(null==o)t[r]=null;else{var h=n._fieldsByName[r].resolvedType.getChildren();t[r]=h.find(function(e){return e.id===o}).name}else t[r]=o}(r);return t}Object.defineProperty(n,"__esModule",{value:!0}),n.MessageDecoder=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=e("protobufjs-old-fixed-webpack"),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(s),u=(e("./messages.js"),a.ByteBuffer),f=a.Long,c=(n.MessageDecoder=function(){function e(t,n,i){r(this,e),this.type=n,this.data=i,this.messages=t}return o(e,[{key:"_messageInfo",value:function(){var e=this.messages.messagesByType[this.type];if(null==e)throw new Error("Method type not found",this.type);return new c(e.constructor,e.name)}},{key:"messageName",value:function(){return this._messageInfo().name}},{key:"_decodedMessage",value:function(){var e=this._messageInfo().messageConstructor;return e.decode(this.data)}},{key:"decodedJSON",value:function(){var e=this._decodedMessage(),t=i(e);return JSON.parse(JSON.stringify(t))}}]),e}(),function e(t,n){r(this,e),this.messageConstructor=t,this.name=n})},{"./messages.js":166,"protobufjs-old-fixed-webpack":126}],166:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0}),n.Messages=void 0;var i=e("protobufjs-old-fixed-webpack");(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e})(i),n.Messages=function e(t){r(this,e),this.messagesByName=t;var n={};Object.keys(t.MessageType).forEach(function(e){var r=t.MessageType[e],i=e.split("_")[1];n[r]={name:i,constructor:t[i]}}),this.messagesByType=n,this.messageTypes=t.MessageType}},{"protobufjs-old-fixed-webpack":126}],167:[function(e,t,n){"use strict";function r(){a||(o.Reflect.Message.Field.prototype.verifyValueOriginal=o.Reflect.Message.Field.prototype.verifyValue,o.Reflect.Message.Field.prototype.verifyValue=function(e,t){var n=e;return this.type===o.TYPES.bytes&&null!=e&&"string"==typeof e&&(n=s.wrap(e,"hex")),this.verifyValueOriginal(n,t)}),a=!0}Object.defineProperty(n,"__esModule",{value:!0}),n.patch=r;var i=e("protobufjs-old-fixed-webpack"),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),s=o.ByteBuffer,a=!1},{"protobufjs-old-fixed-webpack":126}],168:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){var t=c.Configuration,n=t.decode(e),r=n.valid_until,i=Math.floor(Date.now()/1e3);if(i>=r)throw new Error("Config too old; "+i+" >= "+r);var o=n.wire_protocol,f=(0,u.protocolToJSON)(o.toRaw()),l=s.newBuilder({}).import(f).build();return new a.Messages(l)}Object.defineProperty(n,"__esModule",{value:!0}),n.parseConfigure=i;var o=e("protobufjs-old-fixed-webpack"),s=r(o),a=e("./messages.js"),u=e("./to_json.js"),f=e("./config_proto_compiled.js"),c=r(f)},{"./config_proto_compiled.js":164,"./messages.js":166,"./to_json.js":169,"protobufjs-old-fixed-webpack":126}],169:[function(e,t,n){"use strict";function r(e){var t=i(e.file[2]);return t.imports=[i(e.file[1])],t}function i(e){var t={};t.package=e.package,t.options=e.options,t.services=[];var n=Object.values(e.message_type).map(u),r=s(e.extension);return t.messages=r.concat(n),t.enums=Object.values(e.enum_type).map(o),t}function o(e){var t={};return t.name=e.name,t.values=Object.values(e.value).map(a),t.options={},t}function s(e){var t={};return Object.values(e).forEach(function(e){var n=e.extendee.slice(1);null==t[n]&&(t[n]={},t[n].ref=n,t[n].fields=[]),t[n].fields.push(f(e))}),Object.values(t)}function a(e){var t={};return t.name=e.name,t.id=e.number,t}function u(e){var t={};return t.enums=[],t.name=e.name,t.options=e.options||{},t.messages=[],t.fields=Object.values(e.field).map(f),t.oneofs={},t}function f(e){var t={};return 1===e.label&&(t.rule="optional"),2===e.label&&(t.rule="required"),3===e.label&&(t.rule="repeated"),t.type=l[e.type],e.type_name&&(t.type=e.type_name.slice(1)),t.name=e.name,t.options=e.options||{},t.id=e.number,t}Object.defineProperty(n,"__esModule",{value:!0}),n.protocolToJSON=r;var c=e("object.values");Object.values||(0,c.shim)();var l={1:"double",2:"float",3:"int64",4:"uint64",5:"int32",6:"fixed64",7:"fixed32",8:"bool",9:"string",10:"group",11:"message",12:"bytes",13:"uint32",14:"enum",15:"sfixed32",16:"sfixed64",17:"sint32",18:"sint64"}},{"object.values":119}],170:[function(e,t,n){(function(t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){var t=l.ByteBuffer.concat([e]),n=t.readByte(),r=t.readByte();if(n!==h||r!==h)throw new Error("Didn't receive expected header signature.");var i=t.readUint16(),o=t.readUint32(),s=new p(i,o);return s.append(t),s}function o(e,t){return new Promise(function(n,r){var i;return e.isDone()?n():t().then(function(s){return null==(i=s)?r(new Error("Received no data.")):(e.append(i),n(o(e,t)))}.$asyncbind(this,r),r)}.$asyncbind(this))}function s(e){return new Promise(function(t,n){var r,s;return e().then(function(a){return r=a,s=i(r),o(s,e).then(function(e){return t(s)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}function a(e,t){return new Promise(function(n,r){var i,o,a,u;return s(t).then(function(t){return i=t,o=i.typeNumber,a=i.arrayBuffer(),u=new c.MessageDecoder(e,o,a),n({message:u.decodedJSON(),type:u.messageName()})}.$asyncbind(this,r),r)}.$asyncbind(this))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n.receiveAndParse=a;var c=e("./protobuf/message_decoder.js"),l=e("protobufjs-old-fixed-webpack");Function.prototype.$asyncbind=function e(n,r){function i(){return o.apply(n,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)
|
||
},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function n(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function r(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===t?"undefined":u(t))&&t.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return n.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":u(e))))try{var n=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){n++||t.resolve(e)},function(e){n++||t.reject(e)})}catch(e){return void(n||this.reject(e))}this.state=r,this.v=e,t.c&&o(function(){for(var n=0,i=t.c.length;n<i;n++)r(t.c[n],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,t){var r=new n,i={y:e,n:t,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},n.resolve=function(e){if(e&&e instanceof n)return e;var t=new n;return t.resolve(e),t},n.reject=function(e){if(e&&e instanceof n)return e;var t=new n;return t.reject(e),t},n.version="2.3.3-nodent",n})());var o=this;switch(r){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(n,arguments)}catch(e){return r(e)}}}};var h=35,p=function(){function e(t,n){r(this,e),this.typeNumber=t,this.expectedLength=n,this.buffer=new l.ByteBuffer(n)}return f(e,[{key:"isDone",value:function(){return this.buffer.offset>=this.expectedLength}},{key:"append",value:function(e){this.buffer.append(e)}},{key:"arrayBuffer",value:function(){var e=this.buffer;return e.reset(),e.toArrayBuffer()}}]),e}()}).call(this,e("_process"))},{"./protobuf/message_decoder.js":165,_process:124,"protobufjs-old-fixed-webpack":126}],171:[function(e,t,n){(function(t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return new Promise(function(n,r){function i(){return(a=(l=c.next()).done)?[1]:(h=l.value,e(h).then(function(e){return o}.$asyncbind(this,y),y))}function o(){return a=!0,i}function s(){return p(d)()}var a,u,f,c,l,h,p=function(e){return function(t){try{!a&&c.return&&c.return()}catch(e){throw e}finally{if(u)throw f}return e&&e.call(this,t)}.$asyncbind(this,r)}.$asyncbind(this);a=!0,u=!1,f=void 0;var d=function(){return n()}.$asyncbind(this,r),y=function(e){return u=!0,f=e,p(d)()}.$asyncbind(this,p(r));try{return c=t[Symbol.iterator](),Function.$asyncbind.trampoline(this,s,o,y,!0)(i)}catch(e){y(e)}}.$asyncbind(this))}function o(e){delete e.$$hashKey;for(var t in e){var n=e[t];null==n?delete e[t]:(Array.isArray(n)&&n.forEach(function(e){"object"==typeof e&&o(e)}),"object"==typeof n&&o(n))}}function s(e,t,n){return new l(e,t,n).encode()}function a(e,t,n,r){return new Promise(function(o,a){var u=s(e,n,r);return o(i(t,u))}.$asyncbind(this))}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0});var f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n.buildAndSend=a;var c=e("protobufjs-old-fixed-webpack");!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);t.default=e}(c);Function.prototype.$asyncbind=function e(n,r){function i(){return o.apply(n,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function n(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function r(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===t?"undefined":u(t))&&t.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return n.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":u(e))))try{var n=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){n++||t.resolve(e)},function(e){n++||t.reject(e)})}catch(e){return void(n||this.reject(e))}this.state=r,this.v=e,t.c&&o(function(){for(var n=0,i=t.c.length;n<i;n++)r(t.c[n],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,t){var r=new n,i={y:e,n:t,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},n.resolve=function(e){if(e&&e instanceof n)return e;var t=new n;return t.resolve(e),t},n.reject=function(e){if(e&&e instanceof n)return e;var t=new n;return t.reject(e),t},n.version="2.3.3-nodent",n})());var o=this;switch(r){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(n,arguments)}catch(e){return r(e)}}}};var l=function(){function e(t,n,i){r(this,e);var s=t.messagesByName[n];if(null==s)throw new Error("The message name "+n+" is not found.");o(i),this.message=i?new s(i):new s,this.type=t.messageTypes["MessageType_"+n]}return f(e,[{key:"_encodeLong",value:function(){var e=new Uint8Array(this.message.encodeAB()),t=8+e.length,n=new c.ByteBuffer(t);return n.writeByte(35),n.writeByte(35),n.writeUint16(this.type),n.writeUint32(e.length),n.append(e),new Uint8Array(n.buffer)}},{key:"encode",value:function(){for(var e=this._encodeLong(),t=[],n=Math.floor((e.length-1)/63)+1,r=0;r<n;r++){var i=e.subarray(63*r,63*(r+1)),o=new Uint8Array(63);o.set(i),t.push(o.buffer)}return t}}]),e}()}).call(this,e("_process"))},{_process:124,"protobufjs-old-fixed-webpack":126}],172:[function(e,t,n){(function(t){"use strict";function r(e,t,n){var r=a.default.fromBuffer(t.slice(0,32)),i=a.default.fromBuffer(t.slice(32)),s=new o.ECSignature(r,i),u=o.crypto.sha256(n);return e.some(function(e){return o.ECPair.fromPublicKeyBuffer(e).verify(u,s)})}function i(e){var n=new t(e.slice(0,128),"hex"),i=new t(e.slice(128),"hex");if(r(f,n,i))return i;throw new Error("Not correctly signed.")}Object.defineProperty(n,"__esModule",{value:!0}),n.verifyHexBin=i;var o=e("bitcoinjs-lib-zcash"),s=e("bigi"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=["Õq·ñHÅä#,8÷wØúêñ¨BÇVqüv[-ûMÐ&µ~e\0Ru®Þô>_Hü£.Ç©3½X","c'\f\bfå\fÇÓ+Öº°màe6Ñ.ÙÎvË3\\IU®á\fÉ!Q2èS\t}T2í ky s½w@ÉLäQl±","C®Û¶÷çV?ÒïdìH%çïOJ©'
NImIVÓ\0«EýÃLÒkÈq\rࣽöÞt5ý\vI+ç\nÇ_ÞX","|9ý|b#~5éÀuÚ²acxî¸í¹$ÿíýölo¤Ä¤Îl(Þ\vÁôâËÅ¥ý2£à",'sÅèÝ\nR:Û±ÉoûdÂÇe+òm½½ñ,1Â!:là=xtý"·\rhçÞäiÞÏ»µîF\fÚE'],f=u.map(function(e){return new t(e,"binary")})}).call(this,e("buffer").Buffer)},{bigi:22,"bitcoinjs-lib-zcash":35,buffer:68}],173:[function(e,t,n){(function(r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var s,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=e("../debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return o.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":a(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":a(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&o(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var o=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(t,arguments)}catch(e){return n(e)}}}};var c=[{vendorId:21324,productId:1},{vendorId:4617,productId:21441}],l=(s=function(){function e(){i(this,e),this.name="WebUsbPlugin",this.version="0.2.105",this.debug=!1,this.allowsWriteAndEnumerate=!0,this._lastDevices=[],this.requestNeeded=!0}return u(e,[{key:"init",value:function(e){return new Promise(function(t,n){this.debug=!!e;var r=navigator.usb;return null==r?n(new Error("WebUSB is not available on this browser.")):(this.usb=r,t())}.$asyncbind(this))}},{key:"_listDevices",value:function(){return new Promise(function(e,t){var n,r;return n=0,this.usb.getDevices().then(function(t){return r=t,this._lastDevices=r.filter(function(e){return c.some(function(t){return e.vendorId===t.vendorId&&e.productId===t.productId})}).map(function(e){var t=e.serialNumber,r=null==t||""===t?"bootloader":t;return"bootloader"===r&&(n++,r+=n),{path:r,device:e}}),e(this._lastDevices)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"enumerate",value:function(){return new Promise(function(e,t){return this._listDevices().then(function(t){return e(t.map(function(e){return{path:e.path}}))}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"_findDevice",value:function(e){return new Promise(function(t,n){var r=this._lastDevices.find(function(t){return t.path===e});return null==r?n(new Error("Action was interrupted.")):t(r.device)}.$asyncbind(this))}},{key:"send",value:function(e,t){return new Promise(function(n,r){var i,o;return this._findDevice(e).then(function(s){function a(){return n(i.transferOut(2,o).then(function(){}))}return i=s,o=new Uint8Array(64),o[0]=63,o.set(new Uint8Array(t),1),i.opened?a.call(this):this.connect(e).then(function(e){return a.call(this)}.$asyncbind(this,r),r)}.$asyncbind(this,r),r)}.$asyncbind(this))}},{key:"receive",value:function(e){return new Promise(function(t,n){var r,i;return this._findDevice(e).then(function(o){function s(){return r.transferIn(2,64).then(function(e){return i=e,t(i.data.buffer.slice(1))}.$asyncbind(this,a),a)}r=o;var a=(function(){return t()}.$asyncbind(this,n),function(e){throw"Device unavailable."===e.message?new Error("Action was interrupted."):e}.$asyncbind(this,n));try{return r.opened?s.call(this):this.connect(e).then(function(e){return s.call(this)}.$asyncbind(this,a),a)}catch(e){a(e)}}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"connect",value:function(e){return new Promise(function(t,n){function r(){return f<5?u(f).then(function(e){return c=e,"object"===(void 0===c?"undefined":a(c))?t(c.v):i}.$asyncbind(this,n),n):[1]}function i(){return f++,r}function o(){return t()}var s,u,f,c;return s=this,u=function(t){return new Promise(function(n,r){function i(){var i=function(){return n()}.$asyncbind(this,r),o=function(e){if(4===t)throw e;return i()}.$asyncbind(this,r);try{return s._connectIn(e).then(function(e){return n({v:e})}.$asyncbind(this,o),o)}catch(e){o(e)}}return t>0?new Promise(function(e){return setTimeout(function(){return e()},200*t)}).then(function(e){return i.call(this)}.$asyncbind(this,r),r):i.call(this)}.$asyncbind(this))},f=0,Function.$asyncbind.trampoline(this,o,i,n,!0)(r)}.$asyncbind(this))}},{key:"_connectIn",value:function(e){return new Promise(function(t,n){var r;return this._findDevice(e).then(function(e){return r=e,r.open().then(function(e){return r.selectConfiguration(1).then(function(e){return r.reset().then(function(e){return r.claimInterface(2).then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"disconnect",value:function(e){return new Promise(function(t,n){var r;return this._findDevice(e).then(function(e){return r=e,r.releaseInterface(2).then(function(e){return r.close().then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"requestDevice",value:function(){return new Promise(function(e,t){return this.usb.requestDevice({filters:c}).then(function(t){return e()}.$asyncbind(this,t),t)}.$asyncbind(this))}}]),e}(),o(s.prototype,"init",[f.debugInOut],Object.getOwnPropertyDescriptor(s.prototype,"init"),s.prototype),o(s.prototype,"connect",[f.debugInOut],Object.getOwnPropertyDescriptor(s.prototype,"connect"),s.prototype),o(s.prototype,"disconnect",[f.debugInOut],Object.getOwnPropertyDescriptor(s.prototype,"disconnect"),s.prototype),s);n.default=l,t.exports=n.default}).call(this,e("_process"))},{"../debug-decorator":157,_process:124}],174:[function(e,t,n){(function(r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function s(e){if(null==e)return"null";var t=e.map(function(e){return{path:e.path,session:null==e.session?null:e.session}});return m(t)}function a(e,t){return isNaN(parseInt(e.path))?e.path<t.path?-1:e.path>t.path?1:0:parseInt(e.path)-parseInt(t.path)}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var f,c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=e("./protobuf/monkey_patch"),p=e("../defered"),d=e("./protobuf/parse_protocol"),y=e("./verify"),v=e("./send"),g=e("./receive"),b=e("../debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return o.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":u(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":u(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&o(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var o=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(t,arguments)}catch(e){return n(e)}}}},(0,h.patch)();var m=e("json-stable-stringify"),w=(f=function(){function e(t,n){if(i(this,e),this.name="LowlevelTransportWithSharedConnections",this.debug=!1,this.deferedOnRelease={},this.configured=!1,this._lastStringified="",this.requestNeeded=!1,this.latestId=0,this.defereds={},this.plugin=t,this.version=t.version,this._sharedWorkerFactory=n,!this.plugin.allowsWriteAndEnumerate)throw new Error("Plugin with shared connections cannot disallow write and enumerate")}return l(e,[{key:"enumerate",value:function(){return this._silentEnumerate()}},{key:"_silentEnumerate",value:function(){return new Promise(function(e,t){var n,r,i,o;return this.plugin.enumerate().then(function(s){return n=s,this.sendToWorker({type:"get-sessions-and-disconnect",devices:n}).then(function(s){return r=s,"sessions"!==r.type?t(new Error("Wrong reply")):(i=r.sessions,o=n.map(function(e){var t=i[e.path];return{path:e.path,session:t}}),this._releaseDisconnected(o),e(o.sort(a)))}.$asyncbind(this,t),t)}.$asyncbind(this,t),t)}.$asyncbind(this))}},{key:"_releaseDisconnected",value:function(e){var t=this,n={};e.forEach(function(e){null!=e.session&&(n[e.session]=!0)}),Object.keys(this.deferedOnRelease).forEach(function(e){null==n[e]&&t._releaseCleanup(e)})}},{key:"listen",value:function(e){return new Promise(function(t,n){var r=s(e),i=null==e?this._lastStringified:r;return t(this._runIter(0,i))}.$asyncbind(this))}},{key:"_runIter",value:function(e,t){return new Promise(function(n,r){var i,o;return this._silentEnumerate().then(function(a){return i=a,o=s(i),o!==t||60===e?(this._lastStringified=o,n(i)):(0,p.resolveTimeoutPromise)(500,null).then(function(t){return n(this._runIter(e+1,o))}.$asyncbind(this,r),r)}.$asyncbind(this,r),r)}.$asyncbind(this))}},{key:"acquire",value:function(e){return new Promise(function(t,n){var r,i,o;return this.sendToWorker(c({type:"acquire-intent"},e)).then(function(s){if(r=s,"wrong-previous-session"===r.type)return n(new Error("wrong previous session"));var a=function(){return this.sendToWorker({type:"acquire-done"}).then(function(e){return i=e,"session-number"!==i.type?n(new Error("Strange reply.")):(o=i.number,this.deferedOnRelease[o]=(0,p.create)(),t(o))}.$asyncbind(this,n),n)}.$asyncbind(this,n),u=function(e){return this.sendToWorker({type:"acquire-failed"}).then(function(t){throw e}.$asyncbind(this,n),n)}.$asyncbind(this,n);try{return this.plugin.connect(e.path).then(function(e){return a()}.$asyncbind(this,u),u)}catch(e){u(e)}}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"release",value:function(e){return new Promise(function(t,n){var r,i;return this.sendToWorker({type:"release-intent",session:e}).then(function(o){if(r=o,"double-release"===r.type)return n(new Error("Trying to double release."));if("path"!==r.type)return n(new Error("Strange reply."));i=r.path,this._releaseCleanup(e);var s=function(){return this.sendToWorker({type:"release-done"}).then(function(e){return t()}.$asyncbind(this,n),n)}.$asyncbind(this,n),a=function(e){return s()}.$asyncbind(this,n);try{return this.plugin.disconnect(i).then(function(e){return s()}.$asyncbind(this,a),a)}catch(e){a(e)}}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"_releaseCleanup",value:function(e){null!=this.deferedOnRelease[e]&&(this.deferedOnRelease[e].reject(new Error("Device released or disconnected")),delete this.deferedOnRelease[e])}},{key:"configure",value:function(e){return new Promise(function(t,n){var r=(0,y.verifyHexBin)(e),i=(0,d.parseConfigure)(r);return this._messages=i,this.configured=!0,t()}.$asyncbind(this))}},{key:"_sendLowlevel",value:function(e){var t=this;return function(n){return t.plugin.send(e,n)}}},{key:"_receiveLowlevel",value:function(e){var t=this;return function(){return t.plugin.receive(e)}}},{key:"call",value:function(e,t,n){return new Promise(function(r,i){var o,s,a,u,f,c;return o=this,this.sendToWorker({type:"get-sessions"}).then(function(l){return s=l,null==this._messages?i(new Error("Transport not configured.")):(a=this._messages,"sessions"!==s.type?i(new Error("Wrong reply")):(u=null,Object.keys(s.sessions).forEach(function(t){s.sessions[t]===e&&(u=t)}),null==u?i(new Error("Session not available.")):(f=u,c=function(){return new Promise(function(e,r){var i;return(0,v.buildAndSend)(a,o._sendLowlevel(f),t,n).then(function(t){return(0,g.receiveAndParse)(a,o._receiveLowlevel(f)).then(function(t){return i=t,e(i)}.$asyncbind(this,r),r)}.$asyncbind(this,r),r)}.$asyncbind(this))}(),r(Promise.race([this.deferedOnRelease[e].rejectingPromise,c])))))}.$asyncbind(this,i),i)}.$asyncbind(this))}},{key:"init",value:function(e){return new Promise(function(t,n){var r;return r=this,this.debug=!!e,this.requestNeeded=this.plugin.requestNeeded,this.plugin.init(e).then(function(e){return this.sharedWorker=this._sharedWorkerFactory(),this.sharedWorker.port.onmessage=function(e){r.receiveFromWorker(e.data)},t()}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"requestDevice",value:function(){return new Promise(function(e,t){return e(this.plugin.requestDevice())}.$asyncbind(this))}},{key:"sendToWorker",value:function(e){this.latestId++;var t=this.latestId;return this.defereds[t]=(0,p.create)(),this.sharedWorker.port.postMessage({id:t,message:e}),this.defereds[t].promise}},{key:"receiveFromWorker",value:function(e){this.defereds[e.id].resolve(e.message),delete this.defereds[e.id]}}]),e}(),o(f.prototype,"enumerate",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"enumerate"),f.prototype),o(f.prototype,"listen",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"listen"),f.prototype),o(f.prototype,"acquire",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"acquire"),f.prototype),o(f.prototype,"release",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"release"),f.prototype),o(f.prototype,"configure",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"configure"),f.prototype),o(f.prototype,"call",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"call"),f.prototype),o(f.prototype,"init",[b.debugInOut],Object.getOwnPropertyDescriptor(f.prototype,"init"),f.prototype),f);n.default=w,t.exports=n.default}).call(this,e("_process"))},{"../debug-decorator":157,"../defered":158,"./protobuf/monkey_patch":167,"./protobuf/parse_protocol":168,"./receive":170,"./send":171,"./verify":172,_process:124,"json-stable-stringify":110}],175:[function(e,t,n){(function(r){"use strict";function i(e){return Array.isArray(e)?e:Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,n,r,i){var o={};return Object.keys(r).forEach(function(e){o[e]=r[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}function u(e,t){return isNaN(parseInt(e.path))?e.path<t.path?-1:e.path>t.path?1:0:parseInt(e.path)-parseInt(t.path)}var f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c,l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=e("./debug-decorator");Function.prototype.$asyncbind=function e(t,n){function i(){return o.apply(t,arguments)}Function.prototype.$asyncbind||Object.defineProperty(Function.prototype,"$asyncbind",{value:e,enumerable:!1,configurable:!0,writable:!0}),e.trampoline||(e.trampoline=function(e,t,n,r,i){return function o(s){for(;s;){if(s.then)return s=s.then(o,r),i?void 0:s;try{if(s.pop){if(s.length)return s.pop()?t.call(e):s;s=n}else s=s.call(e)}catch(e){return r(e)}}}}),e.LazyThenable||(e.LazyThenable=function(){function e(e){return e&&e instanceof Object&&"function"==typeof e.then}function t(n,r,i){try{var o=i?i(r):r;if(n===o)return n.reject(new TypeError("Promise resolution loop"));e(o)?o.then(function(e){t(n,e)},function(e){n.reject(e)}):n.resolve(o)}catch(e){n.reject(e)}}function n(){}function r(e){}function i(e,t){this.resolve=e,this.reject=t}function o(r,i){var o=new n;try{this._resolver(function(n){return e(n)?n.then(r,i):t(o,n,r)},function(e){t(o,e,i)})}catch(e){t(o,e,i)}return o}function s(e){this._resolver=e,this.then=o}return n.prototype={resolve:r,reject:r,then:i},s.resolve=function(e){return s.isThenable(e)?e:{then:function(t){return t(e)}}},s.isThenable=e,s}(),e.EagerThenable=e.Thenable=(e.EagerThenableFactory=function(e){function t(e){if(e){var t=this;e(function(e){t.resolve(e)},function(e){t.reject(e)})}}function n(e,t){
|
||
if("function"==typeof e.y)try{var n=e.y.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.resolve(t)}function i(e,t){if("function"==typeof e.n)try{var n=e.n.call(void 0,t);e.p.resolve(n)}catch(t){e.p.reject(t)}else e.p.reject(t)}e=e||"object"===(void 0===r?"undefined":f(r))&&r.nextTick||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,0)};var o=function(){function t(){for(;n.length-r;){try{n[r]()}catch(e){}n[r++]=void 0,r===i&&(n.splice(0,i),r=0)}}var n=[],r=0,i=1024;return function(i){n.push(i),n.length-r==1&&e(t)}}();return t.prototype={resolve:function(e){if(void 0===this.state){if(e===this)return this.reject(new TypeError("Attempt to resolve promise with self"));var t=this;if(e&&("function"==typeof e||"object"===(void 0===e?"undefined":f(e))))try{var r=0,i=e.then;if("function"==typeof i)return void i.call(e,function(e){r++||t.resolve(e)},function(e){r++||t.reject(e)})}catch(e){return void(r||this.reject(e))}this.state=n,this.v=e,t.c&&o(function(){for(var r=0,i=t.c.length;r<i;r++)n(t.c[r],e)})}},reject:function(e){if(void 0===this.state){this.state=i,this.v=e;var t=this.c;t&&o(function(){for(var n=0,r=t.length;n<r;n++)i(t[n],e)})}},then:function(e,n){var r=new t,i={y:e,n:n,p:r};if(void 0===this.state)this.c?this.c.push(i):this.c=[i];else{var s=this.state,a=this.v;o(function(){s(i,a)})}return r}},t.resolve=function(e){if(e&&e instanceof t)return e;var n=new t;return n.resolve(e),n},t.reject=function(e){if(e&&e instanceof t)return e;var n=new t;return n.reject(e),n},t.version="2.3.3-nodent",t})());var o=this;switch(n){case!0:return new e.Thenable(i);case 0:return new e.LazyThenable(i);case void 0:return i.then=i,i;default:return function(){try{return o.apply(t,arguments)}catch(e){return n(e)}}}};var d=(c=function(){function e(t){s(this,e),this.name="ParallelTransport",this.debug=!1,this.requestNeeded=!1,this.transports=t}return h(e,[{key:"_prepend",value:function(e,t){return t.map(function(t){return{path:e+"-"+t.path,session:null==t.session?null:e+"-"+t.session}})}},{key:"_filter",value:function(e,t){var n=this;return t.filter(function(t){return n._parseName(t.path).name===e}).map(function(e){return l({},e,{path:n._parseName(e.path).rest,session:null==e.session?e.session:n._parseName(e.session).rest})})}},{key:"_antiFilter",value:function(e,t){var n=this;return t.filter(function(t){return n._parseName(t.path).name!==e})}},{key:"enumerate",value:function(){return new Promise(function(e,t){function n(){return(a=(h=l.next()).done)?[1]:(p=h.value,this.transports[p].enumerate().then(function(e){return d=e,s.push.apply(s,o(this._prepend(p,d))),r}.$asyncbind(this,g),g))}function r(){return a=!0,n}function i(){return y(v)()}var s,a,f,c,l,h,p,d,y=function(e){return function(t){try{!a&&l.return&&l.return()}catch(e){throw e}finally{if(f)throw c}return e&&e.call(this,t)}.$asyncbind(this,t)}.$asyncbind(this);s=[],a=!0,f=!1,c=void 0;var v=function(){return e(s.sort(u))}.$asyncbind(this,t),g=function(e){return f=!0,c=e,y(v)()}.$asyncbind(this,y(t));try{return l=Object.keys(this.transports)[Symbol.iterator](),Function.$asyncbind.trampoline(this,i,r,g,!0)(n)}catch(e){g(e)}}.$asyncbind(this))}},{key:"listen",value:function(e){return new Promise(function(t,n){var r,i,o,s,a,f,c,l;return r=this,new Promise(function(t,n){return null==e?this.enumerate().then(t,n):t(e)}.$asyncbind(this)).then(function(e){return i=e,o=Object.keys(this.transports).map(function(e){return new Promise(function(t,n){var o,s;return o=r._filter(e,i),r.transports[e].listen(o).then(function(n){return s=n,t({name:e,devices:s})}.$asyncbind(this,n),n)}.$asyncbind(this))}),Promise.race(o).then(function(e){return s=e,a=s.name,f=s.devices,c=this._antiFilter(a,i),l=this._prepend(a,f),t(c.concat(l).sort(u))}.$asyncbind(this,n),n)}.$asyncbind(this,n),n)}.$asyncbind(this))}},{key:"_parseName",value:function(e){if(null==e)throw new Error("Wrong input");var t=e.split("-"),n=i(t),r=n[0],o=n.slice(1);if(0===o.length)throw new Error("Input has to contain transport name.");var s=this.transports[r];if(null==s)throw new Error("Input has to contain valid transport name.");return{transport:s,name:r,rest:o.join("-")}}},{key:"acquire",value:function(e){return new Promise(function(t,n){var r,i,o,s;return r=this._parseName(e.path),null!=(i=null==e.previous?null:this._parseName(e.previous))&&r.name!==i.name?n(new Error("Session transport has to equal path transport.")):(o={path:r.rest,previous:null==i?null:i.rest,checkPrevious:e.checkPrevious},r.transport.acquire(o).then(function(e){return s=e,t(r.name+"-"+s)}.$asyncbind(this,n),n))}.$asyncbind(this))}},{key:"release",value:function(e){return new Promise(function(t,n){var r=this._parseName(e);return t(r.transport.release(r.rest))}.$asyncbind(this))}},{key:"_checkConfigured",value:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=Object.keys(this.transports)[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var o=r.value;if(!this.transports[o].configured)return!1}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}return!0}},{key:"configure",value:function(e){return new Promise(function(t,n){function r(){return(s=(c=f.next()).done)?[1]:(l=c.value,h=this.transports[l],h.configure(e).then(function(e){return i}.$asyncbind(this,y),y))}function i(){return s=!0,r}function o(){return p(d)()}var s,a,u,f,c,l,h,p=function(e){return function(t){try{!s&&f.return&&f.return()}catch(e){throw e}finally{if(a)throw u}return e&&e.call(this,t)}.$asyncbind(this,n)}.$asyncbind(this);s=!0,a=!1,u=void 0;var d=function(){return this.configured=this._checkConfigured(),t()}.$asyncbind(this,n),y=function(e){return a=!0,u=e,p(d)()}.$asyncbind(this,p(n));try{return f=Object.keys(this.transports)[Symbol.iterator](),Function.$asyncbind.trampoline(this,o,i,y,!0)(r)}catch(e){y(e)}}.$asyncbind(this))}},{key:"call",value:function(e,t,n){return new Promise(function(r,i){var o=this._parseName(e);return r(o.transport.call(o.rest,t,n))}.$asyncbind(this))}},{key:"init",value:function(e){return new Promise(function(t,n){function r(){return(a=(l=c.next()).done)?[1]:(h=l.value,p=this.transports[h],p.init(e).then(function(e){return s=s+(h+":")+p.version+";",p.requestNeeded&&(this.requestNeeded=p.requestNeeded),i}.$asyncbind(this,v),v))}function i(){return a=!0,r}function o(){return d(y)()}var s,a,u,f,c,l,h,p,d=function(e){return function(t){try{!a&&c.return&&c.return()}catch(e){throw e}finally{if(u)throw f}return e&&e.call(this,t)}.$asyncbind(this,n)}.$asyncbind(this);this.debug=!!e,s="",a=!0,u=!1,f=void 0;var y=function(){return this.version=s,this.configured=this._checkConfigured(),t()}.$asyncbind(this,n),v=function(e){return u=!0,f=e,d(y)()}.$asyncbind(this,d(n));try{return c=Object.keys(this.transports)[Symbol.iterator](),Function.$asyncbind.trampoline(this,o,i,v,!0)(r)}catch(e){v(e)}}.$asyncbind(this))}},{key:"requestDevice",value:function(){return new Promise(function(e,t){var n=function(e){return function(t){try{!r&&f.return&&f.return()}catch(e){throw e}finally{if(i)throw o}return e&&e.call(this,t)}.$asyncbind(this,t)}.$asyncbind(this),r=!0,i=!1,o=void 0,s=function(){return e(Promise.reject())}.$asyncbind(this,t),a=function(e){return i=!0,o=e,n(s)()}.$asyncbind(this,n(t));try{for(var u,f=Object.keys(this.transports)[Symbol.iterator]();!(r=(u=f.next()).done);r=!0){var c=u.value,l=this.transports[c];if(l.requestNeeded)return n(e)(l.requestDevice())}return n(s)()}catch(e){a(e)}}.$asyncbind(this))}}]),e}(),a(c.prototype,"enumerate",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"enumerate"),c.prototype),a(c.prototype,"listen",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"listen"),c.prototype),a(c.prototype,"acquire",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"acquire"),c.prototype),a(c.prototype,"release",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"release"),c.prototype),a(c.prototype,"configure",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"configure"),c.prototype),a(c.prototype,"call",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"call"),c.prototype),a(c.prototype,"init",[p.debugInOut],Object.getOwnPropertyDescriptor(c.prototype,"init"),c.prototype),c);n.default=d,t.exports=n.default}).call(this,e("_process"))},{"./debug-decorator":157,_process:124}],176:[function(e,t,n){function r(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function i(e){return p.Nil(e)?"":r(e.constructor)}function o(e){return p.Function(e)?"":p.String(e)?JSON.stringify(e):e&&p.Object(e)?"":e}function s(e){return p.Function(e)?e.toJSON?e.toJSON():r(e):p.Array(e)?"Array":e&&p.Object(e)?"Object":void 0!==e?e:""}function a(e,t,n){var r=o(t);return"Expected "+s(e)+", got"+(""!==n?" "+n:"")+(""!==r?" "+r:"")}function u(e,t,n){n=n||i(t),this.message=a(e,t,n),Error.captureStackTrace(this,u),this.__type=e,this.__value=t,this.__valueTypeName=n}function f(e,t,n,r,i){var o='" of type ';return"key"===t&&(o='" with key type '),a('property "'+s(n)+o+s(e),r,i)}function c(e,t,n,r,o){e?(o=o||i(r),this.message=f(e,n,t,r,o)):this.message='Unexpected property "'+t+'"',Error.captureStackTrace(this,u),this.__label=n,this.__property=t,this.__type=e,this.__value=r,this.__valueTypeName=o}function l(e,t){return new u(e,{},t)}function h(e,t,n){return e instanceof c?(t=t+"."+e.__property,e=new c(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof u&&(e=new c(e.__type,t,n,e.__value,e.__valueTypeName)),Error.captureStackTrace(e),e}var p=e("./native");u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,c.prototype=Object.create(Error.prototype),c.prototype.constructor=u,t.exports={TfTypeError:u,TfPropertyTypeError:c,tfCustomError:l,tfSubError:h,tfJSON:s,getValueTypeName:i}},{"./native":179}],177:[function(e,t,n){(function(n){function r(e){return n.isBuffer(e)}function i(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function o(e,t){function n(n){if(!e(n))return!1;if(n.length===t)return!0;throw y.tfCustomError(r+"(Length: "+t+")",r+"(Length: "+n.length+")")}var r=e.toJSON();return n.toJSON=function(){return r},n}function s(e){return"number"==typeof e&&isFinite(e)}function a(e){return e<<24>>24===e}function u(e){return e<<16>>16===e}function f(e){return(0|e)===e}function c(e){return(255&e)===e}function l(e){return(65535&e)===e}function h(e){return e>>>0===e}function p(e){return"number"==typeof e&&e>=0&&e<=m&&Math.floor(e)===e}var d=e("./native"),y=e("./errors"),v=o.bind(null,d.Array),g=o.bind(null,r),b=o.bind(null,i),m=Math.pow(2,53)-1,w={ArrayN:v,Buffer:r,BufferN:g,Finite:s,Hex:i,HexN:b,Int8:a,Int16:u,Int32:f,UInt8:c,UInt16:l,UInt32:h,UInt53:p};for(var E in w)w[E].toJSON=function(e){return e}.bind(null,E);t.exports=w}).call(this,{isBuffer:e("../is-buffer/index.js")})},{"../is-buffer/index.js":104,"./errors":176,"./native":179}],178:[function(e,t,n){function r(e){return a.String(e)?"?"===e[0]?p.maybe(e.slice(1)):a[e]||p.quacksLike(e):e&&a.Object(e)?a.Array(e)?p.arrayOf(e[0]):p.object(e):a.Function(e)?e:p.value(e)}function i(e,t,n,o){if(a.Function(e)){if(e(t,n))return!0;throw new f(o||e,t)}return i(r(e),t,n)}function o(e,t,n,r){if("function"==typeof n)return o(e,t,!1,n);try{i(e,t,n)}catch(e){return r(e)}r()}var s=e("./errors"),a=e("./native"),u=s.tfJSON,f=s.TfTypeError,c=s.TfPropertyTypeError,l=s.tfSubError,h=s.getValueTypeName,p={arrayOf:function(e){function t(t,n){return!!a.Array(t)&&t.every(function(t,r){try{return i(e,t,n)}catch(e){throw l(e,r)}})}return e=r(e),t.toJSON=function(){return"["+u(e)+"]"},t},maybe:function e(t){function n(n,r){return a.Nil(n)||t(n,r,e)}return t=r(t),n.toJSON=function(){return"?"+u(t)},n},map:function(e,t){function n(n,r){if(!a.Object(n,r))return!1;if(a.Nil(n,r))return!1;for(var o in n){try{t&&i(t,o,r)}catch(e){throw l(e,o,"key")}try{var s=n[o];i(e,s,r)}catch(e){throw l(e,o)}}return!0}return e=r(e),t&&(t=r(t)),n.toJSON=t?function(){return"{"+u(t)+": "+u(e)+"}"}:function(){return"{"+u(e)+"}"},n},object:function(e){function t(e,t){if(!a.Object(e))return!1;if(a.Nil(e))return!1;var r;try{for(r in n){i(n[r],e[r],t)}}catch(e){throw l(e,r)}if(t)for(r in e)if(!n[r])throw new c(void 0,r);return!0}var n={};for(var o in e)n[o]=r(e[o]);return t.toJSON=function(){return u(n)},t},oneOf:function(){function e(e,n){return t.some(function(t){try{return i(t,e,n)}catch(e){return!1}})}var t=[].slice.call(arguments).map(r);return e.toJSON=function(){return t.map(u).join("|")},e},quacksLike:function(e){function t(t){return e===h(t)}return t.toJSON=function(){return e},t},tuple:function(){function e(e,n){return t.every(function(t,r){try{return i(t,e[r],n)}catch(e){throw l(e,r)}})&&(!n||e.length===arguments.length)}var t=[].slice.call(arguments).map(r);return e.toJSON=function(){return"("+t.map(u).join(", ")+")"},e},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};for(var d in a)i[d]=a[d];for(d in p)i[d]=p[d];var y=e("./extra");for(d in y)i[d]=y[d];i.async=o,i.compile=r,i.TfTypeError=f,i.TfPropertyTypeError=c,t.exports=i},{"./errors":176,"./extra":177,"./native":179}],179:[function(e,t,n){var r={Array:function(e){return null!==e&&void 0!==e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return void 0===e||null===e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};r.Null=r.Nil;for(var i in r)r[i].toJSON=function(e){return e}.bind(null,i);t.exports=r},{}],180:[function(t,n,r){!function(t){"use strict";function r(e,t,n){var r=S[t];return r||(r=e(t,n),r.feature&&++P[t>>8&255]>p&&(S[t]=r)),r}function i(e,t,n){var r=65280&t,i=T.udata[r]||{},o=i[t];return o?new T(t,o):new T(t,h)}function o(e,t,n){return n?e(t,n):new T(t,null)}function s(e,t,n){var r;if(t<y||y+b<=t&&t<d||d+_<t)return e(t,n);if(y<=t&&t<y+b){var i={},o=(t-y)*m;for(r=0;r<m;++r)i[v+r]=d+w*(r+o);return new T(t,[,,i])}var s=t-d,a=s%w,u=[];if(0!==a)u[0]=[d+s-a,g+a];else for(u[0]=[y+Math.floor(s/E),v+Math.floor(s%E/w)],u[2]={},r=1;r<w;++r)u[2][g+r]=t+r;return new T(t,u)}function a(e,t,n){return t<60||13311<t&&t<42607?new T(t,h):e(t,n)}function u(e){return L("NFD",e)}function f(e){return L("NFKD",e)}function c(e){return L("NFC",e)}function l(e){return L("NFKC",e)}for(var h=[null,0,{}],p=10,d=44032,y=4352,v=4449,g=4519,b=19,m=21,w=28,E=m*w,_=b*E,T=function(e,t){this.codepoint=e,this.feature=t},S={},P=[],O=0;O<=255;++O)P[O]=0;var I=[a,r,o,s,i];T.fromCharCode=I.reduceRight(function(e,t){return function(n,r){return t(e,n,r)}},null),T.isHighSurrogate=function(e){return e>=55296&&e<=56319},T.isLowSurrogate=function(e){return e>=56320&&e<=57343},T.prototype.prepFeature=function(){this.feature||(this.feature=T.fromCharCode(this.codepoint,!0).feature)},T.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},T.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},T.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},T.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},T.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},T.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?T.fromCharCode(t):null};var k=function(e){this.str=e,this.cursor=0};k.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return T.isHighSurrogate(t)&&this.cursor<this.str.length&&T.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),T.fromCharCode(t)}return this.str=null,null};var x=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};x.prototype.next=function(){function e(t,n){var r=n.getDecomp();if(!r||t&&n.isCompatibility())return[n];for(var i=[],o=0;o<r.length;++o){var s=e(t,T.fromCharCode(r[o]));i=i.concat(s)}return i}if(0===this.resBuf.length){var t=this.it.next();if(!t)return null;this.resBuf=e(this.canonical,t)}return this.resBuf.shift()};var j=function(e){this.it=e,this.resBuf=[]};j.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){var r=this.resBuf[n-1],i=r.getCanonicalClass();if(i<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var A=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};A.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0],n=t.getComposite(e),r=e.getCanonicalClass();n&&(this.lastClass<r||0===this.lastClass)?this.procBuf[0]=n:(0===r&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=r,this.procBuf.push(e))}}return this.resBuf.shift()};var N=function(e,t){switch(e){case"NFD":return new j(new x(new k(t),!0));case"NFKD":return new j(new x(new k(t),!1));case"NFC":return new A(new j(new x(new k(t),!0)));case"NFKC":return new A(new j(new x(new k(t),!1)))}throw e+" is invalid"},L=function(e,t){for(var n,r=N(e,t),i="";n=r.next();)i+=n.toString();return i};T.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{
|
||
1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],
|
||
12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],
|
||
120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],
|
||
64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var R={nfc:c,nfd:u,nfkc:l,nfkd:f};"object"==typeof n?n.exports=R:"function"==typeof e&&e.amd?e("unorm",function(){return R}):t.unorm=R,R.shimApplied=!1,String.prototype.normalize||(String.prototype.normalize=function(e){var t=""+this;if("NFC"===(e=void 0===e?"NFC":e))return R.nfc(t);if("NFD"===e)return R.nfd(t);if("NFKC"===e)return R.nfkc(t);if("NFKD"===e)return R.nfkd(t);throw new RangeError("Invalid normalization form: "+e)},R.shimApplied=!0)}(this)},{}],181:[function(e,t,n){(function(e){function n(e,t){function n(){if(!i){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),i=!0}return e.apply(this,arguments)}if(r("noDeprecation"))return e;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],182:[function(e,t,n){arguments[4][103][0].apply(n,arguments)},{dup:103}],183:[function(e,t,n){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],184:[function(e,t,n){(function(t,r){function i(e,t){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(t)?r.showHidden=t:t&&n._extend(r,t),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,e,r.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function s(e,t){return e}function a(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(e,t,r){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return m(i)||(i=u(e,i,r)),i}var o=f(e,t);if(o)return o;var s=Object.keys(t),y=a(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),P(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(t);if(0===s.length){if(O(t)){var v=t.name?": "+t.name:"";return e.stylize("[Function"+v+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(P(t))return c(t)}var g="",b=!1,w=["{","}"];if(d(t)&&(b=!0,w=["[","]"]),O(t)){g=" [Function"+(t.name?": "+t.name:"")+"]"}if(_(t)&&(g=" "+RegExp.prototype.toString.call(t)),S(t)&&(g=" "+Date.prototype.toUTCString.call(t)),P(t)&&(g=" "+c(t)),0===s.length&&(!b||0==t.length))return w[0]+g+w[1];if(r<0)return _(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var E;return E=b?l(e,t,r,y,s):s.map(function(n){return h(e,t,r,y,n,b)}),e.seen.pop(),p(E,g,w)}function f(e,t){if(E(t))return e.stylize("undefined","undefined");if(m(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return b(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function c(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(h(e,t,n,r,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))}),o}function h(e,t,n,r,i,o){var s,a,f;if(f=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},f.get?a=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(a=e.stylize("[Setter]","special")),A(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(f.value)<0?(a=v(n)?u(e,f.value,null):u(e,f.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n"))):a=e.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf("\n")>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function g(e){return null==e}function b(e){return"number"==typeof e}function m(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function E(e){return void 0===e}function _(e){return T(e)&&"[object RegExp]"===k(e)}function T(e){return"object"==typeof e&&null!==e}function S(e){return T(e)&&"[object Date]"===k(e)}function P(e){return T(e)&&("[object Error]"===k(e)||e instanceof Error)}function O(e){return"function"==typeof e}function I(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function k(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}function j(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),B[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var N=/%[sdj%]/g;n.format=function(e){if(!m(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,r=arguments,o=r.length,s=String(e).replace(N,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),a=r[n];n<o;a=r[++n])v(a)||!T(a)?s+=" "+a:s+=" "+i(a);return s},n.deprecate=function(e,i){function o(){if(!s){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}if(E(r.process))return function(){return n.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var s=!1;return o};var L,R={};n.debuglog=function(e){if(E(L)&&(L=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!R[e])if(new RegExp("\\b"+e+"\\b","i").test(L)){var r=t.pid;R[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else R[e]=function(){};return R[e]},n.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=d,n.isBoolean=y,n.isNull=v,n.isNullOrUndefined=g,n.isNumber=b,n.isString=m,n.isSymbol=w,n.isUndefined=E,n.isRegExp=_,n.isObject=T,n.isDate=S,n.isError=P,n.isFunction=O,n.isPrimitive=I,n.isBuffer=e("./support/isBuffer");var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];n.log=function(){console.log("%s - %s",j(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":183,_process:124,inherits:182}],185:[function(e,t,n){(function(e){"use strict";function n(e){if(e<0||e>s||e%1!=0)throw new RangeError("value out of range")}function r(t,i,s){if(n(t),i||(i=new e(o(t))),!e.isBuffer(i))throw new TypeError("buffer must be a Buffer instance");return s||(s=0),t<253?(i.writeUInt8(t,s),r.bytes=1):t<=65535?(i.writeUInt8(253,s),i.writeUInt16LE(t,s+1),r.bytes=3):t<=4294967295?(i.writeUInt8(254,s),i.writeUInt32LE(t,s+1),r.bytes=5):(i.writeUInt8(255,s),i.writeUInt32LE(t>>>0,s+1),i.writeUInt32LE(t/4294967296|0,s+5),r.bytes=9),i}function i(t,r){if(!e.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");r||(r=0);var o=t.readUInt8(r);if(o<253)return i.bytes=1,o;if(253===o)return i.bytes=3,t.readUInt16LE(r+1);if(254===o)return i.bytes=5,t.readUInt32LE(r+1);i.bytes=9;var s=t.readUInt32LE(r+1),a=t.readUInt32LE(r+5),u=4294967296*a+s;return n(u),u}function o(e){return n(e),e<253?1:e<=65535?3:e<=4294967295?5:9}var s=9007199254740991;t.exports={encode:r,decode:i,encodingLength:o}}).call(this,e("buffer").Buffer)},{buffer:68}],186:[function(e,t,n){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){this.map={},e instanceof r?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function o(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function s(e){var t=new FileReader;return t.readAsArrayBuffer(e),o(t)}function a(e){var t=new FileReader;return t.readAsText(e),o(t)}function u(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(d.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(d.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!d.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type&&this.headers.set("content-type",this._bodyBlob.type))},d.blob?(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(s)},this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return a(this._bodyBlob)
|
||
;if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=i(this);return e||Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(l)}),this.json=function(){return this.text().then(JSON.parse)},this}function f(e){var t=e.toUpperCase();return y.indexOf(t)>-1?t:e}function c(e,t){t=t||{};var n=t.body;if(c.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function l(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function h(e){var t=new r;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();t.append(r,i)}),t}function p(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof r?t.headers:new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){r.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];i||(i=[],this.map[e]=i),i.push(r)},r.prototype.delete=function(e){delete this.map[t(e)]},r.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},r.prototype.getAll=function(e){return this.map[t(e)]||[]},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},r.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)};var d={blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e},y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this)},u.call(c.prototype),u.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},p.error=function(){var e=new p(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];p.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new p(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=c,e.Response=p,e.fetch=function(e,t){return new Promise(function(n,r){function i(){return"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0}var o;o=c.prototype.isPrototypeOf(e)&&!t?e:new c(e,t);var s=new XMLHttpRequest;s.onload=function(){var e=1223===s.status?204:s.status;if(e<100||e>599)return void r(new TypeError("Network request failed"));var t={status:e,statusText:s.statusText,headers:h(s),url:i()},o="response"in s?s.response:s.responseText;n(new p(o,t))},s.onerror=function(){r(new TypeError("Network request failed"))},s.open(o.method,o.url,!0),"include"===o.credentials&&(s.withCredentials=!0),"responseType"in s&&d.blob&&(s.responseType="blob"),o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},{}],187:[function(e,t,n){(function(n){function r(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,t,r){var i=new n(r?34:33);return i.writeUInt8(e,0),t.copy(i,1),r&&(i[33]=1),i}function o(e,t){return r(a.decode(e),t)}function s(e,t,n){return"number"==typeof e?a.encode(i(e,t,n)):a.encode(i(e.version,e.privateKey,e.compressed))}var a=e("bs58check");t.exports={decode:o,decodeRaw:r,encode:s,encodeRaw:i}}).call(this,e("buffer").Buffer)},{bs58check:67,buffer:68}]},{},[6])(6)});
|