m.byteLength){var e=new ArrayBuffer(2*m.byteLength),t=new Float32Array(e),n=new Uint32Array(e);n.set(y),v=t,y=n,m=e}}(),p+=1,o=e.id},removeLink:function(e){p>0&&(p-=1),e.id0&&i.copyArrayPart(y,6*e.id,6*p,6)},updateTransform:function(e){c=!0,l=e},updateSize:function(e,t){s=e,u=t,c=!0},render:function(){t.useProgram(e),t.bindBuffer(t.ARRAY_BUFFER,n),t.bufferData(t.ARRAY_BUFFER,m,t.DYNAMIC_DRAW),c&&(c=!1,t.uniformMatrix4fv(a.transform,!1,l),t.uniform2f(a.screenSize,s,u)),t.vertexAttribPointer(a.vertexPos,2,t.FLOAT,!1,3*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(a.color,4,t.UNSIGNED_BYTE,!0,3*Float32Array.BYTES_PER_ELEMENT,8),t.drawArrays(t.LINES,0,2*p),o=p-1},bringToFront:function(e){o>e.id&&i.swapArrayPart(v,6*e.id,6*o,6),o>0&&(o-=1)},getFrontLinkId:function(){return o}}}},4997:function(e,t,n){var r=n(5106);e.exports=function(){var e,t,n,i,a,o,s,u,l,c=3*Float32Array.BYTES_PER_ELEMENT+Uint32Array.BYTES_PER_ELEMENT,d=["precision mediump float;","varying vec4 color;","void main(void) {"," gl_FragColor = color;","}"].join("\n"),f=["attribute vec3 a_vertexPos;","attribute vec4 a_color;","uniform vec2 u_screenSize;","uniform mat4 u_transform;","varying vec4 color;","void main(void) {"," gl_Position = u_transform * vec4(a_vertexPos.xy/u_screenSize, 0, 1);"," gl_PointSize = a_vertexPos.z * u_transform[0][0];"," color = a_color.abgr;","}"].join("\n"),h=new ArrayBuffer(16*c),p=new Float32Array(h),m=new Uint32Array(h),v=0;return{load:function(o){t=o,a=r(o),e=a.createProgram(f,d),t.useProgram(e),i=a.getLocations(e,["a_vertexPos","a_color","u_screenSize","u_transform"]),t.enableVertexAttribArray(i.vertexPos),t.enableVertexAttribArray(i.color),n=t.createBuffer()},position:function(e,t){var n=e.id;p[4*n]=t.x,p[4*n+1]=-t.y,p[4*n+2]=e.size,m[4*n+3]=e.color},updateTransform:function(e){l=!0,u=e},updateSize:function(e,t){o=e,s=t,l=!0},removeNode:function(e){v>0&&(v-=1);e.id0&&a.copyArrayPart(m,4*e.id,4*v,4)},createNode:function(){(function(){if((v+1)*c>=h.byteLength){var e=new ArrayBuffer(2*h.byteLength),t=new Float32Array(e),n=new Uint32Array(e);n.set(m),p=t,m=n,h=e}})(),v+=1},replaceProperties:function(){},render:function(){t.useProgram(e),t.bindBuffer(t.ARRAY_BUFFER,n),t.bufferData(t.ARRAY_BUFFER,h,t.DYNAMIC_DRAW),l&&(l=!1,t.uniformMatrix4fv(i.transform,!1,u),t.uniform2f(i.screenSize,o,s));t.vertexAttribPointer(i.vertexPos,3,t.FLOAT,!1,4*Float32Array.BYTES_PER_ELEMENT,0),t.vertexAttribPointer(i.color,4,t.UNSIGNED_BYTE,!0,4*Float32Array.BYTES_PER_ELEMENT,12),t.drawArrays(t.POINTS,0,v)}}}},8668:function(e,t,n){var r=n(8617);e.exports=function(e,t){return{size:"number"===typeof e?e:10,color:r(t)}}},8397:function(e){e.exports="0.10.1"},7645:function(e,t,n){var r=n(2165),i={lazyExtend:function(){return n(6147).apply(this,arguments)},randomIterator:function(){return r.randomIterator.apply(r,arguments)},random:function(){return r.random.apply(r,arguments)},events:n(9010)};i.Graph={version:n(8397),graph:n(1700),serializer:function(){return{loadFromJSON:n(1609),storeToJSON:n(6262)}},centrality:n(5350),operations:n(1322),geom:function(){return{intersect:n(3621),intersectRect:n(7273)}},webgl:n(5106),webglInputEvents:n(3674),generator:function(){return n(6242)},Input:{domInputManager:n(3119),webglInputManager:n(329)},Utils:{dragndrop:n(3977),findElementPosition:n(5643),timer:n(6595),getDimension:n(9729),events:n(121)},Layout:{forceDirected:n(2070),constant:n(5898)},View:{Texture:n(1821),webglAtlas:n(6275),webglImageNodeProgram:n(6314),webglLinkProgram:n(2343),webglNodeProgram:n(4997),webglLine:n(1998),webglSquare:n(8668),webglImage:n(8320),webglGraphics:n(905),_webglUtil:{parseColor:n(8617)},svgGraphics:n(793),renderer:n(1777),cssGraphics:function(){throw new Error("cssGraphics is deprecated. Please use older version of vivagraph (< 0.7) if you need it")},svgNodeFactory:function(){throw new Error("svgNodeFactory is deprecated. Please use older version of vivagraph (< 0.7) if you need it")},community:function(){throw new Error("community is deprecated. Please use vivagraph < 0.7 if you need it, or `https://github.com/anvaka/ngraph.slpa` module")}},Rect:n(7757),svg:n(5587),BrowserInfo:n(9281)},e.exports=i},4469:function(e,t,n){var r={"./iota-core/themes/dark/banner.svg":[9733,733],"./iota-core/themes/light/banner.svg":[913,913]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n.t(i,17)}))}i.keys=function(){return Object.keys(r)},i.id=4469,e.exports=i},1361:function(e,t,n){var r={"./iota-core/themes/dark/logo-navigation.svg":[1751,751],"./iota-core/themes/light/logo-navigation.svg":[3626,626]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return n.e(t[1]).then((function(){return n.t(i,17)}))}i.keys=function(){return Object.keys(r)},i.id=1361,e.exports=i},693:function(e,t,n){var r={"./iota-core/brand.json":2304};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=693},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e){function t(e,t){for(var n=0;n=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},n}function r(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,u,"next",e)}function u(e){r(o,i,a,s,u,"throw",e)}s(void 0)}))}}var a=n(2791),o=n(1250);function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;f--){var h=i[f];"."===h?d(i,f):".."===h?(d(i,f),l++):l&&(d(i,f),l--)}if(!s)for(;l--;l)i.unshift("..");!s||""===i[0]||i[0]&&c(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function h(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var p=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=h(t),i=h(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},m="Invariant failed";function v(e,t){if(!e)throw new Error(m)}function y(e){return"/"===e.charAt(0)?e:"/"+e}function g(e){return"/"===e.charAt(0)?e.substr(1):e}function w(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function b(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function _(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function k(e,t,n,r){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),i.state=t):(void 0===(i=l({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(a){throw a instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):a}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=f(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function x(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,i):i(!0):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),d({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=k(e,t,f(),y.location);c.confirmTransitionTo(i,r,n,(function(e){e&&(y.entries[y.index]=i,d({action:r,location:i}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=y.index+e;return t>=0&&t=0||(i[n]=e[n]);return i}var Z=n(2110),X=n.n(Z),$=function(e){var t=H();return t.displayName=e,t},K=$("Router-History"),J=$("Router"),Q=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}u(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return a.createElement(J.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a.createElement(K.Provider,{children:this.props.children||null,value:this.props.history}))},t}(a.Component);a.Component;var ee=function(e){function t(){return e.apply(this,arguments)||this}u(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(a.Component);var te={},ne=0;function re(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(te[e])return te[e];var t=q().compile(e);return ne<1e4&&(te[e]=t,ne++),t}(e)(t,{pretty:!0})}function ie(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return a.createElement(J.Consumer,null,(function(e){e||v(!1);var r=e.history,o=e.staticContext,s=i?r.push:r.replace,u=k(t?"string"===typeof n?re(n,t.params):l({},n,{pathname:re(n.pathname,t.params)}):n);return o?(s(u),null):a.createElement(ee,{onMount:function(){s(u)},onUpdate:function(e,t){var n,r,i=k(t.to);n=i,r=l({},u,{key:i.key}),n.pathname===r.pathname&&n.search===r.search&&n.hash===r.hash&&n.key===r.key&&p(n.state,r.state)||s(u)},to:n})}))}var ae={},oe=0;function se(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,a=void 0!==i&&i,o=n.strict,s=void 0!==o&&o,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=ae[n]||(ae[n]={});if(r[e])return r[e];var i=[],a={regexp:q()(e,i,t),keys:i};return oe<1e4&&(r[e]=a,oe++),a}(n,{end:a,strict:s,sensitive:l}),i=r.regexp,o=r.keys,u=i.exec(e);if(!u)return null;var c=u[0],d=u.slice(1),f=e===c;return a&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var ue=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return a.createElement(J.Consumer,null,(function(t){t||v(!1);var n=e.props.location||t.location,r=l({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?se(n.pathname,e.props):t.match}),i=e.props,o=i.children,s=i.component,u=i.render;return Array.isArray(o)&&function(e){return 0===a.Children.count(e)}(o)&&(o=null),a.createElement(J.Provider,{value:r},r.match?o?"function"===typeof o?o(r):o:s?a.createElement(s,r):u?u(r):null:"function"===typeof o?o(r):null)}))},t}(a.Component);function le(e){return"/"===e.charAt(0)?e:"/"+e}function ce(e,t){if(!e)return t;var n=le(e);return 0!==t.pathname.indexOf(n)?t:l({},t,{pathname:t.pathname.substr(n.length)})}function de(e){return"string"===typeof e?e:_(e)}function fe(e){return function(){v(!1)}}function he(){}a.Component;var pe=function(e){function t(){return e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return a.createElement(J.Consumer,null,(function(t){t||v(!1);var n,r,i=e.props.location||t.location;return a.Children.forEach(e.props.children,(function(e){if(null==r&&a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?se(i.pathname,l({},e.props,{path:o})):t.match}})),r?a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(a.Component);function me(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=G(t,["wrappedComponentRef"]);return a.createElement(J.Consumer,null,(function(t){return t||v(!1),a.createElement(e,l({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,X()(n,e)}a.useContext;var ve=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var He,We=function(e,t){var n=e.title,r=e.titleId,i=Ve(e,Fe);return a.createElement("svg",Ye({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,ze||(ze=a.createElement("path",{d:"M18 18V6.80002L10 2.00002L2 6.80002V18H6V14.918C6 13.8572 6.42143 12.8397 7.17157 12.0896C7.92172 11.3394 8.93913 10.918 10 10.918C11.0609 10.918 12.0783 11.3394 12.8284 12.0896C13.5786 12.8397 14 13.8572 14 14.918V18H18ZM12 20V14.918C12 14.3876 11.7893 13.8789 11.4142 13.5038C11.0391 13.1287 10.5304 12.918 10 12.918C9.46957 12.918 8.96086 13.1287 8.58579 13.5038C8.21071 13.8789 8 14.3876 8 14.918V20H2C1.46957 20 0.960859 19.7893 0.585786 19.4142C0.210714 19.0391 0 18.5304 0 18L0 6.80002C-3.32274e-06 6.45465 0.0894306 6.11516 0.259593 5.81462C0.429755 5.51407 0.674847 5.26271 0.971 5.08502L8.971 0.285019C9.28183 0.0985175 9.63751 0 10 0C10.3625 0 10.7182 0.0985175 11.029 0.285019L19.029 5.08502C19.3252 5.26271 19.5702 5.51407 19.7404 5.81462C19.9106 6.11516 20 6.45465 20 6.80002V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H12Z",fill:"currentColor"})))},qe=(0,a.forwardRef)(We),Ge=(n.p,["title","titleId"]);function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $e,Ke,Je,Qe,et=function(e,t){var n=e.title,r=e.titleId,i=Xe(e,Ge);return a.createElement("svg",Ze({width:20,height:20,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,He||(He=a.createElement("path",{d:"m19.49261,11.36231c-0.20411,-0.05103 -0.40822,0 -0.58682,0.12757c-0.66336,0.56131 -1.42878,1.02056 -2.27074,1.32672c-0.79093,0.30617 -1.6584,0.45925 -2.5769,0.45925c-2.06662,0 -3.95465,-0.84196 -5.30689,-2.19419c-1.35224,-1.35224 -2.19419,-3.24026 -2.19419,-5.30689c0,-0.86747 0.15308,-1.70943 0.40822,-2.47485c0.28065,-0.81644 0.68887,-1.55635 1.22467,-2.19419c0.22962,-0.28065 0.1786,-0.68887 -0.10206,-0.9185c-0.1786,-0.12757 -0.38271,-0.1786 -0.58682,-0.12757c-2.16868,0.58682 -4.05671,1.88803 -5.40894,3.62297c-1.30121,1.70943 -2.09214,3.82708 -2.09214,6.14885c0,2.78101 1.12261,5.30689 2.95961,7.14389s4.36287,2.95961 7.14389,2.95961c2.34728,0 4.51596,-0.81644 6.2509,-2.16868c1.76046,-1.37775 3.03615,-3.34232 3.57194,-5.58754c0.12757,-0.38271 -0.07654,-0.7399 -0.43374,-0.81644zm-3.90362,5.3324c-1.47981,1.17364 -3.36783,1.88803 -5.43446,1.88803c-2.42382,0 -4.61801,-0.99504 -6.19987,-2.5769c-1.58186,-1.58186 -2.5769,-3.77605 -2.5769,-6.19987c0,-2.0156 0.66336,-3.8526 1.81149,-5.3324c0.79093,-1.02056 1.78597,-1.86251 2.9341,-2.44933c-0.12757,0.28065 -0.25514,0.56131 -0.35719,0.86747c-0.33168,0.9185 -0.48476,1.88803 -0.48476,2.90858c0,2.42382 0.99504,4.64353 2.5769,6.22539s3.80157,2.5769 6.22539,2.5769c1.07158,0 2.09214,-0.1786 3.03615,-0.53579c0.33168,-0.12757 0.66336,-0.25514 0.96953,-0.40822c-0.61233,1.17364 -1.45429,2.21971 -2.50036,3.03615z",fill:"currentColor"})))},tt=(0,a.forwardRef)(et),nt=(n.p,["title","titleId"]);function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var at,ot,st,ut,lt=function(e,t){var n=e.title,r=e.titleId,i=it(e,nt);return a.createElement("svg",rt({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,$e||($e=a.createElement("path",{d:"m21.87281,24l-12.02632,0c-1.10464,0 -2.00439,-1.009 -2.00439,-2.25l0,-10.5c0,-1.241 0.89975,-2.25 2.00439,-2.25l12.02632,0c1.10464,0 2.00439,1.009 2.00439,2.25l0,10.5c0,1.241 -0.89975,2.25 -2.00439,2.25zm-12.02632,-13.5c-0.36792,0 -0.66813,0.336 -0.66813,0.75l0,10.5c0,0.414 0.30021,0.75 0.66813,0.75l12.02632,0c0.36792,0 0.66813,-0.336 0.66813,-0.75l0,-10.5c0,-0.414 -0.30021,-0.75 -0.66813,-0.75l-12.02632,0z",fill:"currentColor"})),Ke||(Ke=a.createElement("path",{d:"m11.35526,10.5c-0.414,0 -0.75,-0.336 -0.75,-0.75l0,-3.75c0,-2.481 -2.019,-4.5 -4.5,-4.5s-4.5,2.019 -4.5,4.5l0,3.75c0,0.414 -0.336,0.75 -0.75,0.75s-0.75,-0.336 -0.75,-0.75l0,-3.75c0,-3.309 2.691,-6 6,-6s6,2.691 6,6l0,3.75c0,0.414 -0.336,0.75 -0.75,0.75z",fill:"currentColor"})),Je||(Je=a.createElement("path",{d:"m15.7193,17c-1.103,0 -2,-0.897 -2,-2s0.897,-2 2,-2s2,0.897 2,2s-0.897,2 -2,2zm0,-2.5c-0.275,0 -0.5,0.224 -0.5,0.5s0.225,0.5 0.5,0.5s0.5,-0.224 0.5,-0.5s-0.225,-0.5 -0.5,-0.5z",fill:"currentColor"})),Qe||(Qe=a.createElement("path",{d:"m15.7193,20c-0.414,0 -0.75,-0.336 -0.75,-0.75l0,-2.75c0,-0.414 0.336,-0.75 0.75,-0.75s0.75,0.336 0.75,0.75l0,2.75c0,0.414 -0.336,0.75 -0.75,0.75z",fill:"currentColor"})))},ct=(0,a.forwardRef)(lt),dt=(n.p,["title","titleId"]);function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pt,mt=function(e,t){var n=e.title,r=e.titleId,i=ht(e,dt);return a.createElement("svg",ft({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,at||(at=a.createElement("path",{d:"m18.75,24l-13.5,0c-1.24,0 -2.25,-1.009 -2.25,-2.25l0,-10.5c0,-1.241 1.01,-2.25 2.25,-2.25l13.5,0c1.24,0 2.25,1.009 2.25,2.25l0,10.5c0,1.241 -1.01,2.25 -2.25,2.25zm-13.5,-13.5c-0.413,0 -0.75,0.336 -0.75,0.75l0,10.5c0,0.414 0.337,0.75 0.75,0.75l13.5,0c0.413,0 0.75,-0.336 0.75,-0.75l0,-10.5c0,-0.414 -0.337,-0.75 -0.75,-0.75l-13.5,0z",fill:"currentColor"})),ot||(ot=a.createElement("path",{d:"m17.25,10.5c-0.414,0 -0.75,-0.336 -0.75,-0.75l0,-3.75c0,-2.481 -2.019,-4.5 -4.5,-4.5s-4.5,2.019 -4.5,4.5l0,3.75c0,0.414 -0.336,0.75 -0.75,0.75s-0.75,-0.336 -0.75,-0.75l0,-3.75c0,-3.309 2.691,-6 6,-6s6,2.691 6,6l0,3.75c0,0.414 -0.336,0.75 -0.75,0.75z",fill:"currentColor"})),st||(st=a.createElement("path",{d:"m12,17c-1.103,0 -2,-0.897 -2,-2s0.897,-2 2,-2s2,0.897 2,2s-0.897,2 -2,2zm0,-2.5c-0.275,0 -0.5,0.224 -0.5,0.5s0.225,0.5 0.5,0.5s0.5,-0.224 0.5,-0.5s-0.225,-0.5 -0.5,-0.5z",fill:"currentColor"})),ut||(ut=a.createElement("path",{d:"m12,20c-0.414,0 -0.75,-0.336 -0.75,-0.75l0,-2.75c0,-0.414 0.336,-0.75 0.75,-0.75s0.75,0.336 0.75,0.75l0,2.75c0,0.414 -0.336,0.75 -0.75,0.75z",fill:"currentColor"})))},vt=(0,a.forwardRef)(mt),yt=(n.p,["title","titleId"]);function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var bt,_t,kt,xt,St,Et,Ct,Nt,Ot,Mt=function(e,t){var n=e.title,r=e.titleId,i=wt(e,yt);return a.createElement("svg",gt({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,pt||(pt=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.6569 5.62329C7.03439 7.02356 5.63123 8 4 8C1.79086 8 0 6.20914 0 4C0 1.79086 1.79086 0 4 0C6.09134 0 7.80782 1.60496 7.98493 3.65037L12.3431 4.37673C12.9656 2.97645 14.3688 2 16 2C18.2091 2 20 3.79086 20 6C20 8.20914 18.2091 10 16 10C14.9749 10 14.04 9.61443 13.3321 8.9804L7.77815 12.6831C7.88518 12.9902 7.95583 13.3143 7.98493 13.6504L12.3431 14.3767C12.9656 12.9764 14.3688 12 16 12C18.2091 12 20 13.7909 20 16C20 18.2091 18.2091 20 16 20C13.9087 20 12.1922 18.3951 12.0151 16.3497L7.6569 15.6233C7.03439 17.0236 5.63123 18 4 18C1.79086 18 0 16.2091 0 14C0 11.7909 1.79086 10 4 10C5.02504 10 5.96002 10.3856 6.66784 11.0196L12.2218 7.3169C12.1148 7.00981 12.0442 6.68568 12.0151 6.34965L7.6569 5.62329ZM6 4C6 5.10457 5.10457 6 4 6C2.89543 6 2 5.10457 2 4C2 2.89543 2.89543 2 4 2C5.10457 2 6 2.89543 6 4ZM16 8C17.1046 8 18 7.10457 18 6C18 4.89543 17.1046 4 16 4C14.8954 4 14 4.89543 14 6C14 7.10457 14.8954 8 16 8ZM6 14C6 15.1046 5.10457 16 4 16C2.89543 16 2 15.1046 2 14C2 12.8954 2.89543 12 4 12C5.10457 12 6 12.8954 6 14ZM16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:"currentColor"})))},Lt=(0,a.forwardRef)(Mt),Pt=(n.p,["title","titleId"]);function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var It,Rt=function(e,t){var n=e.title,r=e.titleId,i=jt(e,Pt);return a.createElement("svg",Tt({width:20,height:20,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,bt||(bt=a.createElement("path",{d:"m13.48664,6.42723c-0.8956,-0.8956 -2.15997,-1.4751 -3.52971,-1.4751s-2.63411,0.55316 -3.52971,1.4751c-0.8956,0.8956 -1.4751,2.15997 -1.4751,3.52971s0.5795,2.63411 1.4751,3.52971c0.8956,0.8956 2.15997,1.4751 3.52971,1.4751s2.63411,-0.55316 3.52971,-1.4751c0.8956,-0.8956 1.4751,-2.15997 1.4751,-3.52971s-0.55316,-2.63411 -1.4751,-3.52971zm-0.94828,6.11114c-0.65853,0.65853 -1.58047,1.05364 -2.58143,1.05364s-1.9229,-0.39512 -2.58143,-1.05364s-1.05364,-1.58047 -1.05364,-2.58143s0.39512,-1.9229 1.05364,-2.58143s1.58047,-1.05364 2.58143,-1.05364s1.9229,0.39512 2.58143,1.05364s1.05364,1.58047 1.05364,2.58143s-0.39512,1.9229 -1.05364,2.58143z",fill:"currentColor"})),_t||(_t=a.createElement("path",{d:"m19.229,9.27207l-2.02826,0c-0.36878,0 -0.68487,0.31609 -0.68487,0.68487c0,0.36878 0.31609,0.68487 0.68487,0.68487l2.02826,0c0.36878,0 0.68487,-0.31609 0.68487,-0.68487c0,-0.36878 -0.31609,-0.68487 -0.68487,-0.68487z",fill:"currentColor"})),kt||(kt=a.createElement("path",{d:"m9.95694,16.51587c-0.36878,0 -0.68487,0.31609 -0.68487,0.68487l0,2.02826c0,0.36878 0.31609,0.68487 0.68487,0.68487c0.36878,0 0.68487,-0.31609 0.68487,-0.68487l0,-2.02826c0,-0.36878 -0.31609,-0.68487 -0.68487,-0.68487z",fill:"currentColor"})),xt||(xt=a.createElement("path",{d:"m16.99001,16.04173l-1.44876,-1.44876c-0.23707,-0.26341 -0.68487,-0.26341 -0.94828,0s-0.26341,0.68487 0,0.94828l1.44876,1.44876c0.26341,0.26341 0.68487,0.26341 0.94828,0s0.26341,-0.68487 0,-0.94828z",fill:"currentColor"})),St||(St=a.createElement("path",{d:"m9.95694,0c-0.36878,0 -0.68487,0.31609 -0.68487,0.68487l0,2.02826c0,0.36878 0.31609,0.68487 0.68487,0.68487c0.36878,0 0.68487,-0.31609 0.68487,-0.68487l0,-2.02826c0,-0.36878 -0.31609,-0.68487 -0.68487,-0.68487z",fill:"currentColor"})),Et||(Et=a.createElement("path",{d:"m17.01635,2.92386c-0.26341,-0.26341 -0.68487,-0.26341 -0.94828,0l-1.44876,1.44876c-0.26341,0.26341 -0.26341,0.68487 0,0.94828c0.23707,0.26341 0.68487,0.26341 0.94828,0l1.44876,-1.44876c0.26341,-0.26341 0.26341,-0.68487 0,-0.94828z",fill:"currentColor"})),Ct||(Ct=a.createElement("path",{d:"m2.71313,9.27207l-2.02826,0c-0.36878,0 -0.68487,0.31609 -0.68487,0.68487s0.28975,0.68487 0.68487,0.68487l2.02826,0c0.36878,0 0.68487,-0.31609 0.68487,-0.68487c0,-0.36878 -0.31609,-0.68487 -0.68487,-0.68487z",fill:"currentColor"})),Nt||(Nt=a.createElement("path",{d:"m5.29456,14.59297c-0.23707,-0.26341 -0.68487,-0.26341 -0.94828,0l-1.44876,1.44876c-0.26341,0.26341 -0.26341,0.68487 0,0.94828s0.68487,0.26341 0.94828,0l1.44876,-1.44876c0.26341,-0.26341 0.26341,-0.68487 0,-0.94828z",fill:"currentColor"})),Ot||(Ot=a.createElement("path",{d:"m5.29456,4.37262l-1.44876,-1.44876c-0.26341,-0.26341 -0.68487,-0.26341 -0.94828,0s-0.26341,0.68487 0,0.94828l1.44876,1.44876c0.26341,0.26341 0.68487,0.26341 0.94828,0s0.26341,-0.68487 0,-0.94828z",fill:"currentColor"})))},At=(0,a.forwardRef)(Rt),Dt=(n.p,["title","titleId"]);function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Ut,Ft=function(e,t){var n=e.title,r=e.titleId,i=Bt(e,Dt);return a.createElement("svg",zt({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,It||(It=a.createElement("path",{d:"M0.694333 17.3063C-1.21567 15.3943 0.952333 10.1263 5.53933 5.53935C10.1263 0.952348 15.3943 -1.21665 17.3063 0.694348C19.2163 2.60635 17.0483 7.87435 12.4613 12.4613C7.87433 17.0483 2.60633 19.2173 0.694333 17.3063ZM2.08033 15.9203C2.89533 16.7363 7.18233 14.9703 11.0773 11.0753C14.9723 7.18035 16.7373 2.89335 15.9223 2.07835C15.1073 1.26235 10.8203 3.02835 6.92533 6.92335C3.03033 10.8183 1.26533 15.1053 2.08033 15.9203ZM5.54033 12.4603C0.952333 7.87435 -1.21667 2.60635 0.694333 0.694348C2.60633 -1.21565 7.87433 0.952348 12.4613 5.53935C17.0483 10.1263 19.2173 15.3943 17.3063 17.3063C15.3943 19.2163 10.1263 17.0483 5.53933 12.4613L5.54033 12.4603ZM6.92533 11.0753C10.8203 14.9703 15.1073 16.7353 15.9223 15.9203C16.7383 15.1053 14.9723 10.8183 11.0773 6.92335C7.18233 3.02835 2.89533 1.26335 2.08033 2.07835C1.26433 2.89335 3.03033 7.18035 6.92533 11.0753ZM9.00033 11.0003C8.4699 11.0003 7.96119 10.7896 7.58612 10.4146C7.21105 10.0395 7.00033 9.53078 7.00033 9.00035C7.00033 8.46992 7.21105 7.96121 7.58612 7.58613C7.96119 7.21106 8.4699 7.00035 9.00033 7.00035C9.53077 7.00035 10.0395 7.21106 10.4145 7.58613C10.7896 7.96121 11.0003 8.46992 11.0003 9.00035C11.0003 9.53078 10.7896 10.0395 10.4145 10.4146C10.0395 10.7896 9.53077 11.0003 9.00033 11.0003Z",fill:"currentColor"})))},Yt=(0,a.forwardRef)(Ft),Vt=(n.p,function(){function e(){Oe(this,e)}return Le(e,null,[{key:"register",value:function(e,t){this._services[e]=t}},{key:"unregister",value:function(e){delete this._services[e]}},{key:"get",value:function(e){return!this._instances[e]&&this._services[e]&&(this._instances[e]=this._services[e](e)),this._instances[e]}}]),e}());Vt._services={},Vt._instances={},function(e){e[e.SyncStatus=0]="SyncStatus",e[e.PublicNodeStatus=1]="PublicNodeStatus",e[e.NodeInfoExtended=2]="NodeInfoExtended",e[e.GossipMetrics=3]="GossipMetrics",e[e.PeerMetrics=4]="PeerMetrics",e[e.NetworkMetrics=5]="NetworkMetrics",e[e.DatabaseSizeMetric=6]="DatabaseSizeMetric",e[e.VisualizerVertex=7]="VisualizerVertex",e[e.VisualizerBlockStateInfo=8]="VisualizerBlockStateInfo",e[e.VisualizerTipInfo=9]="VisualizerTipInfo"}(Ut||(Ut={}));var Ht=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"subscribe",value:function(t,n,r){var i;(i=e._subscriptions)[t]||(i[t]={}),e._subscriptions[t][n]=r}},{key:"unsubscribe",value:function(t,n){e._subscriptions[t]&&delete e._subscriptions[t][n]}},{key:"publish",value:function(t,n){setTimeout((function(){if(e._subscriptions[t])for(var r in e._subscriptions[t])e._subscriptions[t][r](n)}),0)}}]),e}();Ht._subscriptions={};var Wt=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"initialize",value:function(){if(e._brandId)return e._brandConfiguration=n(693)("./".concat(e._brandId,"/brand.json")),document.title="".concat(e._brandConfiguration.name," Dashboard"),e._brandConfiguration}},{key:"getConfiguration",value:function(){return e._brandConfiguration}},{key:"getLogoNavigation",value:function(){var r=i(t().mark((function r(i){var a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(1361)("./".concat(e._brandId,"/themes/").concat(i,"/logo-navigation.svg"));case 2:return a=t.sent,t.abrupt("return",a.default);case 4:case"end":return t.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()},{key:"getBanner",value:function(){var r=i(t().mark((function r(i){var a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n(4469)("./".concat(e._brandId,"/themes/").concat(i,"/banner.svg"));case 2:return a=t.sent,t.abrupt("return",a.default);case 4:case"end":return t.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}]),e}();Wt._brandId="iota-core",Wt._brandConfiguration=void 0;var qt=function(e){Ie(n,e);var t=De(n);function n(){var e;Oe(this,n);for(var r=arguments.length,i=new Array(r),a=0;a=n.SIZE_BREAKPOINTS[this.props.size]:e1&&void 0!==arguments[1]?arguments[1]:2;if(!e)return"0 bytes";var n=Math.floor(Math.log(e)/Math.log(1e3)),r=["bytes","kB","MB","GB","TB","PB","EB","ZB","YB"],i=Number((e/Math.pow(1e3,n)).toFixed(t)),a=r[n];return"bytes"===a&&1===i&&(a="byte"),void 0===a?e.toFixed(t).toString():"".concat(i," ").concat(a)}},{key:"iSize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!e)return"0 bytes";var n=Math.floor(Math.log(e)/Math.log(1024)),r=["bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Number((e/Math.pow(1024,n)).toFixed(t)),a=r[n];return"bytes"===a&&1===i&&(a="byte"),void 0===a?e.toFixed(t).toString():"".concat(i," ").concat(a)}},{key:"date",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t=e.milliseconds(t);var r=Ue()(t),i=r.format("LLLL");if(n){var a=t>Date.now()?"in the future":"ago";i+=" - ".concat(Ue().duration(Ue()().diff(r)).humanize()," ").concat(a)}return i}},{key:"dateShort",value:function(t){return Ue()(e.milliseconds(t)).format("YYYY-MM-DD HH:mm")}},{key:"milliseconds",value:function(e){return e.toString().length<13?1e3*e:e}}]),e}();Jt.instance=void 0;var Qt,en,tn=n(1694),nn=n.n(tn),rn=["title","titleId"];function an(){return an=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var sn,un,ln=function(e,t){var n=e.title,r=e.titleId,i=on(e,rn);return a.createElement("svg",an({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Qt||(Qt=a.createElement("circle",{opacity:.4,cx:8,cy:8,r:8,fill:"#FF6755"})),en||(en=a.createElement("circle",{cx:8,cy:8,r:4,fill:"#FF6755"})))},cn=(0,a.forwardRef)(ln),dn=(n.p,["title","titleId"]);function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var pn,mn=function(e,t){var n=e.title,r=e.titleId,i=hn(e,dn);return a.createElement("svg",fn({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,sn||(sn=a.createElement("circle",{opacity:.4,cx:8,cy:8,r:8,fill:"#61E884"})),un||(un=a.createElement("circle",{cx:8,cy:8,r:4,fill:"#61E884"})))},vn=(0,a.forwardRef)(mn),yn=(n.p,n(184)),gn=function(e){Ie(n,e);var t=De(n);function n(){return Oe(this,n),t.apply(this,arguments)}return Le(n,[{key:"render",value:function(){return(0,yn.jsxs)("div",{className:nn()("health-indicator",this.props.className),children:[this.props.healthy?(0,yn.jsx)(vn,{}):(0,yn.jsx)(cn,{}),(0,yn.jsx)("span",{className:"label",children:this.props.label})]})}}]),n}(a.Component),wn=gn,bn=function(e){Ie(n,e);var t=De(n);function n(e){var r,i,a;return Oe(this,n),(a=t.call(this,e))._graphWidth=void 0,a._graphHeight=void 0,a._graphWidth=null!==(r=a.props.graphWidth)&&void 0!==r?r:80,a._graphHeight=null!==(i=a.props.graphHeight)&&void 0!==i?i:10,a.state=Ne({},a.calculateGraph()),a}return Le(n,[{key:"componentDidUpdate",value:function(e){this.props.values!==e.values&&this.setState(this.calculateGraph())}},{key:"render",value:function(){return(0,yn.jsxs)("div",{className:nn()("micro-graph",this.props.className),children:[(0,yn.jsx)("span",{className:"label",children:this.props.label}),(0,yn.jsx)("span",{className:"value",children:this.props.value}),(0,yn.jsx)("span",{className:"canvas",children:(0,yn.jsxs)("svg",{width:this._graphWidth,height:this._graphHeight,children:[this.state.graphPoints&&this.state.graphPoints.length>0&&(0,yn.jsx)("path",{d:this.state.graphPoints.map((function(e){return"".concat(e.type," ").concat(e.x," ").concat(e.y)})).join(" "),stroke:"currentColor",strokeWidth:"2",fill:"none"}),this.state.circle&&this.state.circle.x>=0&&(0,yn.jsx)("circle",{cx:this.state.circle.x,cy:this.state.circle.y,r:"3",fill:"currentColor"})]})})]})}},{key:"calculateGraph",value:function(){for(var e,t,n=this._graphWidth/2,r=this.props.values.slice(-n),i=-1,a=-1,o=0;ot)&&(t=r[o]);var s=[];if(void 0!==t&&void 0!==e){var u=t-e,l=0===u?1:u/this._graphHeight,c=(r[0]-e)/l;s.push({type:"M",x:0,y:this._graphHeight-c});for(var d=n/r.length*2,f=1;f0&&(n=Jt.size(t.databaseSizes[0].total)),n!==e.state.dbSizeTotalFormatted&&e.setState({dbSizeTotalFormatted:n})}}),(function(t){var n=t.filter((function(e){return void 0!==(null===e||void 0===e?void 0:e.databaseSizes)&&null!==(null===e||void 0===e?void 0:e.databaseSizes)})).map((function(e){return e.databaseSizes.map((function(e){return e.total}))})).flat();e.setState({dbSizeTotal:n})})),this._gossipMetricsSubscription=this._metricsService.subscribe(Ut.GossipMetrics,(function(t){if(t){var n=e.state.bpsValues.slice(-40);n.push(t.new);var r="-";n.length>0&&(r=n[n.length-1].toString()),r!==e.state.bps&&e.setState({bps:r}),e.setState({bpsValues:n})}}))}},{key:"componentWillUnmount",value:function(){je(Pe(n.prototype),"componentWillUnmount",this).call(this),Ht.unsubscribe("auth-state","header"),Ht.unsubscribe("online","header"),this._publicNodeStatusSubscription&&(this._metricsService.unsubscribe(this._publicNodeStatusSubscription),this._publicNodeStatusSubscription=void 0),this._nodeInfoExtendedSubscription&&(this._metricsService.unsubscribe(this._nodeInfoExtendedSubscription),this._nodeInfoExtendedSubscription=void 0),this._databaseSizeMetricsSubscription&&(this._metricsService.unsubscribe(this._databaseSizeMetricsSubscription),this._databaseSizeMetricsSubscription=void 0),this._gossipMetricsSubscription&&(this._metricsService.unsubscribe(this._gossipMetricsSubscription),this._gossipMetricsSubscription=void 0)}},{key:"render",value:function(){return(0,yn.jsx)("header",{className:"header",children:(0,yn.jsx)("div",{className:"content",children:this.state.online&&(0,yn.jsxs)(a.Fragment,{children:[this.props.children,(0,yn.jsxs)(Xt,{size:"tablet",aboveBelow:"above",children:[(0,yn.jsx)(wn,{label:"Node Health",healthy:this.state.isNodeHealthy,className:"child"}),(0,yn.jsx)(wn,{label:"Network Health",healthy:this.state.isNetworkHealthy,className:"child"})]}),(0,yn.jsxs)(Xt,{size:"desktop",aboveBelow:"above",children:[(0,yn.jsx)(_n,{label:"Blocks Per Second",value:this.state.bps,values:this.state.bpsValues,className:"child"}),this.state.isLoggedIn&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)(_n,{label:"Database Size",value:this.state.dbSizeTotalFormatted,values:this.state.dbSizeTotal,className:"child"}),(0,yn.jsx)(_n,{label:"Memory Usage",value:this.state.memorySizeFormatted,values:this.state.memorySize,className:"child"})]})]})]})})})}}]),n}(Gt),xn=me(kn),Sn=function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._themeService=void 0,t._themeService=Vt.get("theme"),t.state={logoSrc:"",isOpen:!1},t}return Le(r,[{key:"componentDidMount",value:function(){var e=i(t().mark((function e(){var n=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.next=3,Wt.getLogoNavigation(this._themeService.get());case 3:e.t1=e.sent,e.t2={logoSrc:e.t1},e.t0.setState.call(e.t0,e.t2),Ht.subscribe("theme","navmenu",function(){var e=i(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n,e.next=3,Wt.getLogoNavigation(r);case 3:e.t1=e.sent,e.t2={logoSrc:e.t1},e.t0.setState.call(e.t0,e.t2);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){Ht.unsubscribe("theme","navmenu")}},{key:"render",value:function(){var e=this;return(0,yn.jsxs)("div",{className:"nav-menu",onClick:function(){return e.state.isOpen&&e.setState({isOpen:!1})},children:[(0,yn.jsx)("button",{type:"button",onClick:function(){return e.setState({isOpen:!e.state.isOpen})},children:(0,yn.jsx)("img",{src:this.state.logoSrc,className:"logo"})}),this.state.isOpen&&(0,yn.jsx)("div",{className:"popup-container",children:this.props.children})]})}}]),r}(a.Component),En=me(Sn),Cn=function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._themeService=void 0,t._themeService=Vt.get("theme"),t.state={logoSrc:""},t}return Le(r,[{key:"componentDidMount",value:function(){var e=i(t().mark((function e(){var n=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=this,e.next=3,Wt.getLogoNavigation(this._themeService.get());case 3:e.t1=e.sent,e.t2={logoSrc:e.t1},e.t0.setState.call(e.t0,e.t2),Ht.subscribe("theme","navpanel",function(){var e=i(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n,e.next=3,Wt.getLogoNavigation(r);case 3:e.t1=e.sent,e.t2={logoSrc:e.t1},e.t0.setState.call(e.t0,e.t2);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){Ht.unsubscribe("theme","navpanel")}},{key:"render",value:function(){var e=this;return(0,yn.jsxs)("div",{className:nn()("nav-panel",{"full-width":this.props.fullWidth}),children:[(0,yn.jsx)(ke,{to:"/",children:(0,yn.jsx)("img",{src:this.state.logoSrc,className:"logo"})}),(0,yn.jsx)("div",{className:"nav-panel-middle",children:this.props.middle.map((function(t){return(0,yn.jsxs)(a.Fragment,{children:[!t.hidden&&t.route&&(0,yn.jsxs)(ke,{to:t.route,className:nn()("nav-panel--button",{"nav-panel--button__selected":t.route.length>1&&e.props.location.pathname.startsWith(t.route)||t.route===e.props.location.pathname}),children:[t.icon,(0,yn.jsx)("span",{className:"nav-panel-button-label",children:t.label})]}),!t.hidden&&t.function&&(0,yn.jsxs)("button",{type:"button",onClick:function(){var e;return null===(e=t.function)||void 0===e?void 0:e.call(t)},className:nn()("nav-panel--button"),children:[t.icon,(0,yn.jsx)("span",{className:"nav-panel-button-label",children:t.label})]})]},t.label)}))}),(0,yn.jsx)("div",{className:"nav-panel-end",children:this.props.end.map((function(t){return(0,yn.jsxs)(a.Fragment,{children:[!t.hidden&&t.route&&(0,yn.jsxs)(ke,{to:t.route,className:nn()("nav-panel--button",{"nav-panel--button__selected":t.route.length>1&&e.props.location.pathname.startsWith(t.route)||t.route===e.props.location.pathname}),children:[t.icon,(0,yn.jsx)("span",{className:"nav-panel-button-label",children:t.label})]}),!t.hidden&&t.function&&(0,yn.jsxs)("button",{type:"button",onClick:function(){var e;return null===(e=t.function)||void 0===e?void 0:e.call(t)},className:nn()("nav-panel--button"),children:[t.icon,(0,yn.jsx)("span",{className:"nav-panel-button-label",children:t.label})]})]},t.label)}))})]})}}]),r}(a.Component),Nn=me(Cn),On=["title","titleId"];function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Pn,Tn=function(e,t){var n=e.title,r=e.titleId,i=Ln(e,On);return a.createElement("svg",Mn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{isolation:"isolate"},viewBox:"0 0 34 140",width:"34px",height:"140px",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,pn||(pn=a.createElement("path",{d:" M 34 140 L 0.02 140 L 0.02 140 C 0.007 138.835 0 137.668 0 136.5 L 0 136.5 C 0 87.365 11.818 40.968 32.765 0 L 34 0 L 34 140 Z ",fill:"currentColor"})))},jn=(0,a.forwardRef)(Tn),In=(n.p,["title","titleId"]);function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Dn,zn,Bn,Un=function(e,t){var n=e.title,r=e.titleId,i=An(e,In);return a.createElement("svg",Rn({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Pn||(Pn=a.createElement("path",{d:"M7.6569 5.62329C7.03439 7.02356 5.63123 8 4 8C1.79086 8 0 6.20914 0 4C0 1.79086 1.79086 0 4 0C6.09134 0 7.80782 1.60496 7.98493 3.65037L12.3431 4.37673C12.9656 2.97645 14.3688 2 16 2C18.2091 2 20 3.79086 20 6C20 8.20914 18.2091 10 16 10C14.9749 10 14.04 9.61443 13.3321 8.9804L7.77815 12.6831C7.88518 12.9902 7.95583 13.3143 7.98493 13.6504L12.3431 14.3767C12.9656 12.9764 14.3688 12 16 12C18.2091 12 20 13.7909 20 16C20 18.2091 18.2091 20 16 20C13.9087 20 12.1922 18.3951 12.0151 16.3497L7.6569 15.6233C7.03439 17.0236 5.63123 18 4 18C1.79086 18 0 16.2091 0 14C0 11.7909 1.79086 10 4 10C5.02504 10 5.96002 10.3856 6.66784 11.0196L12.2218 7.3169C12.1148 7.00981 12.0442 6.68568 12.0151 6.34965L7.6569 5.62329Z",fill:"#666AF6"})))},Fn=(0,a.forwardRef)(Un),Yn=(n.p,["title","titleId"]);function Vn(){return Vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wn,qn=function(e,t){var n=e.title,r=e.titleId,i=Hn(e,Yn);return a.createElement("svg",Vn({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Dn||(Dn=a.createElement("path",{d:"M16 10.667C22.6274 10.667 28 8.87613 28 6.66699C28 4.45785 22.6274 2.66699 16 2.66699C9.37258 2.66699 4 4.45785 4 6.66699C4 8.87613 9.37258 10.667 16 10.667Z",stroke:"#61E884",strokeWidth:2.66667,strokeLinecap:"round",strokeLinejoin:"round"})),zn||(zn=a.createElement("path",{d:"M28 16C28 18.2133 22.6667 20 16 20C9.33333 20 4 18.2133 4 16",stroke:"#61E884",strokeWidth:2.66667,strokeLinecap:"round",strokeLinejoin:"round"})),Bn||(Bn=a.createElement("path",{d:"M4 6.66699V25.3337C4 27.547 9.33333 29.3337 16 29.3337C22.6667 29.3337 28 27.547 28 25.3337V6.66699",stroke:"#61E884",strokeWidth:2.66667,strokeLinecap:"round",strokeLinejoin:"round"})))},Gn=(0,a.forwardRef)(qn),Zn=(n.p,["title","titleId"]);function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Kn,Jn=function(e,t){var n=e.title,r=e.titleId,i=$n(e,Zn);return a.createElement("svg",Xn({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Wn||(Wn=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1C7 0.447715 7.44772 0 8 0C8.55229 0 9 0.447715 9 1V4H12V1C12 0.447715 12.4477 0 13 0C13.5523 0 14 0.447715 14 1V4H17V1C17 0.447715 17.4477 0 18 0C18.5523 0 19 0.447715 19 1V4.12602C20.4056 4.4878 21.5122 5.59439 21.874 7H25C25.5523 7 26 7.44772 26 8C26 8.55229 25.5523 9 25 9H22V12H25C25.5523 12 26 12.4477 26 13C26 13.5523 25.5523 14 25 14H22V17H25C25.5523 17 26 17.4477 26 18C26 18.5523 25.5523 19 25 19H21.874C21.5122 20.4056 20.4056 21.5122 19 21.874V25C19 25.5523 18.5523 26 18 26C17.4477 26 17 25.5523 17 25V22H14V25C14 25.5523 13.5523 26 13 26C12.4477 26 12 25.5523 12 25V22H9V25C9 25.5523 8.55229 26 8 26C7.44772 26 7 25.5523 7 25V21.874C5.59439 21.5122 4.4878 20.4056 4.12602 19H1C0.447715 19 0 18.5523 0 18C0 17.4477 0.447715 17 1 17H4V14H1C0.447715 14 0 13.5523 0 13C0 12.4477 0.447715 12 1 12H4V9H1C0.447715 9 0 8.55229 0 8C0 7.44772 0.447715 7 1 7H4.12602C4.4878 5.59439 5.59439 4.4878 7 4.12602V1ZM11 9C9.89543 9 9 9.89543 9 11V15C9 16.1046 9.89543 17 11 17H15C16.1046 17 17 16.1046 17 15V11C17 9.89543 16.1046 9 15 9H11Z",fill:"#666AF6"})))},Qn=(0,a.forwardRef)(Jn),er=(n.p,["title","titleId"]);function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var rr,ir=function(e,t){var n=e.title,r=e.titleId,i=nr(e,er);return a.createElement("svg",tr({width:22,height:26,viewBox:"0 0 22 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Kn||(Kn=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0C0.671573 0 0 0.671572 0 1.5V24.5C0 25.3284 0.671573 26 1.5 26C2.32843 26 3 25.3284 3 24.5V17H19C20.6569 17 22 15.6569 22 14V5C22 3.34315 20.6569 2 19 2H3V1.5C3 0.671573 2.32843 0 1.5 0Z",fill:"#16E1D5"})))},ar=(0,a.forwardRef)(ir),or=(n.p,["title","titleId"]);function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var lr,cr=function(e,t){var n=e.title,r=e.titleId,i=ur(e,or);return a.createElement("svg",sr({width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,rr||(rr=a.createElement("path",{d:"M11.9999 12.8115L9.67454 15.5795C10.3612 16.5407 10.7088 17.703 10.6624 18.8833C10.6161 20.0637 10.1785 21.1951 9.41854 22.0995C8.50834 23.1815 7.20609 23.8582 5.79753 23.9812C4.38897 24.1042 2.98915 23.6634 1.90521 22.7555C1.36875 22.3064 0.926138 21.7558 0.602702 21.1354C0.279265 20.515 0.0813554 19.8368 0.0202999 19.1398C-0.0407557 18.4428 0.0362414 17.7406 0.246884 17.0734C0.457528 16.4062 0.797681 15.7871 1.24788 15.2515C2.0087 14.3467 3.04825 13.72 4.20357 13.4695C5.35889 13.219 6.56467 13.359 7.63188 13.8675L10.2585 10.7395L3.07454 2.18885C2.96202 2.05495 2.87699 1.90019 2.82433 1.7334C2.77166 1.56662 2.7524 1.39109 2.76763 1.21685C2.78286 1.04261 2.83229 0.873089 2.9131 0.717973C2.9939 0.562856 3.10449 0.42519 3.23854 0.31285C3.37266 0.200246 3.52764 0.115165 3.69464 0.0624652C3.86165 0.0097655 4.03739 -0.00952042 4.21185 0.00570882C4.3863 0.0209381 4.55605 0.0703841 4.71139 0.151223C4.86674 0.232062 5.00463 0.342711 5.11721 0.47685L11.9999 8.66885L18.8812 0.47685C18.9938 0.342517 19.1318 0.231703 19.2872 0.150745C19.4427 0.0697879 19.6126 0.0202768 19.7872 0.00504451C19.9618 -0.0101878 20.1377 0.00915768 20.3049 0.0619742C20.472 0.114791 20.6271 0.200042 20.7612 0.31285C20.8953 0.42519 21.0059 0.562856 21.0867 0.717973C21.1675 0.873089 21.2169 1.04261 21.2321 1.21685C21.2474 1.39109 21.2281 1.56662 21.1754 1.7334C21.1228 1.90019 21.0377 2.05495 20.9252 2.18885L13.7399 10.7395L16.3665 13.8662C17.4338 13.3577 18.6395 13.2177 19.7948 13.4682C20.9502 13.7186 21.9897 14.3454 22.7505 15.2502C23.2007 15.7858 23.5409 16.4049 23.7515 17.0721C23.9622 17.7393 24.0392 18.4415 23.9781 19.1385C23.9171 19.8355 23.7192 20.5136 23.3957 21.134C23.0723 21.7545 22.6297 22.305 22.0932 22.7542C21.0093 23.6621 19.6094 24.1029 18.2009 23.9799C16.7923 23.8569 15.4901 23.1802 14.5799 22.0982C13.8199 21.1938 13.3823 20.0624 13.336 18.882C13.2896 17.7016 13.6372 16.5394 14.3239 15.5782L11.9999 12.8115ZM3.61988 20.7142C4.16456 21.1353 4.85102 21.3295 5.53559 21.256C6.22017 21.1825 6.84979 20.8471 7.29269 20.32C7.73559 19.7928 7.95744 19.1148 7.91181 18.4278C7.86618 17.7408 7.55661 17.0981 7.04788 16.6342C6.50587 16.18 5.80581 15.9595 5.10137 16.021C4.39692 16.0825 3.74566 16.421 3.29054 16.9622C2.34388 18.0889 2.49054 19.7689 3.61988 20.7142ZM20.3799 20.7142C20.648 20.4895 20.8692 20.2142 21.0308 19.9039C21.1924 19.5937 21.2912 19.2547 21.3217 18.9062C21.3522 18.5577 21.3136 18.2066 21.2083 17.8731C21.103 17.5395 20.9329 17.23 20.7079 16.9622C20.2528 16.4214 19.6018 16.0832 18.8977 16.0217C18.1936 15.9602 17.4938 16.1805 16.9519 16.6342C16.6837 16.8588 16.4624 17.134 16.3007 17.4442C16.1389 17.7544 16.0399 18.0934 16.0093 18.4419C15.9788 18.7904 16.0172 19.1415 16.1224 19.4751C16.2276 19.8087 16.3976 20.1183 16.6225 20.3862C17.5692 21.5129 19.2519 21.6595 20.3799 20.7142Z",fill:"#FF8B5C"})))},dr=(0,a.forwardRef)(cr),fr=(n.p,["title","titleId"]);function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mr=function(e,t){var n=e.title,r=e.titleId,i=pr(e,fr);return a.createElement("svg",hr({width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,lr||(lr=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 26C20.1797 26 26 20.1797 26 13C26 5.8203 20.1797 0 13 0C5.8203 0 0 5.8203 0 13C0 20.1797 5.8203 26 13 26ZM12 5C12 4.44772 12.4477 4 13 4C13.5523 4 14 4.44772 14 5V12H19C19.5523 12 20 12.4477 20 13C20 13.5523 19.5523 14 19 14H13C12.4477 14 12 13.5523 12 13V5Z",fill:"#4CAAFF"})))},vr=(0,a.forwardRef)(mr);n.p;function yr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nt.length)throw new Error("The separator position is ".concat(n,", which doesn't leave enough space for data"));for(var r=new Uint8Array(t.length-n-1),i=0,a=n+1;a>5*(5-s)&31;return o}},{key:"verifyChecksum",value:function(t,n){var r=e.humanReadablePartExpand(t),i=new Uint8Array(r.length+n.length);return i.set(r,0),i.set(n,r.length),1===e.polymod(i)}},{key:"polymod",value:function(t){for(var n=1,r=0;r>25;n=(33554431&n)<<5^t[r];for(var a=0;a<5;++a)i>>a&1&&(n^=e.GENERATOR[a])}return n}},{key:"humanReadablePartExpand",value:function(e){for(var t=new Uint8Array(2*e.length+1),n=0,r=0;r>5;t[n++]=0;for(var i=0;i=n;)a-=n,s.push(i>>a&o);if(r)a>0&&s.push(i<=t)throw new Error("Excess padding");if(i<>2]>>8*(3&t);return e}},{key:"init",value:function(t,n){if(t<=0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(n&&n.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");for(var r=0;r<16;r++)this._context.h[r]=e.BLAKE2B_IV32[r];var i=n?n.length:0;this._context.h[0]^=16842752^i<<8^t,n&&(this.update(n),this._context.c=128)}},{key:"compress",value:function(t){var n=0;for(n=0;n<16;n++)this._v[n]=this._context.h[n],this._v[n+16]=e.BLAKE2B_IV32[n];for(this._v[24]^=this._context.t,this._v[25]^=this._context.t/4294967296,t&&(this._v[28]=~this._v[28],this._v[29]=~this._v[29]),n=0;n<32;n++)this._m[n]=this.b2bGet32(this._context.b,4*n);for(n=0;n<12;n++)this.b2bG(0,8,16,24,e.SIGMA82[16*n+0],e.SIGMA82[16*n+1]),this.b2bG(2,10,18,26,e.SIGMA82[16*n+2],e.SIGMA82[16*n+3]),this.b2bG(4,12,20,28,e.SIGMA82[16*n+4],e.SIGMA82[16*n+5]),this.b2bG(6,14,22,30,e.SIGMA82[16*n+6],e.SIGMA82[16*n+7]),this.b2bG(0,10,20,30,e.SIGMA82[16*n+8],e.SIGMA82[16*n+9]),this.b2bG(2,12,22,24,e.SIGMA82[16*n+10],e.SIGMA82[16*n+11]),this.b2bG(4,14,16,26,e.SIGMA82[16*n+12],e.SIGMA82[16*n+13]),this.b2bG(6,8,18,28,e.SIGMA82[16*n+14],e.SIGMA82[16*n+15]);for(n=0;n<16;n++)this._context.h[n]=this._context.h[n]^this._v[n]^this._v[n+16]}},{key:"add64AA",value:function(e,t,n){var r=e[t]+e[n],i=e[t+1]+e[n+1];r>=4294967296&&i++,e[t]=r,e[t+1]=i}},{key:"add64AC",value:function(e,t,n,r){var i=e[t]+n;n<0&&(i+=4294967296);var a=e[t+1]+r;i>=4294967296&&a++,e[t]=i,e[t+1]=a}},{key:"b2bGet32",value:function(e,t){return e[t]^e[t+1]<<8^e[t+2]<<16^e[t+3]<<24}},{key:"b2bG",value:function(e,t,n,r,i,a){var o=this._m[i],s=this._m[i+1],u=this._m[a],l=this._m[a+1];this.add64AA(this._v,e,t),this.add64AC(this._v,e,o,s);var c=this._v[r]^this._v[e],d=this._v[r+1]^this._v[e+1];this._v[r]=d,this._v[r+1]=c,this.add64AA(this._v,n,r),c=this._v[t]^this._v[n],d=this._v[t+1]^this._v[n+1],this._v[t]=c>>>24^d<<8,this._v[t+1]=d>>>24^c<<8,this.add64AA(this._v,e,t),this.add64AC(this._v,e,u,l),c=this._v[r]^this._v[e],d=this._v[r+1]^this._v[e+1],this._v[r]=c>>>16^d<<16,this._v[r+1]=d>>>16^c<<16,this.add64AA(this._v,n,r),c=this._v[t]^this._v[n],d=this._v[t+1]^this._v[n+1],this._v[t]=d>>>31^c<<1,this._v[t+1]=c>>>31^d<<1}}],[{key:"sum256",value:function(t,n){var r=new e(e.SIZE_256,n);return r.update(t),r.final()}},{key:"sum512",value:function(t,n){var r=new e(e.SIZE_512,n);return r.update(t),r.final()}}]),e}();_r.SIZE_256=32,_r.SIZE_512=64,_r.BLAKE2B_IV32=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),_r.SIGMA8=[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],_r.SIGMA82=new Uint8Array(_r.SIGMA8.map((function(e){return 2*e})));var kr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.NUMBER_OF_ROUNDS;if(Oe(this,e),27!==t&&81!==t)throw new Error("Illegal number of rounds. Only `27` and `81` rounds are supported.");this._state=new Int8Array(e.STATE_LENGTH),this._rounds=t}return Le(e,[{key:"reset",value:function(){this._state=new Int8Array(e.STATE_LENGTH)}},{key:"rate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.HASH_LENGTH;return this._state.slice(0,t)}},{key:"absorb",value:function(t,n,r){do{var i=r0)}},{key:"squeeze",value:function(t,n,r){do{var i=r0)}}],[{key:"transform",value:function(t,n){for(var r,i=0,a=0;a>2]|=t[r]<=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=Math.trunc(this.bytes/4294967296),this.bytes%=4294967296),this}},{key:"digest",value:function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,i=this.h4;return Uint8Array.from([e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i])}},{key:"finalize",value:function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,n=this.lastByteIndex;t[16]=this.block,t[n>>2]|=e._EXTRA[3&n],this.block=t[16],n>=56&&(this.hashed||this.hash(),t[0]=this.block,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,t[16]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}}},{key:"hash",value:function(){var e,t,n,r=this.h0,i=this.h1,a=this.h2,o=this.h3,s=this.h4,u=this.blocks;for(t=16;t<80;++t)n=u[t-3]^u[t-8]^u[t-14]^u[t-16],u[t]=n<<1|n>>>31;for(t=0;t<20;t+=5)e=i&a|~i&o,n=r<<5|r>>>27,s=Math.trunc(n+e+s+1518500249+u[t]),e=r&(i=i<<30|i>>>2)|~r&a,n=s<<5|s>>>27,o=Math.trunc(n+e+o+1518500249+u[t+1]),e=s&(r=r<<30|r>>>2)|~s&i,n=o<<5|o>>>27,a=Math.trunc(n+e+a+1518500249+u[t+2]),e=o&(s=s<<30|s>>>2)|~o&r,n=a<<5|a>>>27,i=Math.trunc(n+e+i+1518500249+u[t+3]),e=a&(o=o<<30|o>>>2)|~a&s,n=i<<5|i>>>27,r=Math.trunc(n+e+r+1518500249+u[t+4]),a=a<<30|a>>>2;for(;t<40;t+=5)e=i^a^o,n=r<<5|r>>>27,s=Math.trunc(n+e+s+1859775393+u[t]),e=r^(i=i<<30|i>>>2)^a,n=s<<5|s>>>27,o=Math.trunc(n+e+o+1859775393+u[t+1]),e=s^(r=r<<30|r>>>2)^i,n=o<<5|o>>>27,a=Math.trunc(n+e+a+1859775393+u[t+2]),e=o^(s=s<<30|s>>>2)^r,n=a<<5|a>>>27,i=Math.trunc(n+e+i+1859775393+u[t+3]),e=a^(o=o<<30|o>>>2)^s,n=i<<5|i>>>27,r=Math.trunc(n+e+r+1859775393+u[t+4]),a=a<<30|a>>>2;for(;t<60;t+=5)e=i&a|i&o|a&o,n=r<<5|r>>>27,s=Math.trunc(n+e+s-1894007588+u[t]),e=r&(i=i<<30|i>>>2)|r&a|i&a,n=s<<5|s>>>27,o=Math.trunc(n+e+o-1894007588+u[t+1]),e=s&(r=r<<30|r>>>2)|s&i|r&i,n=o<<5|o>>>27,a=Math.trunc(n+e+a-1894007588+u[t+2]),e=o&(s=s<<30|s>>>2)|o&r|s&r,n=a<<5|a>>>27,i=Math.trunc(n+e+i-1894007588+u[t+3]),e=a&(o=o<<30|o>>>2)|a&s|o&s,n=i<<5|i>>>27,r=Math.trunc(n+e+r-1894007588+u[t+4]),a=a<<30|a>>>2;for(;t<80;t+=5)e=i^a^o,n=r<<5|r>>>27,s=Math.trunc(n+e+s-899497514+u[t]),e=r^(i=i<<30|i>>>2)^a,n=s<<5|s>>>27,o=Math.trunc(n+e+o-899497514+u[t+1]),e=s^(r=r<<30|r>>>2)^i,n=o<<5|o>>>27,a=Math.trunc(n+e+a-899497514+u[t+2]),e=o^(s=s<<30|s>>>2)^r,n=a<<5|a>>>27,i=Math.trunc(n+e+i-899497514+u[t+3]),e=a^(o=o<<30|o>>>2)^s,n=i<<5|i>>>27,r=Math.trunc(n+e+r-899497514+u[t+4]),a=a<<30|a>>>2;this.h0=Math.trunc(this.h0+r),this.h1=Math.trunc(this.h1+i),this.h2=Math.trunc(this.h2+a),this.h3=Math.trunc(this.h3+o),this.h4=Math.trunc(this.h4+s)}}],[{key:"sum",value:function(t){var n=new e;return n.update(t),n.digest()}}]),e}();xr._EXTRA=[-2147483648,8388608,32768,128],xr._SHIFT=[24,16,8,0];var Sr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.SIZE_256;if(Oe(this,e),this._blocks=[],t!==e.SIZE_224&&t!==e.SIZE_256)throw new Error("Only 224 or 256 bits are supported");this._blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t===e.SIZE_224?(this._h0=3238371032,this._h1=914150663,this._h2=812702999,this._h3=4144912697,this._h4=4290775857,this._h5=1750603025,this._h6=1694076839,this._h7=3204075428):(this._h0=1779033703,this._h1=3144134277,this._h2=1013904242,this._h3=2773480762,this._h4=1359893119,this._h5=2600822924,this._h6=528734635,this._h7=1541459225),this._bits=t,this._block=0,this._start=0,this._bytes=0,this._hBytes=0,this._lastByteIndex=0,this._finalized=!1,this._hashed=!1,this._first=!0}return Le(e,[{key:"update",value:function(t){if(this._finalized)throw new Error("The hash has already been finalized.");for(var n,r=0,i=t.length,a=this._blocks;r>2]|=t[r]<=64?(this._block=a[16],this._start=n-64,this.hash(),this._hashed=!0):this._start=n}return this._bytes>4294967295&&(this._hBytes+=Math.trunc(this._bytes/4294967296),this._bytes%=4294967296),this}},{key:"digest",value:function(){this.finalize();var t=this._h0,n=this._h1,r=this._h2,i=this._h3,a=this._h4,o=this._h5,s=this._h6,u=this._h7,l=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s];return this._bits===e.SIZE_256&&l.push(u>>24&255,u>>16&255,u>>8&255,255&u),Uint8Array.from(l)}},{key:"finalize",value:function(){if(!this._finalized){this._finalized=!0;var t=this._blocks,n=this._lastByteIndex;t[16]=this._block,t[n>>2]|=e.EXTRA[3&n],this._block=t[16],n>=56&&(this._hashed||this.hash(),t[0]=this._block,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,t[16]=0),t[14]=this._hBytes<<3|this._bytes>>>29,t[15]=this._bytes<<3,this.hash()}}},{key:"hash",value:function(){var t,n,r,i,a,o,s,u,l,c=this._h0,d=this._h1,f=this._h2,h=this._h3,p=this._h4,m=this._h5,v=this._h6,y=this._h7,g=this._blocks;for(t=16;t<64;++t)n=((a=g[t-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,r=((a=g[t-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,g[t]=g[t-16]+n+g[t-7]+r<<0;for(l=d&f,t=0;t<64;t+=4)this._first?(this._bits===e.SIZE_224?(o=300032,y=(a=g[0]-1413257819)-150054599<<0,h=a+24177077<<0):(o=704751109,y=(a=g[0]-210244248)-1521486534<<0,h=a+143694565<<0),this._first=!1):(n=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),i=(o=c&d)^c&f^l,y=h+(a=y+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&m^~p&v)+e.K[t]+g[t])<<0,h=a+(n+i)<<0),n=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),i=(s=h&c)^h&d^o,v=f+(a=v+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&p^~y&m)+e.K[t+1]+g[t+1])<<0,n=((f=a+(n+i)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),i=(u=f&h)^f&c^s,m=d+(a=m+(r=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&y^~v&p)+e.K[t+2]+g[t+2])<<0,n=((d=a+(n+i)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),i=(l=d&f)^d&h^u,p=c+(a=p+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&y)+e.K[t+3]+g[t+3])<<0,c=a+(n+i)<<0;this._h0+=Math.trunc(c),this._h1+=Math.trunc(d),this._h2+=Math.trunc(f),this._h3+=Math.trunc(h),this._h4+=Math.trunc(p),this._h5+=Math.trunc(m),this._h6+=Math.trunc(v),this._h7+=Math.trunc(y)}}],[{key:"sum256",value:function(t){var n=new e(e.SIZE_256);return n.update(t),n.digest()}},{key:"sum224",value:function(t){var n=new e(e.SIZE_224);return n.update(t),n.digest()}}]),e}();Sr.SIZE_256=256,Sr.SIZE_224=224,Sr.EXTRA=[-2147483648,8388608,32768,128],Sr.SHIFT=[24,16,8,0],Sr.K=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);var Er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.SIZE_512;if(Oe(this,e),this._blocks=[],t!==e.SIZE_224&&t!==e.SIZE_256&&t!==e.SIZE_384&&t!==e.SIZE_512)throw new Error("Only 224, 256, 384 or 512 bits are supported");this._blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t===e.SIZE_384?(this._h0h=3418070365,this._h0l=3238371032,this._h1h=1654270250,this._h1l=914150663,this._h2h=2438529370,this._h2l=812702999,this._h3h=355462360,this._h3l=4144912697,this._h4h=1731405415,this._h4l=4290775857,this._h5h=2394180231,this._h5l=1750603025,this._h6h=3675008525,this._h6l=1694076839,this._h7h=1203062813,this._h7l=3204075428):t===e.SIZE_256?(this._h0h=573645204,this._h0l=4230739756,this._h1h=2673172387,this._h1l=3360449730,this._h2h=596883563,this._h2l=1867755857,this._h3h=2520282905,this._h3l=1497426621,this._h4h=2519219938,this._h4l=2827943907,this._h5h=3193839141,this._h5l=1401305490,this._h6h=721525244,this._h6l=746961066,this._h7h=246885852,this._h7l=2177182882):t===e.SIZE_224?(this._h0h=2352822216,this._h0l=424955298,this._h1h=1944164710,this._h1l=2312950998,this._h2h=502970286,this._h2l=855612546,this._h3h=1738396948,this._h3l=1479516111,this._h4h=258812777,this._h4l=2077511080,this._h5h=2011393907,this._h5l=79989058,this._h6h=1067287976,this._h6l=1780299464,this._h7h=286451373,this._h7l=2446758561):(this._h0h=1779033703,this._h0l=4089235720,this._h1h=3144134277,this._h1l=2227873595,this._h2h=1013904242,this._h2l=4271175723,this._h3h=2773480762,this._h3l=1595750129,this._h4h=1359893119,this._h4l=2917565137,this._h5h=2600822924,this._h5l=725511199,this._h6h=528734635,this._h6l=4215389547,this._h7h=1541459225,this._h7l=327033209),this._bits=t,this._block=0,this._start=0,this._bytes=0,this._hBytes=0,this._lastByteIndex=0,this._finalized=!1,this._hashed=!1}return Le(e,[{key:"update",value:function(t){if(this._finalized)throw new Error("The hash has already been finalized.");for(var n,r=0,i=t.length,a=this._blocks;r>2]|=t[r]<=128?(this._block=a[32],this._start=n-128,this.hash(),this._hashed=!0):this._start=n}return this._bytes>4294967295&&(this._hBytes+=Math.trunc(this._bytes/4294967296),this._bytes%=4294967296),this}},{key:"digest",value:function(){this.finalize();var t=this._h0h,n=this._h0l,r=this._h1h,i=this._h1l,a=this._h2h,o=this._h2l,s=this._h3h,u=this._h3l,l=this._h4h,c=this._h4l,d=this._h5h,f=this._h5l,h=this._h6h,p=this._h6l,m=this._h7h,v=this._h7l,y=this._bits,g=[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s];return y>=e.SIZE_256&&g.push(u>>24&255,u>>16&255,u>>8&255,255&u),y>=e.SIZE_384&&g.push(l>>24&255,l>>16&255,l>>8&255,255&l,c>>24&255,c>>16&255,c>>8&255,255&c,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f),y===e.SIZE_512&&g.push(h>>24&255,h>>16&255,h>>8&255,255&h,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,v>>24&255,v>>16&255,v>>8&255,255&v),Uint8Array.from(g)}},{key:"finalize",value:function(){if(!this._finalized){this._finalized=!0;var t=this._blocks,n=this._lastByteIndex;t[32]=this._block,t[n>>2]|=e.EXTRA[3&n],this._block=t[32],n>=112&&(this._hashed||this.hash(),t[0]=this._block,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=0,t[16]=0,t[17]=0,t[18]=0,t[19]=0,t[20]=0,t[21]=0,t[22]=0,t[23]=0,t[24]=0,t[25]=0,t[26]=0,t[27]=0,t[28]=0,t[29]=0,t[30]=0,t[31]=0,t[32]=0),t[30]=this._hBytes<<3|this._bytes>>>29,t[31]=this._bytes<<3,this.hash()}}},{key:"hash",value:function(){var t,n,r,i,a,o,s,u,l,c,d,f,h,p,m,v,y,g,w,b,_,k,x,S,E,C=this._h0h,N=this._h0l,O=this._h1h,M=this._h1l,L=this._h2h,P=this._h2l,T=this._h3h,j=this._h3l,I=this._h4h,R=this._h4l,A=this._h5h,D=this._h5l,z=this._h6h,B=this._h6l,U=this._h7h,F=this._h7l,Y=this._blocks;for(t=32;t<160;t+=2)n=((b=Y[t-30])>>>1|(_=Y[t-29])<<31)^(b>>>8|_<<24)^b>>>7,r=(_>>>1|b<<31)^(_>>>8|b<<24)^(_>>>7|b<<25),i=((b=Y[t-4])>>>19|(_=Y[t-3])<<13)^(_>>>29|b<<3)^b>>>6,a=(_>>>19|b<<13)^(b>>>29|_<<3)^(_>>>6|b<<26),b=Y[t-32],_=Y[t-31],l=((k=Y[t-14])>>>16)+(b>>>16)+(n>>>16)+(i>>>16)+((u=(65535&k)+(65535&b)+(65535&n)+(65535&i)+((s=((x=Y[t-13])>>>16)+(_>>>16)+(r>>>16)+(a>>>16)+((o=(65535&x)+(65535&_)+(65535&r)+(65535&a))>>>16))>>>16))>>>16),Y[t]=l<<16|65535&u,Y[t+1]=s<<16|65535&o;var V=C,H=N,W=O,q=M,G=L,Z=P,X=T,$=j,K=I,J=R,Q=A,ee=D,te=z,ne=B,re=U,ie=F;for(v=W&G,y=q&Z,t=0;t<160;t+=8)n=(V>>>28|H<<4)^(H>>>2|V<<30)^(H>>>7|V<<25),r=(H>>>28|V<<4)^(V>>>2|H<<30)^(V>>>7|H<<25),i=(K>>>14|J<<18)^(K>>>18|J<<14)^(J>>>9|K<<23),a=(J>>>14|K<<18)^(J>>>18|K<<14)^(K>>>9|J<<23),g=(c=V&W)^V&G^v,w=(d=H&q)^H&Z^y,S=K&Q^~K&te,E=J&ee^~J&ne,b=Y[t],_=Y[t+1],b=(l=((k=e.K[t])>>>16)+(b>>>16)+(S>>>16)+(i>>>16)+(re>>>16)+((u=(65535&k)+(65535&b)+(65535&S)+(65535&i)+(65535&re)+((s=((x=e.K[t+1])>>>16)+(_>>>16)+(E>>>16)+(a>>>16)+(ie>>>16)+((o=(65535&x)+(65535&_)+(65535&E)+(65535&a)+(65535&ie))>>>16))>>>16))>>>16))<<16|65535&u,_=s<<16|65535&o,k=(l=(g>>>16)+(n>>>16)+((u=(65535&g)+(65535&n)+((s=(w>>>16)+(r>>>16)+((o=(65535&w)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&u,x=s<<16|65535&o,re=(l=(X>>>16)+(b>>>16)+((u=(65535&X)+(65535&b)+((s=($>>>16)+(_>>>16)+((o=(65535&$)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u,ie=s<<16|65535&o,n=((X=(l=(k>>>16)+(b>>>16)+((u=(65535&k)+(65535&b)+((s=(x>>>16)+(_>>>16)+((o=(65535&x)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u)>>>28|($=s<<16|65535&o)<<4)^($>>>2|X<<30)^($>>>7|X<<25),r=($>>>28|X<<4)^(X>>>2|$<<30)^(X>>>7|$<<25),i=(re>>>14|ie<<18)^(re>>>18|ie<<14)^(ie>>>9|re<<23),a=(ie>>>14|re<<18)^(ie>>>18|re<<14)^(re>>>9|ie<<23),g=(f=X&V)^X&W^c,w=(h=$&H)^$&q^d,S=re&K^~re&Q,E=ie&J^~ie&ee,b=Y[t+2],_=Y[t+3],b=(l=((k=e.K[t+2])>>>16)+(b>>>16)+(S>>>16)+(i>>>16)+(te>>>16)+((u=(65535&k)+(65535&b)+(65535&S)+(65535&i)+(65535&te)+((s=((x=e.K[t+3])>>>16)+(_>>>16)+(E>>>16)+(a>>>16)+(ne>>>16)+((o=(65535&x)+(65535&_)+(65535&E)+(65535&a)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&u,_=s<<16|65535&o,k=(l=(g>>>16)+(n>>>16)+((u=(65535&g)+(65535&n)+((s=(w>>>16)+(r>>>16)+((o=(65535&w)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&u,x=s<<16|65535&o,te=(l=(G>>>16)+(b>>>16)+((u=(65535&G)+(65535&b)+((s=(Z>>>16)+(_>>>16)+((o=(65535&Z)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u,ne=s<<16|65535&o,n=((G=(l=(k>>>16)+(b>>>16)+((u=(65535&k)+(65535&b)+((s=(x>>>16)+(_>>>16)+((o=(65535&x)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u)>>>28|(Z=s<<16|65535&o)<<4)^(Z>>>2|G<<30)^(Z>>>7|G<<25),r=(Z>>>28|G<<4)^(G>>>2|Z<<30)^(G>>>7|Z<<25),i=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),a=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),g=(p=G&X)^G&V^f,w=(m=Z&$)^Z&H^h,S=te&re^~te&K,E=ne&ie^~ne&J,b=Y[t+4],_=Y[t+5],b=(l=((k=e.K[t+4])>>>16)+(b>>>16)+(S>>>16)+(i>>>16)+(Q>>>16)+((u=(65535&k)+(65535&b)+(65535&S)+(65535&i)+(65535&Q)+((s=((x=e.K[t+5])>>>16)+(_>>>16)+(E>>>16)+(a>>>16)+(ee>>>16)+((o=(65535&x)+(65535&_)+(65535&E)+(65535&a)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&u,_=s<<16|65535&o,k=(l=(g>>>16)+(n>>>16)+((u=(65535&g)+(65535&n)+((s=(w>>>16)+(r>>>16)+((o=(65535&w)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&u,x=s<<16|65535&o,Q=(l=(W>>>16)+(b>>>16)+((u=(65535&W)+(65535&b)+((s=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u,ee=s<<16|65535&o,n=((W=(l=(k>>>16)+(b>>>16)+((u=(65535&k)+(65535&b)+((s=(x>>>16)+(_>>>16)+((o=(65535&x)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u)>>>28|(q=s<<16|65535&o)<<4)^(q>>>2|W<<30)^(q>>>7|W<<25),r=(q>>>28|W<<4)^(W>>>2|q<<30)^(W>>>7|q<<25),i=(Q>>>14|ee<<18)^(Q>>>18|ee<<14)^(ee>>>9|Q<<23),a=(ee>>>14|Q<<18)^(ee>>>18|Q<<14)^(Q>>>9|ee<<23),g=(v=W&G)^W&X^p,w=(y=q&Z)^q&$^m,S=Q&te^~Q&re,E=ee&ne^~ee&ie,b=Y[t+6],_=Y[t+7],b=(l=((k=e.K[t+6])>>>16)+(b>>>16)+(S>>>16)+(i>>>16)+(K>>>16)+((u=(65535&k)+(65535&b)+(65535&S)+(65535&i)+(65535&K)+((s=((x=e.K[t+7])>>>16)+(_>>>16)+(E>>>16)+(a>>>16)+(J>>>16)+((o=(65535&x)+(65535&_)+(65535&E)+(65535&a)+(65535&J))>>>16))>>>16))>>>16))<<16|65535&u,_=s<<16|65535&o,k=(l=(g>>>16)+(n>>>16)+((u=(65535&g)+(65535&n)+((s=(w>>>16)+(r>>>16)+((o=(65535&w)+(65535&r))>>>16))>>>16))>>>16))<<16|65535&u,x=s<<16|65535&o,K=(l=(V>>>16)+(b>>>16)+((u=(65535&V)+(65535&b)+((s=(H>>>16)+(_>>>16)+((o=(65535&H)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u,J=s<<16|65535&o,V=(l=(k>>>16)+(b>>>16)+((u=(65535&k)+(65535&b)+((s=(x>>>16)+(_>>>16)+((o=(65535&x)+(65535&_))>>>16))>>>16))>>>16))<<16|65535&u,H=s<<16|65535&o;l=(C>>>16)+(V>>>16)+((u=(65535&C)+(65535&V)+((s=(N>>>16)+(H>>>16)+((o=(65535&N)+(65535&H))>>>16))>>>16))>>>16),this._h0h=l<<16|65535&u,this._h0l=s<<16|65535&o,l=(O>>>16)+(W>>>16)+((u=(65535&O)+(65535&W)+((s=(M>>>16)+(q>>>16)+((o=(65535&M)+(65535&q))>>>16))>>>16))>>>16),this._h1h=l<<16|65535&u,this._h1l=s<<16|65535&o,l=(L>>>16)+(G>>>16)+((u=(65535&L)+(65535&G)+((s=(P>>>16)+(Z>>>16)+((o=(65535&P)+(65535&Z))>>>16))>>>16))>>>16),this._h2h=l<<16|65535&u,this._h2l=s<<16|65535&o,l=(T>>>16)+(X>>>16)+((u=(65535&T)+(65535&X)+((s=(j>>>16)+($>>>16)+((o=(65535&j)+(65535&$))>>>16))>>>16))>>>16),this._h3h=l<<16|65535&u,this._h3l=s<<16|65535&o,l=(I>>>16)+(K>>>16)+((u=(65535&I)+(65535&K)+((s=(R>>>16)+(J>>>16)+((o=(65535&R)+(65535&J))>>>16))>>>16))>>>16),this._h4h=l<<16|65535&u,this._h4l=s<<16|65535&o,l=(A>>>16)+(Q>>>16)+((u=(65535&A)+(65535&Q)+((s=(D>>>16)+(ee>>>16)+((o=(65535&D)+(65535&ee))>>>16))>>>16))>>>16),this._h5h=l<<16|65535&u,this._h5l=s<<16|65535&o,l=(z>>>16)+(te>>>16)+((u=(65535&z)+(65535&te)+((s=(B>>>16)+(ne>>>16)+((o=(65535&B)+(65535&ne))>>>16))>>>16))>>>16),this._h6h=l<<16|65535&u,this._h6l=s<<16|65535&o,l=(U>>>16)+(re>>>16)+((u=(65535&U)+(65535&re)+((s=(F>>>16)+(ie>>>16)+((o=(65535&F)+(65535&ie))>>>16))>>>16))>>>16),this._h7h=l<<16|65535&u,this._h7l=s<<16|65535&o}}],[{key:"sum512",value:function(t){var n=new e(e.SIZE_512);return n.update(t),n.digest()}}]),e}();Er.SIZE_224=224,Er.SIZE_256=256,Er.SIZE_384=384,Er.SIZE_512=512,Er.EXTRA=[-2147483648,8388608,32768,128],Er.SHIFT=[24,16,8,0],Er.K=Uint32Array.from([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);var Cr=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"generate",value:function(t){return e.randomPolyfill?e.randomPolyfill(t):new Uint8Array(t)}}]),e}();Cr.randomPolyfill||(Cr.randomPolyfill=function(e){var t=new Uint8Array(e);return window.crypto.getRandomValues(t),t});var Nr=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"decode",value:function(t){var n=0,r=0;t=t.replace(/=+$/,"");for(var i=0,a=new Uint8Array(Math.trunc(5*t.length/8)),o=0;o=8&&(a[i++]=r>>>n-8&255,n-=8)}return a}},{key:"encode",value:function(t){for(var n=0,r=0,i="",a=0;a=5;)i+=e._ALPHABET[r>>>n-5&31],n-=5;for(n>0&&(i+=e._ALPHABET[r<<5-n&31]);i.length%8!==0;)i+="=";return i}}]),e}();Nr._ALPHABET="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";var Or=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"decode",value:function(t){for(var n=0,r=0;r=0&&!(0===c&&d>=o);f--,d++)c+=58*a[f],a[f]=c,c>>>=8;o=d}var h,p=new Uint8Array(n+o);for(h=0;h=0&&!(0===u&&l>=o);c--,l++)u+=256*a[c],a[c]=u%58,u=Math.trunc(u/58);o=l}for(var d=i-o;d0?a-4:a;for(r=0;r>16&255,s[u++]=n>>8&255,s[u++]=255&n;return 2===o&&(n=e._REVERSE_LOOKUP[t.charCodeAt(r)]<<2|e._REVERSE_LOOKUP[t.charCodeAt(r+1)]>>4,s[u++]=255&n),1===o&&(n=e._REVERSE_LOOKUP[t.charCodeAt(r)]<<10|e._REVERSE_LOOKUP[t.charCodeAt(r+1)]<<4|e._REVERSE_LOOKUP[t.charCodeAt(r+2)]>>2,s[u++]=n>>8&255,s[u++]=255&n),s}},{key:"encode",value:function(t){for(var n,r=t.length,i=r%3,a=[],o=16383,s=0,u=r-i;su?u:s+o));return 1===i?(n=t[r-1],a.push("".concat(e._LOOKUP[n>>2]+e._LOOKUP[n<<4&63],"=="))):2===i&&(n=(t[r-2]<<8)+t[r-1],a.push("".concat(e._LOOKUP[n>>10]+e._LOOKUP[n>>4&63]+e._LOOKUP[n<<2&63],"="))),a.join("")}},{key:"calcByteLength",value:function(e,t){return 3*(e+t)/4-t}},{key:"getLengths",value:function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}},{key:"tripletToBase64",value:function(t){return e._LOOKUP[t>>18&63]+e._LOOKUP[t>>12&63]+e._LOOKUP[t>>6&63]+e._LOOKUP[63&t]}},{key:"encodeChunk",value:function(t,n,r){for(var i,a=[],o=n;o>>0;return Lr(n)}},{key:"read4",value:function(e,t){var n=e[t+0]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24)>>>0;return Lr(n)}},{key:"read8",value:function(t,n){var r=t[n+0]+(t[n+1]<<8)+(t[n+2]<<16)+(t[n+3]<<24)>>>0,i=t[n+4]+(t[n+5]<<8)+(t[n+6]<<16)+(t[n+7]<<24)>>>0;return Lr(i).shiftLeft(e.BIG_32).or(r)}},{key:"write8",value:function(t,n,r){var i=Number(t.and(e.BIG_32_MASK)),a=Number(t.shiftRight(e.BIG_32).and(e.BIG_32_MASK));n[r]=255&i,n[r+1]=i>>8&255,n[r+2]=i>>16&255,n[r+3]=i>>24&255,n[r+4]=255&a,n[r+5]=a>>8&255,n[r+6]=a>>16&255,n[r+7]=a>>24&255}},{key:"random",value:function(){return e.read8(Cr.generate(8),0)}}]),e}();Pr.BIG_32=Lr(32),Pr.BIG_32_MASK=Lr(4294967295);var Tr=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"bytesToUtf8",value:function(e,t,n){for(var r=null!==t&&void 0!==t?t:0,i=null!==n&&void 0!==n?n:e.length,a="",o=r;o191&&s<224)a+=String.fromCharCode((31&s)<<6|63&e[o+1]),o+=1;else if(s>223&&s<240)a+=String.fromCharCode((15&s)<<12|(63&e[o+1])<<6|63&e[o+2]),o+=2;else{var u=((7&s)<<18|(63&e[o+1])<<12|(63&e[o+2])<<6|63&e[o+3])-65536;a+=String.fromCharCode(u>>10|55296,1023&u|56320),o+=3}}return a}},{key:"utf8ToBytes",value:function(e){for(var t=[],n=0;n>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return Uint8Array.from(t)}},{key:"bytesToHex",value:function(t,n,r,i){var a="";if(this.buildHexLookups(),e.ENCODE_LOOKUP){var o=null!==r&&void 0!==r?r:t.length,s=null!==n&&void 0!==n?n:0;if(i)for(var u=0;u>1,i=r<<1,a=new Uint8Array(r);if(this.buildHexLookups(),e.DECODE_LOOKUP){for(var o=0,s=0;o>4&15]+t[15&n],n<16&&(n<10?e.DECODE_LOOKUP[48+n]=n:e.DECODE_LOOKUP[87+n]=n)}}}]),e}();(function(){function e(){Oe(this,e),this._storage=new Uint8Array(e.CHUNK_SIZE),this._writeIndex=0}return Le(e,[{key:"length",value:function(){return this._storage.length}},{key:"unused",value:function(){return this._storage.length-this._writeIndex}},{key:"finalBytes",value:function(){return this._storage.subarray(0,this._writeIndex)}},{key:"finalHex",value:function(){return Tr.bytesToHex(this._storage.subarray(0,this._writeIndex))}},{key:"getWriteIndex",value:function(){return this._writeIndex}},{key:"setWriteIndex",value:function(e){if(this._writeIndex=e,e>=this._storage.length)throw new Error("You cannot set the writeIndex to ".concat(e," as the stream is only ").concat(this._storage.length," in length"))}},{key:"writeFixedHex",value:function(e,t,n){if(!Tr.isHex(n))throw new Error("The ".concat(e," should be in hex format"));if(2*t!==n.length)throw new Error("".concat(e," length ").concat(n.length," does not match expected length ").concat(2*t));this.expand(t),this._storage.set(Tr.hexToBytes(n),this._writeIndex),this._writeIndex+=t}},{key:"writeBytes",value:function(e,t,n){this.expand(t),this._storage.set(n,this._writeIndex),this._writeIndex+=t}},{key:"writeByte",value:function(e,t){this.expand(1),this._storage[this._writeIndex++]=255&t}},{key:"writeUInt16",value:function(e,t){this.expand(2),this._storage[this._writeIndex++]=255&t,this._storage[this._writeIndex++]=t>>>8}},{key:"writeUInt32",value:function(e,t){this.expand(4),this._storage[this._writeIndex++]=255&t,this._storage[this._writeIndex++]=t>>>8,this._storage[this._writeIndex++]=t>>>16,this._storage[this._writeIndex++]=t>>>24}},{key:"writeUInt64",value:function(e,t){this.expand(8),Pr.write8(t,this._storage,this._writeIndex),this._writeIndex+=8}},{key:"writeBoolean",value:function(e,t){this.expand(1),this._storage[this._writeIndex++]=t?1:0}},{key:"expand",value:function(t){if(this._writeIndex+t>this._storage.byteLength){var n=new Uint8Array(this._storage.length+Math.ceil(t/e.CHUNK_SIZE)*e.CHUNK_SIZE);n.set(this._storage,0),this._storage=n}}}]),e}()).CHUNK_SIZE=4096;var jr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256;Oe(this,e),this._bits=n,this._sha256=new Sr(n),t.length>64&&(t=new Sr(n).update(t).digest()),this._oKeyPad=new Uint8Array(64);for(var r=new Uint8Array(64),i=0;i<64;++i){var a=t[i]||0;this._oKeyPad[i]=92^a,r[i]=54^a}this._sha256.update(r)}return Le(e,[{key:"update",value:function(e){return this._sha256.update(e),this}},{key:"digest",value:function(){var e=this._sha256.digest(),t=new Sr(this._bits);return t.update(this._oKeyPad),t.update(e),t.digest()}}],[{key:"sum256",value:function(t,n){var r=new e(t,256);return r.update(n),r.digest()}}]),e}(),Ir=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;Oe(this,e),this._bits=n,this._sha512=new Er(n),t.length>128&&(t=new Er(n).update(t).digest()),this._oKeyPad=new Uint8Array(128);for(var r=new Uint8Array(128),i=0;i<128;++i){var a=t[i]||0;this._oKeyPad[i]=92^a,r[i]=54^a}this._sha512.update(r)}return Le(e,[{key:"update",value:function(e){return this._sha512.update(e),this}},{key:"digest",value:function(){var e=this._sha512.digest(),t=new Er(this._bits);return t.update(this._oKeyPad),t.update(e),t.digest()}}],[{key:"sum512",value:function(t,n){var r=new e(t,512);return r.update(n),r.digest()}}]),e}(),Rr=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"sha256",value:function(t,n,r,i){return e.deriveKey(t,n,r,i,32,(function(e,t){return jr.sum256(e,t)}))}},{key:"sha512",value:function(t,n,r,i){return e.deriveKey(t,n,r,i,64,(function(e,t){return Ir.sum512(e,t)}))}},{key:"deriveKey",value:function(e,t,n,r,i,a){if(n<1)throw new Error("Iterations must be > 0");if(r>(Math.pow(2,32)-1)*i)throw new Error("Requested key length is too long");var o=new Uint8Array(r),s=new Uint8Array(i),u=new Uint8Array(t.length+4),l=Math.ceil(r/i),c=(r-(l-1))*i;u.set(t,0);for(var d=1;d<=l;d++){u[t.length+0]=d>>24&255,u[t.length+1]=d>>16&255,u[t.length+2]=d>>8&255,u[t.length+3]=d>>0&255;var f=a(e,u);s=f.slice(0,i);for(var h=1;h1&&void 0!==arguments[1]?arguments[1]:" ";e._wordlist=t,e._joiningChar=n}},{key:"randomMnemonic",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:256;if(t%32!==0)throw new Error("The length must be a multiple of 32");var n=Cr.generate(t/8);return e.entropyToMnemonic(n)}},{key:"entropyToMnemonic",value:function(t){if(e._wordlist||e.setWordList(Ar," "),t.length%4!==0||t.length<16||t.length>32)throw new Error("The length of the entropy is invalid, it should be a multiple of 4, >= 16 and <= 32, it is ".concat(t.length));for(var n="".concat(Tr.bytesToBinary(t)).concat(e.entropyChecksumBits(t)),r=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:2048,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,i=Tr.utf8ToBytes(e.normalize("NFKD")),a=Tr.utf8ToBytes("mnemonic".concat((null!==t&&void 0!==t?t:"").normalize("NFKD")));return Rr.sha512(i,a,n,r)}},{key:"mnemonicToEntropy",value:function(t){e._wordlist||e.setWordList(Ar," ");var n=t.normalize("NFKD").split(e._joiningChar);if(n.length%3!==0)throw new Error("Invalid mnemonic the number of words should be a multiple of 3, it is ".concat(n.length));var r=n.map((function(t){var n=e._wordlist.indexOf(t);if(-1===n)throw new Error("The mnemonic contains a word not in the wordlist ".concat(t));return n.toString(2).padStart(11,"0")})).join(""),i=32*Math.floor(r.length/33),a=r.slice(0,i),o=r.slice(i),s=Tr.binaryToBytes(a);if(s.length%4!==0||s.length<16||s.length>32)throw new Error("The length of the entropy is invalid");var u=e.entropyChecksumBits(s);if(u!==o)throw new Error("The checksum does not match ".concat(u," != ").concat(o,"."));return s}},{key:"entropyChecksumBits",value:function(e){var t=Sr.sum256(e),n=8*e.length;return Tr.bytesToBinary(t).slice(0,n/32)}}]),e}();Dr._joiningChar=" ";var zr=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"equal",value:function(e,t){if(!e||!t||e.length!==t.length)return!1;for(var n=0;n>25;r=this.data[0]+r>>26,r=this.data[1]+r>>25,r=this.data[2]+r>>26,r=this.data[3]+r>>25,r=this.data[4]+r>>26,r=this.data[5]+r>>25,r=this.data[6]+r>>26,r=this.data[7]+r>>25,r=this.data[8]+r>>26,r=this.data[9]+r>>25,this.data[0]+=19*r,n[0]=this.data[0]>>26,this.data[1]+=n[0],this.data[0]-=n[0]<<26,n[1]=this.data[1]>>25,this.data[2]+=n[1],this.data[1]-=n[1]<<25,n[2]=this.data[2]>>26,this.data[3]+=n[2],this.data[2]-=n[2]<<26,n[3]=this.data[3]>>25,this.data[4]+=n[3],this.data[3]-=n[3]<<25,n[4]=this.data[4]>>26,this.data[5]+=n[4],this.data[4]-=n[4]<<26,n[5]=this.data[5]>>25,this.data[6]+=n[5],this.data[5]-=n[5]<<25,n[6]=this.data[6]>>26,this.data[7]+=n[6],this.data[6]-=n[6]<<26,n[7]=this.data[7]>>25,this.data[8]+=n[7],this.data[7]-=n[7]<<25,n[8]=this.data[8]>>26,this.data[9]+=n[8],this.data[8]-=n[8]<<26,n[9]=this.data[9]>>25,this.data[9]-=n[9]<<25,t[0]=Math.trunc(this.data[0]),t[1]=this.data[0]>>8,t[2]=this.data[0]>>16,t[3]=this.data[0]>>24|this.data[1]<<2,t[4]=this.data[1]>>6,t[5]=this.data[1]>>14,t[6]=this.data[1]>>22|this.data[2]<<3,t[7]=this.data[2]>>5,t[8]=this.data[2]>>13,t[9]=this.data[2]>>21|this.data[3]<<5,t[10]=this.data[3]>>3,t[11]=this.data[3]>>11,t[12]=this.data[3]>>19|this.data[4]<<6,t[13]=this.data[4]>>2,t[14]=this.data[4]>>10,t[15]=this.data[4]>>18,t[16]=Math.trunc(this.data[5]),t[17]=this.data[5]>>8,t[18]=this.data[5]>>16,t[19]=this.data[5]>>24|this.data[6]<<1,t[20]=this.data[6]>>7,t[21]=this.data[6]>>15,t[22]=this.data[6]>>23|this.data[7]<<3,t[23]=this.data[7]>>5,t[24]=this.data[7]>>13,t[25]=this.data[7]>>21|this.data[8]<<4,t[26]=this.data[8]>>4,t[27]=this.data[8]>>12,t[28]=this.data[8]>>20|this.data[9]<<6,t[29]=this.data[9]>>2,t[30]=this.data[9]>>10,t[31]=this.data[9]>>18}},{key:"isNegative",value:function(){var e=new Uint8Array(32);return this.toBytes(e),1&e[0]}},{key:"isNonZero",value:function(){var e=new Uint8Array(32);this.toBytes(e);for(var t=0,n=0;n>4,t|=t>>2,1&(t|=t>>1)}},{key:"neg",value:function(){for(var t=0;t>31&1}},{key:"equal",value:function(e,t){var n=4294967295&(e^t);return n--,Math.abs(n>>31)}}]),e}(),ni=new Jr([-10913610,13857413,-15372611,6949391,114729,-8787816,-6275908,-3247719,-18696448,-12055116]),ri=new Jr([-21827239,-5839606,-30745221,13898782,229458,15978800,-12551817,-6495438,29715968,9444199]),ii=new Jr([-32595792,-7943725,9377950,3500415,12389472,-272473,-25146209,-2005654,326686,11406482]),ai=(new Jr([486662,0,0,0,0,0,0,0,0,0]),[Lr("5812631A5CF5D3ED",16),Lr("14DEF9DEA2F79CD6",16),Yr[0],Lr("1000000000000000",16)]),oi=[new ti(new Jr([25967493,-14356035,29566456,3660896,-12694345,4014787,27544626,-11754271,-6079156,2047605]),new Jr([-12545711,934262,-2722910,3049990,-727428,9406986,12720692,5043384,19500929,-15469378]),new Jr([-8738181,4489570,9688441,-14785194,10184609,-12363380,29287919,11864899,-24514362,-4438546])),new ti(new Jr([15636291,-9688557,24204773,-7912398,616977,-16685262,27787600,-14772189,28944400,-1550024]),new Jr([16568933,4717097,-11556148,-1102322,15682896,-11807043,16354577,-11775962,7689662,11199574]),new Jr([30464156,-5976125,-11779434,-15670865,23220365,15915852,7512774,10017326,-17749093,-9920357])),new ti(new Jr([10861363,11473154,27284546,1981175,-30064349,12577861,32867885,14515107,-15438304,10819380]),new Jr([4708026,6336745,20377586,9066809,-11272109,6594696,-25653668,12483688,-12668491,5581306]),new Jr([19563160,16186464,-29386857,4097519,10237984,-4348115,28542350,13850243,-23678021,-15815942])),new ti(new Jr([5153746,9909285,1723747,-2777874,30523605,5516873,19480852,5230134,-23952439,-15175766]),new Jr([-30269007,-3463509,7665486,10083793,28475525,1649722,20654025,16520125,30598449,7715701]),new Jr([28881845,14381568,9657904,3680757,-20181635,7843316,-31400660,1370708,29794553,-1409300])),new ti(new Jr([-22518993,-6692182,14201702,-8745502,-23510406,8844726,18474211,-1361450,-13062696,13821877]),new Jr([-6455177,-7839871,3374702,-4740862,-27098617,-10571707,31655028,-7212327,18853322,-14220951]),new Jr([4566830,-12963868,-28974889,-12240689,-7602672,-2830569,-8514358,-10431137,2207753,-3209784])),new ti(new Jr([-25154831,-4185821,29681144,7868801,-6854661,-9423865,-12437364,-663e3,-31111463,-16132436]),new Jr([25576264,-2703214,7349804,-11814844,16472782,9300885,3844789,15725684,171356,6466918]),new Jr([23103977,13316479,9739013,-16149481,817875,-15038942,8965339,-14088058,-30714912,16193877])),new ti(new Jr([-33521811,3180713,-2394130,14003687,-16903474,-16270840,17238398,4729455,-18074513,9256800]),new Jr([-25182317,-4174131,32336398,5036987,-21236817,11360617,22616405,9761698,-19827198,630305]),new Jr([-13720693,2639453,-24237460,-7406481,9494427,-5774029,-6554551,-15960994,-2449256,-14291300])),new ti(new Jr([-3151181,-5046075,9282714,6866145,-31907062,-863023,-18940575,15033784,25105118,-7894876]),new Jr([-24326370,15950226,-31801215,-14592823,-11662737,-5090925,1573892,-2625887,2198790,-15804619]),new Jr([-3099351,10324967,-2241613,7453183,-5446979,-2735503,-13812022,-16236442,-32461234,-12290683]))],si=[[new ti(new Jr([25967493,-14356035,29566456,3660896,-12694345,4014787,27544626,-11754271,-6079156,2047605]),new Jr([-12545711,934262,-2722910,3049990,-727428,9406986,12720692,5043384,19500929,-15469378]),new Jr([-8738181,4489570,9688441,-14785194,10184609,-12363380,29287919,11864899,-24514362,-4438546])),new ti(new Jr([-12815894,-12976347,-21581243,11784320,-25355658,-2750717,-11717903,-3814571,-358445,-10211303]),new Jr([-21703237,6903825,27185491,6451973,-29577724,-9554005,-15616551,11189268,-26829678,-5319081]),new Jr([26966642,11152617,32442495,15396054,14353839,-12752335,-3128826,-9541118,-15472047,-4166697])),new ti(new Jr([15636291,-9688557,24204773,-7912398,616977,-16685262,27787600,-14772189,28944400,-1550024]),new Jr([16568933,4717097,-11556148,-1102322,15682896,-11807043,16354577,-11775962,7689662,11199574]),new Jr([30464156,-5976125,-11779434,-15670865,23220365,15915852,7512774,10017326,-17749093,-9920357])),new ti(new Jr([-17036878,13921892,10945806,-6033431,27105052,-16084379,-28926210,15006023,3284568,-6276540]),new Jr([23599295,-8306047,-11193664,-7687416,13236774,10506355,7464579,9656445,13059162,10374397]),new Jr([7798556,16710257,3033922,2874086,28997861,2835604,32406664,-3839045,-641708,-101325])),new ti(new Jr([10861363,11473154,27284546,1981175,-30064349,12577861,32867885,14515107,-15438304,10819380]),new Jr([4708026,6336745,20377586,9066809,-11272109,6594696,-25653668,12483688,-12668491,5581306]),new Jr([19563160,16186464,-29386857,4097519,10237984,-4348115,28542350,13850243,-23678021,-15815942])),new ti(new Jr([-15371964,-12862754,32573250,4720197,-26436522,5875511,-19188627,-15224819,-9818940,-12085777]),new Jr([-8549212,109983,15149363,2178705,22900618,4543417,3044240,-15689887,1762328,14866737]),new Jr([-18199695,-15951423,-10473290,1707278,-17185920,3916101,-28236412,3959421,27914454,4383652])),new ti(new Jr([5153746,9909285,1723747,-2777874,30523605,5516873,19480852,5230134,-23952439,-15175766]),new Jr([-30269007,-3463509,7665486,10083793,28475525,1649722,20654025,16520125,30598449,7715701]),new Jr([28881845,14381568,9657904,3680757,-20181635,7843316,-31400660,1370708,29794553,-1409300])),new ti(new Jr([14499471,-2729599,-33191113,-4254652,28494862,14271267,30290735,10876454,-33154098,2381726]),new Jr([-7195431,-2655363,-14730155,462251,-27724326,3941372,-6236617,3696005,-32300832,15351955]),new Jr([27431194,8222322,16448760,-3907995,-18707002,11938355,-32961401,-2970515,29551813,10109425]))],[new ti(new Jr([-13657040,-13155431,-31283750,11777098,21447386,6519384,-2378284,-1627556,10092783,-4764171]),new Jr([27939166,14210322,4677035,16277044,-22964462,-12398139,-32508754,12005538,-17810127,12803510]),new Jr([17228999,-15661624,-1233527,300140,-1224870,-11714777,30364213,-9038194,18016357,4397660])),new ti(new Jr([-10958843,-7690207,4776341,-14954238,27850028,-15602212,-26619106,14544525,-17477504,982639]),new Jr([29253598,15796703,-2863982,-9908884,10057023,3163536,7332899,-4120128,-21047696,9934963]),new Jr([5793303,16271923,-24131614,-10116404,29188560,1206517,-14747930,4559895,-30123922,-10897950])),new ti(new Jr([-27643952,-11493006,16282657,-11036493,28414021,-15012264,24191034,4541697,-13338309,5500568]),new Jr([12650548,-1497113,9052871,11355358,-17680037,-8400164,-17430592,12264343,10874051,13524335]),new Jr([25556948,-3045990,714651,2510400,23394682,-10415330,33119038,5080568,-22528059,5376628])),new ti(new Jr([-26088264,-4011052,-17013699,-3537628,-6726793,1920897,-22321305,-9447443,4535768,1569007]),new Jr([-2255422,14606630,-21692440,-8039818,28430649,8775819,-30494562,3044290,31848280,12543772]),new Jr([-22028579,2943893,-31857513,6777306,13784462,-4292203,-27377195,-2062731,7718482,14474653])),new ti(new Jr([2385315,2454213,-22631320,46603,-4437935,-15680415,656965,-7236665,24316168,-5253567]),new Jr([13741529,10911568,-33233417,-8603737,-20177830,-1033297,33040651,-13424532,-20729456,8321686]),new Jr([21060490,-2212744,15712757,-4336099,1639040,10656336,23845965,-11874838,-9984458,608372])),new ti(new Jr([-13672732,-15087586,-10889693,-7557059,-6036909,11305547,1123968,-6780577,27229399,23887]),new Jr([-23244140,-294205,-11744728,14712571,-29465699,-2029617,12797024,-6440308,-1633405,16678954]),new Jr([-29500620,4770662,-16054387,14001338,7830047,9564805,-1508144,-4795045,-17169265,4904953])),new ti(new Jr([24059557,14617003,19037157,-15039908,19766093,-14906429,5169211,16191880,2128236,-4326833]),new Jr([-16981152,4124966,-8540610,-10653797,30336522,-14105247,-29806336,916033,-6882542,-2986532]),new Jr([-22630907,12419372,-7134229,-7473371,-16478904,16739175,285431,2763829,15736322,4143876])),new ti(new Jr([2379352,11839345,-4110402,-5988665,11274298,794957,212801,-14594663,23527084,-16458268]),new Jr([33431127,-11130478,-17838966,-15626900,8909499,8376530,-32625340,4087881,-15188911,-14416214]),new Jr([1767683,7197987,-13205226,-2022635,-13091350,448826,5799055,4357868,-4774191,-16323038]))],[new ti(new Jr([6721966,13833823,-23523388,-1551314,26354293,-11863321,23365147,-3949732,7390890,2759800]),new Jr([4409041,2052381,23373853,10530217,7676779,-12885954,21302353,-4264057,1244380,-12919645]),new Jr([-4421239,7169619,4982368,-2957590,30256825,-2777540,14086413,9208236,15886429,16489664])),new ti(new Jr([1996075,10375649,14346367,13311202,-6874135,-16438411,-13693198,398369,-30606455,-712933]),new Jr([-25307465,9795880,-2777414,14878809,-33531835,14780363,13348553,12076947,-30836462,5113182]),new Jr([-17770784,11797796,31950843,13929123,-25888302,12288344,-30341101,-7336386,13847711,5387222])),new ti(new Jr([-18582163,-3416217,17824843,-2340966,22744343,-10442611,8763061,3617786,-19600662,10370991]),new Jr([20246567,-14369378,22358229,-543712,18507283,-10413996,14554437,-8746092,32232924,16763880]),new Jr([9648505,10094563,26416693,14745928,-30374318,-6472621,11094161,15689506,3140038,-16510092])),new ti(new Jr([-16160072,5472695,31895588,4744994,8823515,10365685,-27224800,9448613,-28774454,366295]),new Jr([19153450,11523972,-11096490,-6503142,-24647631,5420647,28344573,8041113,719605,11671788]),new Jr([8678025,2694440,-6808014,2517372,4964326,11152271,-15432916,-15266516,27000813,-10195553])),new ti(new Jr([-15157904,7134312,8639287,-2814877,-7235688,10421742,564065,5336097,6750977,-14521026]),new Jr([11836410,-3979488,26297894,16080799,23455045,15735944,1695823,-8819122,8169720,16220347]),new Jr([-18115838,8653647,17578566,-6092619,-8025777,-16012763,-11144307,-2627664,-5990708,-14166033])),new ti(new Jr([-23308498,-10968312,15213228,-10081214,-30853605,-11050004,27884329,2847284,2655861,1738395]),new Jr([-27537433,-14253021,-25336301,-8002780,-9370762,8129821,21651608,-3239336,-19087449,-11005278]),new Jr([1533110,3437855,23735889,459276,29970501,11335377,26030092,5821408,10478196,8544890])),new ti(new Jr([32173121,-16129311,24896207,3921497,22579056,-3410854,19270449,12217473,17789017,-3395995]),new Jr([-30552961,-2228401,-15578829,-10147201,13243889,517024,15479401,-3853233,30460520,1052596]),new Jr([-11614875,13323618,32618793,8175907,-15230173,12596687,27491595,-4612359,3179268,-9478891])),new ti(new Jr([31947069,-14366651,-4640583,-15339921,-15125977,-6039709,-14756777,-16411740,19072640,-9511060]),new Jr([11685058,11822410,3158003,-13952594,33402194,-4165066,5977896,-5215017,473099,5040608]),new Jr([-20290863,8198642,-27410132,11602123,1290375,-2799760,28326862,1721092,-19558642,-3131606]))],[new ti(new Jr([7881532,10687937,7578723,7738378,-18951012,-2553952,21820786,8076149,-27868496,11538389]),new Jr([-19935666,3899861,18283497,-6801568,-15728660,-11249211,8754525,7446702,-5676054,5797016]),new Jr([-11295600,-3793569,-15782110,-7964573,12708869,-8456199,2014099,-9050574,-2369172,-5877341])),new ti(new Jr([-22472376,-11568741,-27682020,1146375,18956691,16640559,1192730,-3714199,15123619,10811505]),new Jr([14352098,-3419715,-18942044,10822655,32750596,4699007,-70363,15776356,-28886779,-11974553]),new Jr([-28241164,-8072475,-4978962,-5315317,29416931,1847569,-20654173,-16484855,4714547,-9600655])),new ti(new Jr([15200332,8368572,19679101,15970074,-31872674,1959451,24611599,-4543832,-11745876,12340220]),new Jr([12876937,-10480056,33134381,6590940,-6307776,14872440,9613953,8241152,15370987,9608631]),new Jr([-4143277,-12014408,8446281,-391603,4407738,13629032,-7724868,15866074,-28210621,-8814099])),new ti(new Jr([26660628,-15677655,8393734,358047,-7401291,992988,-23904233,858697,20571223,8420556]),new Jr([14620715,13067227,-15447274,8264467,14106269,15080814,33531827,12516406,-21574435,-12476749]),new Jr([236881,10476226,57258,-14677024,6472998,2466984,17258519,7256740,8791136,15069930])),new ti(new Jr([1276410,-9371918,22949635,-16322807,-23493039,-5702186,14711875,4874229,-30663140,-2331391]),new Jr([5855666,4990204,-13711848,7294284,-7804282,1924647,-1423175,-7912378,-33069337,9234253]),new Jr([20590503,-9018988,31529744,-7352666,-2706834,10650548,31559055,-11609587,18979186,13396066])),new ti(new Jr([24474287,4968103,22267082,4407354,24063882,-8325180,-18816887,13594782,33514650,7021958]),new Jr([-11566906,-6565505,-21365085,15928892,-26158305,4315421,-25948728,-3916677,-21480480,12868082]),new Jr([-28635013,13504661,19988037,-2132761,21078225,6443208,-21446107,2244500,-12455797,-8089383])),new ti(new Jr([-30595528,13793479,-5852820,319136,-25723172,-6263899,33086546,8957937,-15233648,5540521]),new Jr([-11630176,-11503902,-8119500,-7643073,2620056,1022908,-23710744,-1568984,-16128528,-14962807]),new Jr([23152971,775386,27395463,14006635,-9701118,4649512,1689819,892185,-11513277,-15205948])),new ti(new Jr([9770129,9586738,26496094,4324120,1556511,-3550024,27453819,4763127,-19179614,5867134]),new Jr([-32765025,1927590,31726409,-4753295,23962434,-16019500,27846559,5931263,-29749703,-16108455]),new Jr([27461885,-2977536,22380810,1815854,-23033753,-3031938,7283490,-15148073,-19526700,7734629]))],[new ti(new Jr([-8010264,-9590817,-11120403,6196038,29344158,-13430885,7585295,-3176626,18549497,15302069]),new Jr([-32658337,-6171222,-7672793,-11051681,6258878,13504381,10458790,-6418461,-8872242,8424746]),new Jr([24687205,8613276,-30667046,-3233545,1863892,-1830544,19206234,7134917,-11284482,-828919])),new ti(new Jr([11334899,-9218022,8025293,12707519,17523892,-10476071,10243738,-14685461,-5066034,16498837]),new Jr([8911542,6887158,-9584260,-6958590,11145641,-9543680,17303925,-14124238,6536641,10543906]),new Jr([-28946384,15479763,-17466835,568876,-1497683,11223454,-2669190,-16625574,-27235709,8876771])),new ti(new Jr([-25742899,-12566864,-15649966,-846607,-33026686,-796288,-33481822,15824474,-604426,-9039817]),new Jr([10330056,70051,7957388,-9002667,9764902,15609756,27698697,-4890037,1657394,3084098]),new Jr([10477963,-7470260,12119566,-13250805,29016247,-5365589,31280319,14396151,-30233575,15272409])),new ti(new Jr([-12288309,3169463,28813183,16658753,25116432,-5630466,-25173957,-12636138,-25014757,1950504]),new Jr([-26180358,9489187,11053416,-14746161,-31053720,5825630,-8384306,-8767532,15341279,8373727]),new Jr([28685821,7759505,-14378516,-12002860,-31971820,4079242,298136,-10232602,-2878207,15190420])),new ti(new Jr([-32932876,13806336,-14337485,-15794431,-24004620,10940928,8669718,2742393,-26033313,-6875003]),new Jr([-1580388,-11729417,-25979658,-11445023,-17411874,-10912854,9291594,-16247779,-12154742,6048605]),new Jr([-30305315,14843444,1539301,11864366,20201677,1900163,13934231,5128323,11213262,9168384])),new ti(new Jr([-26280513,11007847,19408960,-940758,-18592965,-4328580,-5088060,-11105150,20470157,-16398701]),new Jr([-23136053,9282192,14855179,-15390078,-7362815,-14408560,-22783952,14461608,14042978,5230683]),new Jr([29969567,-2741594,-16711867,-8552442,9175486,-2468974,21556951,3506042,-5933891,-12449708])),new ti(new Jr([-3144746,8744661,19704003,4581278,-20430686,6830683,-21284170,8971513,-28539189,15326563]),new Jr([-19464629,10110288,-17262528,-3503892,-23500387,1355669,-15523050,15300988,-20514118,9168260]),new Jr([-5353335,4488613,-23803248,16314347,7780487,-15638939,-28948358,9601605,33087103,-9011387])),new ti(new Jr([-19443170,-15512900,-20797467,-12445323,-29824447,10229461,-27444329,-15000531,-5996870,15664672]),new Jr([23294591,-16632613,-22650781,-8470978,27844204,11461195,13099750,-2460356,18151676,13417686]),new Jr([-24722913,-4176517,-31150679,5988919,-26858785,6685065,1661597,-12551441,15271676,-15452665]))],[new ti(new Jr([11433042,-13228665,8239631,-5279517,-1985436,-725718,-18698764,2167544,-6921301,-13440182]),new Jr([-31436171,15575146,30436815,12192228,-22463353,9395379,-9917708,-8638997,12215110,12028277]),new Jr([14098400,6555944,23007258,5757252,-15427832,-12950502,30123440,4617780,-16900089,-655628])),new ti(new Jr([-4026201,-15240835,11893168,13718664,-14809462,1847385,-15819999,10154009,23973261,-12684474]),new Jr([-26531820,-3695990,-1908898,2534301,-31870557,-16550355,18341390,-11419951,32013174,-10103539]),new Jr([-25479301,10876443,-11771086,-14625140,-12369567,1838104,21911214,6354752,4425632,-837822])),new ti(new Jr([-10433389,-14612966,22229858,-3091047,-13191166,776729,-17415375,-12020462,4725005,14044970]),new Jr([19268650,-7304421,1555349,8692754,-21474059,-9910664,6347390,-1411784,-19522291,-16109756]),new Jr([-24864089,12986008,-10898878,-5558584,-11312371,-148526,19541418,8180106,9282262,10282508])),new ti(new Jr([-26205082,4428547,-8661196,-13194263,4098402,-14165257,15522535,8372215,5542595,-10702683]),new Jr([-10562541,14895633,26814552,-16673850,-17480754,-2489360,-2781891,6993761,-18093885,10114655]),new Jr([-20107055,-929418,31422704,10427861,-7110749,6150669,-29091755,-11529146,25953725,-106158])),new ti(new Jr([-4234397,-8039292,-9119125,3046e3,2101609,-12607294,19390020,6094296,-3315279,12831125]),new Jr([-15998678,7578152,5310217,14408357,-33548620,-224739,31575954,6326196,7381791,-2421839]),new Jr([-20902779,3296811,24736065,-16328389,18374254,7318640,6295303,8082724,-15362489,12339664])),new ti(new Jr([27724736,2291157,6088201,-14184798,1792727,5857634,13848414,15768922,25091167,14856294]),new Jr([-18866652,8331043,24373479,8541013,-701998,-9269457,12927300,-12695493,-22182473,-9012899]),new Jr([-11423429,-5421590,11632845,3405020,30536730,-11674039,-27260765,13866390,30146206,9142070])),new ti(new Jr([3924129,-15307516,-13817122,-10054960,12291820,-668366,-27702774,9326384,-8237858,4171294]),new Jr([-15921940,16037937,6713787,16606682,-21612135,2790944,26396185,3731949,345228,-5462949]),new Jr([-21327538,13448259,25284571,1143661,20614966,-8849387,2031539,-12391231,-16253183,-13582083])),new ti(new Jr([31016211,-16722429,26371392,-14451233,-5027349,14854137,17477601,3842657,28012650,-16405420]),new Jr([-5075835,9368966,-8562079,-4600902,-15249953,6970560,-9189873,16292057,-8867157,3507940]),new Jr([29439664,3537914,23333589,6997794,-17555561,-11018068,-15209202,-15051267,-9164929,6580396]))],[new ti(new Jr([-12185861,-7679788,16438269,10826160,-8696817,-6235611,17860444,-9273846,-2095802,9304567]),new Jr([20714564,-4336911,29088195,7406487,11426967,-5095705,14792667,-14608617,5289421,-477127]),new Jr([-16665533,-10650790,-6160345,-13305760,9192020,-1802462,17271490,12349094,26939669,-3752294])),new ti(new Jr([-12889898,9373458,31595848,16374215,21471720,13221525,-27283495,-12348559,-3698806,117887]),new Jr([22263325,-6560050,3984570,-11174646,-15114008,-566785,28311253,5358056,-23319780,541964]),new Jr([16259219,3261970,2309254,-15534474,-16885711,-4581916,24134070,-16705829,-13337066,-13552195])),new ti(new Jr([9378160,-13140186,-22845982,-12745264,28198281,-7244098,-2399684,-717351,690426,14876244]),new Jr([24977353,-314384,-8223969,-13465086,28432343,-1176353,-13068804,-12297348,-22380984,6618999]),new Jr([-1538174,11685646,12944378,13682314,-24389511,-14413193,8044829,-13817328,32239829,-5652762])),new ti(new Jr([-18603066,4762990,-926250,8885304,-28412480,-3187315,9781647,-10350059,32779359,5095274]),new Jr([-33008130,-5214506,-32264887,-3685216,9460461,-9327423,-24601656,14506724,21639561,-2630236]),new Jr([-16400943,-13112215,25239338,15531969,3987758,-4499318,-1289502,-6863535,17874574,558605])),new ti(new Jr([-13600129,10240081,9171883,16131053,-20869254,9599700,33499487,5080151,2085892,5119761]),new Jr([-22205145,-2519528,-16381601,414691,-25019550,2170430,30634760,-8363614,-31999993,-5759884]),new Jr([-6845704,15791202,8550074,-1312654,29928809,-12092256,27534430,-7192145,-22351378,12961482])),new ti(new Jr([-24492060,-9570771,10368194,11582341,-23397293,-2245287,16533930,8206996,-30194652,-5159638]),new Jr([-11121496,-3382234,2307366,6362031,-135455,8868177,-16835630,7031275,7589640,8945490]),new Jr([-32152748,8917967,6661220,-11677616,-1192060,-15793393,7251489,-11182180,24099109,-14456170])),new ti(new Jr([5019558,-7907470,4244127,-14714356,-26933272,6453165,-19118182,-13289025,-6231896,-10280736]),new Jr([10853594,10721687,26480089,5861829,-22995819,1972175,-1866647,-10557898,-3363451,-6441124]),new Jr([-17002408,5906790,221599,-6563147,7828208,-13248918,24362661,-2008168,-13866408,7421392])),new ti(new Jr([8139927,-6546497,32257646,-5890546,30375719,1886181,-21175108,15441252,28826358,-4123029]),new Jr([6267086,9695052,7709135,-16603597,-32869068,-1886135,14795160,-7840124,13746021,-1742048]),new Jr([28584902,7787108,-6732942,-15050729,22846041,-7571236,-3181936,-363524,4771362,-8419958]))],[new ti(new Jr([24949256,6376279,-27466481,-8174608,-18646154,-9930606,33543569,-12141695,3569627,11342593]),new Jr([26514989,4740088,27912651,3697550,19331575,-11472339,6809886,4608608,7325975,-14801071]),new Jr([-11618399,-14554430,-24321212,7655128,-1369274,5214312,-27400540,10258390,-17646694,-8186692])),new ti(new Jr([11431204,15823007,26570245,14329124,18029990,4796082,-31446179,15580664,9280358,-3973687]),new Jr([-160783,-10326257,-22855316,-4304997,-20861367,-13621002,-32810901,-11181622,-15545091,4387441]),new Jr([-20799378,12194512,3937617,-5805892,-27154820,9340370,-24513992,8548137,20617071,-7482001])),new ti(new Jr([-938825,-3930586,-8714311,16124718,24603125,-6225393,-13775352,-11875822,24345683,10325460]),new Jr([-19855277,-1568885,-22202708,8714034,14007766,6928528,16318175,-1010689,4766743,3552007]),new Jr([-21751364,-16730916,1351763,-803421,-4009670,3950935,3217514,14481909,10988822,-3994762])),new ti(new Jr([15564307,-14311570,3101243,5684148,30446780,-8051356,12677127,-6505343,-8295852,13296005]),new Jr([-9442290,6624296,-30298964,-11913677,-4670981,-2057379,31521204,9614054,-30000824,12074674]),new Jr([4771191,-135239,14290749,-13089852,27992298,14998318,-1413936,-1556716,29832613,-16391035])),new ti(new Jr([7064884,-7541174,-19161962,-5067537,-18891269,-2912736,25825242,5293297,-27122660,13101590]),new Jr([-2298563,2439670,-7466610,1719965,-27267541,-16328445,32512469,-5317593,-30356070,-4190957]),new Jr([-30006540,10162316,-33180176,3981723,-16482138,-13070044,14413974,9515896,19568978,9628812])),new ti(new Jr([33053803,199357,15894591,1583059,27380243,-4580435,-17838894,-6106839,-6291786,3437740]),new Jr([-18978877,3884493,19469877,12726490,15913552,13614290,-22961733,70104,7463304,4176122]),new Jr([-27124001,10659917,11482427,-16070381,12771467,-6635117,-32719404,-5322751,24216882,5944158])),new ti(new Jr([8894125,7450974,-2664149,-9765752,-28080517,-12389115,19345746,14680796,11632993,5847885]),new Jr([26942781,-2315317,9129564,-4906607,26024105,11769399,-11518837,6367194,-9727230,4782140]),new Jr([19916461,-4828410,-22910704,-11414391,25606324,-5972441,33253853,8220911,6358847,-1873857])),new ti(new Jr([801428,-2081702,16569428,11065167,29875704,96627,7908388,-4480480,-13538503,1387155]),new Jr([19646058,5720633,-11416706,12814209,11607948,12749789,14147075,15156355,-21866831,11835260]),new Jr([19299512,1155910,28703737,14890794,2925026,7269399,26121523,15467869,-26560550,5052483]))],[new ti(new Jr([-3017432,10058206,1980837,3964243,22160966,12322533,-6431123,-12618185,12228557,-7003677]),new Jr([32944382,14922211,-22844894,5188528,21913450,-8719943,4001465,13238564,-6114803,8653815]),new Jr([22865569,-4652735,27603668,-12545395,14348958,8234005,24808405,5719875,28483275,2841751])),new ti(new Jr([-16420968,-1113305,-327719,-12107856,21886282,-15552774,-1887966,-315658,19932058,-12739203]),new Jr([-11656086,10087521,-8864888,-5536143,-19278573,-3055912,3999228,13239134,-4777469,-13910208]),new Jr([1382174,-11694719,17266790,9194690,-13324356,9720081,20403944,11284705,-14013818,3093230])),new ti(new Jr([16650921,-11037932,-1064178,1570629,-8329746,7352753,-302424,16271225,-24049421,-6691850]),new Jr([-21911077,-5927941,-4611316,-5560156,-31744103,-10785293,24123614,15193618,-21652117,-16739389]),new Jr([-9935934,-4289447,-25279823,4372842,2087473,10399484,31870908,14690798,17361620,11864968])),new ti(new Jr([-11307610,6210372,13206574,5806320,-29017692,-13967200,-12331205,-7486601,-25578460,-16240689]),new Jr([14668462,-12270235,26039039,15305210,25515617,4542480,10453892,6577524,9145645,-6443880]),new Jr([5974874,3053895,-9433049,-10385191,-31865124,3225009,-7972642,3936128,-5652273,-3050304])),new ti(new Jr([30625386,-4729400,-25555961,-12792866,-20484575,7695099,17097188,-16303496,-27999779,1803632]),new Jr([-3553091,9865099,-5228566,4272701,-5673832,-16689700,14911344,12196514,-21405489,7047412]),new Jr([20093277,9920966,-11138194,-5343857,13161587,12044805,-32856851,4124601,-32343828,-10257566])),new ti(new Jr([-20788824,14084654,-13531713,7842147,19119038,-13822605,4752377,-8714640,-21679658,2288038]),new Jr([-26819236,-3283715,29965059,3039786,-14473765,2540457,29457502,14625692,-24819617,12570232]),new Jr([-1063558,-11551823,16920318,12494842,1278292,-5869109,-21159943,-3498680,-11974704,4724943])),new ti(new Jr([17960970,-11775534,-4140968,-9702530,-8876562,-1410617,-12907383,-8659932,-29576300,1903856]),new Jr([23134274,-14279132,-10681997,-1611936,20684485,15770816,-12989750,3190296,26955097,14109738]),new Jr([15308788,5320727,-30113809,-14318877,22902008,7767164,29425325,-11277562,31960942,11934971])),new ti(new Jr([-27395711,8435796,4109644,12222639,-24627868,14818669,20638173,4875028,10491392,1379718]),new Jr([-13159415,9197841,3875503,-8936108,-1383712,-5879801,33518459,16176658,21432314,12180697]),new Jr([-11787308,11500838,13787581,-13832590,-22430679,10140205,1465425,12689540,-10301319,-13872883]))],[new ti(new Jr([5414091,-15386041,-21007664,9643570,12834970,1186149,-2622916,-1342231,26128231,6032912]),new Jr([-26337395,-13766162,32496025,-13653919,17847801,-12669156,3604025,8316894,-25875034,-10437358]),new Jr([3296484,6223048,24680646,-12246460,-23052020,5903205,-8862297,-4639164,12376617,3188849])),new ti(new Jr([29190488,-14659046,27549113,-1183516,3520066,-10697301,32049515,-7309113,-16109234,-9852307]),new Jr([-14744486,-9309156,735818,-598978,-20407687,-5057904,25246078,-15795669,18640741,-960977]),new Jr([-6928835,-16430795,10361374,5642961,4910474,12345252,-31638386,-494430,10530747,1053335])),new ti(new Jr([-29265967,-14186805,-13538216,-12117373,-19457059,-10655384,-31462369,-2948985,24018831,15026644]),new Jr([-22592535,-3145277,-2289276,5953843,-13440189,9425631,25310643,13003497,-2314791,-15145616]),new Jr([-27419985,-603321,-8043984,-1669117,-26092265,13987819,-27297622,187899,-23166419,-2531735])),new ti(new Jr([-21744398,-13810475,1844840,5021428,-10434399,-15911473,9716667,16266922,-5070217,726099]),new Jr([29370922,-6053998,7334071,-15342259,9385287,2247707,-13661962,-4839461,30007388,-15823341]),new Jr([-936379,16086691,23751945,-543318,-1167538,-5189036,9137109,730663,9835848,4555336])),new ti(new Jr([-23376435,1410446,-22253753,-12899614,30867635,15826977,17693930,544696,-11985298,12422646]),new Jr([31117226,-12215734,-13502838,6561947,-9876867,-12757670,-5118685,-4096706,29120153,13924425]),new Jr([-17400879,-14233209,19675799,-2734756,-11006962,-5858820,-9383939,-11317700,7240931,-237388])),new ti(new Jr([-31361739,-11346780,-15007447,-5856218,-22453340,-12152771,1222336,4389483,3293637,-15551743]),new Jr([-16684801,-14444245,11038544,11054958,-13801175,-3338533,-24319580,7733547,12796905,-6335822]),new Jr([-8759414,-10817836,-25418864,10783769,-30615557,-9746811,-28253339,3647836,3222231,-11160462])),new ti(new Jr([18606113,1693100,-25448386,-15170272,4112353,10045021,23603893,-2048234,-7550776,2484985]),new Jr([9255317,-3131197,-12156162,-1004256,13098013,-9214866,16377220,-2102812,-19802075,-3034702]),new Jr([-22729289,7496160,-5742199,11329249,19991973,-3347502,-31718148,9936966,-30097688,-10618797])),new ti(new Jr([21878590,-5001297,4338336,13643897,-3036865,13160960,19708896,5415497,-7360503,-4109293]),new Jr([27736861,10103576,12500508,8502413,-3413016,-9633558,10436918,-1550276,-23659143,-8132100]),new Jr([19492550,-12104365,-29681976,-852630,-3208171,12403437,30066266,8367329,13243957,8709688]))],[new ti(new Jr([12015105,2801261,28198131,10151021,24818120,-4743133,-11194191,-5645734,5150968,7274186]),new Jr([2831366,-12492146,1478975,6122054,23825128,-12733586,31097299,6083058,31021603,-9793610]),new Jr([-2529932,-2229646,445613,10720828,-13849527,-11505937,-23507731,16354465,15067285,-14147707])),new ti(new Jr([7840942,14037873,-33364863,15934016,-728213,-3642706,21403988,1057586,-19379462,-12403220]),new Jr([915865,-16469274,15608285,-8789130,-24357026,6060030,-17371319,8410997,-7220461,16527025]),new Jr([32922597,-556987,20336074,-16184568,10903705,-5384487,16957574,52992,23834301,6588044])),new ti(new Jr([32752030,11232950,3381995,-8714866,22652988,-10744103,17159699,16689107,-20314580,-1305992]),new Jr([-4689649,9166776,-25710296,-10847306,11576752,12733943,7924251,-2752281,1976123,-7249027]),new Jr([21251222,16309901,-2983015,-6783122,30810597,12967303,156041,-3371252,12331345,-8237197])),new ti(new Jr([8651614,-4477032,-16085636,-4996994,13002507,2950805,29054427,-5106970,10008136,-4667901]),new Jr([31486080,15114593,-14261250,12951354,14369431,-7387845,16347321,-13662089,8684155,-10532952]),new Jr([19443825,11385320,24468943,-9659068,-23919258,2187569,-26263207,-6086921,31316348,14219878])),new ti(new Jr([-28594490,1193785,32245219,11392485,31092169,15722801,27146014,6992409,29126555,9207390]),new Jr([32382935,1110093,18477781,11028262,-27411763,-7548111,-4980517,10843782,-7957600,-14435730]),new Jr([2814918,7836403,27519878,-7868156,-20894015,-11553689,-21494559,8550130,28346258,1994730])),new ti(new Jr([-19578299,8085545,-14000519,-3948622,2785838,-16231307,-19516951,7174894,22628102,8115180]),new Jr([-30405132,955511,-11133838,-15078069,-32447087,-13278079,-25651578,3317160,-9943017,930272]),new Jr([-15303681,-6833769,28856490,1357446,23421993,1057177,24091212,-1388970,-22765376,-10650715])),new ti(new Jr([-22751231,-5303997,-12907607,-12768866,-15811511,-7797053,-14839018,-16554220,-1867018,8398970]),new Jr([-31969310,2106403,-4736360,1362501,12813763,16200670,22981545,-6291273,18009408,-15772772]),new Jr([-17220923,-9545221,-27784654,14166835,29815394,7444469,29551787,-3727419,19288549,1325865])),new ti(new Jr([15100157,-15835752,-23923978,-1005098,-26450192,15509408,12376730,-3479146,33166107,-8042750]),new Jr([20909231,13023121,-9209752,16251778,-5778415,-8094914,12412151,10018715,2213263,-13878373]),new Jr([32529814,-11074689,30361439,-16689753,-9135940,1513226,22922121,6382134,-5766928,8371348]))],[new ti(new Jr([9923462,11271500,12616794,3544722,-29998368,-1721626,12891687,-8193132,-26442943,10486144]),new Jr([-22597207,-7012665,8587003,-8257861,4084309,-12970062,361726,2610596,-23921530,-11455195]),new Jr([5408411,-1136691,-4969122,10561668,24145918,14240566,31319731,-4235541,19985175,-3436086])),new ti(new Jr([-13994457,16616821,14549246,3341099,32155958,13648976,-17577068,8849297,65030,8370684]),new Jr([-8320926,-12049626,31204563,5839400,-20627288,-1057277,-19442942,6922164,12743482,-9800518]),new Jr([-2361371,12678785,28815050,4759974,-23893047,4884717,23783145,11038569,18800704,255233])),new ti(new Jr([-5269658,-1773886,13957886,7990715,23132995,728773,13393847,9066957,19258688,-14753793]),new Jr([-2936654,-10827535,-10432089,14516793,-3640786,4372541,-31934921,2209390,-1524053,2055794]),new Jr([580882,16705327,5468415,-2683018,-30926419,-14696e3,-7203346,-8994389,-30021019,7394435])),new ti(new Jr([23838809,1822728,-15738443,15242727,8318092,-3733104,-21672180,-3492205,-4821741,14799921]),new Jr([13345610,9759151,3371034,-16137791,16353039,8577942,31129804,13496856,-9056018,7402518]),new Jr([2286874,-4435931,-20042458,-2008336,-13696227,5038122,11006906,-15760352,8205061,1607563])),new ti(new Jr([14414086,-8002132,3331830,-3208217,22249151,-5594188,18364661,-2906958,30019587,-9029278]),new Jr([-27688051,1585953,-10775053,931069,-29120221,-11002319,-14410829,12029093,9944378,8024]),new Jr([4368715,-3709630,29874200,-15022983,-20230386,-11410704,-16114594,-999085,-8142388,5640030])),new ti(new Jr([10299610,13746483,11661824,16234854,7630238,5998374,9809887,-16694564,15219798,-14327783]),new Jr([27425505,-5719081,3055006,10660664,23458024,595578,-15398605,-1173195,-18342183,9742717]),new Jr([6744077,2427284,26042789,2720740,-847906,1118974,32324614,7406442,12420155,1994844])),new ti(new Jr([14012521,-5024720,-18384453,-9578469,-26485342,-3936439,-13033478,-10909803,24319929,-6446333]),new Jr([16412690,-4507367,10772641,15929391,-17068788,-4658621,10555945,-10484049,-30102368,-4739048]),new Jr([22397382,-7767684,-9293161,-12792868,17166287,-9755136,-27333065,6199366,21880021,-12250760])),new ti(new Jr([-4283307,5368523,-31117018,8163389,-30323063,3209128,16557151,8890729,8840445,4957760]),new Jr([-15447727,709327,-6919446,-10870178,-29777922,6522332,-21720181,12130072,-14796503,5005757]),new Jr([-2114751,-14308128,23019042,15765735,-25269683,6002752,10183197,-13239326,-16395286,-2176112]))],[new ti(new Jr([-19025756,1632005,13466291,-7995100,-23640451,16573537,-32013908,-3057104,22208662,2000468]),new Jr([3065073,-1412761,-25598674,-361432,-17683065,-5703415,-8164212,11248527,-3691214,-7414184]),new Jr([10379208,-6045554,8877319,1473647,-29291284,-12507580,16690915,2553332,-3132688,16400289])),new ti(new Jr([15716668,1254266,-18472690,7446274,-8448918,6344164,-22097271,-7285580,26894937,9132066]),new Jr([24158887,12938817,11085297,-8177598,-28063478,-4457083,-30576463,64452,-6817084,-2692882]),new Jr([13488534,7794716,22236231,5989356,25426474,-12578208,2350710,-3418511,-4688006,2364226])),new ti(new Jr([16335052,9132434,25640582,6678888,1725628,8517937,-11807024,-11697457,15445875,-7798101]),new Jr([29004207,-7867081,28661402,-640412,-12794003,-7943086,31863255,-4135540,-278050,-15759279]),new Jr([-6122061,-14866665,-28614905,14569919,-10857999,-3591829,10343412,-6976290,-29828287,-10815811])),new ti(new Jr([27081650,3463984,14099042,-4517604,1616303,-6205604,29542636,15372179,17293797,960709]),new Jr([20263915,11434237,-5765435,11236810,13505955,-10857102,-16111345,6493122,-19384511,7639714]),new Jr([-2830798,-14839232,25403038,-8215196,-8317012,-16173699,18006287,-16043750,29994677,-15808121])),new ti(new Jr([9769828,5202651,-24157398,-13631392,-28051003,-11561624,-24613141,-13860782,-31184575,709464]),new Jr([12286395,13076066,-21775189,-1176622,-25003198,4057652,-32018128,-8890874,16102007,13205847]),new Jr([13733362,5599946,10557076,3195751,-5557991,8536970,-25540170,8525972,10151379,10394400])),new ti(new Jr([4024660,-16137551,22436262,12276534,-9099015,-2686099,19698229,11743039,-33302334,8934414]),new Jr([-15879800,-4525240,-8580747,-2934061,14634845,-698278,-9449077,3137094,-11536886,11721158]),new Jr([17555939,-5013938,8268606,2331751,-22738815,9761013,9319229,8835153,-9205489,-1280045])),new ti(new Jr([-461409,-7830014,20614118,16688288,-7514766,-4807119,22300304,505429,6108462,-6183415]),new Jr([-5070281,12367917,-30663534,3234473,32617080,-8422642,29880583,-13483331,-26898490,-7867459]),new Jr([-31975283,5726539,26934134,10237677,-3173717,-605053,24199304,3795095,7592688,-14992079])),new ti(new Jr([21594432,-14964228,17466408,-4077222,32537084,2739898,6407723,12018833,-28256052,4298412]),new Jr([-20650503,-11961496,-27236275,570498,3767144,-1717540,13891942,-1569194,13717174,10805743]),new Jr([-14676630,-15644296,15287174,11927123,24177847,-8175568,-796431,14860609,-26938930,-5863836]))],[new ti(new Jr([12962541,5311799,-10060768,11658280,18855286,-7954201,13286263,-12808704,-4381056,9882022]),new Jr([18512079,11319350,-20123124,15090309,18818594,5271736,-22727904,3666879,-23967430,-3299429]),new Jr([-6789020,-3146043,16192429,13241070,15898607,-14206114,-10084880,-6661110,-2403099,5276065])),new ti(new Jr([30169808,-5317648,26306206,-11750859,27814964,7069267,7152851,3684982,1449224,13082861]),new Jr([10342826,3098505,2119311,193222,25702612,12233820,23697382,15056736,-21016438,-8202e3]),new Jr([-33150110,3261608,22745853,7948688,19370557,-15177665,-26171976,6482814,-10300080,-11060101])),new ti(new Jr([32869458,-5408545,25609743,15678670,-10687769,-15471071,26112421,2521008,-22664288,6904815]),new Jr([29506923,4457497,3377935,-9796444,-30510046,12935080,1561737,3841096,-29003639,-6657642]),new Jr([10340844,-6630377,-18656632,-2278430,12621151,-13339055,30878497,-11824370,-25584551,5181966])),new ti(new Jr([25940115,-12658025,17324188,-10307374,-8671468,15029094,24396252,-16450922,-2322852,-12388574]),new Jr([-21765684,9916823,-1300409,4079498,-1028346,11909559,1782390,12641087,20603771,-6561742]),new Jr([-18882287,-11673380,24849422,11501709,13161720,-4768874,1925523,11914390,4662781,7820689])),new ti(new Jr([12241050,-425982,8132691,9393934,32846760,-1599620,29749456,12172924,16136752,15264020]),new Jr([-10349955,-14680563,-8211979,2330220,-17662549,-14545780,10658213,6671822,19012087,3772772]),new Jr([3753511,-3421066,10617074,2028709,14841030,-6721664,28718732,-15762884,20527771,12988982])),new ti(new Jr([-14822485,-5797269,-3707987,12689773,-898983,-10914866,-24183046,-10564943,3299665,-12424953]),new Jr([-16777703,-15253301,-9642417,4978983,3308785,8755439,6943197,6461331,-25583147,8991218]),new Jr([-17226263,1816362,-1673288,-6086439,31783888,-8175991,-32948145,7417950,-30242287,1507265])),new ti(new Jr([29692663,6829891,-10498800,4334896,20945975,-11906496,-28887608,8209391,14606362,-10647073]),new Jr([-3481570,8707081,32188102,5672294,22096700,1711240,-33020695,9761487,4170404,-2085325]),new Jr([-11587470,14855945,-4127778,-1531857,-26649089,15084046,22186522,16002e3,-14276837,-8400798])),new ti(new Jr([-4811456,13761029,-31703877,-2483919,-3312471,7869047,-7113572,-9620092,13240845,10965870]),new Jr([-7742563,-8256762,-14768334,-13656260,-23232383,12387166,4498947,14147411,29514390,4302863]),new Jr([-13413405,-12407859,20757302,-13801832,14785143,8976368,-5061276,-2144373,17846988,-13971927]))],[new ti(new Jr([-2244452,-754728,-4597030,-1066309,-6247172,1455299,-21647728,-9214789,-5222701,12650267]),new Jr([-9906797,-16070310,21134160,12198166,-27064575,708126,387813,13770293,-19134326,10958663]),new Jr([22470984,12369526,23446014,-5441109,-21520802,-9698723,-11772496,-11574455,-25083830,4271862])),new ti(new Jr([-25169565,-10053642,-19909332,15361595,-5984358,2159192,75375,-4278529,-32526221,8469673]),new Jr([15854970,4148314,-8893890,7259002,11666551,13824734,-30531198,2697372,24154791,-9460943]),new Jr([15446137,-15806644,29759747,14019369,30811221,-9610191,-31582008,12840104,24913809,9815020])),new ti(new Jr([-4709286,-5614269,-31841498,-12288893,-14443537,10799414,-9103676,13438769,18735128,9466238]),new Jr([11933045,9281483,5081055,-5183824,-2628162,-4905629,-7727821,-10896103,-22728655,16199064]),new Jr([14576810,379472,-26786533,-8317236,-29426508,-10812974,-102766,1876699,30801119,2164795])),new ti(new Jr([15995086,3199873,13672555,13712240,-19378835,-4647646,-13081610,-15496269,-13492807,1268052]),new Jr([-10290614,-3659039,-3286592,10948818,23037027,3794475,-3470338,-12600221,-17055369,3565904]),new Jr([29210088,-9419337,-5919792,-4952785,10834811,-13327726,-16512102,-10820713,-27162222,-14030531])),new ti(new Jr([-13161890,15508588,16663704,-8156150,-28349942,9019123,-29183421,-3769423,2244111,-14001979]),new Jr([-5152875,-3800936,-9306475,-6071583,16243069,14684434,-25673088,-16180800,13491506,4641841]),new Jr([10813417,643330,-19188515,-728916,30292062,-16600078,27548447,-7721242,14476989,-12767431])),new ti(new Jr([10292079,9984945,6481436,8279905,-7251514,7032743,27282937,-1644259,-27912810,12651324]),new Jr([-31185513,-813383,22271204,11835308,10201545,15351028,17099662,3988035,21721536,-3148940]),new Jr([10202177,-6545839,-31373232,-9574638,-32150642,-8119683,-12906320,3852694,13216206,14842320])),new ti(new Jr([-15815640,-10601066,-6538952,-7258995,-6984659,-6581778,-31500847,13765824,-27434397,9900184]),new Jr([14465505,-13833331,-32133984,-14738873,-27443187,12990492,33046193,15796406,-7051866,-8040114]),new Jr([30924417,-8279620,6359016,-12816335,16508377,9071735,-25488601,15413635,9524356,-7018878])),new ti(new Jr([12274201,-13175547,32627641,-1785326,6736625,13267305,5237659,-5109483,15663516,4035784]),new Jr([-2951309,8903985,17349946,601635,-16432815,-4612556,-13732739,-15889334,-22258478,4659091]),new Jr([-16916263,-4952973,-30393711,-15158821,20774812,15897498,5736189,15026997,-2178256,-13455585]))],[new ti(new Jr([-8858980,-2219056,28571666,-10155518,-474467,-10105698,-3801496,278095,23440562,-290208]),new Jr([10226241,-5928702,15139956,120818,-14867693,5218603,32937275,11551483,-16571960,-7442864]),new Jr([17932739,-12437276,-24039557,10749060,11316803,7535897,22503767,5561594,-3646624,3898661])),new ti(new Jr([7749907,-969567,-16339731,-16464,-25018111,15122143,-1573531,7152530,21831162,1245233]),new Jr([26958459,-14658026,4314586,8346991,-5677764,11960072,-32589295,-620035,-30402091,-16716212]),new Jr([-12165896,9166947,33491384,13673479,29787085,13096535,6280834,14587357,-22338025,13987525])),new ti(new Jr([-24349909,7778775,21116e3,15572597,-4833266,-5357778,-4300898,-5124639,-7469781,-2858068]),new Jr([9681908,-6737123,-31951644,13591838,-6883821,386950,31622781,6439245,-14581012,4091397]),new Jr([-8426427,1470727,-28109679,-1596990,3978627,-5123623,-19622683,12092163,29077877,-14741988])),new ti(new Jr([5269168,-6859726,-13230211,-8020715,25932563,1763552,-5606110,-5505881,-20017847,2357889]),new Jr([32264008,-15407652,-5387735,-1160093,-2091322,-3946900,23104804,-12869908,5727338,189038]),new Jr([14609123,-8954470,-6000566,-16622781,-14577387,-7743898,-26745169,10942115,-25888931,-14884697])),new ti(new Jr([20513500,5557931,-15604613,7829531,26413943,-2019404,-21378968,7471781,13913677,-5137875]),new Jr([-25574376,11967826,29233242,12948236,-6754465,4713227,-8940970,14059180,12878652,8511905]),new Jr([-25656801,3393631,-2955415,-7075526,-2250709,9366908,-30223418,6812974,5568676,-3127656])),new ti(new Jr([11630004,12144454,2116339,13606037,27378885,15676917,-17408753,-13504373,-14395196,8070818]),new Jr([27117696,-10007378,-31282771,-5570088,1127282,12772488,-29845906,10483306,-11552749,-1028714]),new Jr([10637467,-5688064,5674781,1072708,-26343588,-6982302,-1683975,9177853,-27493162,15431203])),new ti(new Jr([20525145,10892566,-12742472,12779443,-29493034,16150075,-28240519,14943142,-15056790,-7935931]),new Jr([-30024462,5626926,-551567,-9981087,753598,11981191,25244767,-3239766,-3356550,9594024]),new Jr([-23752644,2636870,-5163910,-10103818,585134,7877383,11345683,-6492290,13352335,-10977084])),new ti(new Jr([-1931799,-5407458,3304649,-12884869,17015806,-4877091,-29783850,-7752482,-13215537,-319204]),new Jr([20239939,6607058,6203985,3483793,-18386976,-779229,-20723742,15077870,-22750759,14523817]),new Jr([27406042,-6041657,27423596,-4497394,4996214,10002360,-28842031,-4545494,-30172742,-4805667]))],[new ti(new Jr([11374242,12660715,17861383,-12540833,10935568,1099227,-13886076,-9091740,-27727044,11358504]),new Jr([-12730809,10311867,1510375,10778093,-2119455,-9145702,32676003,11149336,-26123651,4985768]),new Jr([-19096303,341147,-6197485,-239033,15756973,-8796662,-983043,13794114,-19414307,-15621255])),new ti(new Jr([6490081,11940286,25495923,-7726360,8668373,-8751316,3367603,6970005,-1691065,-9004790]),new Jr([1656497,13457317,15370807,6364910,13605745,8362338,-19174622,-5475723,-16796596,-5031438]),new Jr([-22273315,-13524424,-64685,-4334223,-18605636,-10921968,-20571065,-7007978,-99853,-10237333])),new ti(new Jr([17747465,10039260,19368299,-4050591,-20630635,-16041286,31992683,-15857976,-29260363,-5511971]),new Jr([31932027,-4986141,-19612382,16366580,22023614,88450,11371999,-3744247,4882242,-10626905]),new Jr([29796507,37186,19818052,10115756,-11829032,3352736,18551198,3272828,-5190932,-4162409])),new ti(new Jr([12501286,4044383,-8612957,-13392385,-32430052,5136599,-19230378,-3529697,330070,-3659409]),new Jr([6384877,2899513,17807477,7663917,-2358888,12363165,25366522,-8573892,-271295,12071499]),new Jr([-8365515,-4042521,25133448,-4517355,-6211027,2265927,-32769618,1936675,-5159697,3829363])),new ti(new Jr([28425966,-5835433,-577090,-4697198,-14217555,6870930,7921550,-6567787,26333140,14267664]),new Jr([-11067219,11871231,27385719,-10559544,-4585914,-11189312,10004786,-8709488,-21761224,8930324]),new Jr([-21197785,-16396035,25654216,-1725397,12282012,11008919,1541940,4757911,-26491501,-16408940])),new ti(new Jr([13537262,-7759490,-20604840,10961927,-5922820,-13218065,-13156584,6217254,-15943699,13814990]),new Jr([-17422573,15157790,18705543,29619,24409717,-260476,27361681,9257833,-1956526,-1776914]),new Jr([-25045300,-10191966,15366585,15166509,-13105086,8423556,-29171540,12361135,-18685978,4578290])),new ti(new Jr([24579768,3711570,1342322,-11180126,-27005135,14124956,-22544529,14074919,21964432,8235257]),new Jr([-6528613,-2411497,9442966,-5925588,12025640,-1487420,-2981514,-1669206,13006806,2355433]),new Jr([-16304899,-13605259,-6632427,-5142349,16974359,-10911083,27202044,1719366,1141648,-12796236])),new ti(new Jr([-12863944,-13219986,-8318266,-11018091,-6810145,-4843894,13475066,-3133972,32674895,13715045]),new Jr([11423335,-5468059,32344216,8962751,24989809,9241752,-13265253,16086212,-28740881,-15642093]),new Jr([-1409668,12530728,-6368726,10847387,19531186,-14132160,-11709148,7791794,-27245943,4383347]))],[new ti(new Jr([-28970898,5271447,-1266009,-9736989,-12455236,16732599,-4862407,-4906449,27193557,6245191]),new Jr([-15193956,5362278,-1783893,2695834,4960227,12840725,23061898,3260492,22510453,8577507]),new Jr([-12632451,11257346,-32692994,13548177,-721004,10879011,31168030,13952092,-29571492,-3635906])),new ti(new Jr([3877321,-9572739,32416692,5405324,-11004407,-13656635,3759769,11935320,5611860,8164018]),new Jr([-16275802,14667797,15906460,12155291,-22111149,-9039718,32003002,-8832289,5773085,-8422109]),new Jr([-23788118,-8254300,1950875,8937633,18686727,16459170,-905725,12376320,31632953,190926])),new ti(new Jr([-24593607,-16138885,-8423991,13378746,14162407,6901328,-8288749,4508564,-25341555,-3627528]),new Jr([8884438,-5884009,6023974,10104341,-6881569,-4941533,18722941,-14786005,-1672488,827625]),new Jr([-32720583,-16289296,-32503547,7101210,13354605,2659080,-1800575,-14108036,-24878478,1541286])),new ti(new Jr([2901347,-1117687,3880376,-10059388,-17620940,-3612781,-21802117,-3567481,20456845,-1885033]),new Jr([27019610,12299467,-13658288,-1603234,-12861660,-4861471,-19540150,-5016058,29439641,15138866]),new Jr([21536104,-6626420,-32447818,-10690208,-22408077,5175814,-5420040,-16361163,7779328,109896])),new ti(new Jr([30279744,14648750,-8044871,6425558,13639621,-743509,28698390,12180118,23177719,-554075]),new Jr([26572847,3405927,-31701700,12890905,-19265668,5335866,-6493768,2378492,4439158,-13279347]),new Jr([-22716706,3489070,-9225266,-332753,18875722,-1140095,14819434,-12731527,-17717757,-5461437])),new ti(new Jr([-5056483,16566551,15953661,3767752,-10436499,15627060,-820954,2177225,8550082,-15114165]),new Jr([-18473302,16596775,-381660,15663611,22860960,15585581,-27844109,-3582739,-23260460,-8428588]),new Jr([-32480551,15707275,-8205912,-5652081,29464558,2713815,-22725137,15860482,-21902570,1494193])),new ti(new Jr([-19562091,-14087393,-25583872,-9299552,13127842,759709,21923482,16529112,8742704,12967017]),new Jr([-28464899,1553205,32536856,-10473729,-24691605,-406174,-8914625,-2933896,-29903758,15553883]),new Jr([21877909,3230008,9881174,10539357,-4797115,2841332,11543572,14513274,19375923,-12647961])),new ti(new Jr([8832269,-14495485,13253511,5137575,5037871,4078777,24880818,-6222716,2862653,9455043]),new Jr([29306751,5123106,20245049,-14149889,9592566,8447059,-2077124,-2990080,15511449,4789663]),new Jr([-20679756,7004547,8824831,-9434977,-4045704,-3750736,-5754762,108893,23513200,16652362]))],[new ti(new Jr([-33256173,4144782,-4476029,-6579123,10770039,-7155542,-6650416,-12936300,-18319198,10212860]),new Jr([2756081,8598110,7383731,-6859892,22312759,-1105012,21179801,2600940,-9988298,-12506466]),new Jr([-24645692,13317462,-30449259,-15653928,21365574,-10869657,11344424,864440,-2499677,-16710063])),new ti(new Jr([-26432803,6148329,-17184412,-14474154,18782929,-275997,-22561534,211300,2719757,4940997]),new Jr([-1323882,3911313,-6948744,14759765,-30027150,7851207,21690126,8518463,26699843,5276295]),new Jr([-13149873,-6429067,9396249,365013,24703301,-10488939,1321586,149635,-15452774,7159369])),new ti(new Jr([9987780,-3404759,17507962,9505530,9731535,-2165514,22356009,8312176,22477218,-8403385]),new Jr([18155857,-16504990,19744716,9006923,15154154,-10538976,24256460,-4864995,-22548173,9334109]),new Jr([2986088,-4911893,10776628,-3473844,10620590,-7083203,-21413845,14253545,-22587149,536906])),new ti(new Jr([4377756,8115836,24567078,15495314,11625074,13064599,7390551,10589625,10838060,-15420424]),new Jr([-19342404,867880,9277171,-3218459,-14431572,-1986443,19295826,-15796950,6378260,699185]),new Jr([7895026,4057113,-7081772,-13077756,-17886831,-323126,-716039,15693155,-5045064,-13373962])),new ti(new Jr([-7737563,-5869402,-14566319,-7406919,11385654,13201616,31730678,-10962840,-3918636,-9669325]),new Jr([10188286,-15770834,-7336361,13427543,22223443,14896287,30743455,7116568,-21786507,5427593]),new Jr([696102,13206899,27047647,-10632082,15285305,-9853179,10798490,-4578720,19236243,12477404])),new ti(new Jr([-11229439,11243796,-17054270,-8040865,-788228,-8167967,-3897669,11180504,-23169516,7733644]),new Jr([17800790,-14036179,-27000429,-11766671,23887827,3149671,23466177,-10538171,10322027,15313801]),new Jr([26246234,11968874,32263343,-5468728,6830755,-13323031,-15794704,-101982,-24449242,10890804])),new ti(new Jr([-31365647,10271363,-12660625,-6267268,16690207,-13062544,-14982212,16484931,25180797,-5334884]),new Jr([-586574,10376444,-32586414,-11286356,19801893,10997610,2276632,9482883,316878,13820577]),new Jr([-9882808,-4510367,-2115506,16457136,-11100081,11674996,30756178,-7515054,30696930,-3712849])),new ti(new Jr([32988917,-9603412,12499366,7910787,-10617257,-11931514,-7342816,-9985397,-32349517,7392473]),new Jr([-8855661,15927861,9866406,-3649411,-2396914,-16655781,-30409476,-9134995,25112947,-2926644]),new Jr([-2504044,-436966,25621774,-5678772,15085042,-5479877,-24884878,-13526194,5537438,-13914319]))],[new ti(new Jr([-11225584,2320285,-9584280,10149187,-33444663,5808648,-14876251,-1729667,31234590,6090599]),new Jr([-9633316,116426,26083934,2897444,-6364437,-2688086,609721,15878753,-6970405,-9034768]),new Jr([-27757857,247744,-15194774,-9002551,23288161,-10011936,-23869595,6503646,20650474,1804084])),new ti(new Jr([-27589786,15456424,8972517,8469608,15640622,4439847,3121995,-10329713,27842616,-202328]),new Jr([-15306973,2839644,22530074,10026331,4602058,5048462,28248656,5031932,-11375082,12714369]),new Jr([20807691,-7270825,29286141,11421711,-27876523,-13868230,-21227475,1035546,-19733229,12796920])),new ti(new Jr([12076899,-14301286,-8785001,-11848922,-25012791,16400684,-17591495,-12899438,3480665,-15182815]),new Jr([-32361549,5457597,28548107,7833186,7303070,-11953545,-24363064,-15921875,-33374054,2771025]),new Jr([-21389266,421932,26597266,6860826,22486084,-6737172,-17137485,-4210226,-24552282,15673397])),new ti(new Jr([-20184622,2338216,19788685,-9620956,-4001265,-8740893,-20271184,4733254,3727144,-12934448]),new Jr([6120119,814863,-11794402,-622716,6812205,-15747771,2019594,7975683,31123697,-10958981]),new Jr([30069250,-11435332,30434654,2958439,18399564,-976289,12296869,9204260,-16432438,9648165])),new ti(new Jr([32705432,-1550977,30705658,7451065,-11805606,9631813,3305266,5248604,-26008332,-11377501]),new Jr([17219865,2375039,-31570947,-5575615,-19459679,9219903,294711,15298639,2662509,-16297073]),new Jr([-1172927,-7558695,-4366770,-4287744,-21346413,-8434326,32087529,-1222777,32247248,-14389861])),new ti(new Jr([14312628,1221556,17395390,-8700143,-4945741,-8684635,-28197744,-9637817,-16027623,-13378845]),new Jr([-1428825,-9678990,-9235681,6549687,-7383069,-468664,23046502,9803137,17597934,2346211]),new Jr([18510800,15337574,26171504,981392,-22241552,7827556,-23491134,-11323352,3059833,-11782870])),new ti(new Jr([10141598,6082907,17829293,-1947643,9830092,13613136,-25556636,-5544586,-33502212,3592096]),new Jr([33114168,-15889352,-26525686,-13343397,33076705,8716171,1151462,1521897,-982665,-6837803]),new Jr([-32939165,-4255815,23947181,-324178,-33072974,-12305637,-16637686,3891704,26353178,693168])),new ti(new Jr([30374239,1595580,-16884039,13186931,4600344,406904,9585294,-400668,31375464,14369965]),new Jr([-14370654,-7772529,1510301,6434173,-18784789,-6262728,32732230,-13108839,17901441,16011505]),new Jr([18171223,-11934626,-12500402,15197122,-11038147,-15230035,-19172240,-16046376,8764035,12309598]))],[new ti(new Jr([5975908,-5243188,-19459362,-9681747,-11541277,14015782,-23665757,1228319,17544096,-10593782]),new Jr([5811932,-1715293,3442887,-2269310,-18367348,-8359541,-18044043,-15410127,-5565381,12348900]),new Jr([-31399660,11407555,25755363,6891399,-3256938,14872274,-24849353,8141295,-10632534,-585479])),new ti(new Jr([-12675304,694026,-5076145,13300344,14015258,-14451394,-9698672,-11329050,30944593,1130208]),new Jr([8247766,-6710942,-26562381,-7709309,-14401939,-14648910,4652152,2488540,23550156,-271232]),new Jr([17294316,-3788438,7026748,15626851,22990044,113481,2267737,-5908146,-408818,-137719])),new ti(new Jr([16091085,-16253926,18599252,7340678,2137637,-1221657,-3364161,14550936,3260525,-7166271]),new Jr([-4910104,-13332887,18550887,10864893,-16459325,-7291596,-23028869,-13204905,-12748722,2701326]),new Jr([-8574695,16099415,4629974,-16340524,-20786213,-6005432,-10018363,9276971,11329923,1862132])),new ti(new Jr([14763076,-15903608,-30918270,3689867,3511892,10313526,-21951088,12219231,-9037963,-940300]),new Jr([8894987,-3446094,6150753,3013931,301220,15693451,-31981216,-2909717,-15438168,11595570]),new Jr([15214962,3537601,-26238722,-14058872,4418657,-15230761,13947276,10730794,-13489462,-4363670])),new ti(new Jr([-2538306,7682793,32759013,263109,-29984731,-7955452,-22332124,-10188635,977108,699994]),new Jr([-12466472,4195084,-9211532,550904,-15565337,12917920,19118110,-439841,-30534533,-14337913]),new Jr([31788461,-14507657,4799989,7372237,8808585,-14747943,9408237,-10051775,12493932,-5409317])),new ti(new Jr([-25680606,5260744,-19235809,-6284470,-3695942,16566087,27218280,2607121,29375955,6024730]),new Jr([842132,-2794693,-4763381,-8722815,26332018,-12405641,11831880,6985184,-9940361,2854096]),new Jr([-4847262,-7969331,2516242,-5847713,9695691,-7221186,16512645,960770,12121869,16648078])),new ti(new Jr([-15218652,14667096,-13336229,2013717,30598287,-464137,-31504922,-7882064,20237806,2838411]),new Jr([-19288047,4453152,15298546,-16178388,22115043,-15972604,12544294,-13470457,1068881,-12499905]),new Jr([-9558883,-16518835,33238498,13506958,30505848,-1114596,-8486907,-2630053,12521378,4845654])),new ti(new Jr([-28198521,10744108,-2958380,10199664,7759311,-13088600,3409348,-873400,-6482306,-12885870]),new Jr([-23561822,6230156,-20382013,10655314,-24040585,-11621172,10477734,-1240216,-3113227,13974498]),new Jr([12966261,15550616,-32038948,-1615346,21025980,-629444,5642325,7188737,18895762,12629579]))],[new ti(new Jr([14741879,-14946887,22177208,-11721237,1279741,8058600,11758140,789443,32195181,3895677]),new Jr([10758205,15755439,-4509950,9243698,-4879422,6879879,-2204575,-3566119,-8982069,4429647]),new Jr([-2453894,15725973,-20436342,-10410672,-5803908,-11040220,-7135870,-11642895,18047436,-15281743])),new ti(new Jr([-25173001,-11307165,29759956,11776784,-22262383,-15820455,10993114,-12850837,-17620701,-9408468]),new Jr([21987233,700364,-24505048,14972008,-7774265,-5718395,32155026,2581431,-29958985,8773375]),new Jr([-25568350,454463,-13211935,16126715,25240068,8594567,20656846,12017935,-7874389,-13920155])),new ti(new Jr([6028182,6263078,-31011806,-11301710,-818919,2461772,-31841174,-5468042,-1721788,-2776725]),new Jr([-12278994,16624277,987579,-5922598,32908203,1248608,7719845,-4166698,28408820,6816612]),new Jr([-10358094,-8237829,19549651,-12169222,22082623,16147817,20613181,13982702,-10339570,5067943])),new ti(new Jr([-30505967,-3821767,12074681,13582412,-19877972,2443951,-19719286,12746132,5331210,-10105944]),new Jr([30528811,3601899,-1957090,4619785,-27361822,-15436388,24180793,-12570394,27679908,-1648928]),new Jr([9402404,-13957065,32834043,10838634,-26580150,-13237195,26653274,-8685565,22611444,-12715406])),new ti(new Jr([22190590,1118029,22736441,15130463,-30460692,-5991321,19189625,-4648942,4854859,6622139]),new Jr([-8310738,-2953450,-8262579,-3388049,-10401731,-271929,13424426,-3567227,26404409,13001963]),new Jr([-31241838,-15415700,-2994250,8939346,11562230,-12840670,-26064365,-11621720,-15405155,11020693])),new ti(new Jr([1866042,-7949489,-7898649,-10301010,12483315,13477547,3175636,-12424163,28761762,1406734]),new Jr([-448555,-1777666,13018551,3194501,-9580420,-11161737,24760585,-4347088,25577411,-13378680]),new Jr([-24290378,4759345,-690653,-1852816,2066747,10693769,-29595790,9884936,-9368926,4745410])),new ti(new Jr([-9141284,6049714,-19531061,-4341411,-31260798,9944276,-15462008,-11311852,10931924,-11931931]),new Jr([-16561513,14112680,-8012645,4817318,-8040464,-11414606,-22853429,10856641,-20470770,13434654]),new Jr([22759489,-10073434,-16766264,-1871422,13637442,-10168091,1765144,-12654326,28445307,-5364710])),new ti(new Jr([29875063,12493613,2795536,-3786330,1710620,15181182,-10195717,-8788675,9074234,1167180]),new Jr([-26205683,11014233,-9842651,-2635485,-26908120,7532294,-18716888,-9535498,3843903,9367684]),new Jr([-10969595,-6403711,9591134,9582310,11349256,108879,16235123,8601684,-139197,4242895]))],[new ti(new Jr([22092954,-13191123,-2042793,-11968512,32186753,-11517388,-6574341,2470660,-27417366,16625501]),new Jr([-11057722,3042016,13770083,-9257922,584236,-544855,-7770857,2602725,-27351616,14247413]),new Jr([6314175,-10264892,-32772502,15957557,-10157730,168750,-8618807,14290061,27108877,-1180880])),new ti(new Jr([-8586597,-7170966,13241782,10960156,-32991015,-13794596,33547976,-11058889,-27148451,981874]),new Jr([22833440,9293594,-32649448,-13618667,-9136966,14756819,-22928859,-13970780,-10479804,-16197962]),new Jr([-7768587,3326786,-28111797,10783824,19178761,14905060,22680049,13906969,-15933690,3797899])),new ti(new Jr([21721356,-4212746,-12206123,9310182,-3882239,-13653110,23740224,-2709232,20491983,-8042152]),new Jr([9209270,-15135055,-13256557,-6167798,-731016,15289673,25947805,15286587,30997318,-6703063]),new Jr([7392032,16618386,23946583,-8039892,-13265164,-1533858,-14197445,-2321576,17649998,-250080])),new ti(new Jr([-9301088,-14193827,30609526,-3049543,-25175069,-1283752,-15241566,-9525724,-2233253,7662146]),new Jr([-17558673,1763594,-33114336,15908610,-30040870,-12174295,7335080,-8472199,-3174674,3440183]),new Jr([-19889700,-5977008,-24111293,-9688870,10799743,-16571957,40450,-4431835,4862400,1133])),new ti(new Jr([-32856209,-7873957,-5422389,14860950,-16319031,7956142,7258061,311861,-30594991,-7379421]),new Jr([-3773428,-1565936,28985340,7499440,24445838,9325937,29727763,16527196,18278453,15405622]),new Jr([-4381906,8508652,-19898366,-3674424,-5984453,15149970,-13313598,843523,-21875062,13626197])),new ti(new Jr([2281448,-13487055,-10915418,-2609910,1879358,16164207,-10783882,3953792,13340839,15928663]),new Jr([31727126,-7179855,-18437503,-8283652,2875793,-16390330,-25269894,-7014826,-23452306,5964753]),new Jr([4100420,-5959452,-17179337,6017714,-18705837,12227141,-26684835,11344144,2538215,-7570755])),new ti(new Jr([-9433605,6123113,11159803,-2156608,30016280,14966241,-20474983,1485421,-629256,-15958862]),new Jr([-26804558,4260919,11851389,9658551,-32017107,16367492,-20205425,-13191288,11659922,-11115118]),new Jr([26180396,10015009,-30844224,-8581293,5418197,9480663,2231568,-10170080,33100372,-1306171])),new ti(new Jr([15121113,-5201871,-10389905,15427821,-27509937,-15992507,21670947,4486675,-5931810,-14466380]),new Jr([16166486,-9483733,-11104130,6023908,-31926798,-1364923,2340060,-16254968,-10735770,-10039824]),new Jr([28042865,-3557089,-12126526,12259706,-3717498,-6945899,6766453,-8689599,18036436,5803270]))],[new ti(new Jr([-817581,6763912,11803561,1585585,10958447,-2671165,23855391,4598332,-6159431,-14117438]),new Jr([-31031306,-14256194,17332029,-2383520,31312682,-5967183,696309,50292,-20095739,11763584]),new Jr([-594563,-2514283,-32234153,12643980,12650761,14811489,665117,-12613632,-19773211,-10713562])),new ti(new Jr([30464590,-11262872,-4127476,-12734478,19835327,-7105613,-24396175,2075773,-17020157,992471]),new Jr([18357185,-6994433,7766382,16342475,-29324918,411174,14578841,8080033,-11574335,-10601610]),new Jr([19598397,10334610,12555054,2555664,18821899,-10339780,21873263,16014234,26224780,16452269])),new ti(new Jr([-30223925,5145196,5944548,16385966,3976735,2009897,-11377804,-7618186,-20533829,3698650]),new Jr([14187449,3448569,-10636236,-10810935,-22663880,-3433596,7268410,-10890444,27394301,12015369]),new Jr([19695761,16087646,28032085,12999827,6817792,11427614,20244189,-1312777,-13259127,-3402461])),new ti(new Jr([30860103,12735208,-1888245,-4699734,-16974906,2256940,-8166013,12298312,-8550524,-10393462]),new Jr([-5719826,-11245325,-1910649,15569035,26642876,-7587760,-5789354,-15118654,-4976164,12651793]),new Jr([-2848395,9953421,11531313,-5282879,26895123,-12697089,-13118820,-16517902,9768698,-2533218])),new ti(new Jr([-24719459,1894651,-287698,-4704085,15348719,-8156530,32767513,12765450,4940095,10678226]),new Jr([18860224,15980149,-18987240,-1562570,-26233012,-11071856,-7843882,13944024,-24372348,16582019]),new Jr([-15504260,4970268,-29893044,4175593,-20993212,-2199756,-11704054,15444560,-11003761,7989037])),new ti(new Jr([31490452,5568061,-2412803,2182383,-32336847,4531686,-32078269,6200206,-19686113,-14800171]),new Jr([-17308668,-15879940,-31522777,-2831,-32887382,16375549,8680158,-16371713,28550068,-6857132]),new Jr([-28126887,-5688091,16837845,-1820458,-6850681,12700016,-30039981,4364038,1155602,5988841])),new ti(new Jr([21890435,-13272907,-12624011,12154349,-7831873,15300496,23148983,-4470481,24618407,8283181]),new Jr([-33136107,-10512751,9975416,6841041,-31559793,16356536,3070187,-7025928,1466169,10740210]),new Jr([-1509399,-15488185,-13503385,-10655916,32799044,909394,-13938903,-5779719,-32164649,-15327040])),new ti(new Jr([3960823,-14267803,-28026090,-15918051,-19404858,13146868,15567327,951507,-3260321,-573935]),new Jr([24740841,5052253,-30094131,8961361,25877428,6165135,-24368180,14397372,-7380369,-6144105]),new Jr([-28888365,3510803,-28103278,-1158478,-11238128,-10631454,-15441463,-14453128,-1625486,-6494814]))],[new ti(new Jr([793299,-9230478,8836302,-6235707,-27360908,-2369593,33152843,-4885251,-9906200,-621852]),new Jr([5666233,525582,20782575,-8038419,-24538499,14657740,16099374,1468826,-6171428,-15186581]),new Jr([-4859255,-3779343,-2917758,-6748019,7778750,11688288,-30404353,-9871238,-1558923,-9863646])),new ti(new Jr([10896332,-7719704,824275,472601,-19460308,3009587,25248958,14783338,-30581476,-15757844]),new Jr([10566929,12612572,-31944212,11118703,-12633376,12362879,21752402,8822496,24003793,14264025]),new Jr([27713862,-7355973,-11008240,9227530,27050101,2504721,23886875,-13117525,13958495,-5732453])),new ti(new Jr([-23481610,4867226,-27247128,3900521,29838369,-8212291,-31889399,-10041781,7340521,-15410068]),new Jr([4646514,-8011124,-22766023,-11532654,23184553,8566613,31366726,-1381061,-15066784,-10375192]),new Jr([-17270517,12723032,-16993061,14878794,21619651,-6197576,27584817,3093888,-8843694,3849921])),new ti(new Jr([-9064912,2103172,25561640,-15125738,-5239824,9582958,32477045,-9017955,5002294,-15550259]),new Jr([-12057553,-11177906,21115585,-13365155,8808712,-12030708,16489530,13378448,-25845716,12741426]),new Jr([-5946367,10645103,-30911586,15390284,-3286982,-7118677,24306472,15852464,28834118,-7646072])),new ti(new Jr([-17335748,-9107057,-24531279,9434953,-8472084,-583362,-13090771,455841,20461858,5491305]),new Jr([13669248,-16095482,-12481974,-10203039,-14569770,-11893198,-24995986,11293807,-28588204,-9421832]),new Jr([28497928,6272777,-33022994,14470570,8906179,-1225630,18504674,-14165166,29867745,-8795943])),new ti(new Jr([-16207023,13517196,-27799630,-13697798,24009064,-6373891,-6367600,-13175392,22853429,-4012011]),new Jr([24191378,16712145,-13931797,15217831,14542237,1646131,18603514,-11037887,12876623,-2112447]),new Jr([17902668,4518229,-411702,-2829247,26878217,5258055,-12860753,608397,16031844,3723494])),new ti(new Jr([-28632773,12763728,-20446446,7577504,33001348,-13017745,17558842,-7872890,23896954,-4314245]),new Jr([-20005381,-12011952,31520464,605201,2543521,5991821,-2945064,7229064,-9919646,-8826859]),new Jr([28816045,298879,-28165016,-15920938,19000928,-1665890,-12680833,-2949325,-18051778,-2082915])),new ti(new Jr([16000882,-344896,3493092,-11447198,-29504595,-13159789,12577740,16041268,-19715240,7847707]),new Jr([10151868,10572098,27312476,7922682,14825339,4723128,-32855931,-6519018,-10020567,3852848]),new Jr([-11430470,15697596,-21121557,-4420647,5386314,15063598,16514493,-15932110,29330899,-15076224]))],[new ti(new Jr([-25499735,-4378794,-15222908,-6901211,16615731,2051784,3303702,15490,-27548796,12314391]),new Jr([15683520,-6003043,18109120,-9980648,15337968,-5997823,-16717435,15921866,16103996,-3731215]),new Jr([-23169824,-10781249,13588192,-1628807,-3798557,-1074929,-19273607,5402699,-29815713,-9841101])),new ti(new Jr([23190676,2384583,-32714340,3462154,-29903655,-1529132,-11266856,8911517,-25205859,2739713]),new Jr([21374101,-3554250,-33524649,9874411,15377179,11831242,-33529904,6134907,4931255,11987849]),new Jr([-7732,-2978858,-16223486,7277597,105524,-322051,-31480539,13861388,-30076310,10117930])),new ti(new Jr([-29501170,-10744872,-26163768,13051539,-25625564,5089643,-6325503,6704079,12890019,15728940]),new Jr([-21972360,-11771379,-951059,-4418840,14704840,2695116,903376,-10428139,12885167,8311031]),new Jr([-17516482,5352194,10384213,-13811658,7506451,13453191,26423267,4384730,1888765,-5435404])),new ti(new Jr([-25817338,-3107312,-13494599,-3182506,30896459,-13921729,-32251644,-12707869,-19464434,-3340243]),new Jr([-23607977,-2665774,-526091,4651136,5765089,4618330,6092245,14845197,17151279,-9854116]),new Jr([-24830458,-12733720,-15165978,10367250,-29530908,-265356,22825805,-7087279,-16866484,16176525])),new ti(new Jr([-23583256,6564961,20063689,3798228,-4740178,7359225,2006182,-10363426,-28746253,-10197509]),new Jr([-10626600,-4486402,-13320562,-5125317,3432136,-6393229,23632037,-1940610,32808310,1099883]),new Jr([15030977,5768825,-27451236,-2887299,-6427378,-15361371,-15277896,-6809350,2051441,-15225865])),new ti(new Jr([-3362323,-7239372,7517890,9824992,23555850,295369,5148398,-14154188,-22686354,16633660]),new Jr([4577086,-16752288,13249841,-15304328,19958763,-14537274,18559670,-10759549,8402478,-9864273]),new Jr([-28406330,-1051581,-26790155,-907698,-17212414,-11030789,9453451,-14980072,17983010,9967138])),new ti(new Jr([-25762494,6524722,26585488,9969270,24709298,1220360,-1677990,7806337,17507396,3651560]),new Jr([-10420457,-4118111,14584639,15971087,-15768321,8861010,26556809,-5574557,-18553322,-11357135]),new Jr([2839101,14284142,4029895,3472686,14402957,12689363,-26642121,8459447,-5605463,-7621941])),new ti(new Jr([-4839289,-3535444,9744961,2871048,25113978,3187018,-25110813,-849066,17258084,-7977739]),new Jr([18164541,-10595176,-17154882,-1542417,19237078,-9745295,23357533,-15217008,26908270,12150756]),new Jr([-30264870,-7647865,5112249,-7036672,-1499807,-6974257,43168,-5537701,-32302074,16215819]))],[new ti(new Jr([-6898905,9824394,-12304779,-4401089,-31397141,-6276835,32574489,12532905,-7503072,-8675347]),new Jr([-27343522,-16515468,-27151524,-10722951,946346,16291093,254968,7168080,21676107,-1943028]),new Jr([21260961,-8424752,-16831886,-11920822,-23677961,3968121,-3651949,-6215466,-3556191,-7913075])),new ti(new Jr([16544754,13250366,-16804428,15546242,-4583003,12757258,-2462308,-8680336,-18907032,-9662799]),new Jr([-2415239,-15577728,18312303,4964443,-15272530,-12653564,26820651,16690659,25459437,-4564609]),new Jr([-25144690,11425020,28423002,-11020557,-6144921,-15826224,9142795,-2391602,-6432418,-1644817])),new ti(new Jr([-23104652,6253476,16964147,-3768872,-25113972,-12296437,-27457225,-16344658,6335692,7249989]),new Jr([-30333227,13979675,7503222,-12368314,-11956721,-4621693,-30272269,2682242,25993170,-12478523]),new Jr([4364628,5930691,32304656,-10044554,-8054781,15091131,22857016,-10598955,31820368,15075278])),new ti(new Jr([31879134,-8918693,17258761,90626,-8041836,-4917709,24162788,-9650886,-17970238,12833045]),new Jr([19073683,14851414,-24403169,-11860168,7625278,11091125,-19619190,2074449,-9413939,14905377]),new Jr([24483667,-11935567,-2518866,-11547418,-1553130,15355506,-25282080,9253129,27628530,-7555480])),new ti(new Jr([17597607,8340603,19355617,552187,26198470,-3176583,4593324,-9157582,-14110875,15297016]),new Jr([510886,14337390,-31785257,16638632,6328095,2713355,-20217417,-11864220,8683221,2921426]),new Jr([18606791,11874196,27155355,-5281482,-24031742,6265446,-25178240,-1278924,4674690,13890525])),new ti(new Jr([13609624,13069022,-27372361,-13055908,24360586,9592974,14977157,9835105,4389687,288396]),new Jr([9922506,-519394,13613107,5883594,-18758345,-434263,-12304062,8317628,23388070,16052080]),new Jr([12720016,11937594,-31970060,-5028689,26900120,8561328,-20155687,-11632979,-14754271,-10812892])),new ti(new Jr([15961858,14150409,26716931,-665832,-22794328,13603569,11829573,7467844,-28822128,929275]),new Jr([11038231,-11582396,-27310482,-7316562,-10498527,-16307831,-23479533,-9371869,-21393143,2465074]),new Jr([20017163,-4323226,27915242,1529148,12396362,15675764,13817261,-9658066,2463391,-4622140])),new ti(new Jr([-16358878,-12663911,-12065183,4996454,-1256422,1073572,9583558,12851107,4003896,12673717]),new Jr([-1731589,-15155870,-3262930,16143082,19294135,13385325,14741514,-9103726,7903886,2348101]),new Jr([24536016,-16515207,12715592,-3862155,1511293,10047386,-3842346,-7129159,-28377538,10048127]))],[new ti(new Jr([-12622226,-6204820,30718825,2591312,-10617028,12192840,18873298,-7297090,-32297756,15221632]),new Jr([-26478122,-11103864,11546244,-1852483,9180880,7656409,-21343950,2095755,29769758,6593415]),new Jr([-31994208,-2907461,4176912,3264766,12538965,-868111,26312345,-6118678,30958054,8292160])),new ti(new Jr([31429822,-13959116,29173532,15632448,12174511,-2760094,32808831,3977186,26143136,-3148876]),new Jr([22648901,1402143,-22799984,13746059,7936347,365344,-8668633,-1674433,-3758243,-2304625]),new Jr([-15491917,8012313,-2514730,-12702462,-23965846,-10254029,-1612713,-1535569,-16664475,8194478])),new ti(new Jr([27338066,-7507420,-7414224,10140405,-19026427,-6589889,27277191,8855376,28572286,3005164]),new Jr([26287124,4821776,25476601,-4145903,-3764513,-15788984,-18008582,1182479,-26094821,-13079595]),new Jr([-7171154,3178080,23970071,6201893,-17195577,-4489192,-21876275,-13982627,32208683,-1198248])),new ti(new Jr([-16657702,2817643,-10286362,14811298,6024667,13349505,-27315504,-10497842,-27672585,-11539858]),new Jr([15941029,-9405932,-21367050,8062055,31876073,-238629,-15278393,-1444429,15397331,-4130193]),new Jr([8934485,-13485467,-23286397,-13423241,-32446090,14047986,31170398,-1441021,-27505566,15087184])),new ti(new Jr([-18357243,-2156491,24524913,-16677868,15520427,-6360776,-15502406,11461896,16788528,-5868942]),new Jr([-1947386,16013773,21750665,3714552,-17401782,-16055433,-3770287,-10323320,31322514,-11615635]),new Jr([21426655,-5650218,-13648287,-5347537,-28812189,-4920970,-18275391,-14621414,13040862,-12112948])),new ti(new Jr([11293895,12478086,-27136401,15083750,-29307421,14748872,14555558,-13417103,1613711,4896935]),new Jr([-25894883,15323294,-8489791,-8057900,25967126,-13425460,2825960,-4897045,-23971776,-11267415]),new Jr([-15924766,-5229880,-17443532,6410664,3622847,10243618,20615400,12405433,-23753030,-8436416])),new ti(new Jr([-7091295,12556208,-20191352,9025187,-17072479,4333801,4378436,2432030,23097949,-566018]),new Jr([4565804,-16025654,20084412,-7842817,1724999,189254,24767264,10103221,-18512313,2424778]),new Jr([366633,-11976806,8173090,-6890119,30788634,5745705,-7168678,1344109,-3642553,12412659])),new ti(new Jr([-24001791,7690286,14929416,-168257,-32210835,-13412986,24162697,-15326504,-3141501,11179385]),new Jr([18289522,-14724954,8056945,16430056,-21729724,7842514,-6001441,-1486897,-18684645,-11443503]),new Jr([476239,6601091,-6152790,-9723375,17503545,-4863900,27672959,13403813,11052904,5219329]))],[new ti(new Jr([20678546,-8375738,-32671898,8849123,-5009758,14574752,31186971,-3973730,9014762,-8579056]),new Jr([-13644050,-10350239,-15962508,5075808,-1514661,-11534600,-33102500,9160280,8473550,-3256838]),new Jr([24900749,14435722,17209120,-15292541,-22592275,9878983,-7689309,-16335821,-24568481,11788948])),new ti(new Jr([-3118155,-11395194,-13802089,14797441,9652448,-6845904,-20037437,10410733,-24568470,-1458691]),new Jr([-15659161,16736706,-22467150,10215878,-9097177,7563911,11871841,-12505194,-18513325,8464118]),new Jr([-23400612,8348507,-14585951,-861714,-3950205,-6373419,14325289,8628612,33313881,-8370517])),new ti(new Jr([-20186973,-4967935,22367356,5271547,-1097117,-4788838,-24805667,-10236854,-8940735,-5818269]),new Jr([-6948785,-1795212,-32625683,-16021179,32635414,-7374245,15989197,-12838188,28358192,-4253904]),new Jr([-23561781,-2799059,-32351682,-1661963,-9147719,10429267,-16637684,4072016,-5351664,5596589])),new ti(new Jr([-28236598,-3390048,12312896,6213178,3117142,16078565,29266239,2557221,1768301,15373193]),new Jr([-7243358,-3246960,-4593467,-7553353,-127927,-912245,-1090902,-4504991,-24660491,3442910]),new Jr([-30210571,5124043,14181784,8197961,18964734,-11939093,22597931,7176455,-18585478,13365930])),new ti(new Jr([-7877390,-1499958,8324673,4690079,6261860,890446,24538107,-8570186,-9689599,-3031667]),new Jr([25008904,-10771599,-4305031,-9638010,16265036,15721635,683793,-11823784,15723479,-15163481]),new Jr([-9660625,12374379,-27006999,-7026148,-7724114,-12314514,11879682,5400171,519526,-1235876])),new ti(new Jr([22258397,-16332233,-7869817,14613016,-22520255,-2950923,-20353881,7315967,16648397,7605640]),new Jr([-8081308,-8464597,-8223311,9719710,19259459,-15348212,23994942,-5281555,-9468848,4763278]),new Jr([-21699244,9220969,-15730624,1084137,-25476107,-2852390,31088447,-7764523,-11356529,728112])),new ti(new Jr([26047220,-11751471,-6900323,-16521798,24092068,9158119,-4273545,-12555558,-29365436,-5498272]),new Jr([17510331,-322857,5854289,8403524,17133918,-3112612,-28111007,12327945,10750447,10014012]),new Jr([-10312768,3936952,9156313,-8897683,16498692,-994647,-27481051,-666732,3424691,7540221])),new ti(new Jr([30322361,-6964110,11361005,-4143317,7433304,4989748,-7071422,-16317219,-9244265,15258046]),new Jr([13054562,-2779497,19155474,469045,-12482797,4566042,5631406,2711395,1062915,-5136345]),new Jr([-19240248,-11254599,-29509029,-7499965,-5835763,13005411,-6066489,12194497,32960380,1459310]))],[new ti(new Jr([19852034,7027924,23669353,10020366,8586503,-6657907,394197,-6101885,18638003,-11174937]),new Jr([31395534,15098109,26581030,8030562,-16527914,-5007134,9012486,-7584354,-6643087,-5442636]),new Jr([-9192165,-2347377,-1997099,4529534,25766844,607986,-13222,9677543,-32294889,-6456008])),new ti(new Jr([-2444496,-149937,29348902,8186665,1873760,12489863,-30934579,-7839692,-7852844,-8138429]),new Jr([-15236356,-15433509,7766470,746860,26346930,-10221762,-27333451,10754588,-9431476,5203576]),new Jr([31834314,14135496,-770007,5159118,20917671,-16768096,-7467973,-7337524,31809243,7347066])),new ti(new Jr([-9606723,-11874240,20414459,13033986,13716524,-11691881,19797970,-12211255,15192876,-2087490]),new Jr([-12663563,-2181719,1168162,-3804809,26747877,-14138091,10609330,12694420,33473243,-13382104]),new Jr([33184999,11180355,15832085,-11385430,-1633671,225884,15089336,-11023903,-6135662,14480053])),new ti(new Jr([31308717,-5619998,31030840,-1897099,15674547,-6582883,5496208,13685227,27595050,8737275]),new Jr([-20318852,-15150239,10933843,-16178022,8335352,-7546022,-31008351,-12610604,26498114,66511]),new Jr([22644454,-8761729,-16671776,4884562,-3105614,-13559366,30540766,-4286747,-13327787,-7515095])),new ti(new Jr([-28017847,9834845,18617207,-2681312,-3401956,-13307506,8205540,13585437,-17127465,15115439]),new Jr([23711543,-672915,31206561,-8362711,6164647,-9709987,-33535882,-1426096,8236921,16492939]),new Jr([-23910559,-13515526,-26299483,-4503841,25005590,-7687270,19574902,10071562,6708380,-6222424])),new ti(new Jr([2101391,-4930054,19702731,2367575,-15427167,1047675,5301017,9328700,29955601,-11678310]),new Jr([3096359,9271816,-21620864,-15521844,-14847996,-7592937,-25892142,-12635595,-9917575,6216608]),new Jr([-32615849,338663,-25195611,2510422,-29213566,-13820213,24822830,-6146567,-26767480,7525079])),new ti(new Jr([-23066649,-13985623,16133487,-7896178,-3389565,778788,-910336,-2782495,-19386633,11994101]),new Jr([21691500,-13624626,-641331,-14367021,3285881,-3483596,-25064666,9718258,-7477437,13381418]),new Jr([18445390,-4202236,14979846,11622458,-1727110,-3582980,23111648,-6375247,28535282,15779576])),new ti(new Jr([30098053,3089662,-9234387,16662135,-21306940,11308411,-14068454,12021730,9955285,-16303356]),new Jr([9734894,-14576830,-7473633,-9138735,2060392,11313496,-18426029,9924399,20194861,13380996]),new Jr([-26378102,-7965207,-22167821,15789297,-18055342,-6168792,-1984914,15707771,26342023,10146099]))],[new ti(new Jr([-26016874,-219943,21339191,-41388,19745256,-2878700,-29637280,2227040,21612326,-545728]),new Jr([-13077387,1184228,23562814,-5970442,-20351244,-6348714,25764461,12243797,-20856566,11649658]),new Jr([-10031494,11262626,27384172,2271902,26947504,-15997771,39944,6114064,33514190,2333242])),new ti(new Jr([-21433588,-12421821,8119782,7219913,-21830522,-9016134,-6679750,-12670638,24350578,-13450001]),new Jr([-4116307,-11271533,-23886186,4843615,-30088339,690623,-31536088,-10406836,8317860,12352766]),new Jr([18200138,-14475911,-33087759,-2696619,-23702521,-9102511,-23552096,-2287550,20712163,6719373])),new ti(new Jr([26656208,6075253,-7858556,1886072,-28344043,4262326,11117530,-3763210,26224235,-3297458]),new Jr([-17168938,-14854097,-3395676,-16369877,-19954045,14050420,21728352,9493610,18620611,-16428628]),new Jr([-13323321,13325349,11432106,5964811,18609221,6062965,-5269471,-9725556,-30701573,-16479657])),new ti(new Jr([-23860538,-11233159,26961357,1640861,-32413112,-16737940,12248509,-5240639,13735342,1934062]),new Jr([25089769,6742589,17081145,-13406266,21909293,-16067981,-15136294,-3765346,-21277997,5473616]),new Jr([31883677,-7961101,1083432,-11572403,22828471,13290673,-7125085,12469656,29111212,-5451014])),new ti(new Jr([24244947,-15050407,-26262976,2791540,-14997599,16666678,24367466,6388839,-10295587,452383]),new Jr([-25640782,-3417841,5217916,16224624,19987036,-4082269,-24236251,-5915248,15766062,8407814]),new Jr([-20406999,13990231,15495425,16395525,5377168,15166495,-8917023,-4388953,-8067909,2276718])),new ti(new Jr([30157918,12924066,-17712050,9245753,19895028,3368142,-23827587,5096219,22740376,-7303417]),new Jr([2041139,-14256350,7783687,13876377,-25946985,-13352459,24051124,13742383,-15637599,13295222]),new Jr([33338237,-8505733,12532113,7977527,9106186,-1715251,-17720195,-4612972,-4451357,-14669444])),new ti(new Jr([-20045281,5454097,-14346548,6447146,28862071,1883651,-2469266,-4141880,7770569,9620597]),new Jr([23208068,7979712,33071466,8149229,1758231,-10834995,30945528,-1694323,-33502340,-14767970]),new Jr([1439958,-16270480,-1079989,-793782,4625402,10647766,-5043801,1220118,30494170,-11440799])),new ti(new Jr([-5037580,-13028295,-2970559,-3061767,15640974,-6701666,-26739026,926050,-1684339,-13333647]),new Jr([13908495,-3549272,30919928,-6273825,-21521863,7989039,9021034,9078865,3353509,4033511]),new Jr([-29663431,-15113610,32259991,-344482,24295849,-12912123,23161163,8839127,27485041,7356032]))],[new ti(new Jr([9661027,705443,11980065,-5370154,-1628543,14661173,-6346142,2625015,28431036,-16771834]),new Jr([-23839233,-8311415,-25945511,7480958,-17681669,-8354183,-22545972,14150565,15970762,4099461]),new Jr([29262576,16756590,26350592,-8793563,8529671,-11208050,13617293,-9937143,11465739,8317062])),new ti(new Jr([-25493081,-6962928,32500200,-9419051,-23038724,-2302222,14898637,3848455,20969334,-5157516]),new Jr([-20384450,-14347713,-18336405,13884722,-33039454,2842114,-21610826,-3649888,11177095,14989547]),new Jr([-24496721,-11716016,16959896,2278463,12066309,10137771,13515641,2581286,-28487508,9930240])),new ti(new Jr([-17751622,-2097826,16544300,-13009300,-15914807,-14949081,18345767,-13403753,16291481,-5314038]),new Jr([-33229194,2553288,32678213,9875984,8534129,6889387,-9676774,6957617,4368891,9788741]),new Jr([16660756,7281060,-10830758,12911820,20108584,-8101676,-21722536,-8613148,16250552,-11111103])),new ti(new Jr([-19765507,2390526,-16551031,14161980,1905286,6414907,4689584,10604807,-30190403,4782747]),new Jr([-1354539,14736941,-7367442,-13292886,7710542,-14155590,-9981571,4383045,22546403,437323]),new Jr([31665577,-12180464,-16186830,1491339,-18368625,3294682,27343084,2786261,-30633590,-14097016])),new ti(new Jr([-14467279,-683715,-33374107,7448552,19294360,14334329,-19690631,2355319,-19284671,-6114373]),new Jr([15121312,-15796162,6377020,-6031361,-10798111,-12957845,18952177,15496498,-29380133,11754228]),new Jr([-2637277,-13483075,8488727,-14303896,12728761,-1622493,7141596,11724556,22761615,-10134141])),new ti(new Jr([16918416,11729663,-18083579,3022987,-31015732,-13339659,-28741185,-12227393,32851222,11717399]),new Jr([11166634,7338049,-6722523,4531520,-29468672,-7302055,31474879,3483633,-1193175,-4030831]),new Jr([-185635,9921305,31456609,-13536438,-12013818,13348923,33142652,6546660,-19985279,-3948376])),new ti(new Jr([-32460596,11266712,-11197107,-7899103,31703694,3855903,-8537131,-12833048,-30772034,-15486313]),new Jr([-18006477,12709068,3991746,-6479188,-21491523,-10550425,-31135347,-16049879,10928917,3011958]),new Jr([-6957757,-15594337,31696059,334240,29576716,14796075,-30831056,-12805180,18008031,10258577])),new ti(new Jr([-22448644,15655569,7018479,-4410003,-30314266,-1201591,-1853465,1367120,25127874,6671743]),new Jr([29701166,-14373934,-10878120,9279288,-17568,13127210,21382910,11042292,25838796,4642684]),new Jr([-20430234,14955537,-24126347,8124619,-5369288,-5990470,30468147,-13900640,18423289,4177476]))]],ui=function(){function e(t,n,r){Oe(this,e),this.X=null!==t&&void 0!==t?t:new Jr,this.Y=null!==n&&void 0!==n?n:new Jr,this.Z=null!==r&&void 0!==r?r:new Jr}return Le(e,[{key:"zero",value:function(){this.X.zero(),this.Y.one(),this.Z.one()}},{key:"double",value:function(e){var t=new Jr;e.X.square(this.X),e.Z.square(this.Y),e.T.square2(this.Z),e.Y.add(this.X,this.Y),t.square(e.Y),e.Y.add(e.Z,e.X),e.Z.sub(e.Z,e.X),e.X.sub(t,e.Y),e.T.sub(e.T,e.Z)}},{key:"toExtended",value:function(e){e.X.mul(this.X,this.Z),e.Y.mul(this.Y,this.Z),e.Z.square(this.Z),e.T.mul(this.X,this.Y)}},{key:"toBytes",value:function(e){var t=new Jr,n=new Jr,r=new Jr;t.invert(this.Z),n.mul(this.X,t),r.mul(this.Y,t),r.toBytes(e),e[31]^=n.isNegative()<<7}},{key:"doubleScalarMultVartime",value:function(e,t,n){var r,i=new Int8Array(256),a=new Int8Array(256),o=[new Qr,new Qr,new Qr,new Qr,new Qr,new Qr,new Qr,new Qr],s=new ei,u=new li,l=new li;for(this.slide(i,e),this.slide(a,n),t.toCached(o[0]),t.double(s),s.toExtended(l),r=0;r<7;r++)s.add(l,o[r]),s.toExtended(u),u.toCached(o[r+1]);for(this.zero(),r=255;r>=0&&(0===i[r]&&0===a[r]);r--);for(;r>=0;r--)this.double(s),i[r]>0?(s.toExtended(u),s.add(u,o[Math.floor(i[r]/2)])):i[r]<0&&(s.toExtended(u),s.sub(u,o[Math.floor(-i[r]/2)])),a[r]>0?(s.toExtended(u),s.mixedAdd(u,oi[Math.floor(a[r]/2)])):a[r]<0&&(s.toExtended(u),s.mixedSub(u,oi[Math.floor(-a[r]/2)])),s.toProjective(this)}},{key:"slide",value:function(e,t){var n;for(n=0;n>3]>>(7&n);for(n=0;n=-15))break;e[n]-=e[n+r]<>7&&this.X.neg(),this.T.mul(this.X,this.Y),!0}},{key:"scalarMultBase",value:function(e){for(var t=new Int8Array(64),n=0;n>4&15;for(var r=0,i=0;i<63;i++)t[i]+=r,r=t[i]+8>>4,t[i]-=r<<4;t[63]+=r,this.zero();for(var a=new ti,o=new ei,s=1;s<64;s+=2)a.selectPoint(Math.floor(s/2),t[s]),o.mixedAdd(this,a),o.toExtended(this);var u=new ui;this.double(o),o.toProjective(u),u.double(o),o.toProjective(u),u.double(o),o.toProjective(u),u.double(o),o.toExtended(this);for(var l=0;l<64;l+=2)a.selectPoint(l/2,t[l]),o.mixedAdd(this,a),o.toExtended(this)}},{key:"cofactorEqual",value:function(e){var t=new Qr,n=new ei,r=new ui;e.toCached(t),n.sub(this,t),n.toProjective(r),r.double(n),n.toProjective(r),r.double(n),n.toProjective(r),r.double(n),n.toProjective(r);var i=new Uint8Array(32),a=new Uint8Array(32),o=new Uint8Array(32),s=new Uint8Array(32);return r.X.toBytes(a),r.Y.toBytes(o),r.Z.toBytes(s),zr.equal(i,a)&&zr.equal(o,s)}}]),e}();function ci(e,t){var n=$r.and(Pr.read3(t,0)),r=$r.and(Pr.read4(t,2).shiftRight(Yr[5])),i=$r.and(Pr.read3(t,5).shiftRight(Yr[2])),a=$r.and(Pr.read4(t,7).shiftRight(Yr[7])),o=$r.and(Pr.read4(t,10).shiftRight(Yr[4])),s=$r.and(Pr.read3(t,13).shiftRight(Yr[1])),u=$r.and(Pr.read4(t,15).shiftRight(Yr[6])),l=$r.and(Pr.read3(t,18).shiftRight(Yr[3])),c=$r.and(Pr.read3(t,21)),d=$r.and(Pr.read4(t,23).shiftRight(Yr[5])),f=$r.and(Pr.read3(t,26).shiftRight(Yr[2])),h=$r.and(Pr.read4(t,28).shiftRight(Yr[7])),p=$r.and(Pr.read4(t,31).shiftRight(Yr[4])),m=$r.and(Pr.read3(t,34).shiftRight(Yr[1])),v=$r.and(Pr.read4(t,36).shiftRight(Yr[6])),y=$r.and(Pr.read3(t,39).shiftRight(Yr[3])),g=$r.and(Pr.read3(t,42)),w=$r.and(Pr.read4(t,44).shiftRight(Yr[5])),b=$r.and(Pr.read3(t,47).shiftRight(Yr[2])),_=$r.and(Pr.read4(t,49).shiftRight(Yr[7])),k=$r.and(Pr.read4(t,52).shiftRight(Yr[4])),x=$r.and(Pr.read3(t,55).shiftRight(Yr[1])),S=$r.and(Pr.read4(t,57).shiftRight(Yr[6])),E=Pr.read4(t,60).shiftRight(Yr[3]);h=h.add(E.times(Hr)),p=p.add(E.times(Wr)),m=m.add(E.times(qr)),v=v.minus(E.times(Gr)),y=y.add(E.times(Zr)),g=g.minus(E.times(Xr)),E=Yr[0],f=f.add(S.times(Hr)),h=h.add(S.times(Wr)),p=p.add(S.times(qr)),m=m.minus(S.times(Gr)),v=v.add(S.times(Zr)),y=y.minus(S.times(Xr)),S=Yr[0],d=d.add(x.times(Hr)),f=f.add(x.times(Wr)),h=h.add(x.times(qr)),p=p.minus(x.times(Gr)),m=m.add(x.times(Zr)),v=v.minus(x.times(Xr)),x=Yr[0],c=c.add(k.times(Hr)),d=d.add(k.times(Wr)),f=f.add(k.times(qr)),h=h.minus(k.times(Gr)),p=p.add(k.times(Zr)),m=m.minus(k.times(Xr)),k=Yr[0],l=l.add(_.times(Hr)),c=c.add(_.times(Wr)),d=d.add(_.times(qr)),f=f.minus(_.times(Gr)),h=h.add(_.times(Zr)),p=p.minus(_.times(Xr)),_=Yr[0],u=u.add(b.times(Hr)),l=l.add(b.times(Wr)),c=c.add(b.times(qr)),d=d.minus(b.times(Gr)),f=f.add(b.times(Zr)),h=h.minus(b.times(Xr)),b=Yr[0];for(var C=[],N=0;N<17;N++)C[N]=Lr(0);C[6]=u.add(Br).shiftRight(Yr[21]),l=l.add(C[6]),u=u.minus(C[6].shiftLeft(Yr[21])),C[8]=c.add(Br).shiftRight(Yr[21]),d=d.add(C[8]),c=c.minus(C[8].shiftLeft(Yr[21])),C[10]=f.add(Br).shiftRight(Yr[21]),h=h.add(C[10]),f=f.minus(C[10].shiftLeft(Yr[21])),C[12]=p.add(Br).shiftRight(Yr[21]),m=m.add(C[12]),p=p.minus(C[12].shiftLeft(Yr[21])),C[14]=v.add(Br).shiftRight(Yr[21]),y=y.add(C[14]),v=v.minus(C[14].shiftLeft(Yr[21])),C[16]=g.add(Br).shiftRight(Yr[21]),w=w.add(C[16]),g=g.minus(C[16].shiftLeft(Yr[21])),C[7]=l.add(Br).shiftRight(Yr[21]),c=c.add(C[7]),l=l.minus(C[7].shiftLeft(Yr[21])),C[9]=d.add(Br).shiftRight(Yr[21]),f=f.add(C[9]),d=d.minus(C[9].shiftLeft(Yr[21])),C[11]=h.add(Br).shiftRight(Yr[21]),p=p.add(C[11]),h=h.minus(C[11].shiftLeft(Yr[21])),C[13]=m.add(Br).shiftRight(Yr[21]),v=v.add(C[13]),m=m.minus(C[13].shiftLeft(Yr[21])),C[15]=y.add(Br).shiftRight(Yr[21]),g=g.add(C[15]),y=y.minus(C[15].shiftLeft(Yr[21])),s=s.add(w.times(Hr)),u=u.add(w.times(Wr)),l=l.add(w.times(qr)),c=c.minus(w.times(Gr)),d=d.add(w.times(Zr)),f=f.minus(w.times(Xr)),w=Yr[0],o=o.add(g.times(Hr)),s=s.add(g.times(Wr)),u=u.add(g.times(qr)),l=l.minus(g.times(Gr)),c=c.add(g.times(Zr)),d=d.minus(g.times(Xr)),g=Yr[0],a=a.add(y.times(Hr)),o=o.add(y.times(Wr)),s=s.add(y.times(qr)),u=u.minus(y.times(Gr)),l=l.add(y.times(Zr)),c=c.minus(y.times(Xr)),y=Yr[0],i=i.add(v.times(Hr)),a=a.add(v.times(Wr)),o=o.add(v.times(qr)),s=s.minus(v.times(Gr)),u=u.add(v.times(Zr)),l=l.minus(v.times(Xr)),v=Yr[0],r=r.add(m.times(Hr)),i=i.add(m.times(Wr)),a=a.add(m.times(qr)),o=o.minus(m.times(Gr)),s=s.add(m.times(Zr)),u=u.minus(m.times(Xr)),m=Yr[0],n=n.add(p.times(Hr)),r=r.add(p.times(Wr)),i=i.add(p.times(qr)),a=a.minus(p.times(Gr)),o=o.add(p.times(Zr)),s=s.minus(p.times(Xr)),p=Yr[0],C[0]=n.add(Br).shiftRight(Yr[21]),r=r.add(C[0]),n=n.minus(C[0].shiftLeft(Yr[21])),C[2]=i.add(Br).shiftRight(Yr[21]),a=a.add(C[2]),i=i.minus(C[2].shiftLeft(Yr[21])),C[4]=o.add(Br).shiftRight(Yr[21]),s=s.add(C[4]),o=o.minus(C[4].shiftLeft(Yr[21])),C[6]=u.add(Br).shiftRight(Yr[21]),l=l.add(C[6]),u=u.minus(C[6].shiftLeft(Yr[21])),C[8]=c.add(Br).shiftRight(Yr[21]),d=d.add(C[8]),c=c.minus(C[8].shiftLeft(Yr[21])),C[10]=f.add(Br).shiftRight(Yr[21]),h=h.add(C[10]),f=f.minus(C[10].shiftLeft(Yr[21])),C[1]=r.add(Br).shiftRight(Yr[21]),i=i.add(C[1]),r=r.minus(C[1].shiftLeft(Yr[21])),C[3]=a.add(Br).shiftRight(Yr[21]),o=o.add(C[3]),a=a.minus(C[3].shiftLeft(Yr[21])),C[5]=s.add(Br).shiftRight(Yr[21]),u=u.add(C[5]),s=s.minus(C[5].shiftLeft(Yr[21])),C[7]=l.add(Br).shiftRight(Yr[21]),c=c.add(C[7]),l=l.minus(C[7].shiftLeft(Yr[21])),C[9]=d.add(Br).shiftRight(Yr[21]),f=f.add(C[9]),d=d.minus(C[9].shiftLeft(Yr[21])),C[11]=h.add(Br).shiftRight(Yr[21]),p=p.add(C[11]),h=h.minus(C[11].shiftLeft(Yr[21])),n=n.add(p.times(Hr)),r=r.add(p.times(Wr)),i=i.add(p.times(qr)),a=a.minus(p.times(Gr)),o=o.add(p.times(Zr)),s=s.minus(p.times(Xr)),p=Yr[0],C[0]=n.shiftRight(Yr[21]),r=r.add(C[0]),n=n.minus(C[0].shiftLeft(Yr[21])),C[1]=r.shiftRight(Yr[21]),i=i.add(C[1]),r=r.minus(C[1].shiftLeft(Yr[21])),C[2]=i.shiftRight(Yr[21]),a=a.add(C[2]),i=i.minus(C[2].shiftLeft(Yr[21])),C[3]=a.shiftRight(Yr[21]),o=o.add(C[3]),a=a.minus(C[3].shiftLeft(Yr[21])),C[4]=o.shiftRight(Yr[21]),s=s.add(C[4]),o=o.minus(C[4].shiftLeft(Yr[21])),C[5]=s.shiftRight(Yr[21]),u=u.add(C[5]),s=s.minus(C[5].shiftLeft(Yr[21])),C[6]=u.shiftRight(Yr[21]),l=l.add(C[6]),u=u.minus(C[6].shiftLeft(Yr[21])),C[7]=l.shiftRight(Yr[21]),c=c.add(C[7]),l=l.minus(C[7].shiftLeft(Yr[21])),C[8]=c.shiftRight(Yr[21]),d=d.add(C[8]),c=c.minus(C[8].shiftLeft(Yr[21])),C[9]=d.shiftRight(Yr[21]),f=f.add(C[9]),d=d.minus(C[9].shiftLeft(Yr[21])),C[10]=f.shiftRight(Yr[21]),h=h.add(C[10]),f=f.minus(C[10].shiftLeft(Yr[21])),C[11]=h.shiftRight(Yr[21]),p=p.add(C[11]),h=h.minus(C[11].shiftLeft(Yr[21])),n=n.add(p.times(Hr)),r=r.add(p.times(Wr)),i=i.add(p.times(qr)),a=a.minus(p.times(Gr)),o=o.add(p.times(Zr)),s=s.minus(p.times(Xr)),p=Yr[0],C[0]=n.shiftRight(Yr[21]),r=r.add(C[0]),n=n.minus(C[0].shiftLeft(Yr[21])),C[1]=r.shiftRight(Yr[21]),i=i.add(C[1]),r=r.minus(C[1].shiftLeft(Yr[21])),C[2]=i.shiftRight(Yr[21]),a=a.add(C[2]),i=i.minus(C[2].shiftLeft(Yr[21])),C[3]=a.shiftRight(Yr[21]),o=o.add(C[3]),a=a.minus(C[3].shiftLeft(Yr[21])),C[4]=o.shiftRight(Yr[21]),s=s.add(C[4]),o=o.minus(C[4].shiftLeft(Yr[21])),C[5]=s.shiftRight(Yr[21]),u=u.add(C[5]),s=s.minus(C[5].shiftLeft(Yr[21])),C[6]=u.shiftRight(Yr[21]),l=l.add(C[6]),u=u.minus(C[6].shiftLeft(Yr[21])),C[7]=l.shiftRight(Yr[21]),c=c.add(C[7]),l=l.minus(C[7].shiftLeft(Yr[21])),C[8]=c.shiftRight(Yr[21]),d=d.add(C[8]),c=c.minus(C[8].shiftLeft(Yr[21])),C[9]=d.shiftRight(Yr[21]),f=f.add(C[9]),d=d.minus(C[9].shiftLeft(Yr[21])),C[10]=f.shiftRight(Yr[21]),h=h.add(C[10]),f=f.minus(C[10].shiftLeft(Yr[21])),e[0]=n.shiftRight(Yr[0]).toJSNumber(),e[1]=n.shiftRight(Yr[8]).toJSNumber(),e[2]=n.shiftRight(Yr[16]).or(r.shiftLeft(Yr[5])).toJSNumber(),e[3]=r.shiftRight(Yr[3]).toJSNumber(),e[4]=r.shiftRight(Yr[11]).toJSNumber(),e[5]=r.shiftRight(Yr[19]).or(i.shiftLeft(Yr[2])).toJSNumber(),e[6]=i.shiftRight(Yr[6]).toJSNumber(),e[7]=i.shiftRight(Yr[14]).or(a.shiftLeft(Yr[7])).toJSNumber(),e[8]=a.shiftRight(Yr[1]).toJSNumber(),e[9]=a.shiftRight(Yr[9]).toJSNumber(),e[10]=a.shiftRight(Yr[17]).or(o.shiftLeft(Yr[4])).toJSNumber(),e[11]=o.shiftRight(Yr[4]).toJSNumber(),e[12]=o.shiftRight(Yr[12]).toJSNumber(),e[13]=o.shiftRight(Yr[20]).or(s.shiftLeft(Yr[1])).toJSNumber(),e[14]=s.shiftRight(Yr[7]).toJSNumber(),e[15]=s.shiftRight(Yr[15]).or(u.shiftLeft(Yr[6])).toJSNumber(),e[16]=u.shiftRight(Yr[2]).toJSNumber(),e[17]=u.shiftRight(Yr[10]).toJSNumber(),e[18]=u.shiftRight(Yr[18]).or(l.shiftLeft(Yr[3])).toJSNumber(),e[19]=l.shiftRight(Yr[5]).toJSNumber(),e[20]=l.shiftRight(Yr[13]).toJSNumber(),e[21]=c.shiftRight(Yr[0]).toJSNumber(),e[22]=c.shiftRight(Yr[8]).toJSNumber(),e[23]=c.shiftRight(Yr[16]).or(d.shiftLeft(Yr[5])).toJSNumber(),e[24]=d.shiftRight(Yr[3]).toJSNumber(),e[25]=d.shiftRight(Yr[11]).toJSNumber(),e[26]=d.shiftRight(Yr[19]).or(f.shiftLeft(Yr[2])).toJSNumber(),e[27]=f.shiftRight(Yr[6]).toJSNumber(),e[28]=f.shiftRight(Yr[14]).or(h.shiftLeft(Yr[7])).toJSNumber(),e[29]=h.shiftRight(Yr[1]).toJSNumber(),e[30]=h.shiftRight(Yr[9]).toJSNumber(),e[31]=h.shiftRight(Yr[17]).toJSNumber()}var di=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"publicKeyFromPrivateKey",value:function(e){return e.subarray(32).slice()}},{key:"keyPairFromSeed",value:function(t){var n=e.privateKeyFromSeed(t.slice(0,e.SEED_SIZE));return{privateKey:n,publicKey:e.publicKeyFromPrivateKey(n)}}},{key:"privateKeyFromSeed",value:function(t){if(!t||t.length!==e.SEED_SIZE)throw new Error("The seed length is incorrect, it should be ".concat(e.SEED_SIZE," but is ").concat(t?t.length:0));var n=new Er;n.update(t);var r=n.digest();r[0]&=248,r[31]&=127,r[31]|=64;var i=new li;i.scalarMultBase(r);var a=new Uint8Array(32);i.toBytes(a);var o=new Uint8Array(e.PRIVATE_KEY_SIZE);return o.set(t),o.set(a,32),o}},{key:"sign",value:function(t,n){if(!t||t.length!==e.PRIVATE_KEY_SIZE)throw new Error("Bad private key length");var r=new Er;r.update(t.subarray(0,32));var i=r.digest(),a=i.slice();a[0]&=248,a[31]&=63,a[31]|=64,(r=new Er).update(i.subarray(32)),r.update(n);var o=r.digest(),s=new Uint8Array(32);ci(s,o);var u=new li;u.scalarMultBase(s);var l=new Uint8Array(32);u.toBytes(l),(r=new Er).update(l),r.update(t.subarray(32)),r.update(n);var c=r.digest(),d=new Uint8Array(32);ci(d,c);var f=new Uint8Array(32);!function(e,t,n,r){for(var i=$r.and(Pr.read3(t,0)),a=$r.and(Pr.read4(t,2).shiftRight(Yr[5])),o=$r.and(Pr.read3(t,5).shiftRight(Yr[2])),s=$r.and(Pr.read4(t,7).shiftRight(Yr[7])),u=$r.and(Pr.read4(t,10).shiftRight(Yr[4])),l=$r.and(Pr.read3(t,13).shiftRight(Yr[1])),c=$r.and(Pr.read4(t,15).shiftRight(Yr[6])),d=$r.and(Pr.read3(t,18).shiftRight(Yr[3])),f=$r.and(Pr.read3(t,21)),h=$r.and(Pr.read4(t,23).shiftRight(Yr[5])),p=$r.and(Pr.read3(t,26).shiftRight(Yr[2])),m=Pr.read4(t,28).shiftRight(Yr[7]),v=$r.and(Pr.read3(n,0)),y=$r.and(Pr.read4(n,2).shiftRight(Yr[5])),g=$r.and(Pr.read3(n,5).shiftRight(Yr[2])),w=$r.and(Pr.read4(n,7).shiftRight(Yr[7])),b=$r.and(Pr.read4(n,10).shiftRight(Yr[4])),_=$r.and(Pr.read3(n,13).shiftRight(Yr[1])),k=$r.and(Pr.read4(n,15).shiftRight(Yr[6])),x=$r.and(Pr.read3(n,18).shiftRight(Yr[3])),S=$r.and(Pr.read3(n,21)),E=$r.and(Pr.read4(n,23).shiftRight(Yr[5])),C=$r.and(Pr.read3(n,26).shiftRight(Yr[2])),N=Pr.read4(n,28).shiftRight(Yr[7]),O=$r.and(Pr.read3(r,0)),M=$r.and(Pr.read4(r,2).shiftRight(Yr[5])),L=$r.and(Pr.read3(r,5).shiftRight(Yr[2])),P=$r.and(Pr.read4(r,7).shiftRight(Yr[7])),T=$r.and(Pr.read4(r,10).shiftRight(Yr[4])),j=$r.and(Pr.read3(r,13).shiftRight(Yr[1])),I=$r.and(Pr.read4(r,15).shiftRight(Yr[6])),R=$r.and(Pr.read3(r,18).shiftRight(Yr[3])),A=$r.and(Pr.read3(r,21)),D=$r.and(Pr.read4(r,23).shiftRight(Yr[5])),z=$r.and(Pr.read3(r,26).shiftRight(Yr[2])),B=Pr.read4(r,28).shiftRight(Yr[7]),U=[],F=0;F<32;F++)U[F]=Lr(0);var Y=O.add(i.times(v)),V=M.add(i.times(y).add(a.times(v))),H=L.add(i.times(g).add(a.times(y)).add(o.times(v))),W=P.add(i.times(w).add(a.times(g)).add(o.times(y)).add(s.times(v))),q=T.add(i.times(b).add(a.times(w)).add(o.times(g)).add(s.times(y)).add(u.times(v))),G=j.add(i.times(_).add(a.times(b)).add(o.times(w)).add(s.times(g)).add(u.times(y)).add(l.times(v))),Z=I.add(i.times(k).add(a.times(_)).add(o.times(b)).add(s.times(w)).add(u.times(g)).add(l.times(y)).add(c.times(v))),X=R.add(i.times(x).add(a.times(k)).add(o.times(_)).add(s.times(b)).add(u.times(w)).add(l.times(g)).add(c.times(y))).add(d.times(v)),$=A.add(i.times(S).add(a.times(x)).add(o.times(k)).add(s.times(_)).add(u.times(b)).add(l.times(w)).add(c.times(g)).add(d.times(y)).add(f.times(v))),K=D.add(i.times(E)).add(a.times(S)).add(o.times(x)).add(s.times(k)).add(u.times(_)).add(l.times(b)).add(c.times(w)).add(d.times(g)).add(f.times(y)).add(h.times(v)),J=z.add(i.times(C)).add(a.times(E)).add(o.times(S)).add(s.times(x)).add(u.times(k)).add(l.times(_)).add(c.times(b)).add(d.times(w)).add(f.times(g)).add(h.times(y)).add(p.times(v)),Q=B.add(i.times(N)).add(a.times(C)).add(o.times(E)).add(s.times(S)).add(u.times(x)).add(l.times(k)).add(c.times(_)).add(d.times(b)).add(f.times(w)).add(h.times(g)).add(p.times(y)).add(m.times(v)),ee=a.times(N).add(o.times(C)).add(s.times(E)).add(u.times(S)).add(l.times(x)).add(c.times(k)).add(d.times(_)).add(f.times(b)).add(h.times(w)).add(p.times(g)).add(m.times(y)),te=o.times(N).add(s.times(C)).add(u.times(E)).add(l.times(S)).add(c.times(x)).add(d.times(k)).add(f.times(_)).add(h.times(b)).add(p.times(w)).add(m.times(g)),ne=s.times(N).add(u.times(C)).add(l.times(E)).add(c.times(S)).add(d.times(x)).add(f.times(k)).add(h.times(_)).add(p.times(b)).add(m.times(w)),re=u.times(N).add(l.times(C)).add(c.times(E)).add(d.times(S)).add(f.times(x)).add(h.times(k)).add(p.times(_)).add(m.times(b)),ie=l.times(N).add(c.times(C)).add(d.times(E)).add(f.times(S)).add(h.times(x)).add(p.times(k)).add(m.times(_)),ae=c.times(N).add(d.times(C)).add(f.times(E)).add(h.times(S)).add(p.times(x)).add(m.times(k)),oe=d.times(N).add(f.times(C)).add(h.times(E)).add(p.times(S)).add(m.times(x)),se=f.times(N).add(h.times(C)).add(p.times(E)).add(m.times(S)),ue=h.times(N).add(p.times(C)).add(m.times(E)),le=p.times(N).add(m.times(C)),ce=m.times(N),de=Yr[0];U[0]=Y.add(Br).shiftRight(Yr[21]),V=V.add(U[0]),Y=Y.minus(U[0].shiftLeft(Yr[21])),U[2]=H.add(Br).shiftRight(Yr[21]),W=W.add(U[2]),H=H.minus(U[2].shiftLeft(Yr[21])),U[4]=q.add(Br).shiftRight(Yr[21]),G=G.add(U[4]),q=q.minus(U[4].shiftLeft(Yr[21])),U[6]=Z.add(Br).shiftRight(Yr[21]),X=X.add(U[6]),Z=Z.minus(U[6].shiftLeft(Yr[21])),U[8]=$.add(Br).shiftRight(Yr[21]),K=K.add(U[8]),$=$.minus(U[8].shiftLeft(Yr[21])),U[10]=J.add(Br).shiftRight(Yr[21]),Q=Q.add(U[10]),J=J.minus(U[10].shiftLeft(Yr[21])),U[12]=ee.add(Br).shiftRight(Yr[21]),te=te.add(U[12]),ee=ee.minus(U[12].shiftLeft(Yr[21])),U[14]=ne.add(Br).shiftRight(Yr[21]),re=re.add(U[14]),ne=ne.minus(U[14].shiftLeft(Yr[21])),U[16]=ie.add(Br).shiftRight(Yr[21]),ae=ae.add(U[16]),ie=ie.minus(U[16].shiftLeft(Yr[21])),U[18]=oe.add(Br).shiftRight(Yr[21]),se=se.add(U[18]),oe=oe.minus(U[18].shiftLeft(Yr[21])),U[20]=ue.add(Br).shiftRight(Yr[21]),le=le.add(U[20]),ue=ue.minus(U[20].shiftLeft(Yr[21])),U[22]=ce.add(Br).shiftRight(Yr[21]),de=de.add(U[22]),ce=ce.minus(U[22].shiftLeft(Yr[21])),U[1]=V.add(Br).shiftRight(Yr[21]),H=H.add(U[1]),V=V.minus(U[1].shiftLeft(Yr[21])),U[3]=W.add(Br).shiftRight(Yr[21]),q=q.add(U[3]),W=W.minus(U[3].shiftLeft(Yr[21])),U[5]=G.add(Br).shiftRight(Yr[21]),Z=Z.add(U[5]),G=G.minus(U[5].shiftLeft(Yr[21])),U[7]=X.add(Br).shiftRight(Yr[21]),$=$.add(U[7]),X=X.minus(U[7].shiftLeft(Yr[21])),U[9]=K.add(Br).shiftRight(Yr[21]),J=J.add(U[9]),K=K.minus(U[9].shiftLeft(Yr[21])),U[11]=Q.add(Br).shiftRight(Yr[21]),ee=ee.add(U[11]),Q=Q.minus(U[11].shiftLeft(Yr[21])),U[13]=te.add(Br).shiftRight(Yr[21]),ne=ne.add(U[13]),te=te.minus(U[13].shiftLeft(Yr[21])),U[15]=re.add(Br).shiftRight(Yr[21]),ie=ie.add(U[15]),re=re.minus(U[15].shiftLeft(Yr[21])),U[17]=ae.add(Br).shiftRight(Yr[21]),oe=oe.add(U[17]),ae=ae.minus(U[17].shiftLeft(Yr[21])),U[19]=se.add(Br).shiftRight(Yr[21]),ue=ue.add(U[19]),se=se.minus(U[19].shiftLeft(Yr[21])),U[21]=le.add(Br).shiftRight(Yr[21]),ce=ce.add(U[21]),le=le.minus(U[21].shiftLeft(Yr[21])),Q=Q.add(de.times(Hr)),ee=ee.add(de.times(Wr)),te=te.add(de.times(qr)),ne=ne.minus(de.times(Gr)),re=re.add(de.times(Zr)),ie=ie.minus(de.times(Xr)),de=Yr[0],J=J.add(ce.times(Hr)),Q=Q.add(ce.times(Wr)),ee=ee.add(ce.times(qr)),te=te.minus(ce.times(Gr)),ne=ne.add(ce.times(Zr)),re=re.minus(ce.times(Xr)),ce=Yr[0],K=K.add(le.times(Hr)),J=J.add(le.times(Wr)),Q=Q.add(le.times(qr)),ee=ee.minus(le.times(Gr)),te=te.add(le.times(Zr)),ne=ne.minus(le.times(Xr)),le=Yr[0],$=$.add(ue.times(Hr)),K=K.add(ue.times(Wr)),J=J.add(ue.times(qr)),Q=Q.minus(ue.times(Gr)),ee=ee.add(ue.times(Zr)),te=te.minus(ue.times(Xr)),ue=Yr[0],X=X.add(se.times(Hr)),$=$.add(se.times(Wr)),K=K.add(se.times(qr)),J=J.minus(se.times(Gr)),Q=Q.add(se.times(Zr)),ee=ee.minus(se.times(Xr)),se=Yr[0],Z=Z.add(oe.times(Hr)),X=X.add(oe.times(Wr)),$=$.add(oe.times(qr)),K=K.minus(oe.times(Gr)),J=J.add(oe.times(Zr)),Q=Q.minus(oe.times(Xr)),oe=Yr[0],U[6]=Z.add(Br).shiftRight(Yr[21]),X=X.add(U[6]),Z=Z.minus(U[6].shiftLeft(Yr[21])),U[8]=$.add(Br).shiftRight(Yr[21]),K=K.add(U[8]),$=$.minus(U[8].shiftLeft(Yr[21])),U[10]=J.add(Br).shiftRight(Yr[21]),Q=Q.add(U[10]),J=J.minus(U[10].shiftLeft(Yr[21])),U[12]=ee.add(Br).shiftRight(Yr[21]),te=te.add(U[12]),ee=ee.minus(U[12].shiftLeft(Yr[21])),U[14]=ne.add(Br).shiftRight(Yr[21]),re=re.add(U[14]),ne=ne.minus(U[14].shiftLeft(Yr[21])),U[16]=ie.add(Br).shiftRight(Yr[21]),ae=ae.add(U[16]),ie=ie.minus(U[16].shiftLeft(Yr[21])),U[7]=X.add(Br).shiftRight(Yr[21]),$=$.add(U[7]),X=X.minus(U[7].shiftLeft(Yr[21])),U[9]=K.add(Br).shiftRight(Yr[21]),J=J.add(U[9]),K=K.minus(U[9].shiftLeft(Yr[21])),U[11]=Q.add(Br).shiftRight(Yr[21]),ee=ee.add(U[11]),Q=Q.minus(U[11].shiftLeft(Yr[21])),U[13]=te.add(Br).shiftRight(Yr[21]),ne=ne.add(U[13]),te=te.minus(U[13].shiftLeft(Yr[21])),U[15]=re.add(Br).shiftRight(Yr[21]),ie=ie.add(U[15]),re=re.minus(U[15].shiftLeft(Yr[21])),G=G.add(ae.times(Hr)),Z=Z.add(ae.times(Wr)),X=X.add(ae.times(qr)),$=$.minus(ae.times(Gr)),K=K.add(ae.times(Zr)),J=J.minus(ae.times(Xr)),ae=Yr[0],q=q.add(ie.times(Hr)),G=G.add(ie.times(Wr)),Z=Z.add(ie.times(qr)),X=X.minus(ie.times(Gr)),$=$.add(ie.times(Zr)),K=K.minus(ie.times(Xr)),ie=Yr[0],W=W.add(re.times(Hr)),q=q.add(re.times(Wr)),G=G.add(re.times(qr)),Z=Z.minus(re.times(Gr)),X=X.add(re.times(Zr)),$=$.minus(re.times(Xr)),re=Yr[0],H=H.add(ne.times(Hr)),W=W.add(ne.times(Wr)),q=q.add(ne.times(qr)),G=G.minus(ne.times(Gr)),Z=Z.add(ne.times(Zr)),X=X.minus(ne.times(Xr)),ne=Yr[0],V=V.add(te.times(Hr)),H=H.add(te.times(Wr)),W=W.add(te.times(qr)),q=q.minus(te.times(Gr)),G=G.add(te.times(Zr)),Z=Z.minus(te.times(Xr)),te=Yr[0],Y=Y.add(ee.times(Hr)),V=V.add(ee.times(Wr)),H=H.add(ee.times(qr)),W=W.minus(ee.times(Gr)),q=q.add(ee.times(Zr)),G=G.minus(ee.times(Xr)),ee=Yr[0],U[0]=Y.add(Br).shiftRight(Yr[21]),V=V.add(U[0]),Y=Y.minus(U[0].shiftLeft(Yr[21])),U[2]=H.add(Br).shiftRight(Yr[21]),W=W.add(U[2]),H=H.minus(U[2].shiftLeft(Yr[21])),U[4]=q.add(Br).shiftRight(Yr[21]),G=G.add(U[4]),q=q.minus(U[4].shiftLeft(Yr[21])),U[6]=Z.add(Br).shiftRight(Yr[21]),X=X.add(U[6]),Z=Z.minus(U[6].shiftLeft(Yr[21])),U[8]=$.add(Br).shiftRight(Yr[21]),K=K.add(U[8]),$=$.minus(U[8].shiftLeft(Yr[21])),U[10]=J.add(Br).shiftRight(Yr[21]),Q=Q.add(U[10]),J=J.minus(U[10].shiftLeft(Yr[21])),U[1]=V.add(Br).shiftRight(Yr[21]),H=H.add(U[1]),V=V.minus(U[1].shiftLeft(Yr[21])),U[3]=W.add(Br).shiftRight(Yr[21]),q=q.add(U[3]),W=W.minus(U[3].shiftLeft(Yr[21])),U[5]=G.add(Br).shiftRight(Yr[21]),Z=Z.add(U[5]),G=G.minus(U[5].shiftLeft(Yr[21])),U[7]=X.add(Br).shiftRight(Yr[21]),$=$.add(U[7]),X=X.minus(U[7].shiftLeft(Yr[21])),U[9]=K.add(Br).shiftRight(Yr[21]),J=J.add(U[9]),K=K.minus(U[9].shiftLeft(Yr[21])),U[11]=Q.add(Br).shiftRight(Yr[21]),ee=ee.add(U[11]),Q=Q.minus(U[11].shiftLeft(Yr[21])),Y=Y.add(ee.times(Hr)),V=V.add(ee.times(Wr)),H=H.add(ee.times(qr)),W=W.minus(ee.times(Gr)),q=q.add(ee.times(Zr)),G=G.minus(ee.times(Xr)),ee=Yr[0],U[0]=Y.shiftRight(Yr[21]),V=V.add(U[0]),Y=Y.minus(U[0].shiftLeft(Yr[21])),U[1]=V.shiftRight(Yr[21]),H=H.add(U[1]),V=V.minus(U[1].shiftLeft(Yr[21])),U[2]=H.shiftRight(Yr[21]),W=W.add(U[2]),H=H.minus(U[2].shiftLeft(Yr[21])),U[3]=W.shiftRight(Yr[21]),q=q.add(U[3]),W=W.minus(U[3].shiftLeft(Yr[21])),U[4]=q.shiftRight(Yr[21]),G=G.add(U[4]),q=q.minus(U[4].shiftLeft(Yr[21])),U[5]=G.shiftRight(Yr[21]),Z=Z.add(U[5]),G=G.minus(U[5].shiftLeft(Yr[21])),U[6]=Z.shiftRight(Yr[21]),X=X.add(U[6]),Z=Z.minus(U[6].shiftLeft(Yr[21])),U[7]=X.shiftRight(Yr[21]),$=$.add(U[7]),X=X.minus(U[7].shiftLeft(Yr[21])),U[8]=$.shiftRight(Yr[21]),K=K.add(U[8]),$=$.minus(U[8].shiftLeft(Yr[21])),U[9]=K.shiftRight(Yr[21]),J=J.add(U[9]),K=K.minus(U[9].shiftLeft(Yr[21])),U[10]=J.shiftRight(Yr[21]),Q=Q.add(U[10]),J=J.minus(U[10].shiftLeft(Yr[21])),U[11]=Q.shiftRight(Yr[21]),ee=ee.add(U[11]),Q=Q.minus(U[11].shiftLeft(Yr[21])),Y=Y.add(ee.times(Hr)),V=V.add(ee.times(Wr)),H=H.add(ee.times(qr)),W=W.minus(ee.times(Gr)),q=q.add(ee.times(Zr)),G=G.minus(ee.times(Xr)),ee=Yr[0],U[0]=Y.shiftRight(Yr[21]),V=V.add(U[0]),Y=Y.minus(U[0].shiftLeft(Yr[21])),U[1]=V.shiftRight(Yr[21]),H=H.add(U[1]),V=V.minus(U[1].shiftLeft(Yr[21])),U[2]=H.shiftRight(Yr[21]),W=W.add(U[2]),H=H.minus(U[2].shiftLeft(Yr[21])),U[3]=W.shiftRight(Yr[21]),q=q.add(U[3]),W=W.minus(U[3].shiftLeft(Yr[21])),U[4]=q.shiftRight(Yr[21]),G=G.add(U[4]),q=q.minus(U[4].shiftLeft(Yr[21])),U[5]=G.shiftRight(Yr[21]),Z=Z.add(U[5]),G=G.minus(U[5].shiftLeft(Yr[21])),U[6]=Z.shiftRight(Yr[21]),X=X.add(U[6]),Z=Z.minus(U[6].shiftLeft(Yr[21])),U[7]=X.shiftRight(Yr[21]),$=$.add(U[7]),X=X.minus(U[7].shiftLeft(Yr[21])),U[8]=$.shiftRight(Yr[21]),K=K.add(U[8]),$=$.minus(U[8].shiftLeft(Yr[21])),U[9]=K.shiftRight(Yr[21]),J=J.add(U[9]),K=K.minus(U[9].shiftLeft(Yr[21])),U[10]=J.shiftRight(Yr[21]),Q=Q.add(U[10]),J=J.minus(U[10].shiftLeft(Yr[21])),e[0]=Y.shiftRight(Yr[0]).toJSNumber(),e[1]=Y.shiftRight(Yr[8]).toJSNumber(),e[2]=Y.shiftRight(Yr[16]).or(V.shiftLeft(Yr[5])).toJSNumber(),e[3]=V.shiftRight(Yr[3]).toJSNumber(),e[4]=V.shiftRight(Yr[11]).toJSNumber(),e[5]=V.shiftRight(Yr[19]).or(H.shiftLeft(Yr[2])).toJSNumber(),e[6]=H.shiftRight(Yr[6]).toJSNumber(),e[7]=H.shiftRight(Yr[14]).or(W.shiftLeft(Yr[7])).toJSNumber(),e[8]=W.shiftRight(Yr[1]).toJSNumber(),e[9]=W.shiftRight(Yr[9]).toJSNumber(),e[10]=W.shiftRight(Yr[17]).or(q.shiftLeft(Yr[4])).toJSNumber(),e[11]=q.shiftRight(Yr[4]).toJSNumber(),e[12]=q.shiftRight(Yr[12]).toJSNumber(),e[13]=q.shiftRight(Yr[20]).or(G.shiftLeft(Yr[1])).toJSNumber(),e[14]=G.shiftRight(Yr[7]).toJSNumber(),e[15]=G.shiftRight(Yr[15]).or(Z.shiftLeft(Yr[6])).toJSNumber(),e[16]=Z.shiftRight(Yr[2]).toJSNumber(),e[17]=Z.shiftRight(Yr[10]).toJSNumber(),e[18]=Z.shiftRight(Yr[18]).or(X.shiftLeft(Yr[3])).toJSNumber(),e[19]=X.shiftRight(Yr[5]).toJSNumber(),e[20]=X.shiftRight(Yr[13]).toJSNumber(),e[21]=$.shiftRight(Yr[0]).toJSNumber(),e[22]=$.shiftRight(Yr[8]).toJSNumber(),e[23]=$.shiftRight(Yr[16]).or(K.shiftLeft(Yr[5])).toJSNumber(),e[24]=K.shiftRight(Yr[3]).toJSNumber(),e[25]=K.shiftRight(Yr[11]).toJSNumber(),e[26]=K.shiftRight(Yr[19]).or(J.shiftLeft(Yr[2])).toJSNumber(),e[27]=J.shiftRight(Yr[6]).toJSNumber(),e[28]=J.shiftRight(Yr[14]).or(Q.shiftLeft(Yr[7])).toJSNumber(),e[29]=Q.shiftRight(Yr[1]).toJSNumber(),e[30]=Q.shiftRight(Yr[9]).toJSNumber(),e[31]=Q.shiftRight(Yr[17]).toJSNumber()}(f,d,a,s);var h=new Uint8Array(e.SIGNATURE_SIZE);return h.set(l),h.set(f,32),h}},{key:"verify",value:function(t,n,r){if(!t||t.length!==e.PUBLIC_KEY_SIZE)return!1;if(!r||r.length!==e.SIGNATURE_SIZE||0!==(224&r[63]))return!1;var i=new li;if(!i.fromBytes(t))return!1;i.X.neg(),i.T.neg();var a=new Er;a.update(r.subarray(0,32)),a.update(t),a.update(n);var o=a.digest(),s=new Uint8Array(32);ci(s,o);var u=new ui,l=r.subarray(32).slice();if(!function(e){for(var t=3;t>=0;t--){var n=Pr.read8(e,8*t);if(n>ai[t])return!1;if(n1&&this.props.series.map((function(e,t){return(0,yn.jsxs)("span",{className:"key",children:[(0,yn.jsx)("div",{className:nn()("key-color",e.className)}),(0,yn.jsx)("span",{className:"key-label",children:e.label})]},t)}))})]}),(0,yn.jsx)("span",{className:"canvas",children:(0,yn.jsxs)("svg",{ref:function(e){return n.setElement(e)},children:[null===(e=this.state.paths)||void 0===e?void 0:e.map((function(e,t){return(0,yn.jsx)("path",{d:e.path,className:e.className,strokeWidth:1},t)})),null===(t=this.state.text)||void 0===t?void 0:t.map((function(e,t){var n;return(0,yn.jsx)("text",{x:e.x,y:e.y,textAnchor:null!==(n=e.anchor)&&void 0!==n?n:"start",className:"axis-label",children:e.content},t)}))]})})]})}},{key:"setElement",value:function(e){var t=this;setTimeout((function(){!t._graphElement&&e&&(t._graphElement=e,t.setState(t.calculateGraph()))}),100)}},{key:"resize",value:function(){this._graphElement&&this.setState(this.calculateGraph())}},{key:"calculateGraph",value:function(){var e=[],t=[],n=[];if(this._graphElement&&this.props.series.length>0){try{var r=this._graphElement.width.baseVal.value,i=this._graphElement.height.baseVal.value-20,a=this.props.seriesMaxLength;r<500&&(a/=2);for(var o=this.props.series.map((function(e){return e.values.slice(-a)})),s=0,u=Math.min(a,o[0].length),l=0;ls&&(s=o[l][c]);0===s&&(s=4);for(var d=s<=2?2:0,f=.9*i/s,h=(r-30-10-10)/(a*this.props.series.length),p=i/3,m=0;m<4;m++)n.push({path:"M ".concat(30," ").concat(i-m*p," L ").concat(r," ").concat(i-m*p),className:"axis-color"}),t.push({x:25,y:i-m*p+2,anchor:"end",content:(m*(s/.9/3)).toFixed(d)});if(this.props.timeInterval&&this.props.endTime){var v,y=null!==(v=this.props.timeMarkers)&&void 0!==v?v:Math.floor(r/100);r<300&&(y=3);for(var g=this.props.endTime-u*this.props.timeInterval,w=a*this.props.timeInterval/y,b=0;b<=y;b++){var _=new Date(g+b*w);t.push({x:25+(r-10-10)/y*b,y:i+20,anchor:"middle",content:"".concat(_.getHours().toString().padStart(2,"0"),":").concat(_.getMinutes().toString().padStart(2,"0"),".").concat(_.getSeconds().toString().padStart(2,"0"))})}}for(var k=0;k=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var xi,Si=function(e,t){var n=e.title,r=e.titleId,i=ki(e,bi);return a.createElement("svg",_i({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,fi||(fi=a.createElement("path",{d:"m23.7055,11.46295q-1.43475,-3.0227 -3.41479,-4.93035l-1.38442,1.38442c1.12892,1.07886 2.11227,2.49021 2.96257,4.24794c-2.26383,4.68547 -5.47726,6.9112 -9.86887,6.9112q-1.97731,0 -3.64253,-0.60895l-1.50006,1.50006q2.3128,1.06797 5.14259,1.06797q7.84449,0 11.70551,-8.171a1.64046,1.64046 0 0 0 0,-1.40129zm-1.72971,-8.72444l-1.15994,-1.1613a0.21768,0.21768 0 0 0 -0.30801,0l-2.9759,2.97454q-2.4611,-1.25708 -5.53196,-1.25708q-7.84449,0 -11.70551,8.171a1.64073,1.64073 0 0 0 0,1.40129q1.5425,3.24881 3.71409,5.20816l-2.8793,2.87849a0.21768,0.21768 0 0 0 0,0.30774l1.16157,1.16157a0.21768,0.21768 0 0 0 0.30774,0l19.37722,-19.3764a0.21768,0.21768 0 0 0 0,-0.30801zm-19.84468,9.42645c2.26655,-4.68547 5.47999,-6.9112 9.86887,-6.9112c1.484,0 2.83332,0.25468 4.05747,0.77248l-1.91282,1.91282a4.78886,4.78886 0 0 0 -6.47939,6.47939l-2.26981,2.26981c-1.25626,-1.10879 -2.3392,-2.61102 -3.26432,-4.5233zm6.71257,0a3.05045,3.05045 0 0 1 3.97802,-2.90298l-3.83354,3.83354a3.04746,3.04746 0 0 1 -0.14448,-0.93056z",fill:"currentColor"})),hi||(hi=a.createElement("path",{d:"m11.89115,15.21242c-0.09414,0 -0.18693,-0.00435 -0.2789,-0.01279l-1.4372,1.4372a4.79131,4.79131 0 0 0 6.18798,-6.18798l-1.4372,1.4372c0.00843,0.09197 0.01279,0.18475 0.01279,0.2789a3.04583,3.04583 0 0 1 -3.04746,3.04746z",fill:"currentColor"})))},Ei=(0,a.forwardRef)(Si),Ci=(n.p,["title","titleId"]);function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Mi,Li=function(e,t){var n=e.title,r=e.titleId,i=Oi(e,Ci);return a.createElement("svg",Ni({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,xi||(xi=a.createElement("path",{d:"m23.69284,11.29876c-2.57667,-5.42785 -6.47156,-8.15945 -11.69285,-8.15945c-5.224,0 -9.11619,2.73159 -11.69285,8.16217a1.63896,1.63896 0 0 0 0,1.39977c2.57667,5.42785 6.47156,8.15945 11.69285,8.15945c5.224,0 9.11619,-2.73159 11.69285,-8.16217c0.20929,-0.44032 0.20929,-0.9513 0,-1.39977zm-11.69285,7.60498c-4.38414,0 -7.5941,-2.22332 -9.8582,-6.90373c2.2641,-4.68041 5.47406,-6.90373 9.8582,-6.90373c4.38414,0 7.5941,2.22332 9.8582,6.90373c-2.26138,4.68041 -5.47134,6.90373 -9.8582,6.90373zm-0.10872,-11.68742c-2.6419,0 -4.78369,2.14179 -4.78369,4.78369s2.14179,4.78369 4.78369,4.78369s4.78369,-2.14179 4.78369,-4.78369s-2.14179,-4.78369 -4.78369,-4.78369zm0,7.82785c-1.68245,0 -3.04417,-1.36172 -3.04417,-3.04417s1.36172,-3.04417 3.04417,-3.04417s3.04417,1.36172 3.04417,3.04417s-1.36172,3.04417 -3.04417,3.04417z",fill:"currentColor"})))},Pi=(0,a.forwardRef)(Li),Ti=(n.p,function(){function e(){Oe(this,e)}return Le(e,null,[{key:"computeSlotIndex",value:function(e){for(var t=e.slice(-8),n=[],r=t.length,i=0;io)return 1;if(o>a)return-1;if(2===i){var s,u=96,l=96,c=n[i].indexOf("-");if(c>0)u=null!==(s=n[i].codePointAt(c+1))&&void 0!==s?s:Number.NaN;var d,f=r[i].indexOf("-");if(f>0)l=null!==(d=r[i].codePointAt(f+1))&&void 0!==d?d:Number.NaN;return u-l}}return 0}}]),r}(Gt),Ai=Ri,Di=function(e){Ie(n,e);var t=De(n);function n(){return Oe(this,n),t.apply(this,arguments)}return Le(n,[{key:"render",value:function(){return(0,yn.jsx)("div",{className:nn()("spinner",{"spinner--compact":this.props.compact})})}}]),n}(a.Component),zi=Di,Bi=function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._authService=void 0,t._authService=Vt.get("auth"),t.state={user:"",password:"",isBusy:!1,error:!1,redirect:t._authService.isLoggedIn()?"/":""},t}return Le(r,[{key:"render",value:function(){var e=this;return this.state.redirect.length>0?(0,yn.jsx)(ie,{to:this.state.redirect}):(0,yn.jsx)("div",{className:"login",children:(0,yn.jsxs)("div",{className:"content",children:[(0,yn.jsx)("h2",{children:"Login"}),(0,yn.jsx)("div",{className:"card margin-t-s padding-l",children:(0,yn.jsxs)("form",{children:[(0,yn.jsx)("p",{children:"Please enter your credentials to unlock the full dashboard."}),(0,yn.jsx)("div",{className:"card--label",children:"User"}),(0,yn.jsx)("div",{className:"card--value row",children:(0,yn.jsx)("input",{type:"text",autoComplete:"username",value:this.state.user,disabled:this.state.isBusy,onChange:function(t){return e.setState({user:t.target.value})},autoFocus:!0})}),(0,yn.jsx)("div",{className:"card--label",children:"Password"}),(0,yn.jsx)("div",{className:"card--value row",children:(0,yn.jsx)("input",{type:"password",autoComplete:"current-password",value:this.state.password,disabled:this.state.isBusy,onChange:function(t){return e.setState({password:t.target.value})},onKeyDown:function(t){"Enter"===t.key&&e.state.password.trim().length>0&&e.state.user.trim().length>0&&e.login()}})}),(0,yn.jsx)("hr",{}),(0,yn.jsxs)("div",{className:"card--value row middle",children:[(0,yn.jsx)("button",{className:"card--action margin-r-s",type:"button",disabled:this.state.isBusy||0===this.state.user.trim().length||0===this.state.password.trim().length,onClick:function(t){return e.login()},children:"Login"}),this.state.isBusy&&(0,yn.jsx)(zi,{compact:!0}),this.state.error&&(0,yn.jsx)("p",{className:"danger margin-l-t",children:"Your login attempt failed, please try again."})]})]})})]})})}},{key:"login",value:function(){var e=this;this.setState({isBusy:!0,error:!1},i(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e._authService.login(e.state.user,e.state.password);case 2:r=t.sent,e.setState({isBusy:!1,error:!r});case 4:case"end":return t.stop()}}),n)}))))}}]),r}(Gt),Ui=Bi;function Fi(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=gr(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var Yi=["title","titleId"];function Vi(){return Vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Wi,qi,Gi=function(e,t){var n=e.title,r=e.titleId,i=Hi(e,Yi);return a.createElement("svg",Vi({width:8,height:14,viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Mi||(Mi=a.createElement("path",{d:"M2.51794 6.98708L7.68154 12.1921C7.78117 12.2891 7.86064 12.4052 7.91531 12.5334C7.96998 12.6617 7.99876 12.7997 7.99996 12.9393C8.00116 13.079 7.97477 13.2174 7.92232 13.3467C7.86987 13.4759 7.79241 13.5933 7.69447 13.692C7.59652 13.7907 7.48005 13.8688 7.35185 13.9217C7.22365 13.9746 7.08629 14.0012 6.94778 14C6.80928 13.9987 6.67239 13.9697 6.54513 13.9146C6.41786 13.8595 6.30275 13.7794 6.20652 13.679L0.30542 7.73051C0.10986 7.53332 0 7.26591 0 6.98708C0 6.70825 0.10986 6.44084 0.30542 6.24365L6.20652 0.295175C6.40326 0.103632 6.66677 -0.00235606 6.94028 3.97504e-05C7.21379 0.00243556 7.47542 0.113023 7.66883 0.307985C7.86224 0.502946 7.97195 0.766681 7.97432 1.04239C7.9767 1.31809 7.87156 1.58371 7.68154 1.78203L2.51794 6.98708Z",fill:"currentColor"})))},Zi=(0,a.forwardRef)(Gi),Xi=(n.p,function(){function e(){Oe(this,e)}return Le(e,null,[{key:"copy",value:function(e){if(void 0===e||null===e)return!1;try{var t=document.createElement("textarea");t.style.fontSize="12pt",t.style.border="0",t.style.padding="0",t.style.margin="0",t.style.position="absolute",t.style.left="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;return t.style.top="".concat(n,"px"),t.setAttribute("readonly",""),t.value=e,document.body.append(t),t.select(),document.execCommand("Copy"),t.remove(),!0}catch(r){return!1}}}]),e}()),$i=["title","titleId"];function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qi,ea=function(e,t){var n=e.title,r=e.titleId,i=Ji(e,$i);return a.createElement("svg",Ki({width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Wi||(Wi=a.createElement("path",{d:"M 9 1 L 16 1 C 16.552 1 17 1.448 17 2 L 17 9 C 17 9.552 16.552 10 16 10 L 9 10 C 8.448 10 8 9.552 8 9 L 8 2 C 8 1.448 8.448 1 9 1 Z",stroke:"currentColor",strokeWidth:2})),qi||(qi=a.createElement("path",{d:" M 5.125 6 L 4 6 C 2.895 6 2 6.895 2 8 L 2 14 C 2 15.105 2.895 16 4 16 L 10 16 C 11.105 16 12 15.105 12 14 L 12 12.875",stroke:"currentColor",strokeWidth:2})))},ta=(0,a.forwardRef)(ea),na=(n.p,function(e){Ie(n,e);var t=De(n);function n(e){var r;return Oe(this,n),(r=t.call(this,e)).state={active:!1,message:"copy"===e.buttonType?"Copied":""},r}return Le(n,[{key:"render",value:function(){var e=this;return(0,yn.jsxs)("div",{className:"block-button",children:[(0,yn.jsx)("button",{type:"button",className:nn()("block-button-btn",{"block-button-btn--active":this.state.active}),onClick:function(){return e.activate()},children:"copy"===this.props.buttonType&&(0,yn.jsx)(ta,{})}),this.state.active&&this.state.message&&(0,yn.jsx)("span",{className:nn()("block-button--message",{"block-button--message--right":"right"===this.props.labelPosition},{"block-button--message--top":"top"===this.props.labelPosition}),children:this.state.message})]})}},{key:"activate",value:function(){var e=this;this.props.onClick(),this.setState({active:!0}),setTimeout((function(){e.setState({active:!1})}),2e3)}}]),n}(a.Component)),ra=na,ia=function(e){Ie(n,e);var t=De(n);function n(e){var r;return Oe(this,n),(r=t.call(this,e))._metricsService=void 0,r._settingsService=void 0,r._peerMetricsSubscription=void 0,r._metricsService=Vt.get("metrics"),r._settingsService=Vt.get("settings"),r.state={address:"",isConnected:!1,receivedPacketsDiff:[],sentPacketsDiff:[],relation:"-",lastUpdateTime:0,blindMode:r._settingsService.getBlindMode()},r}return Le(n,[{key:"componentDidMount",value:function(){var e=this;je(Pe(n.prototype),"componentDidMount",this).call(this),this._peerMetricsSubscription=this._metricsService.subscribe(Ut.PeerMetrics,void 0,(function(t){var n,r,i,a="",o=!1,s=[],u=[],l=[],c=[],d="-",f=Fi(t);try{for(f.s();!(i=f.n()).done;){var h=i.value;if(null!==h&&void 0!==h&&h.peers){var p=h.peers.find((function(t){return t.id===e.props.match.params.id}));p&&p.id===e.props.match.params.id&&(n=p.alias,a="".concat(p.multiAddresses[0],"/p2p/").concat(p.id),o=p.connected,r=p.gossipMetrics,d=p.relation,s.push(r.packetsReceived),u.push(r.packetsSent))}}}catch(y){f.e(y)}finally{f.f()}for(var m=1;m0&&(0,yn.jsx)("div",{className:"margin-l-t",children:(0,yn.jsx)(ra,{onClick:function(){Xi.copy(e.state.address)},buttonType:"copy",labelPosition:"right"})})]}),(0,yn.jsxs)("p",{className:"secondary margin-t-t",children:["Relation:\xa0","".concat(this.state.relation.slice(0,1).toUpperCase()).concat(this.state.relation.slice(1))]})]}),(0,yn.jsx)("div",{className:"health-indicators col tablet-down-only-row phone-down-column",children:(0,yn.jsx)(wn,{label:"Connected",healthy:this.state.isConnected,className:"child"})})]})}),(0,yn.jsx)("div",{className:"card blocks-graph-panel margin-t-s",children:(0,yn.jsx)(mi,{caption:"Packets per Second",endTime:this.state.lastUpdateTime,timeInterval:1e3,seriesMaxLength:30,series:[{className:"bar-color-1",label:"Incoming",values:this.state.receivedPacketsDiff},{className:"bar-color-2",label:"Outgoing",values:this.state.sentPacketsDiff}]})})]})})}},{key:"toggleBlindMode",value:function(){this._settingsService.setBlindMode(!this.state.blindMode),this.setState({blindMode:!this.state.blindMode})}}]),n}(Gt),aa=me(ia),oa=["title","titleId"];function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var la,ca=function(e,t){var n=e.title,r=e.titleId,i=ua(e,oa);return a.createElement("svg",sa({width:8,height:14,viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Qi||(Qi=a.createElement("path",{d:"M5.48206 6.98708L0.318462 12.1921C0.218831 12.2891 0.139361 12.4052 0.0846907 12.5334C0.0300203 12.6617 0.00124313 12.7997 3.95234e-05 12.9393C-0.00116408 13.079 0.0252297 13.2174 0.0776802 13.3467C0.130131 13.4759 0.207588 13.5933 0.305532 13.692C0.403476 13.7907 0.519946 13.8688 0.648146 13.9217C0.776345 13.9746 0.913707 14.0012 1.05222 14C1.19072 13.9987 1.32761 13.9697 1.45487 13.9146C1.58214 13.8595 1.69725 13.7794 1.79348 13.679L7.69458 7.73051C7.89014 7.53332 8 7.26591 8 6.98708C8 6.70825 7.89014 6.44084 7.69458 6.24365L1.79348 0.295175C1.59674 0.103632 1.33323 -0.00235606 1.05972 3.97504e-05C0.786213 0.00243556 0.524578 0.113023 0.331169 0.307985C0.137761 0.502946 0.0280534 0.766681 0.0256767 1.04239C0.0232999 1.31809 0.128444 1.58371 0.318462 1.78203L5.48206 6.98708Z",fill:"currentColor"})))},da=(0,a.forwardRef)(ca),fa=(n.p,function(e){Ie(n,e);var t=De(n);function n(){return Oe(this,n),t.apply(this,arguments)}return Le(n,[{key:"render",value:function(){return(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)("div",{className:"dialog-click-shield"}),(0,yn.jsx)("div",{className:"dialog-container",children:(0,yn.jsxs)("div",{className:"dialog",children:[(0,yn.jsx)("div",{className:"dialog-header",children:(0,yn.jsx)("h1",{children:this.props.title})}),(0,yn.jsx)("div",{className:"dialog-content",children:this.props.children}),(0,yn.jsx)("div",{className:"dialog-footer",children:this.props.actions})]})})]})}}]),n}(a.Component)),ha=fa,pa=function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._metricsService=void 0,t._settingsService=void 0,t._peerMetricsSubscription=void 0,t._syncStatusSubscription=void 0,t._metricsService=Vt.get("metrics"),t._settingsService=Vt.get("settings"),t.state={peers:[],dialogPeerMultiAddress:"",dialogPeerAlias:"",blindMode:t._settingsService.getBlindMode()},t}return Le(r,[{key:"componentDidMount",value:function(){var e=this;je(Pe(r.prototype),"componentDidMount",this).call(this),this._peerMetricsSubscription=this._metricsService.subscribe(Ut.PeerMetrics,void 0,(function(t){var n={};if(t.length>0){var r,i=new Set(t[t.length-1].peers.map((function(e){return e.id}))),a=Fi(t);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(null!==o&&void 0!==o&&o.peers){var s,u=Fi(o.peers);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l&&i.has(l.id)){n[l.id]||(n[l.id]={id:l.id,address:"",connected:l.connected,relation:l.relation,receivedPacketsTotal:[],sentPacketsTotal:[],receivedPacketsDiff:[],sentPacketsDiff:[],lastUpdateTime:0}),n[l.id].id=l.id,n[l.id].alias=l.alias,n[l.id].address="".concat(l.multiAddresses[0],"/p2p/").concat(l.id),n[l.id].connected=l.connected,n[l.id].relation=l.relation,n[l.id].lastUpdateTime=Date.now(),l.gossipMetrics&&(n[l.id].receivedPacketsTotal.push(l.gossipMetrics.packetsReceived),n[l.id].sentPacketsTotal.push(l.gossipMetrics.packetsSent)),n[l.id].receivedPacketsDiff=[];for(var c=1;c=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var _a,ka=function(e,t){var n=e.title,r=e.titleId,i=ba(e,ga);return a.createElement("svg",wa({width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,la||(la=a.createElement("path",{d:"M7.6151 6.00057L11.6514 1.96311C11.7605 1.85778 11.8475 1.73179 11.9073 1.59248C11.9671 1.45318 11.9986 1.30335 12 1.15174C12.0013 1.00013 11.9724 0.849774 11.915 0.709449C11.8576 0.569124 11.7728 0.441638 11.6656 0.33443C11.5584 0.227222 11.4309 0.142439 11.2906 0.0850271C11.1502 0.0276156 10.9999 -0.00127433 10.8483 4.31112e-05C10.6967 0.00136056 10.5468 0.032859 10.4075 0.0927004C10.2682 0.152542 10.1422 0.239528 10.0369 0.348583L5.99943 4.3849L1.96311 0.348583C1.85778 0.239528 1.73179 0.152542 1.59248 0.0927004C1.45318 0.032859 1.30335 0.00136056 1.15174 4.31112e-05C1.00013 -0.00127433 0.849774 0.0276156 0.709449 0.0850271C0.569124 0.142439 0.441638 0.227222 0.33443 0.33443C0.227222 0.441638 0.142439 0.569124 0.0850271 0.709449C0.0276156 0.849774 -0.00127433 1.00013 4.31112e-05 1.15174C0.00136056 1.30335 0.032859 1.45318 0.0927004 1.59248C0.152542 1.73179 0.239528 1.85778 0.348583 1.96311L4.3849 5.99943L0.348583 10.0369C0.239528 10.1422 0.152542 10.2682 0.0927004 10.4075C0.032859 10.5468 0.00136056 10.6967 4.31112e-05 10.8483C-0.00127433 10.9999 0.0276156 11.1502 0.0850271 11.2906C0.142439 11.4309 0.227222 11.5584 0.33443 11.6656C0.441638 11.7728 0.569124 11.8576 0.709449 11.915C0.849774 11.9724 1.00013 12.0013 1.15174 12C1.30335 11.9986 1.45318 11.9671 1.59248 11.9073C1.73179 11.8475 1.85778 11.7605 1.96311 11.6514L5.99943 7.6151L10.0369 11.6514C10.1422 11.7605 10.2682 11.8475 10.4075 11.9073C10.5468 11.9671 10.6967 11.9986 10.8483 12C10.9999 12.0013 11.1502 11.9724 11.2906 11.915C11.4309 11.8576 11.5584 11.7728 11.6656 11.6656C11.7728 11.5584 11.8576 11.4309 11.915 11.2906C11.9724 11.1502 12.0013 10.9999 12 10.8483C11.9986 10.6967 11.9671 10.5468 11.9073 10.4075C11.8475 10.2682 11.7605 10.1422 11.6514 10.0369L7.6151 5.99943V6.00057Z",fill:"#9AADCE"})))},xa=(0,a.forwardRef)(ka),Sa=(n.p,["title","titleId"]);function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Na,Oa=function(e,t){var n=e.title,r=e.titleId,i=Ca(e,Sa);return a.createElement("svg",Ea({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,_a||(_a=a.createElement("path",{d:"M6 3H8C8.53043 3 9.03914 3.21071 9.41421 3.58579C9.78929 3.96086 10 4.46957 10 5V19C10 19.5304 9.78929 20.0391 9.41421 20.4142C9.03914 20.7893 8.53043 21 8 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3V3ZM6 5V19H8V5H6ZM16 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H16C15.4696 21 14.9609 20.7893 14.5858 20.4142C14.2107 20.0391 14 19.5304 14 19V5C14 4.46957 14.2107 3.96086 14.5858 3.58579C14.9609 3.21071 15.4696 3 16 3V3ZM16 5V19H18V5H16Z",fill:"#9AADCE"})))},Ma=(0,a.forwardRef)(Oa),La=(n.p,["title","titleId"]);function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ja=function(e,t){var n=e.title,r=e.titleId,i=Ta(e,La);return a.createElement("svg",Pa({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},i),n?a.createElement("title",{id:r},n):null,Na||(Na=a.createElement("path",{d:"M7.78205 4.3598L19.2432 11.5176L7.92341 18.8969L7.78205 4.3598Z",stroke:"#9AADCE",strokeWidth:2,strokeLinejoin:"round"})))},Ia=(0,a.forwardRef)(ja),Ra=(n.p,function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._graphElement=void 0,t._graph=void 0,t._renderer=void 0,t._graphics=void 0,t._vizualizerService=void 0,t._dashboardConfigService=void 0,t._metricsService=void 0,t._tangleService=void 0,t._themeService=void 0,t._gossipMetricsSubscription=void 0,t._resize=void 0,t._enteredVertexId=void 0,t._graphElement=null,t._resize=function(){return t.resize()},t._vizualizerService=Vt.get("visualizer"),t._dashboardConfigService=Vt.get("dashboard-config"),t._metricsService=Vt.get("metrics"),t._tangleService=Vt.get("tangle"),t._themeService=Vt.get("theme"),t.state={bps:"-",total:"-",tips:"-",accepted:"-",confirmed:"-",finalized:"-",transactions:"-",isActive:!0,theme:t._themeService.get()},t}return Le(r,[{key:"componentDidMount",value:function(){var e=this;je(Pe(r.prototype),"componentDidMount",this).call(this),window.addEventListener("resize",this._resize),this._vizualizerService.subscribe((function(t,n){"add"===n||"update"===n?e.updateVertex(t):"delete"===n&&e.deleteVertex(t)}),(function(t){e.state.isActive&&e.setState({total:t.total.toString(),tips:t.tips.toString(),accepted:t.total>0?"".concat((t.accepted/t.total*100).toFixed(2),"%"):"-",confirmed:t.total>0?"".concat((t.confirmed/t.total*100).toFixed(2),"%"):"-",finalized:t.total>0?"".concat((t.finalized/t.total*100).toFixed(2),"%"):"-",transactions:t.total>0?"".concat((t.transactions/t.total*100).toFixed(2),"%"):"-"})})),this._gossipMetricsSubscription=this._metricsService.subscribe(Ut.GossipMetrics,(function(t){t&&e.state.isActive&&e.setState({bps:t.new.toString()})})),Ht.subscribe("theme","visualizer",(function(t){e.setState({theme:t},(function(){return e.styleAllLinks()}))}))}},{key:"componentWillUnmount",value:function(){var e,t;if(je(Pe(r.prototype),"componentWillUnmount",this).call(this),this._gossipMetricsSubscription&&(this._metricsService.unsubscribe(this._gossipMetricsSubscription),this._gossipMetricsSubscription=void 0),this._vizualizerService.unsubscribe(),Ht.unsubscribe("theme","visualizer"),this._graphElement){var n=this._graphElement.children[0];n.width=1,n.height=1;var i=n.getContext("2d");null===i||void 0===i||i.clearRect(0,0,1,1)}null===(e=this._graph)||void 0===e||e.clear(),null===(t=this._renderer)||void 0===t||t.dispose(),this._graph=void 0,this._graphics=void 0,this._renderer=void 0,this._graphElement=null,window.removeEventListener("resize",this._resize)}},{key:"render",value:function(){var e,t,n,r,i,o,s,u,l,c,d,f,h,p,m,v,y,g=this;return(0,yn.jsxs)("div",{className:"visualizer",children:[(0,yn.jsx)("div",{className:"canvas",ref:function(e){return g.setupGraph(e)}}),(0,yn.jsx)("div",{className:"action-panel-container",children:(0,yn.jsx)("div",{className:"card padding-0",children:(0,yn.jsx)("button",{className:"icon-button",type:"button",onClick:function(){return g.toggleActivity()},children:this.state.isActive?(0,yn.jsx)(Ma,{}):(0,yn.jsx)(Ia,{})})})}),(0,yn.jsx)("div",{className:"stats-panel-container",children:(0,yn.jsxs)("div",{className:"card stats-panel",children:[(0,yn.jsx)("div",{className:"card--label",children:"Blocks"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.total}),(0,yn.jsx)("div",{className:"card--label",children:"BPS"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.bps}),(0,yn.jsx)("div",{className:"card--label",children:"Tips"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.tips}),(0,yn.jsx)("div",{className:"card--label",children:"Accepted"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.accepted}),(0,yn.jsx)("div",{className:"card--label",children:"Confirmed"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.confirmed}),(0,yn.jsx)("div",{className:"card--label",children:"Finalized"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.finalized}),(0,yn.jsx)("div",{className:"card--label",children:"Transactions"}),(0,yn.jsx)("div",{className:"card--value",children:this.state.transactions})]})}),(0,yn.jsx)("div",{className:"key-panel-container",children:(0,yn.jsxs)("div",{className:"card key-panel",children:[(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--pending"}),(0,yn.jsx)("div",{className:"key-label",children:"Pending"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--accepted"}),(0,yn.jsx)("div",{className:"key-label",children:"Accepted"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--confirmed"}),(0,yn.jsx)("div",{className:"key-label",children:"Confirmed"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--finalized"}),(0,yn.jsx)("div",{className:"key-label",children:"Finalized"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--transaction"}),(0,yn.jsx)("div",{className:"key-label",children:"Transaction"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--validation"}),(0,yn.jsx)("div",{className:"key-label",children:"Validation"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--tip"}),(0,yn.jsx)("div",{className:"key-label",children:"Tip"})]}),(0,yn.jsxs)("div",{className:"key-panel-item",children:[(0,yn.jsx)("div",{className:"key-marker vertex-state--unknown"}),(0,yn.jsx)("div",{className:"key-label",children:"Unknown"})]})]})}),this.state.selected&&this._graphElement&&(0,yn.jsx)("div",{className:"info-panel-container",children:(0,yn.jsxs)("div",{className:"card fill padding-m",children:[(0,yn.jsxs)("div",{className:"row middle spread",children:[(0,yn.jsxs)("div",{className:"row middle",children:[(0,yn.jsx)("div",{className:nn()("info-panel--key","vertex-state--".concat(this.state.selected.vertexState))}),(0,yn.jsxs)("h3",{children:[this.state.selected.blockStateTitle,this.state.selected.payloadTitle]})]}),(0,yn.jsx)("button",{type:"button",className:"icon-button",onClick:function(){return g.selectNode()},children:(0,yn.jsx)(xa,{})})]}),(0,yn.jsxs)("div",{className:"col",children:[this.state.selected.vertex.fullId&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)("div",{className:"card--label",children:"Block Id"}),(0,yn.jsx)("div",{className:"card--value",children:""===this.calculateBlockLink(this.state.selected.vertex)?(0,yn.jsx)("div",{children:this.state.selected.vertex.fullId}):(0,yn.jsx)("a",{href:this.calculateBlockLink(this.state.selected.vertex),target:"_blank",rel:"noopener noreferrer",children:this.state.selected.vertex.fullId})})]}),0===(null===(e=this.state.selected.block)||void 0===e||null===(t=e.body)||void 0===t?void 0:t.type)&&0===(null===(n=this.state.selected.block.body.payload)||void 0===n?void 0:n.type)&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)("div",{className:"card--label",children:"Tag UTF8"}),(0,yn.jsx)("div",{className:"card--value",children:Tr.hexToUtf8(null===(r=this.state.selected.block)||void 0===r?void 0:r.body.payload.tag)}),(0,yn.jsx)("div",{className:"card--label",children:"Tag Hex"}),(0,yn.jsx)("div",{className:"card--value",children:null===(i=this.state.selected.block)||void 0===i?void 0:i.body.payload.tag})]}),0===(null===(o=this.state.selected.block)||void 0===o||null===(s=o.body)||void 0===s?void 0:s.type)&&1===(null===(u=this.state.selected.block.body.payload)||void 0===u?void 0:u.type)&&(0,yn.jsx)("div",{}),0===(null===(l=this.state.selected.block)||void 0===l||null===(c=l.body)||void 0===c?void 0:c.type)&&2===(null===(d=this.state.selected.block.body.payload)||void 0===d?void 0:d.type)&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)("div",{className:"card--label",children:"Candidate"}),(0,yn.jsx)("div",{className:"card--value",children:null===(f=this.state.selected.block)||void 0===f?void 0:f.header.issuerId})]}),1===(null===(h=this.state.selected.block)||void 0===h||null===(p=h.body)||void 0===p?void 0:p.type)&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)("div",{className:"card--label",children:"Validator"}),(0,yn.jsx)("div",{className:"card--value",children:null===(m=this.state.selected.block)||void 0===m?void 0:m.header.issuerId}),(0,yn.jsx)("div",{className:"card--label",children:"Highest Supported Version"}),(0,yn.jsx)("div",{className:"card--value",children:null===(v=this.state.selected.block)||void 0===v?void 0:v.body.highestSupportedVersion}),(0,yn.jsx)("div",{className:"card--label",children:"Protocol Parameters Hash"}),(0,yn.jsx)("div",{className:"card--value",children:null===(y=this.state.selected.block)||void 0===y?void 0:y.body.protocolParametersHash})]})]})]})})]})}},{key:"setupGraph",value:function(e){var t=this;if(this._graphElement=e,e&&!this._graph){this._graph=ya().Graph.graph(),this._graphics=ya().Graph.View.webglGraphics();var n=ya().Graph.Layout.forceDirected(this._graph,{springLength:10,springCoeff:1e-4,stableThreshold:.15,gravity:-2,dragCoeff:.02,timeStep:20,theta:.8});this._graphics.node((function(e){return ya().Graph.View.webglSquare(t.calculateSize(e.data),"#".concat(r.STATE_COLOR_MAP[t.calculateVertexState(e.data)].toString(16)))})),this._graphics.link((function(){return ya().Graph.View.webglLine("#".concat(r.THEME_COLOR_LINKS[t.state.theme].toString(16)))})),this._renderer=ya().Graph.View.renderer(this._graph,{container:e,graphics:this._graphics,layout:n,renderLinks:!0});var i=ya().Graph.webglInputEvents(this._graphics,this._graph);i.click((function(e){return t.selectNode(e)})),i.dblClick((function(e){t.selectNode(),window.open(t.calculateBlockLink(e.data),"_blank")})),i.mouseEnter((function(e){var n,r;t.state.selected||(t._enteredVertexId&&(t.connectedLinkStyle(t._enteredVertexId,!1),t._enteredVertexId=void 0),e&&(t._enteredVertexId=null!==(n=null===(r=e.data)||void 0===r?void 0:r.shortId)&&void 0!==n?n:e.id.slice(0,10),t.connectedLinkStyle(t._enteredVertexId,!0)))})),i.mouseLeave((function(e){t._enteredVertexId&&(t.connectedLinkStyle(t._enteredVertexId,!1),t._enteredVertexId=void 0)})),this._renderer.run(),this._graphics.scale(1,{x:e.clientWidth/2,y:e.clientHeight/2});for(var a=0;a<12;a++)this._renderer.zoomOut()}}},{key:"updateVertex",value:function(e){var t=this;if(this._graph){var n=this.updateNodeUI(e.shortId);if(n||(n=this._graph.addNode(e.shortId,e)),e.parents)for(var r=[],i=function(i){var a,o=e.parents[i];r.includes(o)||null!==(a=n.links)&&void 0!==a&&a.some((function(e){return e.toId===o}))||(r.push(o),t._graph.addLink(e.shortId,o))},a=0;aa;){var o,s,u=i[a++],l=null!==(o=null===(s=u.data)||void 0===s?void 0:s.shortId)&&void 0!==o?o:u.id.slice(0,10);if(null===t||void 0===t||!t(l)){var c,d=Fi(u.links);try{for(d.s();!(c=d.n()).done;){var f=c.value;if(!r&&f.fromId===l){n&&n(f.id);var h=this._graph.getNode(f.toId);h&&!i.includes(h)&&i.push(h)}if(r&&f.toId===l){n&&n(f.id);var p=this._graph.getNode(f.fromId);p&&!i.includes(p)&&i.push(p)}}}catch(m){d.e(m)}finally{d.f()}}}}}},{key:"resize",value:function(){this._graphics&&this._graphElement&&(this._graphics.updateSize(),this._graphics.scale(1,{x:this._graphElement.clientWidth/2,y:this._graphElement.clientHeight/2}))}},{key:"toggleActivity",value:function(){this._renderer&&(this.state.isActive?this._renderer.pause():this._renderer.resume()),this.setState({isActive:!this.state.isActive})}},{key:"selectNode",value:function(e){var n=this;this.state.selected&&(this.state.selected.vertex.isSelected=!1,this.updateNodeUI(this.state.selected.vertex.shortId),this.connectedLinkStyle(this.state.selected.vertex.shortId,!1)),e?(e.data||(e.data={shortId:e.id}),e.data.isSelected=!0,this.updateNodeUI(e.id),this._enteredVertexId&&(this.connectedLinkStyle(this._enteredVertexId,!1),this._enteredVertexId=void 0),this.connectedLinkStyle(e.data.shortId,!0),this.setState({selected:{vertex:null===e||void 0===e?void 0:e.data,vertexState:this.calculateVertexState(e.data),blockStateTitle:r.BLOCK_STATE_TITLE_MAP[this.calculateBlockState(e.data)]}},i(t().mark((function i(){var a,o,s,u;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(a=e.data)||void 0===a||!a.fullId){t.next=24;break}return t.next=3,n._tangleService.block(e.data.fullId);case 3:if(s=t.sent,u=" - Unknown",null===s||void 0===s||!s.body){t.next=23;break}t.t0=null===s||void 0===s?void 0:s.body.type,t.next=0===t.t0?9:1===t.t0?20:22;break;case 9:t.t1=null===s||void 0===s||null===(o=s.body.payload)||void 0===o?void 0:o.type,t.next=0===t.t1?12:1===t.t1?14:2===t.t1?16:18;break;case 12:return u=" - Tagged data",t.abrupt("break",19);case 14:return u=" - Signed transaction",t.abrupt("break",19);case 16:return u=" - Candidacy announcement",t.abrupt("break",19);case 18:return t.abrupt("break",19);case 19:return t.abrupt("break",23);case 20:return u=" - Validation block",t.abrupt("break",23);case 22:return t.abrupt("break",23);case 23:n.setState({selected:{vertex:null===e||void 0===e?void 0:e.data,vertexState:n.calculateVertexState(e.data),blockStateTitle:r.BLOCK_STATE_TITLE_MAP[n.calculateBlockState(e.data)],block:s,payloadTitle:u}});case 24:case"end":return t.stop()}}),i)}))))):this.setState({selected:void 0})}},{key:"calculateBlockLink",value:function(e){var t=this._dashboardConfigService.getExplorerURL();return""!==t&&null!==e&&void 0!==e&&e.fullId?"".concat(t,"/block/").concat(e.fullId):""}},{key:"connectedLinkStyle",value:function(e,t){var n=this;if(this._graph){var i=this._graph.getNode(e);if(i){this.dfsIterator(i,void 0,(function(e){if(n._graphics){var i=n._graphics.getLinkUI(e);i&&(i.color=t?r.COLOR_LINK_CHILDREN:r.THEME_COLOR_LINKS[n.state.theme])}}),!0,[]),this.dfsIterator(i,void 0,(function(e){if(n._graphics){var i=n._graphics.getLinkUI(e);i&&(i.color=t?r.COLOR_LINK_PARENTS:r.THEME_COLOR_LINKS[n.state.theme])}}),!1,[])}}}},{key:"styleAllLinks",value:function(){var e=this;this._graph&&this._graphics&&this._graph.forEachLink((function(t){if(e._graphics){var n=e._graphics.getLinkUI(t.id);n&&(n.color=r.THEME_COLOR_LINKS[e.state.theme])}}))}}]),r}(Gt));Ra.STATE_COLOR_MAP={unknown:2595081983,pending:3969523455,accepted:4126298111,confirmed:1559953407,finalized:1642628351,transaction:3227642111,validation:576776191,tip:3642827263},Ra.BLOCK_STATE_TITLE_MAP={unknown:"Unknown",pending:"Pending",accepted:"Accepted",confirmed:"Confirmed",finalized:"Finalized"},Ra.THEME_COLOR_LINKS={dark:4294967074,light:3722305023},Ra.COLOR_LINK_CHILDREN=4284132095,Ra.COLOR_LINK_PARENTS=65535;var Aa=Ra,Da=function(e){Ie(r,e);var n=De(r);function r(e){var t;return Oe(this,r),(t=n.call(this,e))._themeService=void 0,t._authService=void 0,t._storageService=void 0,t._dashboardConfigService=void 0,t._metricsService=void 0,t._publicNodeStatusSubscription=void 0,t._nodeInfoExtendedSubscription=void 0,t._syncStatusSubscription=void 0,t._alias=void 0,t._latestCommitmentSlot=void 0,t._latestFinalizedSlot=void 0,t._lastStatus=void 0,t._statusTimer=void 0,t._tokenExpiryTimer=void 0,t._themeService=Vt.get("theme"),t._authService=Vt.get("auth"),t._dashboardConfigService=Vt.get("dashboard-config"),t._metricsService=Vt.get("metrics"),t._storageService=Vt.get("local-storage"),t._lastStatus=0,t.state={isLoggedIn:Boolean(t._authService.isLoggedIn()),theme:t._themeService.get(),online:!1,isNetworkHealthy:!1,isNodeHealthy:!1},t.updateTitle(),t}return Le(r,[{key:"componentDidMount",value:function(){var e=i(t().mark((function e(){var n=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:je(Pe(r.prototype),"componentDidMount",this).call(this),Ht.subscribe("auth-state","app",(function(e){n.setState({isLoggedIn:e},(function(){n.state.isLoggedIn&&n.validateTokenPeriodically()}))})),Ht.subscribe("theme","app",(function(e){n.setState({theme:e})})),this._nodeInfoExtendedSubscription=this._metricsService.subscribe(Ut.NodeInfoExtended,(function(e){e&&e.nodeAlias!==n._alias&&(n._alias=e.nodeAlias,n.updateTitle())})),this._syncStatusSubscription=this._metricsService.subscribe(Ut.SyncStatus,(function(e){if(e){var t=e.latestCommitmentSlot?e.latestCommitmentSlot.toString():"",r=e.latestFinalizedSlot?e.latestFinalizedSlot.toString():"";t===n._latestCommitmentSlot&&r===n._latestFinalizedSlot||(n._latestCommitmentSlot=t,n._latestFinalizedSlot=r,n.updateTitle())}})),this._publicNodeStatusSubscription=this._metricsService.subscribe(Ut.PublicNodeStatus,(function(e){e&&(n._lastStatus=Date.now(),n.state.online||(Ht.publish("online",!0),n.setState({online:!0})),e.isNodeHealthy!==n.state.isNodeHealthy&&n.setState({isNodeHealthy:e.isNodeHealthy}),e.isNetworkHealthy!==n.state.isNetworkHealthy&&n.setState({isNetworkHealthy:e.isNetworkHealthy}))})),this._statusTimer=setInterval((function(){Date.now()-n._lastStatus>3e4&&n.state.online&&(n.setState({online:!1}),Ht.publish("online",!1))}),1e3);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"componentWillUnmount",value:function(){je(Pe(r.prototype),"componentWillUnmount",this).call(this),Ht.unsubscribe("auth-state","app"),Ht.unsubscribe("theme","app"),this._nodeInfoExtendedSubscription&&(this._metricsService.unsubscribe(this._nodeInfoExtendedSubscription),this._nodeInfoExtendedSubscription=void 0),this._syncStatusSubscription&&(this._metricsService.unsubscribe(this._syncStatusSubscription),this._syncStatusSubscription=void 0),this._publicNodeStatusSubscription&&(this._metricsService.unsubscribe(this._publicNodeStatusSubscription),this._publicNodeStatusSubscription=void 0),void 0!==this._statusTimer&&(clearInterval(this._statusTimer),this._statusTimer=void 0),this.clearTokenExpiryInterval()}},{key:"render",value:function(){var e=this,t=[{label:"Home",icon:(0,yn.jsx)(qe,{}),route:"/",hidden:!this.state.isLoggedIn},{label:"Peers",icon:(0,yn.jsx)(Lt,{}),route:"/peers",hidden:!this.state.isLoggedIn},{label:"Visualizer",icon:(0,yn.jsx)(Yt,{}),route:"/visualizer"},{label:"Login",icon:(0,yn.jsx)(vt,{}),route:"/login",hidden:this.state.isLoggedIn},{label:"Logout",icon:(0,yn.jsx)(ct,{}),function:function(){return e._authService.logout()},hidden:!this.state.isLoggedIn}],n=[{label:"Light",icon:(0,yn.jsx)(At,{}),function:function(){return e._themeService.apply("light",!0)},hidden:"light"===this.state.theme},{label:"Dark",icon:(0,yn.jsx)(tt,{}),function:function(){return e._themeService.apply("dark",!0)},hidden:"dark"===this.state.theme}];return(0,yn.jsxs)("div",{className:"app",children:[(0,yn.jsx)(Xt,{size:"phone",aboveBelow:"above",children:(0,yn.jsx)(Nn,{fullWidth:!1,middle:this.state.online?t:[],end:this.state.online?n:[]})}),(0,yn.jsxs)("div",{className:"col fill",children:[(0,yn.jsx)(xn,{children:(0,yn.jsx)(Xt,{size:"phone",aboveBelow:"below",children:(0,yn.jsx)(En,{children:(0,yn.jsx)(Nn,{fullWidth:!0,middle:this.state.online?t:[],end:this.state.online?n:[]})})})}),(0,yn.jsxs)("div",{className:"fill scroll-content",children:[!this.state.online&&(0,yn.jsx)("p",{className:"padding-l",children:"The node is offline or loading."}),this.state.online&&(0,yn.jsxs)(a.Fragment,{children:[(0,yn.jsx)(Xt,{size:"tablet",aboveBelow:"below",children:(0,yn.jsxs)("div",{className:"card card__flat row middle health-indicators",children:[(0,yn.jsx)(wn,{label:"Node Health",healthy:this.state.isNodeHealthy,className:"child margin-r-l"}),(0,yn.jsx)(wn,{label:"Network Health",healthy:this.state.isNetworkHealthy,className:"child"})]})}),(0,yn.jsxs)(pe,{children:[this.state.isLoggedIn&&[(0,yn.jsx)(ue,{exact:!0,path:"/",component:function(){return(0,yn.jsx)(Ai,{})}},"home"),(0,yn.jsx)(ue,{exact:!0,path:"/peers",component:function(){return(0,yn.jsx)(ma,{})}},"peers"),(0,yn.jsx)(ue,{path:"/peers/:id",component:function(e){return(0,yn.jsx)(aa,Ne({},e))}},"peer")],!this.state.isLoggedIn&&(0,yn.jsx)(ue,{path:"/",exact:!0,component:function(e){return(0,yn.jsx)(Aa,Ne({},e))}}),(0,yn.jsx)(ue,{path:"/visualizer",component:function(e){return(0,yn.jsx)(Aa,Ne({},e))}}),(0,yn.jsx)(ue,{path:"/login",component:function(){return(0,yn.jsx)(Ui,{})}}),(0,yn.jsx)(ue,{exact:!0,path:"*",component:function(){return(0,yn.jsx)(ie,{to:"/"})}})]})]})]})]})]})}},{key:"updateTitle",value:function(){var e=Wt.getConfiguration().name;this._alias&&(e+=" (".concat(this._alias,")")),this._latestCommitmentSlot&&this._latestFinalizedSlot&&(e+=" ".concat(this._latestFinalizedSlot," / ").concat(this._latestCommitmentSlot)),document.title=e}},{key:"validateTokenPeriodically",value:function(){var e=this;this.clearTokenExpiryInterval();var n=this._storageService.load("dashboard-jwt"),r=this.getTokenExpiry(n),a=Ue()(r),o=Ue()(a).subtract(1,"minutes");this._tokenExpiryTimer=setInterval(i(t().mark((function n(){var r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=Ue()()).isAfter(a)){t.next=6;break}e._authService.logout(),e.clearTokenExpiryInterval(),t.next=9;break;case 6:if(!r.isBetween(o,a)){t.next=9;break}return t.next=9,e._authService.initialize();case 9:case"end":return t.stop()}}),n)}))),5e3)}},{key:"getTokenExpiry",value:function(e){var t=e.split(".")[1],n=window.atob(t);return 1e3*JSON.parse(n).exp}},{key:"clearTokenExpiryInterval",value:function(){void 0!==this._tokenExpiryTimer&&(clearInterval(this._tokenExpiryTimer),this._tokenExpiryTimer=void 0)}}]),r}(Gt),za=me(Da),Ba=function(){function e(){Oe(this,e)}return Le(e,null,[{key:"json",value:function(){var e=i(t().mark((function e(n,r,i,a,o,s){var u,l,c,d,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null!==(u=o)&&void 0!==u||(o={}),o["Content-Type"]="application/json",void 0!==s&&(l=new AbortController,c=setTimeout((function(){l&&l.abort()}),s)),e.prev=3,e.next=6,fetch("".concat(n.replace(/\/$/,""),"/").concat(r.replace(/^\//,"")),{method:i,headers:o,body:a?JSON.stringify(a):void 0,signal:l?l.signal:void 0});case 6:if(204!==(d=e.sent).status){e.next=11;break}e.t0={},e.next=14;break;case 11:return e.next=13,d.json().catch((function(e){throw new Error("Fetched failed: ".concat(e.message))}));case 13:e.t0=e.sent;case 14:return f=e.t0,e.abrupt("return",f);case 18:if(e.prev=18,e.t1=e.catch(3),!(e.t1 instanceof Error)){e.next=24;break}throw"AbortError"===e.t1.name?new Error("Timeout"):e.t1;case 24:throw e.t1;case 25:return e.prev=25,c&&clearTimeout(c),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[3,18,25,28]])})));return function(t,n,r,i,a,o){return e.apply(this,arguments)}}()},{key:"text",value:function(){var e=i(t().mark((function e(n,r,i,a,o,s){var u,l,c,d,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null!==(u=o)&&void 0!==u||(o={}),o["Content-Type"]="text/plain",void 0!==s&&(l=new AbortController,c=setTimeout((function(){l&&l.abort()}),s)),e.prev=3,e.next=6,fetch("".concat(n.replace(/\/$/,""),"/").concat(r.replace(/^\//,"")),{method:i,headers:o,body:a?JSON.stringify(a):void 0,signal:l?l.signal:void 0});case 6:if(204!==(d=e.sent).status){e.next=11;break}e.t0={},e.next=14;break;case 11:return e.next=13,d.json().catch((function(e){throw new Error("Fetched failed: ".concat(d.statusText))}));case 13:e.t0=e.sent;case 14:return f=e.t0,e.abrupt("return",f);case 18:if(e.prev=18,e.t1=e.catch(3),!(e.t1 instanceof Error)){e.next=24;break}throw"AbortError"===e.t1.name?new Error("Timeout"):e.t1;case 24:throw e.t1;case 25:return e.prev=25,c&&clearTimeout(c),e.finish(25);case 28:case"end":return e.stop()}}),e,null,[[3,18,25,28]])})));return function(t,n,r,i,a,o){return e.apply(this,arguments)}}()},{key:"urlParams",value:function(e){var t=[];for(var n in e)null!==e[n]&&void 0!==e[n]&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n])));return t.length>0?"?".concat(t.join("&")):""}}]),e}(),Ua=function(){function e(){if(Oe(this,e),this._jwt=void 0,this._csrf=void 0,this._jwt=void 0,document.cookie){var t=document.cookie.split(";").find((function(e){return e.trim().startsWith("_csrf")}));if(t){var n=t.split("=");2===n.length&&(this._csrf=n[1])}}}return Le(e,[{key:"initialize",value:function(){var e=i(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Vt.get("local-storage"),!(r=n.load("dashboard-jwt"))){e.next=5;break}return e.next=5,this.login(void 0,void 0,r);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=i(t().mark((function e(n,r,i){var a,o,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logout(),e.prev=1,a={},this._csrf&&(a["X-CSRF-Token"]=this._csrf),e.next=6,Ba.json("".concat(window.location.protocol,"//").concat(window.location.host),"/dashboard/auth","post",{user:n,password:r,jwt:i},a);case 6:(o=e.sent).jwt&&(s=Vt.get("local-storage"),this._jwt=o.jwt,s.save("dashboard-jwt",this._jwt),Ht.publish("auth-state",!0)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0);case 13:return e.abrupt("return",void 0!==this._jwt);case 14:case"end":return e.stop()}}),e,this,[[1,10]])})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"logout",value:function(){this._jwt&&(Vt.get("local-storage").remove("dashboard-jwt"),this._jwt=void 0,Ht.publish("auth-state",!1))}},{key:"isLoggedIn",value:function(){return this._jwt}},{key:"csrf",value:function(){return this._csrf}},{key:"buildAuthHeaders",value:function(){var e={},t=this.isLoggedIn();t&&(e.Authorization="Bearer ".concat(t));var n=this.csrf();return n&&(e["X-CSRF-Token"]=n),e}}]),e}(),Fa=function(){function e(){Oe(this,e),this._explorerURL=void 0,this._authService=void 0,this._authService=Vt.get("auth"),this._explorerURL=""}return Le(e,[{key:"initialize",value:function(){var e=i(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getExplorerURLBackend();case 3:this._explorerURL=e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(){return e.apply(this,arguments)}}()},{key:"getExplorerURL",value:function(){return this._explorerURL}},{key:"getExplorerURLBackend",value:function(){var e=i(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._authService.buildAuthHeaders(),e.next=3,Ba.json("".concat(window.location.protocol,"//").concat(window.location.host),"/dashboard/settings","get",void 0,n);case 3:return r=e.sent,e.abrupt("return",r.explorerUrl);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ya=function(){function e(){Oe(this,e)}return Le(e,[{key:"load",value:function(e){var t;if(window.localStorage)try{var n=window.localStorage.getItem(e);n&&(t=JSON.parse(n))}catch(r){}return t}},{key:"save",value:function(e,t){if(window.localStorage)try{var n=JSON.stringify(t);window.localStorage.setItem(e,n)}catch(r){}}},{key:"remove",value:function(e){if(window.localStorage)try{window.localStorage.removeItem(e)}catch(t){}}},{key:"clear",value:function(e){if(window.localStorage)try{if(e){for(var t=[],n=window.localStorage.length,r=0;r0&&(n&&n(this._cached[e]),t&&t(this._cached[e][this._cached[e].length-1])),r}},{key:"unsubscribe",value:function(e){var t,n=Fi(Object.keys(this._subscriptions).map(Number));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this._subscriptions[r].findIndex((function(t){return t.subscriptionId===e}));if(i>=0&&(this._subscriptions[r].splice(i,1),0===this._subscriptions[r].length)){delete this._subscriptions[r];break}}}catch(a){n.e(a)}finally{n.f()}}},{key:"triggerCallbacks",value:function(e,t){var n;(this._cached[e]||(this._cached[e]=[]),e===Ut.DatabaseSizeMetric||e===Ut.NetworkMetrics)?Array.isArray(t)?(n=this._cached[e]).push.apply(n,wr(t)):this._cached[e].push(t):this._cached[e].push(t);if(this._cached[e]=this._cached[e].slice(-60),this._subscriptions[e]){var r,i=Fi(this._subscriptions[e]);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.singleCallback&&a.singleCallback(this._cached[e][this._cached[e].length-1]),a.multipleCallback&&a.multipleCallback(this._cached[e])}}catch(o){i.e(o)}finally{i.f()}}}}]),e}(),Ha=function(){function e(){Oe(this,e),this._networkId=void 0,this._storageService=void 0,this._storageService=Vt.get("session-storage"),this._networkId=""}return Le(e,[{key:"initialize",value:function(){var e=i(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._networkId=this._storageService.load("networkId"),this._networkId){e.next=12;break}return n=Vt.get("tangle"),e.prev=3,e.next=6,n.info();case 6:r=e.sent,this.setNetworkId(r.protocol.networkName),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:case"end":return e.stop()}}),e,this,[[3,10]])})));return function(){return e.apply(this,arguments)}}()},{key:"getNetworkId",value:function(){return this._networkId}},{key:"setNetworkId",value:function(e){this._networkId=e,this._storageService.save("networkId",this._networkId)}}]),e}(),Wa=function(){function e(){Oe(this,e)}return Le(e,[{key:"load",value:function(e){var t;if(window.sessionStorage)try{var n=window.sessionStorage.getItem(e);n&&(t=JSON.parse(n))}catch(r){}return t}},{key:"save",value:function(e,t){if(window.sessionStorage)try{var n=JSON.stringify(t);window.sessionStorage.setItem(e,n)}catch(r){}}},{key:"remove",value:function(e){if(window.sessionStorage)try{window.sessionStorage.removeItem(e)}catch(t){}}},{key:"clear",value:function(e){if(window.sessionStorage)try{if(e){for(var t=[],n=window.sessionStorage.length,r=0;r0&&(3===(null===(p=/code=(\d+), message=(.*)/.exec(h))||void 0===p?void 0:p.length)?(c=p[1],l=p[2]):l=h),e.next=40;break;case 38:e.prev=38,e.t2=e.catch(31);case 40:throw new Xa(null!==(o=l)&&void 0!==o?o:u.statusText,i,u.status,null!==(s=c)&&void 0!==s?s:u.status.toString());case 41:case"end":return e.stop()}}),e,this,[[6,18],[21,28],[31,38]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"fetchWithTimeout",value:function(){var e=i(t().mark((function e(n,r,i,a){var o,s,u,l,c,d,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this._timeout&&(o=new AbortController,s=setTimeout((function(){o&&o.abort()}),this._timeout)),u={},this._headers)for(l in this._headers)u[l]=this._headers[l];if(i)for(c in i)u[c]=i[c];return this._userName&&this._password&&(d=Tr.bytesToBase64(Tr.utf8ToBytes("".concat(this._userName,":").concat(this._password))),u.Authorization="Basic ".concat(d)),e.prev=5,e.next=8,fetch("".concat(this._endpoint).concat(r),{method:n,headers:u,body:a,signal:o?o.signal:void 0});case 8:return f=e.sent,e.abrupt("return",f);case 12:throw e.prev=12,e.t0=e.catch(5),e.t0 instanceof Error&&"AbortError"===e.t0.name?new Error("Timeout"):e.t0;case 15:return e.prev=15,s&&clearTimeout(s),e.finish(15);case 18:case"end":return e.stop()}}),e,this,[[5,12,15,18]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"combineQueryParams",value:function(e){return e&&e.length>0?"?".concat(e.join("&")):""}}]),e}(),Ka=function(){function e(){Oe(this,e),this._nodeInfo=void 0,this._authService=void 0,this._authService=Vt.get("auth")}return Le(e,[{key:"info",value:function(){var e=i(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.buildClient(),e.next=3,n.info();case 3:return this._nodeInfo=e.sent,e.abrupt("return",this._nodeInfo);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"block",value:function(){var e=i(t().mark((function e(n){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=this.buildClient(),e.next=4,r.block(n);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"peerAdd",value:function(){var e=i(t().mark((function e(n,r){var i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=this.buildClient(),e.next=3,i.peerAdd(n,r);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"peerDelete",value:function(){var e=i(t().mark((function e(n){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.buildClient(),e.next=3,r.peerDelete(n);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"buildClient",value:function(){var e=this._authService.buildAuthHeaders();return new $a("".concat(window.location.protocol,"//").concat(window.location.host),{basePath:"/dashboard/api/",headers:e})}}]),e}(),Ja=function(){function e(){Oe(this,e),this._theme=void 0,this._theme="light"}return Le(e,[{key:"initialize",value:function(){var e=Vt.get("local-storage").load("theme");this.apply(e,!1)}},{key:"apply",value:function(e,t){var n=this._theme;this._theme=null!==e&&void 0!==e?e:"light",document.body.classList.remove("theme-".concat(n)),document.body.classList.add("theme-".concat(this._theme)),Ht.publish("theme",this._theme),t&&this.save()}},{key:"get",value:function(){return this._theme}},{key:"save",value:function(){Vt.get("local-storage").save("theme",this._theme)}}]),e}(),Qa=function(){function e(){Oe(this,e),this._webSocketService=void 0,this._subscriptions=void 0,this._vertices=void 0,this._verticesOrder=void 0,this._counts=void 0,this._verticesLimit=void 0,this._vertexCallback=void 0,this._countsCallback=void 0,this._subscriptions=[],this._vertices={},this._verticesOrder=[],this._verticesLimit=5e3,this._counts={total:0,accepted:0,confirmed:0,finalized:0,transactions:0,tips:0},this._webSocketService=Vt.get("web-socket")}return Le(e,[{key:"subscribe",value:function(e,t){var n=this;this._subscriptions.push(this._webSocketService.subscribe(Ut.SyncStatus,!1,(function(e){return n.updateSyncStatus(e)})),this._webSocketService.subscribe(Ut.VisualizerVertex,!1,(function(e){return n.updateVertices(e)})),this._webSocketService.subscribe(Ut.VisualizerTipInfo,!1,(function(e){return n.updateTipInfo(e)})),this._webSocketService.subscribe(Ut.VisualizerBlockStateInfo,!1,(function(e){return n.updateBlockStateInfo(e)}))),this._vertexCallback=e,this._countsCallback=t}},{key:"unsubscribe",value:function(){var e,t=Fi(this._subscriptions);try{for(t.s();!(e=t.n()).done;){var n=e.value;this._webSocketService.unsubscribe(n)}}catch(r){t.e(r)}finally{t.f()}this._subscriptions=[],this._vertices={},this._verticesOrder=[],this._counts.total=0,this._counts.accepted=0,this._counts.confirmed=0,this._counts.finalized=0,this._counts.transactions=0,this._counts.tips=0}},{key:"updateSyncStatus",value:function(e){if(e)for(var t=0,n=Object.values(this._vertices);tthis._verticesLimit;){var e=this._verticesOrder.shift();if(e){var t=this.removeVertex(e);if(null!==t&&void 0!==t&&t.parents){var n,r=Fi(t.parents);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.removeVertex(i)}}catch(a){r.e(a)}finally{r.f()}}}}this._countsCallback&&this._countsCallback(this._counts)}},{key:"removeVertex",value:function(e){if(e){var t=this._vertices[e];return t?(t.isAccepted&&this._counts.accepted--,t.isConfirmed&&this._counts.confirmed--,t.isFinalized&&this._counts.finalized--,t.isBasicBlockSignedTransaction&&this._counts.transactions--,t.isTip&&this._counts.tips--,delete this._vertices[e]):t={shortId:e},this._vertexCallback&&this._vertexCallback(t,"delete"),t}}},{key:"updateTipInfo",value:function(e){if(e){var t=this._vertices[e.id];t&&(!t.isTip&&e.isTip?this._counts.tips++:t.isTip&&!e.isTip&&this._counts.tips--,t.isTip=e.isTip,this._vertexCallback&&this._vertexCallback(t,"update"),this._countsCallback&&this._countsCallback(this._counts))}}},{key:"updateVertexBlockStateInfo",value:function(e,t){if(e){var n=!1;switch(t){case"accepted":e.isAccepted||(this._counts.accepted++,n=!0,e.isAccepted=!0);break;case"confirmed":e.isConfirmed||(this._counts.confirmed++,n=!0,e.isConfirmed=!0)}return n}return!1}},{key:"updateBlockStateInfo",value:function(e){if(e){var t=this._vertices[e.id];if(!this.updateVertexBlockStateInfo(t,e.blockState))return;this._vertexCallback&&this._vertexCallback(t,"update"),this._countsCallback&&this._countsCallback(this._counts)}}}]),e}(),eo=n(9778),to=function(){function e(){Oe(this,e),this._reconnectTimer=void 0,this._lastMessage=void 0,this._webSocket=void 0,this._subscriptions=void 0,this._authService=void 0,this._authService=Vt.get("auth"),this._subscriptions={},this._lastMessage=0}return Le(e,[{key:"subscribe",value:function(e,t,n){this._subscriptions[e]||(this._subscriptions[e]={requiresAuth:t,isSubscribed:!1,subs:[]});var r=Tr.bytesToHex(Cr.generate(32));return this._subscriptions[e].subs.push({subscriptionId:r,callback:n}),this._webSocket&&this._webSocket.readyState===WebSocket.OPEN?this.subscribeTopic(e):this._webSocket||this.connectSocket(),r}},{key:"unsubscribe",value:function(e){var t,n=Fi(Object.keys(this._subscriptions).map(Number));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=this._subscriptions[r].subs.findIndex((function(t){return t.subscriptionId===e}));if(i>=0&&(this._subscriptions[r].subs.splice(i,1),0===this._subscriptions[r].subs.length)){this.unsubscribeTopic(r),delete this._subscriptions[r];break}}}catch(a){n.e(a)}finally{n.f()}0===Object.keys(this._subscriptions).length&&(this.clearTimer(),this.disconnectSocket())}},{key:"resubscribe",value:function(){var e,t=Object.keys(this._subscriptions).map(Number),n=Fi(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.unsubscribeTopic(r)}}catch(s){n.e(s)}finally{n.f()}if(this._webSocket&&this._webSocket.readyState===WebSocket.OPEN){var i,a=Fi(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.subscribeTopic(o)}}catch(s){a.e(s)}finally{a.f()}}}},{key:"connectSocket",value:function(){var e=this;this.clearTimer(),this.disconnectSocket();var t="ws:";"https:"===window.location.protocol&&(t="wss:"),t+="//".concat(window.location.hostname,":").concat(window.location.port,"/dashboard/ws"),this._webSocket=new WebSocket(t),this._webSocket.onopen=function(){var t,n=Fi(Object.keys(e._subscriptions).map(Number));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.subscribeTopic(r)}}catch(i){n.e(i)}finally{n.f()}},this._webSocket.onclose=function(){e.disconnectSocket()},this._webSocket.onerror=function(e){console.error("Socket error",e)},this._webSocket.onmessage=function(t){e._lastMessage=Date.now(),e.handleMessage(t.data)},this._lastMessage=Date.now(),this._reconnectTimer=setInterval((function(){return e.reconnect()}),5e3)}},{key:"disconnectSocket",value:function(){if(this._webSocket){try{this._webSocket.readyState===WebSocket.OPEN&&this._webSocket.close()}catch(e){}this._webSocket=void 0}}},{key:"clearTimer",value:function(){this._reconnectTimer&&(clearInterval(this._reconnectTimer),this._reconnectTimer=void 0)}},{key:"subscribeTopic",value:function(e){if(this._subscriptions[e]){var t=this._subscriptions[e].requiresAuth,n=this._authService.isLoggedIn();if(!t||t&&n){this._subscriptions[e].isSubscribed=!0;var r=new ArrayBuffer(2+(n&&t?n.length:0)),i=new Uint8Array(r);i[0]=0,i[1]=e,n&&t&&i.set(eo.lW.from(n),2),this._webSocket&&this._webSocket.send(r)}}}},{key:"unsubscribeTopic",value:function(e){var t;if(null!==(t=this._subscriptions[e])&&void 0!==t&&t.isSubscribed){this._subscriptions[e].isSubscribed=!1;var n=new ArrayBuffer(2),r=new Uint8Array(n);r[0]=1,r[1]=e,this._webSocket&&this._webSocket.readyState===WebSocket.OPEN&&this._webSocket.send(n)}}},{key:"handleMessage",value:function(e){var t=JSON.parse(e);if(this._subscriptions[t.type]){var n,r=Fi(this._subscriptions[t.type].subs);try{for(r.s();!(n=r.n()).done;){n.value.callback(t.data)}}catch(i){r.e(i)}finally{r.f()}}}},{key:"reconnect",value:function(){Object.keys(this._subscriptions)&&(Date.now()-this._lastMessage>1e4&&this.connectSocket())}}]),e}();function no(){return no=i(t().mark((function e(){var n,r,a,o,s,u,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Vt.register("local-storage",(function(){return new Ya})),Vt.register("session-storage",(function(){return new Wa})),n=new qa,Vt.register("settings",(function(){return n})),r=new Ua,e.next=7,r.initialize();case 7:return Vt.register("auth",(function(){return r})),a=new to,Vt.register("web-socket",(function(){return a})),Vt.register("tangle",(function(){return new Ka})),(o=new Ja).initialize(),Vt.register("theme",(function(){return o})),s=new Fa,e.next=17,s.initialize();case 17:return Vt.register("dashboard-config",(function(){return s})),u=new Ha,e.next=21,u.initialize();case 21:return Vt.register("node-config",(function(){return u})),l=new Va,Vt.register("metrics",(function(){return l})),l.initialize(),Vt.register("visualizer",(function(){return new Qa})),Ht.subscribe("auth-state","init",i(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a.resubscribe();case 1:case"end":return e.stop()}}),e)})))),Ht.subscribe("online","init",function(){var e=i(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n){e.next=4;break}return e.next=3,u.initialize();case 3:a.resubscribe();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.initialize(),e.abrupt("return",Wt.initialize());case 30:case"end":return e.stop()}}),e)}))),no.apply(this,arguments)}(function(){return no.apply(this,arguments)})().then((function(e){var t=document.querySelector("#root");(0,o.s)(t).render(e?(0,yn.jsx)(ve,{basename:"/dashboard",children:(0,yn.jsx)(za,{})}):(0,yn.jsx)("div",{children:"REACT_APP_BRAND_ID is not set"}))})).catch((function(e){return console.error(e)}))}()}();
-//# sourceMappingURL=main.a913c086.js.map
\ No newline at end of file
+/*! For license information please see main.a7785ed4.js.LICENSE.txt */
+!function(){var e={9337:function(e){n.removeEventListener=function(e,n,s,u){return(t=t||(document.addEventListener?{add:r,rm:i}:{add:a,rm:o})).rm(e,n,s,u)},n.addEventListener=n,e.exports=n;var t=null;function n(e,n,s,u){return(t=t||(document.addEventListener?{add:r,rm:i}:{add:a,rm:o})).add(e,n,s,u)}function r(e,t,n,r){e.addEventListener(t,n,r)}function i(e,t,n,r){e.removeEventListener(t,n,r)}function a(e,t,n,r){if(r)throw new Error("cannot useCapture in oldIE");e.attachEvent("on"+t,n)}function o(e,t,n,r){e.detachEvent("on"+t,n)}},2009:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,a=u(e),o=a[0],s=a[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),c=0,d=s>0?o-4:o;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,u=r-i;su?u:s+o));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,a,o=[],s=t;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},9523:function(e,t,n){var r;e=n.nmd(e);var i=function(e){"use strict";var t=1e7,n=9007199254740992,r=f(n),a="0123456789abcdefghijklmnopqrstuvwxyz",o="function"===typeof BigInt;function s(e,t,n,r){return"undefined"===typeof e?s[0]:"undefined"!==typeof t&&(10!==+t||n)?H(e,t,n,r):X(e)}function u(e,t){this.value=e,this.sign=t,this.isSmall=!1}function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}function c(e){this.value=e}function d(e){return-n0?Math.floor(e):Math.ceil(e)}function y(e,n){var r,i,a=e.length,o=n.length,s=new Array(a),u=0,l=t;for(i=0;i=l?1:0,s[i]=r-u*l;for(;i0&&s.push(u),s}function g(e,t){return e.length>=t.length?y(e,t):y(t,e)}function w(e,n){var r,i,a=e.length,o=new Array(a),s=t;for(i=0;i0;)o[i++]=n%s,n=Math.floor(n/s);return o}function b(e,n){var r,i,a=e.length,o=n.length,s=new Array(a),u=0,l=t;for(r=0;r0;)o[i++]=u%s,u=Math.floor(u/s);return o}function S(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return k(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),u=E(r,a),l=E(g(i,r),g(o,a)),c=g(g(s,S(b(b(l,s),u),n)),S(u,2*n));return p(c),c}function C(e,n,r){return new u(e=0;--n)i=(a=1e7*i+e[n])-(r=v(a/t))*t,s[n]=0|r;return[s,0|i]}function M(e,n){var r,i=X(n);if(o)return[new c(e.value/i.value),new c(e.value%i.value)];var a,d=e.value,y=i.value;if(0===y)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new l(v(d/y)),new l(d%y)]:[s[0],e];if(i.isSmall){if(1===y)return[e,s[0]];if(-1==y)return[e.negate(),s[0]];var g=Math.abs(y);if(g=0;i--){for(r=f-1,g[i+d]!==v&&(r=Math.floor((g[i+d]*f+g[i+d-1])/v)),a=0,o=0,u=w.length,s=0;sl&&(a=(a+1)*f),r=Math.ceil(a/o);do{if(P(s=x(n,r),d)<=0)break;r--}while(r);c.push(r),d=b(d,s)}return c.reverse(),[h(c),h(d)]}(d,y),a=r[0];var k=e.sign!==i.sign,S=r[1],E=e.sign;return"number"===typeof a?(k&&(a=-a),a=new l(a)):a=new u(a,k),"number"===typeof S?(E&&(S=-S),S=new l(S)):S=new u(S,E),[a,S]}function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function L(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 T(e,t){for(var n,r,a,o=e.prev(),s=o,u=0;s.isEven();)s=s.divide(2),u++;e:for(r=0;r=0?r=b(e,t):(r=b(t,e),n=!n),"number"===typeof(r=h(r))?(n&&(r=-r),new l(r)):new u(r,n)}(n,r,this.sign)},u.prototype.minus=u.prototype.subtract,l.prototype.subtract=function(e){var t=X(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new l(n-r):_(r,Math.abs(n),n>=0)},l.prototype.minus=l.prototype.subtract,c.prototype.subtract=function(e){return new c(this.value-X(e).value)},c.prototype.minus=c.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},c.prototype.negate=function(){return new c(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},c.prototype.abs=function(){return new c(this.value>=0?this.value:-this.value)},u.prototype.multiply=function(e){var n,r,i,a=X(e),o=this.value,l=a.value,c=this.sign!==a.sign;if(a.isSmall){if(0===l)return s[0];if(1===l)return this;if(-1===l)return this.negate();if((n=Math.abs(l))0?E(o,l):k(o,l),c)},u.prototype.times=u.prototype.multiply,l.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new l(e.value*this.value):C(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},u.prototype._multiplyBySmall=function(e){return 0===e.value?s[0]:1===e.value?this:-1===e.value?this.negate():C(Math.abs(e.value),this.value,this.sign!==e.sign)},l.prototype.multiply=function(e){return X(e)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,c.prototype.multiply=function(e){return new c(this.value*X(e).value)},c.prototype.times=c.prototype.multiply,u.prototype.square=function(){return new u(N(this.value),!1)},l.prototype.square=function(){var e=this.value*this.value;return d(e)?new l(e):new u(N(f(Math.abs(this.value))),!1)},c.prototype.square=function(e){return new c(this.value*this.value)},u.prototype.divmod=function(e){var t=M(this,e);return{quotient:t[0],remainder:t[1]}},c.prototype.divmod=l.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(e){return M(this,e)[0]},c.prototype.over=c.prototype.divide=function(e){return new c(this.value/X(e).value)},l.prototype.over=l.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(e){return M(this,e)[1]},c.prototype.mod=c.prototype.remainder=function(e){return new c(this.value%X(e).value)},l.prototype.remainder=l.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(e){var t,n,r,i=X(e),a=this.value,o=i.value;if(0===o)return s[1];if(0===a)return s[0];if(1===a)return s[1];if(-1===a)return i.isEven()?s[1]:s[-1];if(i.sign)return s[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(a,o)))return new l(v(t));for(n=this,r=s[1];!0&o&&(r=r.times(n),--o),0!==o;)o/=2,n=n.square();return r},l.prototype.pow=u.prototype.pow,c.prototype.pow=function(e){var t=X(e),n=this.value,r=t.value,i=BigInt(0),a=BigInt(1),o=BigInt(2);if(r===i)return s[1];if(n===i)return s[0];if(n===a)return s[1];if(n===BigInt(-1))return t.isEven()?s[1]:s[-1];if(t.isNegative())return new c(i);for(var u=this,l=s[1];(r&a)===a&&(l=l.times(u),--r),r!==i;)r/=o,u=u.square();return l},u.prototype.modPow=function(e,t){if(e=X(e),(t=X(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=s[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(s[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return s[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},c.prototype.modPow=l.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(e){var t=X(e),n=this.value,r=t.value;return t.isSmall?1:P(n,r)},l.prototype.compareAbs=function(e){var t=X(e),n=Math.abs(this.value),r=t.value;return t.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},c.prototype.compareAbs=function(e){var t=this.value,n=X(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=X(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:P(n,r)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=X(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},l.prototype.compareTo=l.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=X(e).value;return t===n?0:t>n?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.equals=function(e){return 0===this.compare(e)},c.prototype.eq=c.prototype.equals=l.prototype.eq=l.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(e){return 0!==this.compare(e)},c.prototype.neq=c.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(e){return this.compare(e)>0},c.prototype.gt=c.prototype.greater=l.prototype.gt=l.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(e){return this.compare(e)<0},c.prototype.lt=c.prototype.lesser=l.prototype.lt=l.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},c.prototype.geq=c.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},c.prototype.leq=c.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0===(1&this.value[0])},l.prototype.isEven=function(){return 0===(1&this.value)},c.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return 1===(1&this.value[0])},l.prototype.isOdd=function(){return 1===(1&this.value)},c.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},c.prototype.isPositive=l.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},c.prototype.isNegative=l.prototype.isNegative,u.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return 1===Math.abs(this.value)},c.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return 0===this.value},c.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(e){var t=X(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},c.prototype.isDivisibleBy=l.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(t){var n=L(this);if(n!==e)return n;var r=this.abs(),a=r.bitLength();if(a<=64)return T(r,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*a.toJSNumber(),s=Math.ceil(!0===t?2*Math.pow(o,2):o),u=[],l=0;l-n?new l(e-1):new u(r,!0)},c.prototype.prev=function(){return new c(this.value-BigInt(1))};for(var j=[1];2*j[j.length-1]<=t;)j.push(2*j[j.length-1]);var I=j.length,R=j[I-1];function A(e){return Math.abs(e)<=t}function D(e,t,n){t=X(t);for(var r=e.isNegative(),a=t.isNegative(),o=r?e.not():e,s=a?t.not():t,u=0,l=0,c=null,d=null,f=[];!o.isZero()||!s.isZero();)u=(c=M(o,R))[1].toJSNumber(),r&&(u=R-1-u),l=(d=M(s,R))[1].toJSNumber(),a&&(l=R-1-l),o=c[0],s=d[0],f.push(n(u,l));for(var h=0!==n(r?1:0,a?1:0)?i(-1):i(0),p=f.length-1;p>=0;p-=1)h=h.multiply(R).add(i(f[p]));return h}u.prototype.shiftLeft=function(e){var t=X(e).toJSNumber();if(!A(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=I;)n=n.multiply(R),t-=I-1;return n.multiply(j[t])},c.prototype.shiftLeft=l.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(e){var t,n=X(e).toJSNumber();if(!A(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var r=this;n>=I;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=M(r,R))[1].isNegative()?t[0].prev():t[0],n-=I-1}return(t=M(r,j[n]))[1].isNegative()?t[0].prev():t[0]},c.prototype.shiftRight=l.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},c.prototype.not=l.prototype.not=u.prototype.not,u.prototype.and=function(e){return D(this,e,(function(e,t){return e&t}))},c.prototype.and=l.prototype.and=u.prototype.and,u.prototype.or=function(e){return D(this,e,(function(e,t){return e|t}))},c.prototype.or=l.prototype.or=u.prototype.or,u.prototype.xor=function(e){return D(this,e,(function(e,t){return e^t}))},c.prototype.xor=l.prototype.xor=u.prototype.xor;var z=1<<30;function B(e){var n=e.value,r="number"===typeof n?n|z:"bigint"===typeof n?n|BigInt(z):n[0]+n[1]*t|1073758208;return r&-r}function U(e,t){if(t.compareTo(e)<=0){var n=U(e,t.square(t)),r=n.p,a=n.e,o=r.multiply(t);return o.compareTo(e)<=0?{p:o,e:2*a+1}:{p:r,e:2*a}}return{p:i(1),e:0}}function F(e,t){return e=X(e),t=X(t),e.greater(t)?e:t}function Y(e,t){return e=X(e),t=X(t),e.lesser(t)?e:t}function V(e,t){if(e=X(e).abs(),t=X(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,r,i=s[1];e.isEven()&&t.isEven();)n=Y(B(e),B(t)),e=e.divide(n),t=t.divide(n),i=i.multiply(n);for(;e.isEven();)e=e.divide(B(e));do{for(;t.isEven();)t=t.divide(B(t));e.greater(t)&&(r=t,t=e,e=r),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}u.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i(U(e,i(2)).e).add(i(1))},c.prototype.bitLength=l.prototype.bitLength=u.prototype.bitLength;var H=function(e,t,n,r){n=n||a,e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var i,o=e.length,s=Math.abs(t),u={};for(i=0;i=s)){if("1"===d&&1===s)continue;throw new Error(d+" is not a valid digit in base "+t+".")}}t=X(t);var l=[],c="-"===e[0];for(i=c?1:0;i"!==e[i]&&i=0;r--)i=i.add(e[r].times(a)),a=a.times(t);return n?i.negate():i}function q(e,t){if((t=i(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var a,o=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){a=s.divmod(t),s=a.quotient;var u=a.remainder;u.isNegative()&&(u=t.minus(u).abs(),s=s.next()),o.push(u.toJSNumber())}return o.push(s.toJSNumber()),{value:o.reverse(),isNegative:r}}function Z(e,t,n){var r=q(e,t);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||a).length?t[e]:"<"+e+">"}(e,n)})).join("")}function G(e){if(d(+e)){var t=+e;if(t===v(t))return o?new c(BigInt(t)):new l(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw new Error("Invalid integer: "+r.join("e"));if(2===r.length){var i=r[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==v(i)||!d(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var a=r[0],s=a.indexOf(".");if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw new Error("Cannot include negative exponent part for integers");e=a+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(o)return new c(BigInt(n?"-"+e:e));for(var f=[],h=e.length,m=h-7;h>0;)f.push(+e.slice(m,h)),(m-=7)<0&&(m=0),h-=7;return p(f),new u(f,n)}function X(e){return"number"===typeof e?function(e){if(o)return new c(BigInt(e));if(d(e)){if(e!==v(e))throw new Error(e+" is not an integer.");return new l(e)}return G(e.toString())}(e):"string"===typeof e?G(e):"bigint"===typeof e?new c(e):e}u.prototype.toArray=function(e){return q(this,e)},l.prototype.toArray=function(e){return q(this,e)},c.prototype.toArray=function(e){return q(this,e)},u.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t||n)return Z(this,t,n);for(var r,i=this.value,a=i.length,o=String(i[--a]);--a>=0;)r=String(i[a]),o+="0000000".slice(r.length)+r;return(this.sign?"-":"")+o},l.prototype.toString=function(t,n){return t===e&&(t=10),10!=t||n?Z(this,t,n):String(this.value)},c.prototype.toString=l.prototype.toString,c.prototype.toJSON=u.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,c.prototype.valueOf=c.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var $=0;$<1e3;$++)s[$]=X($),$>0&&(s[-$]=X(-$));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=F,s.min=Y,s.gcd=V,s.lcm=function(e,t){return e=X(e).abs(),t=X(t).abs(),e.divide(V(e,t)).multiply(t)},s.isInstance=function(e){return e instanceof u||e instanceof l||e instanceof c},s.randBetween=function(e,n,r){e=X(e),n=X(n);var i=r||Math.random,a=Y(e,n),o=F(e,n).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var u=q(o,t).value,l=[],c=!0,d=0;dd)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,h.prototype),t}function h(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return v(e)}return p(e,t,n)}function p(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!h.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|b(e,t),r=f(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return y(e)}(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(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return g(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return g(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return h.from(r,t,n);var i=function(e){if(h.isBuffer(e)){var t=0|w(e.length),n=f(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?f(0):y(e);if("Buffer"===e.type&&Array.isArray(e.data))return y(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return h.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function m(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 v(e){return m(e),f(e<0?0:0|w(e))}function y(e){for(var t=e.length<0?0:0|w(e.length),n=f(t),r=0;r=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function b(e,t){if(h.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(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 n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:K(e).length;t=(""+t).toLowerCase(),i=!0}}function _(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return I(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var a,o=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,u/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=n;as&&(n=s-u),a=n;a>=0;a--){for(var d=!0,f=0;fi&&(r=i):r=i;var a,o=t.length;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:a>223?3:a>191?2:1;if(i+s<=n){var u=void 0,l=void 0,c=void 0,d=void 0;switch(s){case 1:a<128&&(o=a);break;case 2:128===(192&(u=e[i+1]))&&(d=(31&a)<<6|63&u)>127&&(o=d);break;case 3:u=e[i+1],l=e[i+2],128===(192&u)&&128===(192&l)&&(d=(15&a)<<12|(63&u)<<6|63&l)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:u=e[i+1],l=e[i+2],c=e[i+3],128===(192&u)&&128===(192&l)&&128===(192&c)&&(d=(15&a)<<18|(63&u)<<12|(63&l)<<6|63&c)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rr.length?(h.isBuffer(a)||(a=h.from(a)),a.copy(r,i)):Uint8Array.prototype.set.call(r,a,i);else{if(!h.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},h.byteLength=b,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},c&&(h.prototype[c]=h.prototype.inspect),h.prototype.compare=function(e,t,n,r,i){if(ee(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":case"latin1":case"binary":return N(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function j(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",a=t;a