truffle
Version:
Truffle - Simple development framework for Ethereum
2 lines • 13.3 MB
JavaScript
/*! For license information please see bundle.js.LICENSE.txt */
(function(){var __webpack_modules__={39721:function(e,t,r){"use strict";r.d(t,{Z:function(){return ie}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function f(e,t,r){return e.slice(t,r)}function d(e){return e.length}function h(e){return e.length}function A(e,t){return t.push(e),e}var p=1,g=1,b=0,m=0,y=0,v="";function E(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:p,column:g,length:a,return:""}}function w(e,t){return a(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function I(){return y=m>0?l(v,--m):0,g--,10===y&&(g=1,p--),y}function _(){return y=m<b?l(v,m++):0,g++,10===y&&(g=1,p++),y}function B(){return l(v,m)}function C(){return m}function x(e,t){return f(v,e,t)}function S(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function M(e){return p=g=1,b=d(v=e),m=0,[]}function k(e){return v="",e}function T(e){return s(x(m-1,Q(91===e?e+2:40===e?e+1:e)))}function N(e){for(;(y=B())&&y<33;)_();return S(e)>2||S(y)>3?"":" "}function R(e,t){for(;--t&&_()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return x(e,C()+(t<6&&32==B()&&32==_()))}function Q(e){for(;_();)switch(y){case e:return m;case 34:case 39:34!==e&&39!==e&&Q(y);break;case 40:41===e&&Q(e);break;case 92:_()}return m}function D(e,t){for(;_()&&e+y!==57&&(e+y!==84||47!==B()););return"/*"+x(t,m-1)+"*"+o(47===e?e:_())}function O(e){for(;!S(B());)_();return x(e,m)}var P="-ms-",L="-moz-",F="-webkit-",U="comm",G="rule",j="decl",z="@keyframes";function H(e,t){for(var r="",n=h(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function q(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case U:return"";case z:return e.return=e.value+"{"+H(e.children,n)+"}";case G:e.value=e.props.join(",")}return d(r=H(e.children,n))?e.return=e.value+"{"+r+"}":""}function K(e){return k(V("",null,null,null,[""],e=M(e),0,[0],e))}function V(e,t,r,n,i,a,s,f,h){for(var p=0,g=0,b=s,m=0,y=0,v=0,E=1,w=1,x=1,S=0,M="",k=i,Q=a,P=n,L=M;w;)switch(v=S,S=_()){case 40:if(108!=v&&58==l(L,b-1)){-1!=u(L+=c(T(S),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:L+=T(S);break;case 9:case 10:case 13:case 32:L+=N(v);break;case 92:L+=R(C()-1,7);continue;case 47:switch(B()){case 42:case 47:A(J(D(_(),C()),t,r),h);break;default:L+="/"}break;case 123*E:f[p++]=d(L)*x;case 125*E:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+g:-1==x&&(L=c(L,/\f/g,"")),y>0&&d(L)-b&&A(y>32?W(L+";",n,r,b-1):W(c(L," ","")+";",n,r,b-2),h);break;case 59:L+=";";default:if(A(P=Y(L,t,r,p,g,i,f,M,k=[],Q=[],b),a),123===S)if(0===g)V(L,t,P,P,k,a,b,f,Q);else switch(99===m&&110===l(L,3)?100:m){case 100:case 108:case 109:case 115:V(e,P,P,n&&A(Y(e,P,P,0,0,i,f,M,i,k=[],b),Q),i,Q,b,f,n?k:Q);break;default:V(L,P,P,P,[""],Q,0,f,Q)}}p=g=y=0,E=x=1,M=L="",b=s;break;case 58:b=1+d(L),y=v;default:if(E<1)if(123==S)--E;else if(125==S&&0==E++&&125==I())continue;switch(L+=o(S),S*E){case 38:x=g>0?1:(L+="\f",-1);break;case 44:f[p++]=(d(L)-1)*x,x=1;break;case 64:45===B()&&(L+=T(_())),m=B(),g=b=d(M=L+=O(C())),S++;break;case 45:45===v&&2==d(L)&&(E=0)}}return a}function Y(e,t,r,n,o,a,u,l,d,A,p){for(var g=o-1,b=0===o?a:[""],m=h(b),y=0,v=0,w=0;y<n;++y)for(var I=0,_=f(e,g+1,g=i(v=u[y])),B=e;I<m;++I)(B=s(v>0?b[I]+" "+_:c(_,/&\f/g,b[I])))&&(d[w++]=B);return E(e,t,r,0===o?G:l,d,A,p)}function J(e,t,r){return E(e,t,r,U,o(y),f(e,2,-2),0)}function W(e,t,r,n){return E(e,t,r,j,f(e,0,n),f(e,n+1,-1),n)}var Z=function(e,t,r){for(var n=0,i=0;n=i,i=B(),38===n&&12===i&&(t[r]=1),!S(i);)_();return x(e,m)},$=function(e,t){return k(function(e,t){var r=-1,n=44;do{switch(S(n)){case 0:38===n&&12===B()&&(t[r]=1),e[r]+=Z(m-1,t,r);break;case 2:e[r]+=T(n);break;case 4:if(44===n){e[++r]=58===B()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}}while(n=_());return e}(M(e),t))},X=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(r))&&!n){X.set(e,!0);for(var i=[],o=$(t,i),a=r.props,s=0,c=0;s<o.length;s++)for(var u=0;u<a.length;u++,c++)e.props[c]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function re(e,t){switch(function(e,t){return 45^l(e,0)?(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+L+e+P+e+e;case 6828:case 4268:return F+e+P+e+e;case 6165:return F+e+P+"flex-"+e+e;case 5187:return F+e+c(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+P+"flex-$1$2")+e;case 5443:return F+e+P+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return F+e+P+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+P+c(e,"shrink","negative")+e;case 5292:return F+e+P+c(e,"basis","preferred-size")+e;case 6060:return F+"box-"+c(e,"-grow","")+F+e+P+c(e,"grow","positive")+e;case 4554:return F+c(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+P+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+L+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?re(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~u(e,"!important")&&10))){case 107:return c(e,":",":"+F)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(45===l(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+P+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return F+e+P+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+P+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+P+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+P+e+e}return e}var ne=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=re(e.value,e.length);break;case z:return H([w(e,{value:c(e.value,"@","@"+F)})],n);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([w(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return H([w(e,{props:[c(t,/:(plac\w+)/,":"+F+"input-$1")]}),w(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),w(e,{props:[c(t,/:(plac\w+)/,P+"input-$1")]})],n)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ne;var o,a,s={},c=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)s[t[r]]=!0;c.push(e)}));var u,l,f,d,A=[q,(d=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(l=[ee,te].concat(i,A),f=h(l),function(e,t,r,n){for(var i="",o=0;o<f;o++)i+=l[o](e,t,r,n)||"";return i});a=function(e,t,r,n){u=r,H(K(e?e+"{"+t.styles+"}":t.styles),p),n&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new n({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return g.sheet.hydrate(c),g}},34194:function(e,t,r){"use strict";r.d(t,{T:function(){return l},a:function(){return d},i:function(){return s},w:function(){return u}});var n=r(2784),i=r(39721),o=r(7896),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},s=(r(99034),r(82668),!0),c=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);c.Provider;var u=function(e){return(0,n.forwardRef)((function(t,r){var i=(0,n.useContext)(c);return e(t,i,r)}))};s||(u=function(e){return function(t){var r=(0,n.useContext)(c);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(c.Provider,{value:r},e(t,r))):e(t,r)}});var l=n.createContext({});var f=a((function(e){return a((function(t){return function(e,t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)}(e,t)}))})),d=function(e){var t=n.useContext(l);return e.theme!==t&&(t=f(t)(e.theme)),n.createElement(l.Provider,{value:t},e.children)}},28165:function(e,t,r){"use strict";r.d(t,{F4:function(){return l},iv:function(){return u},xB:function(){return c}});var n=r(34194),i=r(2784),o=r(82792),a=r(82668),s=r(99034),c=(r(39721),r(73463),(0,n.w)((function(e,t){var r=e.styles,c=(0,s.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,l=c.name,f=c.styles,d=c.next;void 0!==d;)l+=" "+d.name,f+=d.styles,d=d.next;var h=!0===t.compat,A=t.insert("",{name:l,styles:f},t.sheet,h);return h?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+l,u.dangerouslySetInnerHTML={__html:A},u.nonce=t.sheet.nonce,u))}var p=i.useRef();return(0,a.j)((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+c.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),p.current=[r,n],function(){r.flush()}}),[t]),(0,a.j)((function(){var e=p.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==c.next&&(0,o.My)(t,c.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",c,r,!1)}}),[t,c.name]),null})));function u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var l=function(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},99034:function(e,t,r){"use strict";r.d(t,{O:function(){return A}});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function i(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var o=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!=typeof e},u=i((function(e){return s(e)?e:e.replace(o,"-$&").toLowerCase()})),l=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,r){return d={name:t,styles:r,next:d},t}))}return 1===n[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return d={name:r.name,styles:r.styles,next:d},r.name;if(void 0!==r.styles){var n=r.next;if(void 0!==n)for(;void 0!==n;)d={name:n.name,styles:n.styles,next:d},n=n.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=f(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":c(a)&&(n+=u(o)+":"+l(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=f(e,t,a);switch(o){case"animation":case"animationName":n+=u(o)+":"+s+";";break;default:n+=o+"{"+s+"}"}}else for(var d=0;d<a.length;d++)c(a[d])&&(n+=u(o)+":"+l(o,a[d])+";")}return n}(e,t,r);case"function":if(void 0!==e){var i=d,o=r(e);return d=i,f(e,t,o)}}if(null==t)return r;var a=t[r];return void 0!==a?a:r}var d,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var A=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";d=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=f(r,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=f(r,t,e[a]),n&&(i+=o[a]);h.lastIndex=0;for(var s,c="";null!==(s=h.exec(i));)c+="-"+s[1];var u=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(i)+c;return{name:u,styles:i,next:d}}},82668:function(e,t,r){"use strict";var n;r.d(t,{j:function(){return a}});var i=r(2784),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||i.useLayoutEffect},82792:function(e,t,r){"use strict";r.d(t,{My:function(){return i},fp:function(){return n}});function n(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}var i=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},46646:function(e,t,r){"use strict";r.r(t),r.d(t,{formats:function(){return wt},formatsByCoinType:function(){return _t},formatsByName:function(){return It}});for(var n=r(5634),i=r(48834).Buffer,o="qpzry9x8gf2tvdw0s3jn54khce6mua7l",a={},s=0;s<32;s++){var c=o.charAt(s);if(void 0!==a[c])throw new TypeError(c+" is ambiguous");a[c]=s}function u(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function l(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)throw new Error("Invalid prefix ("+e+")");t=u(t)^n>>5}for(t=u(t),r=0;r<e.length;++r){var i=e.charCodeAt(r);t=u(t)^31&i}return t}function f(e,t,r,n){for(var i=0,o=0,a=(1<<r)-1,s=[],c=0;c<e.length;++c)for(i=i<<t|e[c],o+=t;o>=r;)s.push(i>>(o-=r)&a);if(n)o>0&&s.push(i<<r-o&a);else{if(o>=t)throw new Error("Excess padding");if(i<<r-o&a)throw new Error("Non-zero padding")}return s}var d=function(e,t){if(t=t||90,e.length<8)throw new TypeError(e+" too short");if(e.length>t)throw new TypeError("Exceeds length limit");var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)throw new Error("Mixed-case string "+e);var i=(e=r).lastIndexOf("1");if(-1===i)throw new Error("No separator character for "+e);if(0===i)throw new Error("Missing prefix for "+e);var o=e.slice(0,i),s=e.slice(i+1);if(s.length<6)throw new Error("Data too short");for(var c=l(o),f=[],d=0;d<s.length;++d){var h=s.charAt(d),A=a[h];if(void 0===A)throw new Error("Unknown character "+h);c=u(c)^A,d+6>=s.length||f.push(A)}if(1!==c)throw new Error("Invalid checksum for "+e);return{prefix:o,words:f}},h=function(e,t,r){if(e.length+7+t.length>(r=r||90))throw new TypeError("Exceeds length limit");for(var n=l(e=e.toLowerCase()),i=e+"1",a=0;a<t.length;++a){var s=t[a];if(s>>5!=0)throw new Error("Non 5-bit word");n=u(n)^s,i+=o.charAt(s)}for(a=0;a<6;++a)n=u(n);for(n^=1,a=0;a<6;++a)i+=o.charAt(n>>5*(5-a)&31);return i},A=function(e){return f(e,8,5,!0)},p=function(e){return f(e,5,8,!1)};function g(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var b=g((function(e){var t=function(e){var r=1e7,n=9007199254740992,i=l(n),o=Math.log(n);function a(e,t){return void 0===e?a[0]:void 0!==t?10==+t?q(e):F(e,t):q(e)}function s(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){return-n<e&&e<n}function l(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function f(e){d(e);var t=e.length;if(t<4&&x(e,i)<0)switch(t){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*r;default:return e[0]+(e[1]+e[2]*r)*r}return e}function d(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=new Array(e),r=-1;++r<e;)t[r]=0;return t}function A(e){return e>0?Math.floor(e):Math.ceil(e)}function p(e,t){var n,i,o=e.length,a=t.length,s=new Array(o),c=0,u=r;for(i=0;i<a;i++)s[i]=(n=e[i]+t[i]+c)-(c=n>=u?1:0)*u;for(;i<o;)n=e[i]+c,s[i++]=n-(c=n===u?1:0)*u;return c>0&&s.push(c),s}function g(e,t){return e.length>=t.length?p(e,t):p(t,e)}function b(e,t){var n,i,o=e.length,a=new Array(o),s=r;for(i=0;i<o;i++)n=e[i]-s+t,t=Math.floor(n/s),a[i]=n-t*s,t+=1;for(;t>0;)a[i++]=t%s,t=Math.floor(t/s);return a}function m(e,t){var r,n,i=e.length,o=t.length,a=new Array(i),s=0;for(r=0;r<o;r++)(n=e[r]-s-t[r])<0?(n+=1e7,s=1):s=0,a[r]=n;for(r=o;r<i;r++){if(!((n=e[r]-s)<0)){a[r++]=n;break}a[r]=n+=1e7}for(;r<i;r++)a[r]=e[r];return d(a),a}function y(e,t,r){var n,i,o=e.length,a=new Array(o),u=-t;for(n=0;n<o;n++)i=e[n]+u,u=Math.floor(i/1e7),a[n]=(i%=1e7)<0?i+1e7:i;return"number"==typeof(a=f(a))?(r&&(a=-a),new c(a)):new s(a,r)}function v(e,t){var r,n,i,o,a=e.length,s=t.length,c=h(a+s);for(i=0;i<a;++i){o=e[i];for(var u=0;u<s;++u)r=o*t[u]+c[i+u],n=Math.floor(r/1e7),c[i+u]=r-1e7*n,c[i+u+1]+=n}return d(c),c}function E(e,t){var n,i,o=e.length,a=new Array(o),s=r,c=0;for(i=0;i<o;i++)n=e[i]*t+c,c=Math.floor(n/s),a[i]=n-c*s;for(;c>0;)a[i++]=c%s,c=Math.floor(c/s);return a}function w(e,t){for(var r=[];t-- >0;)r.push(0);return r.concat(e)}function I(e,t,n){return new s(e<r?E(t,e):v(t,l(e)),n)}function _(e){var t,r,n,i,o=e.length,a=h(o+o);for(n=0;n<o;n++){r=0-(i=e[n])*i;for(var s=n;s<o;s++)t=i*e[s]*2+a[n+s]+r,r=Math.floor(t/1e7),a[n+s]=t-1e7*r;a[n+o]=r}return d(a),a}function B(e,t){var r,n,i,o,a=e.length,s=h(a);for(i=0,r=a-1;r>=0;--r)i=(o=1e7*i+e[r])-(n=A(o/t))*t,s[r]=0|n;return[s,0|i]}function C(e,t){var n,i,o=q(t),u=e.value,p=o.value;if(0===p)throw new Error("Cannot divide by zero");if(e.isSmall)return o.isSmall?[new c(A(u/p)),new c(u%p)]:[a[0],e];if(o.isSmall){if(1===p)return[e,a[0]];if(-1==p)return[e.negate(),a[0]];var g=Math.abs(p);if(g<r){i=f((n=B(u,g))[0]);var b=n[1];return e.sign&&(b=-b),"number"==typeof i?(e.sign!==o.sign&&(i=-i),[new c(i),new c(b)]):[new s(i,e.sign!==o.sign),new c(b)]}p=l(g)}var y=x(u,p);if(-1===y)return[a[0],e];if(0===y)return[a[e.sign===o.sign?1:-1],a[0]];n=u.length+p.length<=200?function(e,t){var n,i,o,a,s,c,u,l=e.length,d=t.length,A=r,p=h(t.length),g=t[d-1],b=Math.ceil(A/(2*g)),m=E(e,b),y=E(t,b);for(m.length<=l&&m.push(0),y.push(0),g=y[d-1],i=l-d;i>=0;i--){for(n=A-1,m[i+d]!==g&&(n=Math.floor((m[i+d]*A+m[i+d-1])/g)),o=0,a=0,c=y.length,s=0;s<c;s++)o+=n*y[s],u=Math.floor(o/A),a+=m[i+s]-(o-u*A),o=u,a<0?(m[i+s]=a+A,a=-1):(m[i+s]=a,a=0);for(;0!==a;){for(n-=1,o=0,s=0;s<c;s++)(o+=m[i+s]-A+y[s])<0?(m[i+s]=o+A,o=0):(m[i+s]=o,o=1);a+=o}p[i]=n}return m=B(m,b)[0],[f(p),f(m)]}(u,p):function(e,t){for(var r,n,i,o,a=e.length,s=t.length,c=[],u=[];a;)if(u.unshift(e[--a]),d(u),x(u,t)<0)c.push(0);else{i=1e7*u[(n=u.length)-1]+u[n-2],n>s&&(i=1e7*(i+1)),r=Math.ceil(i/(1e7*t[s-1]+t[s-2]));do{if(x(o=E(t,r),u)<=0)break;r--}while(r);c.push(r),u=m(u,o)}return c.reverse(),[f(c),f(u)]}(u,p);var v=e.sign!==o.sign,w=n[1],I=e.sign;return"number"==typeof(i=n[0])?(v&&(i=-i),i=new c(i)):i=new s(i,v),"number"==typeof w?(I&&(w=-w),w=new c(w)):w=new s(w,I),[i,w]}function x(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var r=e.length-1;r>=0;r--)if(e[r]!==t[r])return e[r]>t[r]?1:-1;return 0}function S(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function M(e,r){for(var n,i,o,s=e.prev(),c=s,u=0;c.isEven();)c=c.divide(2),u++;e:for(i=0;i<r.length;i++)if(!e.lesser(r[i])&&!(o=t(r[i]).modPow(c,e)).equals(a[1])&&!o.equals(s)){for(n=u-1;0!=n;n--){if((o=o.square().mod(e)).isUnit())return!1;if(o.equals(s))continue e}return!1}return!0}s.prototype=Object.create(a.prototype),c.prototype=Object.create(a.prototype),s.prototype.add=function(e){var t=q(e);if(this.sign!==t.sign)return this.subtract(t.negate());var r=this.value,n=t.value;return new s(t.isSmall?b(r,Math.abs(n)):g(r,n),this.sign)},s.prototype.plus=s.prototype.add,c.prototype.add=function(e){var t=q(e),r=this.value;if(r<0!==t.sign)return this.subtract(t.negate());var n=t.value;if(t.isSmall){if(u(r+n))return new c(r+n);n=l(Math.abs(n))}return new s(b(n,Math.abs(r)),r<0)},c.prototype.plus=c.prototype.add,s.prototype.subtract=function(e){var t=q(e);if(this.sign!==t.sign)return this.add(t.negate());var r=this.value,n=t.value;return t.isSmall?y(r,Math.abs(n),this.sign):function(e,t,r){var n;return x(e,t)>=0?n=m(e,t):(n=m(t,e),r=!r),"number"==typeof(n=f(n))?(r&&(n=-n),new c(n)):new s(n,r)}(r,n,this.sign)},s.prototype.minus=s.prototype.subtract,c.prototype.subtract=function(e){var t=q(e),r=this.value;if(r<0!==t.sign)return this.add(t.negate());var n=t.value;return t.isSmall?new c(r-n):y(n,Math.abs(r),r>=0)},c.prototype.minus=c.prototype.subtract,s.prototype.negate=function(){return new s(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},s.prototype.abs=function(){return new s(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},s.prototype.multiply=function(e){var t,n,i,o=q(e),c=this.value,u=o.value,f=this.sign!==o.sign;if(o.isSmall){if(0===u)return a[0];if(1===u)return this;if(-1===u)return this.negate();if((t=Math.abs(u))<r)return new s(E(c,t),f);u=l(t)}return-.012*(n=c.length)-.012*(i=u.length)+15e-6*n*i>0?new s(function e(t,r){var n=Math.max(t.length,r.length);if(n<=30)return v(t,r);n=Math.ceil(n/2);var i=t.slice(n),o=t.slice(0,n),a=r.slice(n),s=r.slice(0,n),c=e(o,s),u=e(i,a),l=e(g(o,i),g(s,a)),f=g(g(c,w(m(m(l,c),u),n)),w(u,2*n));return d(f),f}(c,u),f):new s(v(c,u),f)},s.prototype.times=s.prototype.multiply,c.prototype._multiplyBySmall=function(e){return u(e.value*this.value)?new c(e.value*this.value):I(Math.abs(e.value),l(Math.abs(this.value)),this.sign!==e.sign)},s.prototype._multiplyBySmall=function(e){return 0===e.value?a[0]:1===e.value?this:-1===e.value?this.negate():I(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.times=c.prototype.multiply=function(e){return q(e)._multiplyBySmall(this)},s.prototype.square=function(){return new s(_(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return u(e)?new c(e):new s(_(l(Math.abs(this.value))),!1)},c.prototype.divmod=s.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},c.prototype.over=c.prototype.divide=s.prototype.over=s.prototype.divide=function(e){return C(this,e)[0]},c.prototype.remainder=c.prototype.mod=s.prototype.remainder=s.prototype.mod=function(e){return C(this,e)[1]},s.prototype.pow=function(e){var t,r,n,i=q(e),o=this.value,s=i.value;if(0===s)return a[1];if(0===o)return a[0];if(1===o)return a[1];if(-1===o)return i.isEven()?a[1]:a[-1];if(i.sign)return a[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&u(t=Math.pow(o,s)))return new c(A(t));for(r=this,n=a[1];!0&s&&(n=n.times(r),--s),0!==s;)s/=2,r=r.square();return n},c.prototype.pow=s.prototype.pow,c.prototype.modPow=s.prototype.modPow=function(e,t){if(e=q(e),(t=q(t)).isZero())throw new Error("Cannot take modPow with modulus 0");for(var r=a[1],n=this.mod(t);e.isPositive();){if(n.isZero())return a[0];e.isOdd()&&(r=r.multiply(n).mod(t)),e=e.divide(2),n=n.square().mod(t)}return r},s.prototype.compareAbs=function(e){var t=q(e);return t.isSmall?1:x(this.value,t.value)},c.prototype.compareAbs=function(e){var t=q(e),r=Math.abs(this.value),n=t.value;return t.isSmall?r===(n=Math.abs(n))?0:r>n?1:-1:-1},s.prototype.compareTo=s.prototype.compare=function(e){if(1/0===e)return-1;if(-1/0===e)return 1;var t=q(e);return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:x(this.value,t.value)*(this.sign?-1:1)},c.prototype.compareTo=c.prototype.compare=function(e){if(1/0===e)return-1;if(-1/0===e)return 1;var t=q(e),r=this.value,n=t.value;return t.isSmall?r==n?0:r>n?1:-1:r<0!==t.sign?r<0?-1:1:r<0?1:-1},c.prototype.eq=c.prototype.equals=s.prototype.eq=s.prototype.equals=function(e){return 0===this.compare(e)},c.prototype.neq=c.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=function(e){return 0!==this.compare(e)},c.prototype.gt=c.prototype.greater=s.prototype.gt=s.prototype.greater=function(e){return this.compare(e)>0},c.prototype.lt=c.prototype.lesser=s.prototype.lt=s.prototype.lesser=function(e){return this.compare(e)<0},c.prototype.geq=c.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},c.prototype.leq=c.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},s.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},s.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},s.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},s.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},s.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},s.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},c.prototype.isDivisibleBy=s.prototype.isDivisibleBy=function(e){var t=q(e),r=t.value;return 0!==r&&(1===r||(2===r?this.isEven():this.mod(t).equals(a[0])))},c.prototype.isPrime=s.prototype.isPrime=function(e){var r=S(this);if(void 0!==r)return r;var n=this.abs(),i=n.bitLength();if(i<=64)return M(n,[2,325,9375,28178,450775,9780504,1795265022]);for(var o=Math.log(2)*i,a=Math.ceil(!0===e?2*Math.pow(o,2):o),s=[],c=0;c<a;c++)s.push(t(c+2));return M(n,s)},c.prototype.isProbablePrime=s.prototype.isProbablePrime=function(e){var r=S(this);if(void 0!==r)return r;for(var n=this.abs(),i=void 0===e?5:e,o=[],a=0;a<i;a++)o.push(t.randBetween(2,n.minus(2)));return M(n,o)},c.prototype.modInv=s.prototype.modInv=function(e){for(var r,n,i,o=t.zero,a=t.one,s=q(e),c=this.abs();!c.equals(t.zero);)r=s.divide(c),n=o,i=s,o=a,s=c,a=n.subtract(r.multiply(a)),c=i.subtract(r.multiply(c));if(!s.equals(1))throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(e)),this.isNegative()?o.negate():o},s.prototype.next=function(){var e=this.value;return this.sign?y(e,1,this.sign):new s(b(e,1),this.sign)},c.prototype.next=function(){var e=this.value;return e+1<n?new c(e+1):new s(i,!1)},s.prototype.prev=function(){var e=this.value;return this.sign?new s(b(e,1),!0):y(e,1,this.sign)},c.prototype.prev=function(){var e=this.value;return e-1>-n?new c(e-1):new s(i,!0)};for(var k=[1];2*k[k.length-1]<=r;)k.push(2*k[k.length-1]);var T=k.length,N=k[T-1];function R(e){return("number"==typeof e||"string"==typeof e)&&+Math.abs(e)<=r||e instanceof s&&e.value.length<=1}function Q(e,r,n){r=q(r);for(var i=e.isNegative(),o=r.isNegative(),a=i?e.not():e,s=o?r.not():r,c=0,u=0,l=null,f=null,d=[];!a.isZero()||!s.isZero();)c=(l=C(a,N))[1].toJSNumber(),i&&(c=N-1-c),u=(f=C(s,N))[1].toJSNumber(),o&&(u=N-1-u),a=l[0],s=f[0],d.push(n(c,u));for(var h=0!==n(i?1:0,o?1:0)?t(-1):t(0),A=d.length-1;A>=0;A-=1)h=h.multiply(N).add(t(d[A]));return h}function D(e){var t=e.value,n="number"==typeof t?t|1<<30:t[0]+t[1]*r|1073758208;return n&-n}function O(e,t){return e=q(e),t=q(t),e.greater(t)?e:t}function P(e,t){return e=q(e),t=q(t),e.lesser(t)?e:t}function L(e,t){if(e=q(e).abs(),t=q(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var r,n,i=a[1];e.isEven()&&t.isEven();)r=Math.min(D(e),D(t)),e=e.divide(r),t=t.divide(r),i=i.multiply(r);for(;e.isEven();)e=e.divide(D(e));do{for(;t.isEven();)t=t.divide(D(t));e.greater(t)&&(n=t,t=e,e=n),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}c.prototype.shiftLeft=s.prototype.shiftLeft=function(e){if(!R(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftRight(-e);var t=this;if(t.isZero())return t;for(;e>=T;)t=t.multiply(N),e-=T-1;return t.multiply(k[e])},c.prototype.shiftRight=s.prototype.shiftRight=function(e){var t;if(!R(e))throw new Error(String(e)+" is too large for shifting.");if((e=+e)<0)return this.shiftLeft(-e);for(var r=this;e>=T;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=C(r,N))[1].isNegative()?t[0].prev():t[0],e-=T-1}return(t=C(r,k[e]))[1].isNegative()?t[0].prev():t[0]},c.prototype.not=s.prototype.not=function(){return this.negate().prev()},c.prototype.and=s.prototype.and=function(e){return Q(this,e,(function(e,t){return e&t}))},c.prototype.or=s.prototype.or=function(e){return Q(this,e,(function(e,t){return e|t}))},c.prototype.xor=s.prototype.xor=function(e){return Q(this,e,(function(e,t){return e^t}))},c.prototype.bitLength=s.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),0===e.compareTo(t(0))?t(0):t(function e(r,n){if(n.compareTo(r)<=0){var i=e(r,n.square(n)),o=i.p,a=i.e,s=o.multiply(n);return s.compareTo(r)<=0?{p:s,e:2*a+1}:{p:o,e:2*a}}return{p:t(1),e:0}}(e,t(2)).e).add(t(1))};var F=function(e,t){for(var r=e.length,n=Math.abs(t),i=0;i<r;i++)if("-"!==(l=e[i].toLowerCase())&&/[a-z0-9]/.test(l)){if(/[0-9]/.test(l)&&+l>=n){if("1"===l&&1===n)continue;throw new Error(l+" is not a valid digit in base "+t+".")}if(l.charCodeAt(0)-87>=n)throw new Error(l+" is not a valid digit in base "+t+".")}if(2<=t&&t<=36&&r<=o/Math.log(t)){var a=parseInt(e,t);if(isNaN(a))throw new Error(l+" is not a valid digit in base "+t+".");return new c(parseInt(e,t))}t=q(t);var s=[],u="-"===e[0];for(i=u?1:0;i<e.length;i++){var l,f=(l=e[i].toLowerCase()).charCodeAt(0);if(48<=f&&f<=57)s.push(q(l));else if(97<=f&&f<=122)s.push(q(l.charCodeAt(0)-87));else{if("<"!==l)throw new Error(l+" is not a valid character");var d=i;do{i++}while(">"!==e[i]);s.push(q(e.slice(d+1,i)))}}return U(s,t,u)};function U(e,t,r){var n,i=a[0],o=a[1];for(n=e.length-1;n>=0;n--)i=i.add(e[n].times(o)),o=o.times(t);return r?i.negate():i}function G(e){return e<=35?"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e):"<"+e+">"}function j(e,r){if((r=t(r)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(r.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e)).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(+e-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(e.isNegative()&&r.isPositive()&&(i=!0,e=e.abs()),r.equals(1))return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(+e)).map(Number.prototype.valueOf,1),isNegative:i};for(var o,a=[],s=e;s.isNegative()||s.compareAbs(r)>=0;){o=s.divmod(r),s=o.quotient;var c=o.remainder;c.isNegative()&&(c=r.minus(c).abs(),s=s.next()),a.push(c.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:i}}function z(e,t){var r=j(e,t);return(r.isNegative?"-":"")+r.value.map(G).join("")}function H(e){if(u(+e)){var t=+e;if(t===A(t))return new c(t);throw new Error("Invalid integer: "+e)}var r="-"===e[0];r&&(e=e.slice(1));var n=e.split(/e/i);if(n.length>2)throw new Error("Invalid integer: "+n.join("e"));if(2===n.length){var i=n[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==A(i)||!u(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var o=n[0],a=o.indexOf(".");if(a>=0&&(i-=o.length-a-1,o=o.slice(0,a)+o.slice(a+1)),i<0)throw new Error("Cannot include negative exponent part for integers");e=o+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);for(var l=[],f=e.length,h=f-7;f>0;)l.push(+e.slice(h,f)),(h-=7)<0&&(h=0),f-=7;return d(l),new s(l,r)}function q(e){return"number"==typeof e?function(e){if(u(e)){if(e!==A(e))throw new Error(e+" is not an integer.");return new c(e)}return H(e.toString())}(e):"string"==typeof e?H(e):e}s.prototype.toArray=function(e){return j(this,e)},c.prototype.toArray=function(e){return j(this,e)},s.prototype.toString=function(e){if(void 0===e&&(e=10),10!==e)return z(this,e);for(var t,r=this.value,n=r.length,i=String(r[--n]);--n>=0;)t=String(r[n]),i+="0000000".slice(t.length)+t;return(this.sign?"-":"")+i},c.prototype.toString=function(e){return void 0===e&&(e=10),10!=e?z(this,e):String(this.value)},s.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},s.prototype.toJSNumber=s.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf=function(){return this.value};for(var K=0;K<1e3;K++)a[K]=new c(K),K>0&&(a[-K]=new c(-K));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=O,a.min=P,a.gcd=L,a.lcm=function(e,t){return e=q(e).abs(),t=q(t).abs(),e.divide(L(e,t)).multiply(t)},a.isInstance=function(e){return e instanceof s||e instanceof c},a.randBetween=function(e,t){var n=P(e=q(e),t=q(t)),i=O(e,t).subtract(n).add(1);if(i.isSmall)return n.add(Math.floor(Math.random()*i));for(var o=[],a=!0,u=i.value.length-1;u>=0;u--){var l=a?i.value[u]:r,d=A(Math.random()*l);o.unshift(d),d<l&&(a=!1)}return o=f(o),n.add("number"==typeof o?new c(o):new s(o,!1))},a.fromArray=function(e,t,r){return U(e.map(q),q(t||10),r)},a}();e.hasOwnProperty("exports")&&(e.exports=t)})),m=function(e){var t;if(e instanceof Uint8Array)t=e;else if(e instanceof i)t=new Uint8Array(e);else{if("string"!=typeof e)throw new Error("Input must be an string, Buffer or Uint8Array");t=new Uint8Array(i.from(e,"utf8"))}return t},y=function(e){return Array.prototype.map.call(e,(function(e){return(e<16?"0":"")+e.toString(16)})).join("")};function v(e,t,r){var n=e[t]+e[r],i=e[t+1]+e[r+1];n>=4294967296&&i++,e[t]=n,e[t+1]=i}function E(e,t,r,n){var i=e[t]+r;r<0&&(i+=4294967296);var o=e[t+1]+n;i>=4294967296&&o++,e[t]=i,e[t+1]=o}function w(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function I(e,t,r,n,i,o){var a=x[i],s=x[i+1],c=x[o],u=x[o+1];v(C,e,t),E(C,e,a,s);var l=C[n]^C[e],f=C[n+1]^C[e+1];C[n]=f,C[n+1]=l,v(C,r,n),C[t]=(l=C[t]^C[r])>>>24^(f=C[t+1]^C[r+1])<<8,C[t+1]=f>>>24^l<<8,v(C,e,t),E(C,e,c,u),C[n]=(l=C[n]^C[e])>>>16^(f=C[n+1]^C[e+1])<<16,C[n+1]=f>>>16^l<<16,v(C,r,n),C[t]=(f=C[t+1]^C[r+1])>>>31^(l=C[t]^C[r])<<1,C[t+1]=l>>>31^f<<1}var _=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),B=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3].map((function(e){return 2*e}))),C=new Uint32Array(32),x=new Uint32Array(32);function S(e,t){var r=0;for(r=0;r<16;r++)C[r]=e.h[r],C[r+16]=_[r];for(C[24]=C[24]^e.t,C[25]=C[25]^e.t/4294967296,t&&(C[28]=~C[28],C[29]=~C[29]),r=0;r<32;r++)x[r]=w(e.b,4*r);for(r=0;r<12;r++)I(0,8,16,24,B[16*r+0],B[16*r+1]),I(2,10,18,26,B[16*r+2],B[16*r+3]),I(4,12,20,28,B[16*r+4],B[16*r+5]),I(6,14,22,30,B[16*r+6],B[16*r+7]),I(0,10,20,30,B[16*r+8],B[16*r+9]),I(2,12,22,24,B[16*r+10],B[16*r+11]),I(4,14,16,26,B[16*r+12],B[16*r+13]),I(6,8,18,28,B[16*r+14],B[16*r+15]);for(r=0;r<16;r++)e.h[r]=e.h[r]^C[r]^C[r+16]}function M(e,t){if(0===e||e>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(t&&t.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var r={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:e},n=0;n<16;n++)r.h[n]=_[n];return r.h[0]^=16842752^(t?t.length:0)<<8^e,t&&(k(r,t),r.c=128),r}function k(e,t){for(var r=0;r<t.length;r++)128===e.c&&(e.t+=e.c,S(e,!1),e.c=0),e.b[e.c++]=t[r]}function T(e){for(e.t+=e.c;e.c<128;)e.b[e.c++]=0;S(e,!0);for(var t=new Uint8Array(e.outlen),r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r);return t}function N(e,t,r){r=r||64,e=m(e);var n=M(r,t);return k(n,e),T(n)}var R={blake2b:N,blake2bHex:function(e,t,r){var n=N(e,t,r);return y(n)},blake2bInit:M,blake2bUpdate:k,blake2bFinal:T};function Q(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}function D(e,t,r,n,i,o){F[e]=F[e]+F[t]+i,F[n]=O(F[n]^F[e],16),F[r]=F[r]+F[n],F[t]=O(F[t]^F[r],12),F[e]=F[e]+F[t]+o,F[n]=O(F[n]^F[e],8),F[r]=F[r]+F[n],F[t]=O(F[t]^F[r],7)}function O(e,t){return e>>>t^e<<32-t}var P=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),L=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),F=new Uint32Array(16),U=new Uint32Array(16);function G(e,t){var r=0;for(r=0;r<8;r++)F[r]=e.h[r],F[r+8]=P[r];for(F[12]^=e.t,F[13]^=e.t/4294967296,t&&(F[14]=~F[14]),r=0;r<16;r++)U[r]=Q(e.b,4*r);for(r=0;r<10;r++)D(0,4,8,12,U[L[16*r+0]],U[L[16*r+1]]),D(1,5,9,13,U[L[16*r+2]],U[L[16*r+3]]),D(2,6,10,14,U[L[16*r+4]],U[L[16*r+5]]),D(3,7,11,15,U[L[16*r+6]],U[L[16*r+7]]),D(0,5,10,15,U[L[16*r+8]],U[L[16*r+9]]),D(1,6,11,12,U[L[16*r+10]],U[L[16*r+11]]),D(2,7,8,13,U[L[16*r+12]],U[L[16*r+13]]),D(3,4,9,14,U[L[16*r+14]],U[L[16*r+15]]);for(r=0;r<8;r++)e.h[r]^=F[r]^F[r+8]}function j(e,t){if(!(e>0&&e<=32))throw new Error("Incorrect output length, should be in [1, 32]");var r=t?t.length:0;if(t&&!(r>0&&r<=32))throw new Error("Incorrect key length, should be in [1, 32]");var n={h:new Uint32Array(P),b:new Uint32Array(64),c:0,t:0,outlen:e};return n.h[0]^=16842752^r<<8^e,r>0&&(z(n,t),n.c=64),n}function z(e,t){for(var r=0;r<t.length;r++)64===e.c&&(e.t+=e.c,G(e,!1),e.c=0),e.b[e.c++]=t[r]}function H(e){for(e.t+=e.c;e.c<64;)e.b[e.c++]=0;G(e,!0);for(var t=new Uint8Array(e.outlen),r=0;r<e.outlen;r++)t[r]=e.h[r>>2]>>8*(3&r)&255;return t}function q(e,t,r){r=r||32,e=m(e);var n=j(r,t);return z(n,e),H(n)}for(var K={blake2s:q,blake2sHex:function(e,t,r){var n=q(e,t,r);return y(n)},blake2sInit:j,blake2sUpdate:z,blake2sFinal:H},V={blake2b:R.blake2b,blake2bHex:R.blake2bHex,blake2bInit:R.blake2bInit,blake2bUpdate:R.blake2bUpdate,blake2bFinal:R.blake2bFinal,blake2s:K.blake2s,blake2sHex:K.blake2sHex,blake2sInit:K.blake2sInit,blake2sUpdate:K.blake2sUpdate,blake2sFinal:K.blake2sFinal},Y=[],J=[],W="undefined"!=typeof Uint8Array?Uint8Array:Array,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=0;$<64;++$)Y[$]=Z[$],J[Z.charCodeAt($)]=$;function X(e,t,r){for(var n,i=[],o=t;o<r;o+=3)i.push(Y[(n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]))>>18&63]+Y[n>>12&63]+Y[n>>6&63]+Y[63&n]);return i.join("")}J["-".charCodeAt(0)]=62,J["_".charCodeAt(0)]=63;var ee=function(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),i=n[0],o=n[1],a=new W(function(e,t,r){return 3*(t+r)/4-r}(0,i,o)),s=0,c=o>0?i-4:i;for(r=0;r<c;r+=4)t=J[e.charCodeAt(r)]<<18|J[e.charCodeAt(r+1)]<<12|J[e.charCodeAt(r+2)]<<6|J[e.charCodeAt(r+3)],a[s++]=t>>16&255,a[s++]=t>>8&255,a[s++]=255&t;return 2===o&&(t=J[e.charCodeAt(r)]<<2|J[e.charCodeAt(r+1)]>>4,a[s++]=255&t),1===o&&(t=J[e.charCodeAt(r)]<<10|J[e.charCodeAt(r+1)]<<4|J[e.charCodeAt(r+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},te=function(e){for(var t,r=e.length,n=r%3,i=[],o=0,a=r-n;o<a;o+=16383)i.push(X(e,o,o+16383>a?a:o+16383));return 1===n?i.push(Y[(t=e[r-1])>>2]+Y[t<<4&63]+"=="):2===n&&i.push(Y[(t=(e[r-2]<<8)+e[r-1])>>10]+Y[t>>4&63]+Y[t<<2&63]+"="),i.join("")},re=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},ne=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,A=n?1:-1,p=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||1/0===t?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=A,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=A,a/=256,u-=8);e[r+h-A]|=128*p},ie=g((function(e,t){var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,i.prototype),t}function i(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return s(e)}return o(e,t,r)}function o(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|f(e,t),o=n(r),a=o.write(e,t);return a!==r&&(o=o.slice(0,a)),o}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer))return u(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return u(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return i.from(o,t,r);var a=function(e){if(i.isBuffer(e)){var t=0|l(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||L(e.length)?n(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return i.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s(e){return a(e),n(e<0?0:0|l(e))}function c(e){for(var t=e.length<0?0:0|l(e.length),r=n(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}function u(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,i.prototype),n}function l(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,t){if(i.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(o)return n?-1:Q(e).length;t=(""+t).toLowerCase(),o=!0}}function d(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return _(this,t,r);case"latin1":case"binary":return B(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),L(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:p(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):p(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function p(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(L(s))return a;e[r+a]=s}return a}function b(e,t,r,n){return O(Q(t,e.length-r),e,r,n)}function m(e,t,r,n){return O(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function y(e,t,r,n){return m(e,t,r,n)}function v(e,t,r,n){return O(D(t),e,r,n)}function E(e,t,r,n){return O(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,e.length-r),e,r,n)}function w(e,t,r){return te(0===t&&r===e.length?e:e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:a=e[i+2],128==(192&(o=e[i+1]))&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+2],s=e[i+3],128==(192&(o=e[i+1]))&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharC