@aeternity/aepp-sdk
Version:
SDK for the æternity blockchain
1 lines • 190 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@stamp/required"),require("bignumber.js"),require("@stamp/it"),require("joi-browser"),require("axios"),require("tweetnacl"),require("rlp"),require("@aeternity/bip39"),require("bs58check"),require("tweetnacl-auth"),require("blakejs"),require("aes-js"),require("sha.js"),require("websocket"),require("bip32-path")):"function"==typeof define&&define.amd?define([,,,,,,,,,,,,,,],e):"object"==typeof exports?exports.Ae=e(require("@stamp/required"),require("bignumber.js"),require("@stamp/it"),require("joi-browser"),require("axios"),require("tweetnacl"),require("rlp"),require("@aeternity/bip39"),require("bs58check"),require("tweetnacl-auth"),require("blakejs"),require("aes-js"),require("sha.js"),require("websocket"),require("bip32-path")):t.Ae=e(t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0],t[void 0])}(global,function(t,e,n,r,a,o,i,c,s,u,p,f,l,d,h){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(r,a,function(e){return t[e]}.bind(null,a));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=135)}([function(t,e,n){t.exports=n(96)},function(t,e){function n(t,e,n,r,a,o,i){try{var c=t[o](i),s=c.value}catch(t){return void n(t)}c.done?e(s):Promise.resolve(s).then(r,a)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise(function(a,o){var i=t.apply(e,r);function c(t){n(i,a,o,c,s,"next",t)}function s(t){n(i,a,o,c,s,"throw",t)}c(void 0)})}}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){var r=n(61),a=n(9)(function(t,e){return r({},t,e)});t.exports=a},function(t,e,n){var r=n(2);t.exports=function(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),a.forEach(function(e){r(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}},function(t,e,n){var r=n(58),a=n(97),o=n(59);t.exports=function(t,e){return r(t)||a(t,e)||o()}},function(t,e,n){var r=n(62)(0);t.exports=r},function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){var r=n(12),a=n(38);t.exports=function(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return a(n)?e:r(function(e){return t(n,e)});default:return a(n)&&a(o)?e:a(n)?r(function(e){return t(e,o)}):a(o)?r(function(e){return t(n,e)}):t(n,o)}}}},function(t,e,n){var r=n(98),a=n(60),o=n(99);t.exports=function(t){return r(t)||a(t)||o()}},function(t,e){t.exports=n},function(t,e,n){var r=n(38);t.exports=function(t){return function e(n){return 0===arguments.length||r(n)?e:t.apply(this,arguments)}}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(e){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?t.exports=r=function(t){return n(t)}:t.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(e)}t.exports=r},function(t,e){t.exports=r},function(t,e,n){var r=n(12),a=n(20),o=n(105),i=!{toString:null}.propertyIsEnumerable("toString"),c=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],s=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),u=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},p="function"!=typeof Object.keys||s?r(function(t){if(Object(t)!==t)return[];var e,n,r=[],p=s&&o(t);for(e in t)!a(e,t)||p&&"length"===e||(r[r.length]=e);if(i)for(n=c.length-1;n>=0;)a(e=c[n],t)&&!u(r,e)&&(r[r.length]=e),n-=1;return r}):r(function(t){return Object(t)!==t?[]:Object.keys(t)});t.exports=p},function(t,e,n){var r=n(9)(function(t,e){for(var n=e,r=0;r<t.length;){if(null==n)return;n=n[t[r]],r+=1}return n});t.exports=r},function(t,e,n){var r=n(12)(function(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e});t.exports=r},function(t,e,n){var r=n(39),a=n(9)(r);t.exports=a},function(t,e){t.exports=a},function(t,e){t.exports=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)}},function(t,e,n){var r=n(46)(1,"join");t.exports=r},function(t,e,n){var r=n(12),a=n(114),o=r(function(t){return a(t,[])});t.exports=o},function(t,e,n){var r=n(9),a=n(122),o=n(29),i=r(function(t,e){return a(o(t),e)});t.exports=i},function(t,e,n){var r=n(45),a=n(108);t.exports=function(t,e,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),i=o.pop();if(!r(i)){for(var c=0;c<t.length;){if("function"==typeof i[t[c]])return i[t[c]].apply(i,o);c+=1}if(a(i))return e.apply(null,o)(i)}return n.apply(this,arguments)}}},function(t,e){t.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}}},function(t,e){t.exports=o},function(t,e,n){var r=n(12)(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});t.exports=r},function(t,e,n){var r=n(9),a=n(32),o=n(15),i=r(function(t,e){return a(function(n,r){return n[r]=t(e[r],r,e),n},{},o(e))});t.exports=i},function(t,e,n){var r=n(9),a=n(16),o=r(function(t,e){return a([t],e)});t.exports=o},function(t,e,n){var r=n(62)(-1);t.exports=r},function(t,e){t.exports=i},function(t,e,n){var r=n(67),a=n(110),o=n(111);function i(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function c(t,e,n,r){return t["@@transducer/result"](n[r](o(t["@@transducer/step"],t),e))}var s="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";t.exports=function(t,e,n){if("function"==typeof t&&(t=a(t)),r(n))return function(t,e,n){for(var r=0,a=n.length;r<a;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}(t,e,n);if("function"==typeof n["fantasy-land/reduce"])return c(t,e,n,"fantasy-land/reduce");if(null!=n[s])return i(t,e,n[s]());if("function"==typeof n.next)return i(t,e,n);if("function"==typeof n.reduce)return c(t,e,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(t,e,n){var r=n(12),a=n(9),o=n(38);t.exports=function(t){return function e(n,i,c){switch(arguments.length){case 0:return e;case 1:return o(n)?e:a(function(e,r){return t(n,e,r)});case 2:return o(n)&&o(i)?e:o(n)?a(function(e,n){return t(e,i,n)}):o(i)?a(function(e,r){return t(n,e,r)}):r(function(e){return t(n,i,e)});default:return o(n)&&o(i)&&o(c)?e:o(n)&&o(i)?a(function(e,n){return t(e,n,c)}):o(n)&&o(c)?a(function(e,n){return t(e,i,n)}):o(i)&&o(c)?a(function(e,r){return t(n,e,r)}):o(n)?r(function(e){return t(e,i,c)}):o(i)?r(function(e){return t(n,e,c)}):o(c)?r(function(e){return t(n,i,e)}):t(n,i,c)}}}},function(t,e,n){var r=n(106),a=n(9),o=n(107),i=a(function(t,e){return o(r(t),e)});t.exports=i},function(t,e,n){var r=n(12)(function(t){return null==t});t.exports=r},function(t,e,n){var r=n(12),a=n(15),o=r(function(t){for(var e=a(t),n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r});t.exports=o},function(t,e,n){var r=n(9)(function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n});t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}},function(t,e,n){var r=n(100);t.exports=function(t,e){return r(e,t,0)>=0}},function(t,e,n){var r=n(43),a=n(12),o=n(9),i=n(44),c=o(function(t,e){return 1===t?a(e):r(t,i(t,[],e))});t.exports=c},function(t,e,n){var r=n(12)(n(113)(!0));t.exports=r},function(t,e){t.exports=c},function(t,e){t.exports=function(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,a){return e.apply(this,arguments)};case 5:return function(t,n,r,a,o){return e.apply(this,arguments)};case 6:return function(t,n,r,a,o,i){return e.apply(this,arguments)};case 7:return function(t,n,r,a,o,i,c){return e.apply(this,arguments)};case 8:return function(t,n,r,a,o,i,c,s){return e.apply(this,arguments)};case 9:return function(t,n,r,a,o,i,c,s,u){return e.apply(this,arguments)};case 10:return function(t,n,r,a,o,i,c,s,u,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(t,e,n){var r=n(43),a=n(38);t.exports=function t(e,n,o){return function(){for(var i=[],c=0,s=e,u=0;u<n.length||c<arguments.length;){var p;u<n.length&&(!a(n[u])||c>=arguments.length)?p=n[u]:(p=arguments[c],c+=1),i[u]=p,a(p)||(s-=1),u+=1}return s<=0?o.apply(this,i):r(s,t(e,i,o))}}},function(t,e){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(9),a=n(117),o=n(40),i=n(22),c=r(function(t,e){return o(t+1,function(){var n=arguments[t];if(null!=n&&a(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(i(n)+' does not have a method named "'+e+'"')})});t.exports=c},function(t,e,n){var r=n(12),a=n(40),o=r(function(t){return a(t.length,function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)})});t.exports=o},function(t,e,n){var r=n(12),a=n(40),o=r(function(t){return a(t.length,t)});t.exports=o},function(t,e){t.exports=s},function(t,e,n){var r=n(9)(function(t,e){return null==e||e!=e?t:e});t.exports=r},function(t,e,n){var r=n(12),a=n(20),o=r(function(t){var e=[];for(var n in t)a(n,t)&&(e[e.length]=[n,t[n]]);return e});t.exports=o},function(t,e,n){var r=n(46)(0,"toUpperCase");t.exports=r},function(t,e,n){var r=n(9),a=n(119),o=r(function(t,e){return a(function(t,e,n){return n},t,e)});t.exports=o},function(t,e,n){var r=n(69),a=n(9)(r("groupBy",n(70)(function(t,e){return null==t&&(t=[]),t.push(e),t},null)));t.exports=a},function(t,e,n){var r=n(12)(n(124));t.exports=r},function(t,e,n){var r=n(70)(function(t,e){return e},null);t.exports=r},function(t,e){t.exports=u},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e,n){var r=n(20);t.exports="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,a=arguments.length;n<a;){var o=arguments[n];if(null!=o)for(var i in o)r(i,o)&&(e[i]=o[i]);n+=1}return e}},function(t,e,n){var r=n(9),a=n(63),o=r(function(t,e){var n=t<0?e.length+t:t;return a(e)?e.charAt(n):e[n]});t.exports=o},function(t,e){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t,e,n){for(var r=0,a=n.length;r<a;){if(t(e,n[r]))return!0;r+=1}return!1}},function(t,e){t.exports="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(12),a=n(45),o=n(63),i=r(function(t){return!!a(t)||!!t&&("object"==typeof t&&(!o(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))});t.exports=i},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,a=Array(r);n<r;)a[n]=t(e[n]),n+=1;return a}},function(t,e,n){var r=n(45);t.exports=function(t,e){return function(){var n=arguments.length;if(0===n)return e();var a=arguments[n-1];return r(a)||"function"!=typeof a[t]?e.apply(this,arguments):a[t].apply(a,Array.prototype.slice.call(arguments,0,n-1))}}},function(t,e,n){var r=n(44),a=n(24),o=n(20),i=n(32),c=r(4,[],a([],n(121),function(t,e,n,r){return i(function(r,a){var i=n(a);return r[i]=t(o(i,r)?r[i]:e,a),r},{},r)}));t.exports=c},function(t,e,n){var r=n(69),a=n(33)(r("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)}));t.exports=a},function(t,e){t.exports=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}},function(t,e){t.exports=p},function(t,e){t.exports=f},function(t,e){t.exports=l},function(t,e,n){var r=n(39),a=n(9),o=n(47),i=n(34),c=a(function(t,e){return i(o(r)(t),e)});t.exports=c},function(t,e,n){var r=n(64),a=n(9)(function(t,e){for(var n,a=0,o=e.length,i=[];a<o;)n=e[a],r(t,n,i)||(i[i.length]=n),a+=1;return i});t.exports=a},function(t,e,n){var r=n(65),a=n(9)(r);t.exports=a},function(t,e,n){var r=n(46)(0,"toLowerCase");t.exports=r},function(t,e,n){var r=n(9),a=n(118),o=r(function(t,e){for(var n=[],r=0,o=t.length,i=e.length,c=new a,s=0;s<i;s+=1)c.add(e[s]);for(;r<o;)c.add(t[r])&&(n[n.length]=t[r]),r+=1;return n});t.exports=o},function(t,e,n){var r=n(61),a=n(12)(function(t){return r.apply(null,[{}].concat(t))});t.exports=a},function(t,e,n){var r=n(33)(function(t,e,n){var r={};for(var a in n)r[a]=n[a];return r[t]=e,r});t.exports=r},function(t,e,n){var r=n(9),a=n(125),o=r(function(t,e){return a([t],e)});t.exports=o},function(t,e,n){var r=n(9),a=n(24),o=n(126),i=n(71),c=r(a(["drop"],o,function(t,e){return i(Math.max(0,t),1/0,e)}));t.exports=c},function(t,e,n){var r=n(9),a=n(24),o=n(127),i=r(a([],n(130),o));t.exports=i},function(t,e,n){var r=n(9)(function(t,e){for(var n=0,r=Math.min(t.length,e.length),a={};n<r;)a[t[n]]=e[n],n+=1;return a});t.exports=r},function(t,e,n){var r=n(58),a=n(60),o=n(59);t.exports=function(t){return r(t)||a(t)||o()}},function(t,e){t.exports=d},function(t,e){t.exports=require("events")},function(t,e,n){var r=n(9)(function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n});t.exports=r},function(t,e,n){var r=n(33)(n(32));t.exports=r},function(t,e){t.exports=h},function(t,e,n){var r=n(131),a=n(133);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var i=(t=t||{}).random||(t.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var c=0;c<16;++c)e[o+c]=i[c];return e||a(i)}},function(t,e,n){var r=n(48)(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});t.exports=r},function(t,e,n){var r=n(9)(n(24)(["find"],n(134),function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}}));t.exports=r},function(t,e,n){var r=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,n,r){var a=e&&e.prototype instanceof m?e:m,o=Object.create(a.prototype),i=new j(r||[]);return o._invoke=function(t,e,n){var r=p;return function(a,o){if(r===l)throw new Error("Generator is already running");if(r===d){if("throw"===a)throw o;return S()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var c=I(i,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=l;var s=u(t,e,n);if("normal"===s.type){if(r=n.done?d:f,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=d,n.method="throw",n.arg=s.arg)}}}(t,n,i),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var p="suspendedStart",f="suspendedYield",l="executing",d="completed",h={};function m(){}function v(){}function y(){}var g={};g[o]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(A([])));b&&b!==n&&r.call(b,o)&&(g=b);var w=y.prototype=m.prototype=Object.create(g);function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function T(t){var e;this._invoke=function(n,a){function o(){return new Promise(function(e,o){!function e(n,a,o,i){var c=u(t[n],t,a);if("throw"!==c.type){var s=c.arg,p=s.value;return p&&"object"==typeof p&&r.call(p,"__await")?Promise.resolve(p.__await).then(function(t){e("next",t,o,i)},function(t){e("throw",t,o,i)}):Promise.resolve(p).then(function(t){s.value=t,o(s)},function(t){return e("throw",t,o,i)})}i(c.arg)}(n,a,e,o)})}return e=e?e.then(o,o):o()}}function I(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=u(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,h;var o=a.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:S}}function S(){return{value:e,done:!0}}return v.prototype=w.constructor=y,y.constructor=v,y[c]=v.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},k(T.prototype),T.prototype[i]=function(){return this},t.AsyncIterator=T,t.async=function(e,n,r,a){var o=new T(s(e,n,r,a));return t.isGeneratorFunction(n)?o:o.next().then(function(t){return t.done?t.value:o.next()})},k(w),w[c]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;O(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){t.exports=function(t,e){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=t[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){a=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,n){var r=n(101);t.exports=function(t,e,n){var a,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(a=1/e;n<t.length;){if(0===(o=t[n])&&1/o===a)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!=o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(r(t[n],e))return n;n+=1}return-1}},function(t,e,n){var r=n(9),a=n(102),o=r(function(t,e){return a(t,e,[],[])});t.exports=o},function(t,e,n){var r=n(103),a=n(64),o=n(104),i=n(20),c=n(65),s=n(15),u=n(27);function p(t,e,n,o){var i=r(t),c=r(e);function s(t,e){return f(t,e,n.slice(),o.slice())}return!a(function(t,e){return!a(s,e,t)},c,i)}function f(t,e,n,r){if(c(t,e))return!0;var a=u(t);if(a!==u(e))return!1;if(null==t||null==e)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===o(t.constructor))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!c(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!c(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var l=n.length-1;l>=0;){if(n[l]===t)return r[l]===e;l-=1}switch(a){case"Map":return t.size===e.size&&p(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&p(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=s(t);if(d.length!==s(e).length)return!1;var h=n.concat([t]),m=r.concat([e]);for(l=d.length-1;l>=0;){var v=d[l];if(!i(v,e)||!f(e[v],t[v],h,m))return!1;l-=1}return!0}t.exports=f},function(t,e){t.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},function(t,e){t.exports=function(t){var e=String(t).match(/^function (\w*)/);return null==e?"":e[1]}},function(t,e,n){var r=n(20),a=Object.prototype.toString,o=function(){return"[object Arguments]"===a.call(arguments)?function(t){return"[object Arguments]"===a.call(t)}:function(t){return r("callee",t)}}();t.exports=o},function(t,e){t.exports=function(t){return function(){return!t.apply(this,arguments)}}},function(t,e,n){var r=n(9),a=n(24),o=n(109),i=n(66),c=n(32),s=n(112),u=n(15),p=r(a(["filter"],s,function(t,e){return i(e)?c(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},u(e)):o(t,e)}));t.exports=p},function(t,e){t.exports=function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,a=[];n<r;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}},function(t,e){var n=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();t.exports=function(t){return new n(t)}},function(t,e,n){var r=n(43),a=n(9)(function(t,e){return r(t.length,function(){return t.apply(e,arguments)})});t.exports=a},function(t,e,n){var r=n(9),a=n(25),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a.init,t.prototype["@@transducer/result"]=a.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}(),i=r(function(t,e){return new o(t,e)});t.exports=i},function(t,e,n){var r=n(67);t.exports=function(t){return function e(n){for(var a,o,i,c=[],s=0,u=n.length;s<u;){if(r(n[s]))for(i=0,o=(a=t?e(n[s]):n[s]).length;i<o;)c[c.length]=a[i],i+=1;else c[c.length]=n[s];s+=1}return c}}},function(t,e,n){var r=n(39),a=n(68),o=n(115),i=n(116),c=n(15),s=n(34);t.exports=function t(e,n){var u=function(a){var o=n.concat([e]);return r(a,o)?"<Circular>":t(a,o)},p=function(t,e){return a(function(e){return o(e)+": "+u(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+a(u,e).join(", ")+"))";case"[object Array]":return"["+a(u,e).concat(p(e,s(function(t){return/^\d+$/.test(t)},c(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+u(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?u(NaN):o(i(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+u(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+u(e.valueOf())+")":o(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var f=e.toString();if("[object Object]"!==f)return f}return"{"+p(e,c(e)).join(", ")+"}"}}},function(t,e){t.exports=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(t,e){var n=function(t){return(t<10?"0":"")+t},r="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};t.exports=r},function(t,e){t.exports=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(39),a=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!o(t,!0,this)},t.prototype.has=function(t){return o(t,!1,this)},t}();function o(t,e,n){var a,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(a=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===a):n._nativeSet.has(t):o in n._items?t in n._items[o]||(e&&(n._items[o][t]=!0),!1):(e&&(n._items[o]={},n._items[o][t]=!0),!1);case"boolean":if(o in n._items){var i=t?1:0;return!!n._items[o][i]||(e&&(n._items[o][i]=!0),!1)}return e&&(n._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(a=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===a):n._nativeSet.has(t):o in n._items?!!r(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1);case"undefined":return!!n._items[o]||(e&&(n._items[o]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in n._items?!!r(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}t.exports=a},function(t,e,n){var r=n(33),a=n(66),o=n(120),i=r(function t(e,n,r){return o(function(n,r,o){return a(r)&&a(o)?t(e,r,o):e(n,r,o)},n,r)});t.exports=i},function(t,e,n){var r=n(33),a=n(20),o=r(function(t,e,n){var r,o={};for(r in e)a(r,e)&&(o[r]=a(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)a(r,n)&&!a(r,o)&&(o[r]=n[r]);return o});t.exports=o},function(t,e,n){var r=n(44),a=n(20),o=n(25),i=function(){function t(t,e,n,r){this.valueFn=t,this.valueAcc=e,this.keyFn=n,this.xf=r,this.inputs={}}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(a(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=this.keyFn(e);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},t}(),c=r(4,[],function(t,e,n,r){return new i(t,e,n,r)});t.exports=c},function(t,e,n){var r=n(9),a=n(24),o=n(68),i=n(32),c=n(123),s=n(40),u=n(15),p=r(a(["fantasy-land/map","map"],c,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return s(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return i(function(n,r){return n[r]=t(e[r]),n},{},u(e));default:return o(t,e)}}));t.exports=p},function(t,e,n){var r=n(9),a=n(25),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=a.init,t.prototype["@@transducer/result"]=a.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),i=r(function(t,e){return new o(t,e)});t.exports=i},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(9),a=n(20),o=r(function(t,e){if(0===t.length)return!1;for(var n=e,r=0;r<t.length;){if(!a(t[r],n))return!1;n=n[t[r]],r+=1}return!0});t.exports=o},function(t,e,n){var r=n(9),a=n(25),o=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=a.init,t.prototype["@@transducer/result"]=a.result,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},t}(),i=r(function(t,e){return new o(t,e)});t.exports=i},function(t,e,n){var r=n(128);t.exports=function(t,e){return r(t<e.length?e.length-t:0,e)}},function(t,e,n){var r=n(9),a=n(24),o=n(129),i=n(71),c=r(a(["take"],o,function(t,e){return i(0,t<0?1/0:t,e)}));t.exports=c},function(t,e,n){var r=n(9),a=n(72),o=n(25),i=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=o.result,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?a(n):n},t}(),c=r(function(t,e){return new i(t,e)});t.exports=c},function(t,e,n){var r=n(9),a=n(25),o=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=a.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(e),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t}(),i=r(function(t,e){return new o(t,e)});t.exports=i},function(t,e,n){var r=n(132);t.exports=function(){return r.randomBytes(16)}},function(t,e){t.exports=require("crypto")},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,a=n;return[a[t[r++]],a[t[r++]],a[t[r++]],a[t[r++]],"-",a[t[r++]],a[t[r++]],"-",a[t[r++]],a[t[r++]],"-",a[t[r++]],a[t[r++]],"-",a[t[r++]],a[t[r++]],a[t[r++]],a[t[r++]],a[t[r++]],a[t[r++]]].join("")}},function(t,e,n){var r=n(9),a=n(72),o=n(25),i=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=a(this.xf["@@transducer/step"](t,e))),t},t}(),c=r(function(t,e){return new i(t,e)});t.exports=c},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"createSalt",function(){return le}),n.d(r,"buildContractId",function(){return he}),n.d(r,"oracleQueryId",function(){return me}),n.d(r,"formatSalt",function(){return ve}),n.d(r,"commitmentHash",function(){return ye}),n.d(r,"decode",function(){return xe}),n.d(r,"encode",function(){return be}),n.d(r,"writeId",function(){return we}),n.d(r,"readId",function(){return ke}),n.d(r,"writeInt",function(){return Te}),n.d(r,"readInt",function(){return Ie}),n.d(r,"buildPointers",function(){return Ce}),n.d(r,"readPointers",function(){return Oe}),n.d(r,"default",function(){return je});var a={};n.r(a),n.d(a,"isBase64",function(){return Se}),n.d(a,"ADDRESS_FORMAT",function(){return Pe}),n.d(a,"formatAddress",function(){return _e}),n.d(a,"isAddressValid",function(){return Ee}),n.d(a,"addressToHex",function(){return Be}),n.d(a,"addressFromDecimal",function(){return Ve}),n.d(a,"hash",function(){return Ne}),n.d(a,"nameId",function(){return qe}),n.d(a,"sha256hash",function(){return Fe}),n.d(a,"salt",function(){return Ue}),n.d(a,"encodeBase64Check",function(){return Me}),n.d(a,"checkSumFn",function(){return Re}),n.d(a,"decodeBase64Check",function(){return De}),n.d(a,"encodeBase58Check",function(){return Ke}),n.d(a,"decodeBase58Check",function(){return Le}),n.d(a,"hexStringToByte",function(){return He}),n.d(a,"encodeUnsigned",function(){return We}),n.d(a,"encodeContractAddress",function(){return Qe}),n.d(a,"generateKeyPairFromSecret",function(){return ze}),n.d(a,"generateKeyPair",function(){return Ge}),n.d(a,"encryptPublicKey",function(){return Xe}),n.d(a,"encryptPrivateKey",function(){return $e}),n.d(a,"encryptKey",function(){return Je}),n.d(a,"decryptKey",function(){return Ye}),n.d(a,"sign",function(){return Ze}),n.d(a,"verify",function(){return tn}),n.d(a,"prepareTx",function(){return en}),n.d(a,"personalMessageToBinary",function(){return nn}),n.d(a,"signPersonalMessage",function(){return rn}),n.d(a,"verifyPersonalMessage",function(){return an}),n.d(a,"aeEncodeKey",function(){return on}),n.d(a,"generateSaveWallet",function(){return cn}),n.d(a,"decryptPrivateKey",function(){return sn}),n.d(a,"decryptPubKey",function(){return un}),n.d(a,"assertedType",function(){return pn}),n.d(a,"decodeTx",function(){return fn}),n.d(a,"encodeTx",function(){return ln}),n.d(a,"isValidKeypair",function(){return dn}),n.d(a,"envKeypair",function(){return hn}),n.d(a,"decode",function(){return mn}),n.d(a,"encode",function(){return vn}),n.d(a,"rlp",function(){return yn}),n.d(a,"deserialize",function(){return Cn});var o={};n.r(o),n.d(o,"calculateMinFee",function(){return Vn}),n.d(o,"calculateFee",function(){return qn}),n.d(o,"validateParams",function(){return Fn}),n.d(o,"buildRawTx",function(){return Un}),n.d(o,"unpackRawTx",function(){return Mn}),n.d(o,"buildTx",function(){return Rn}),n.d(o,"unpackTx",function(){return Dn}),n.d(o,"default",function(){return Kn});var i=n(5),c=n.n(i),s=n(49),u=n.n(s),p=n(31),f=n(73),l=n(26),d=n.n(l),h=n(74),m=n.n(h),v=n(8),y=n.n(v);function g(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==t){if(Number.isInteger(t)||v.BigNumber.isBigNumber(t)||e)return v.BigNumber.isBigNumber(t)||(t=Object(v.BigNumber)(t)),(n=t.toString(16)).length%2>0&&(n="0"+n),Buffer.from(n,"hex");var n;if("string"==typeof t)return t.toString("utf-8");throw new Error("Byte serialization not supported")}}var x,b,w,k,T,I,C,O,j=n(75),A=n.n(j),S=n(0),P=n.n(S),_=n(1),E=n.n(_),B=n(10),V=n.n(B),N=n(2),q=n.n(N),F=1,U=11,M=function(t,e,n){return[t,e,n]},R=function(t,e){return[t,e]},D=1e9,K={account:"account",signed:"signedTx",spend:"spendTx",nameClaim:"nameClaimTx",namePreClaim:"namePreClaimTx",nameUpdate:"nameUpdateTx",nameRevoke:"nameRevokeTx",nameTransfer:"nameTransfer",contract:"contract",contractCreate:"contractCreateTx",contractCall:"contractCallTx",contractCallResult:"contractCallResult",oracleRegister:"oracleRegister",oracleExtend:"oracleExtend",oracleQuery:"oracleQuery",oracleResponse:"oracleResponse",channelCreate:"channelCreate",channelCloseMutual:"channelCloseMutual",channelCloseSolo:"channelCloseSolo",channelSlash:"channelSlash",channelDeposit:"channelDeposit",channelWithdraw:"channelWithdraw",channelSettle:"channelSettle",channelOffChain:"channelOffChain",channel:"channel",channelSnapshotSolo:"channelSnapshotSolo",channelOffChainUpdateTransfer:"channelOffChainUpdateTransfer",channelOffChainUpdateDeposit:"channelOffChainUpdateDeposit",channelOffChainUpdateWithdrawal:"channelOffChainUpdateWithdrawal",channelOffChainCreateContract:"channelOffChainCreateContract",channelOffChainCallContract:"channelOffChainCallContract",proofOfInclusion:"proofOfInclusion",stateTrees:"stateTrees",merklePatriciaTree:"merklePatriciaTree",merklePatriciaTreeValue:"merklePatriciaTreeValue",contractsTree:"contractsTree",contractCallsTree:"contractCallsTree",channelsTree:"channelsTree",nameserviceTree:"nameserviceTree",oraclesTree:"oraclesTree",accountsTree:"accountsTree"},L=1,H=3,W=4,Q=0,z=1,G={1:(x={},q()(x,K.contractCreate,{vmVersion:[L],abiVersion:[z]}),q()(x,K.contractCall,{vmVersion:[L],abiVersion:[z]}),q()(x,K.oracleRegister,{vmVersion:[L],abiVersion:[Q,z]}),x),2:(b={},q()(b,K.contractCreate,{vmVersion:[H],abiVersion:[z]}),q()(b,K.contractCall,{vmVersion:[H,L],abiVersion:[z]}),q()(b,K.oracleRegister,{vmVersion:[H],abiVersion:[Q,z]}),b),3:(w={},q()(w,K.contractCreate,{vmVersion:[W],abiVersion:[z]}),q()(w,K.contractCall,{vmVersion:[W,L,H],abiVersion:[z]}),q()(w,K.oracleRegister,{vmVersion:[],abiVersion:[Q,z]}),w)},X=(k={},q()(k,10,K.account),q()(k,U,K.signed),q()(k,12,K.spend),q()(k,32,K.nameClaim),q()(k,33,K.namePreClaim),q()(k,34,K.nameUpdate),q()(k,35,K.nameRevoke),q()(k,36,K.nameTransfer),q()(k,40,K.contract),q()(k,42,K.contractCreate),q()(k,43,K.contractCall),q()(k,41,K.contractCallResult),q()(k,22,K.oracleRegister),q()(k,25,K.oracleExtend),q()(k,23,K.oracleQuery),q()(k,24,K.oracleResponse),q()(k,50,K.channelCreate),q()(k,53,K.channelCloseMutual),q()(k,54,K.channelCloseSolo),q()(k,55,K.channelSlash),q()(k,51,K.channelDeposit),q()(k,52,K.channelWithdraw),q()(k,56,K.channelSettle),q()(k,57,K.channelOffChain),q()(k,58,K.channel),q()(k,59,K.channelSnapshotSolo),q()(k,570,K.channelOffChainUpdateTransfer),q()(k,571,K.channelOffChainUpdateDeposit),q()(k,572,K.channelOffChainUpdateWithdrawal),q()(k,573,K.channelOffChainCreateContract),q()(k,574,K.channelOffChainCallContract),q()(k,60,K.proofOfInclusion),q()(k,62,K.stateTrees),q()(k,63,K.merklePatriciaTree),q()(k,64,K.merklePatriciaTreeValue),q()(k,621,K.contractsTree),q()(k,622,K.contractCallsTree),q()(k,623,K.channelsTree),q()(k,624,K.nameserviceTree),q()(k,625,K.oraclesTree),q()(k,626,K.accountsTree),k),$={int:"int",id:"id",ids:"ids",string:"string",binary:"binary",rlpBinary:"rlpBinary",rlpBinaries:"rlpBinaries",rawBinary:"rawBinary",bool:"bool",hex:"hex",signatures:"signatures",pointers:"pointers",offChainUpdates:"offChainUpdates",callStack:"callStack",proofOfInclusion:"proofOfInclusion",mptree:"mptree",callReturnType:"callReturnType",ctVersion:"ctVersion",payload:"payload"},J=2e4,Y=function(t){switch(t){case K.contractCreate:return y()(75e3);case K.contractCall:return y()(45e4);default:return y()(15e3)}},Z=function(t){return function(e){var n=e.txSize,r=e.relativeTtl;switch(t){case K.oracleRegister:case K.oracleExtend:case K.oracleQuery:case K.oracleResponse:return y()(n).times(20).plus(Math.ceil(32e3*r/Math.floor(175200)));default:return y()(n).times(20)}}},tt={ak:1,nm:2,cm:3,ok:4,ct:5,ch:6},et=(O=tt,Object.entries(O).reduce(function(t,e){var n=c()(e,2),r=n[0];return(t[n[1]]=r)&&t},{})),nt=function(t){return t},rt=(T={},q()(T,$.int,function(t){var e=t.value,n=t.isMinusValue;return nt("".concat(e,n?" must be >= 0":" is not of type Number or BigNumber"))}),q()(T,$.id,function(t){var e=t.value,n=t.prefix;return nt("'".concat(e,"' prefix doesn't match expected prefix '").concat(n,"' or ID_TAG for prefix not found"))}),q()(T,$.binary,function(t){var e=t.prefix,n=t.value;return nt("'".concat(n,"' prefix doesn't match expected prefix '").concat(e,"'"))}),q()(T,$.string,function(t){t.value;return nt("Not a string")}),q()(T,$.pointers,function(t){t.value;return nt('Value must be of type Array and contains only object\'s like \'{key: "account_pubkey", id: "ak_lkamsflkalsdalksdlasdlasdlamd"}\'')}),q()(T,$.ctVersion,function(t){t.value;return nt('Value must be an object with "vmVersion" and "abiVersion" fields')}),T),at=[M("tag",$.int),M("VSN",$.int)],ot=[].concat(at,[M("nonce",$.int),M("balance",$.int)]),it=[].concat(at,[M("flags",$.int),M("nonce",$.int),M("balance",$.int),M("gaContract",$.id,"ct"),M("gaAuthFun",$.binary,"cb")]),ct=[].concat(at,[M("senderId",$.id,"ak"),M("recipientId",$.id,"ak"),M("amount",$.int),M("fee",$.int),M("ttl",$.int),M("nonce",$.int),M("payload",$.payload)]),st=[].concat(at,[M("signatures",$.signatures),M("encodedTx",$.rlpBinary)]),ut=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("commitmentId",$.id,"cm"),M("fee",$.int),M("ttl",$.int)]),pt=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("name",$.binary,"nm"),M("nameSalt",$.int),M("fee",$.int),M("ttl",$.int)]),ft=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("nameId",$.id,"nm"),M("nameTtl",$.int),M("pointers",$.pointers),M("clientTtl",$.int),M("fee",$.int),M("ttl",$.int)]),lt=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("nameId",$.id,"nm"),M("recipientId",$.id,"ak"),M("fee",$.int),M("ttl",$.int)]),dt=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("nameId",$.id,"nm"),M("fee",$.int),M("ttl",$.int)]),ht=[].concat(at,[M("owner",$.id,"ak"),M("ctVersion",$.int),M("code",$.binary,"cb"),M("log",$.binary,"cb"),M("active",$.bool),M("referers",$.ids,"ak"),M("deposit",$.int)]),mt=[].concat(at,[M("ownerId",$.id,"ak"),M("nonce",$.int),M("code",$.binary,"cb"),M("ctVersion",$.ctVersion),M("fee",$.int),M("ttl",$.int),M("deposit",$.int),M("amount",$.int),M("gas",$.int),M("gasPrice",$.int),M("callData",$.binary,"cb")]),vt=[].concat(at,[M("callerId",$.id,"ak"),M("nonce",$.int),M("contractId",$.id,"ct"),M("abiVersion",$.int),M("fee",$.int),M("ttl",$.int),M("amount",$.int),M("gas",$.int),M("gasPrice",$.int),M("callData",$.binary,"cb")]),yt=[].concat(at,[M("callerId",$.id,"ak"),M("callerNonce",$.int),M("height",$.int),M("contractId",$.id,"ct"),M("gasPrice",$.int),M("gasUsed",$.int),M("returnValue",$.binary,"cb"),M("returnType",$.callReturnType),M("log",$.rawBinary)]),gt=[].concat(at,[M("accountId",$.id,"ak"),M("nonce",$.int),M("queryFormat",$.string),M("responseFormat",$.string),M("queryFee",$.int),M("oracleTtlType",$.int),M("oracleTtlValue",$.int),M("fee",$.int),M("ttl",$.int),M("abiVersion",$.int)]),xt=[].concat(at,[M("oracleId",$.id,"ok"),M("nonce",$.int),M("oracleTtlType",$.int),M("oracleTtlValue",$.int),M("fee",$.int),M("ttl",$.int)]),bt=[].concat(at,[M("senderId",$.id,"ak"),M("nonce",$.int),M("oracleId",$.id,"ok"),M("query",$.string),M("queryFee",$.int),M("queryTtlType",$.int),M("queryTtlValue",$.int),M("responseTtlType",$.int),M("responseTtlValue",$.int),M("fee",$.int),M("ttl",$.int)]),wt=[].concat(at,[M("oracleId",$.id,"ok"),M("nonce",$.int),M("queryId",$.binary,"oq"),M("response",$.string),M("responseTtlType",$.int),M("responseTtlValue",$.int),M("fee",$.int),M("ttl",$.int)]),kt=[].concat(at,[M("initiator",$.id,"ak"),M("initiatorAmount",$.int),M("responder",$.id,"ak"),M("responderAmount",$.int),M("channelReserve",$.int),M("lockPeriod",$.int),M("ttl",$.int),M("fee",$.int),M("delegateIds",$.string),M("stateHash",$.binary,"st"),M("nonce",$.int)]),Tt=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("amount",$.int),M("ttl",$.int),M("fee",$.int),M("stateHash",$.binary,"st"),M("round",$.int),M("nonce",$.int)]),It=[].concat(at,[M("channelId",$.id,"ch"),M("toId",$.id,"ak"),M("amount",$.int),M("ttl",$.int),M("fee",$.int),M("stateHash",$.binary,"st"),M("round",$.int),M("nonce",$.int)]),Ct=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("initiatorAmountFinal",$.int),M("responderAmountFinal",$.int),M("ttl",$.int),M("fee",$.int),M("nonce",$.int)]),Ot=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("payload",$.binary,"tx"),M("poi",$.binary,"pi"),M("ttl",$.int),M("fee",$.int),M("nonce",$.int)]),jt=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("payload",$.binary,"tx"),M("poi",$.binary,"pi"),M("ttl",$.int),M("fee",$.int),M("nonce",$.int)]),At=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("initiatorAmountFinal",$.int),M("responderAmountFinal",$.int),M("ttl",$.int),M("fee",$.int),M("nonce",$.int)]),St=[].concat(at,[M("channelId",$.id,"ch"),M("round",$.int),M("updates",$.offChainUpdates),M("stateHash",$.binary,"st")]),Pt=[].concat(at,[M("channelId",$.id,"ch"),M("round",$.int),M("stateHash",$.binary,"st")]),_t=[].concat(at,[M("initiator",$.id,"ak"),M("responder",$.id,"ak"),M("channelAmount",$.int),M("initiatorAmount",$.int),M("responderAmount",$.int),M("channelReserve",$.int),M("delegateIds",$.ids),M("stateHash",$.hex),M("round",$.int),M("soloRound",$.int),M("lockPeriod",$.int),M("lockedUntil",$.int)]),Et=[].concat(at,[M("initiator",$.id,"ak"),M("responder",$.id,"ak"),M("channelAmount",$.int),M("initiatorAmount",$.int),M("responderAmount",$.int),M("channelReserve",$.int),M("delegateIds",$.ids),M("stateHash",$.hex),M("round",$.int),M("soloRound",$.int),M("lockPeriod",$.int),M("lockedUntil",$.int),M("initiatorAuth",$.binary,"cb"),M("responderAuth",$.binary,"cb")]),Bt=[].concat(at,[M("channelId",$.id,"ch"),M("fromId",$.id,"ak"),M("payload",$.binary,"tx"),M("ttl",$.int),M("fee",$.int),M("nonce",$.int)]),Vt=[].concat(at,[M("owner",$.id,"ak"),M("ctVersion",$.int),M("code",$.binary,"cb"),M("deposit",$.int),M("callData",$.binary,"cb")]),Nt=[].concat(at,[M("caller",$.id,"ak"),M("contract",$.id,"ct"),M("abiVersion",$.int),M("amount",$.int),M("callData",$.binary,"cb"),M("callStack",$.callStack),M("gasPrice",$.int),M("gasLimit",$.int)]),qt=[].concat(at,[M("from",$.id,"ak"),M("to",$.id,"ak"),M("amount",$.int)]),Ft=[].concat(at,[M("from",$.id,"ak"),M("amount",$.int)]),Ut=[].concat(at,[M("from",$.id,"ak"),M("amount",$.int)]),Mt=[].concat(at,[M("accounts",$.mptrees),M("calls",$.mptrees),M("channels",$.mptrees),M("contracts",$.mptrees),M("ns",$.mptrees),M("oracles",$.mptrees)]),Rt=[].concat(at,[M("contracts",$.rlpBinary),M("calls",$.rlpBinary),M("channels",$.rlpBinary),M("ns",$.rlpBinary),M("oracles",$.rlpBinary),M("accounts",$.rlpBinary)]),Dt=[].concat(at,[M("values",$.rlpBinaries)]),Kt=[].concat(at,[M("key",$.hex),M("value",$.rawBinary)]),Lt=[].concat(at,[M("contracts",$.rlpBinary)]),Ht=[].concat(at,[M("calls",$.rlpBinary)]),Wt=[].concat(at,[M("channels",$.rlpBinary)]),Qt=[].concat(at,[M("mtree",$.rlpBinary)]),zt=[].concat(at,[M("otree",$.rlpBinary)]),Gt=[].concat(at,[M("accounts",$.rlpBinary)]),Xt=(I={},q()(I,K.account,{1:R(ot,10),2:R(it,10)}),q()(I,K.signed,{1:R(st,U)}),q()(I,K.spend,{1:R(ct,12)}),q()(I,K.namePreClaim,{1:R(ut,33)}),q()(I,K.nameClaim,{1:R(pt,32)}),q()(I,K.nameUpdate,{1:R(ft,34)}),q()(I,K.nameTransfer,{1:R(lt,36)}),q()(I,K.nameRevoke,{1:R(dt,35)}),q()(I,K.contract,{1:R(ht,40)}),q()(I,K.contractCreate,{1:R(mt,42)}),q()(I,K.contractCall,{1:R(vt,43)}),q()(I,K.contractCallResult,{1:R(yt,41)}),q()(I,K.oracleRegister,{1:R(gt,22)}),q()(I,K.oracleExtend,{1:R(xt,25)}),q()(I,K.oracleQuery,{1:R(bt,23)}),q()(I,K.oracleResponse,{1:R(wt,24)}),q()(I,K.channelCreate,{1:R(kt,50)}),q()(I,K.channelCloseMutual,{1:R(Ct,53)}),q()(I,K.channelCloseSolo,{1:R(Ot,54)}),q()(I,K.channelSlash,{1:R(jt,55)}),q()(I,K.channelDeposit,{1:R(Tt,51)}),q()(I,K.channelWithdraw,{1:R(It,52)}),q()(I,K.channelSettle,{1:R(At,56)}),q()(I,K.channelOffCh