diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..679a27d --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +polkagate.xyz \ No newline at end of file diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json index 88aff89..8eab82a 100644 --- a/docs/asset-manifest.json +++ b/docs/asset-manifest.json @@ -1,14 +1,17 @@ { "files": { - "main.js": "/static/js/main.42301a84.js", - "static/js/753.7c5900f6.chunk.js": "/static/js/753.7c5900f6.chunk.js", - "static/js/263.4bbdfcd1.chunk.js": "/static/js/263.4bbdfcd1.chunk.js", + "main.css": "/static/css/main.682999b0.css", + "main.js": "/static/js/main.ac834a9c.js", + "static/js/154.7cdaa816.chunk.js": "/static/js/154.7cdaa816.chunk.js", + "static/js/656.e5778609.chunk.js": "/static/js/656.e5778609.chunk.js", "index.html": "/index.html", - "main.42301a84.js.map": "/static/js/main.42301a84.js.map", - "753.7c5900f6.chunk.js.map": "/static/js/753.7c5900f6.chunk.js.map", - "263.4bbdfcd1.chunk.js.map": "/static/js/263.4bbdfcd1.chunk.js.map" + "main.682999b0.css.map": "/static/css/main.682999b0.css.map", + "main.ac834a9c.js.map": "/static/js/main.ac834a9c.js.map", + "154.7cdaa816.chunk.js.map": "/static/js/154.7cdaa816.chunk.js.map", + "656.e5778609.chunk.js.map": "/static/js/656.e5778609.chunk.js.map" }, "entrypoints": [ - "static/js/main.42301a84.js" + "static/css/main.682999b0.css", + "static/js/main.ac834a9c.js" ] } \ No newline at end of file diff --git a/docs/images/avatar/frontEndDeveloperAvatar.jpeg b/docs/images/avatar/frontEndDeveloperAvatar.jpeg new file mode 100644 index 0000000..0a42cd4 Binary files /dev/null and b/docs/images/avatar/frontEndDeveloperAvatar.jpeg differ diff --git a/docs/images/brave.png b/docs/images/brave.png new file mode 100644 index 0000000..ac474cd Binary files /dev/null and b/docs/images/brave.png differ diff --git a/docs/images/pg/account.png b/docs/images/pg/account.png deleted file mode 100644 index 006d291..0000000 Binary files a/docs/images/pg/account.png and /dev/null differ diff --git a/docs/images/pg/accountDetails.png b/docs/images/pg/accountDetails.png deleted file mode 100644 index 4786b50..0000000 Binary files a/docs/images/pg/accountDetails.png and /dev/null differ diff --git a/docs/images/pg/accountDetails.svg b/docs/images/pg/accountDetails.svg deleted file mode 100644 index f3c6bea..0000000 --- a/docs/images/pg/accountDetails.svg +++ /dev/null @@ -1,141 +0,0 @@ - diff --git a/docs/images/pg/homeDark.png b/docs/images/pg/homeDark.png deleted file mode 100644 index 8dea757..0000000 Binary files a/docs/images/pg/homeDark.png and /dev/null differ diff --git a/docs/images/pg/homeDark.svg b/docs/images/pg/homeDark.svg new file mode 100644 index 0000000..6a18cee --- /dev/null +++ b/docs/images/pg/homeDark.svg @@ -0,0 +1,235 @@ + diff --git a/docs/images/pg/pg-1.png b/docs/images/pg/pg-1.png deleted file mode 100644 index 2bbe0ef..0000000 Binary files a/docs/images/pg/pg-1.png and /dev/null differ diff --git a/docs/images/pg/pg-2.png b/docs/images/pg/pg-2.png deleted file mode 100644 index e73f239..0000000 Binary files a/docs/images/pg/pg-2.png and /dev/null differ diff --git a/docs/images/pg/pg-3.png b/docs/images/pg/pg-3.png deleted file mode 100644 index c73e12c..0000000 Binary files a/docs/images/pg/pg-3.png and /dev/null differ diff --git a/docs/images/pg/pg-4.png b/docs/images/pg/pg-4.png deleted file mode 100644 index e13c5d4..0000000 Binary files a/docs/images/pg/pg-4.png and /dev/null differ diff --git a/docs/images/pg/pg-5.png b/docs/images/pg/pg-5.png deleted file mode 100644 index d1d71a1..0000000 Binary files a/docs/images/pg/pg-5.png and /dev/null differ diff --git a/docs/images/pg/pg-light.png b/docs/images/pg/pg-light.png deleted file mode 100644 index b2162e7..0000000 Binary files a/docs/images/pg/pg-light.png and /dev/null differ diff --git a/docs/images/pg/pool.svg b/docs/images/pg/pool.svg new file mode 100644 index 0000000..3e74222 --- /dev/null +++ b/docs/images/pg/pool.svg @@ -0,0 +1,240 @@ + diff --git a/docs/images/pg/qucickActionDark.png b/docs/images/pg/qucickActionDark.png deleted file mode 100644 index c08091b..0000000 Binary files a/docs/images/pg/qucickActionDark.png and /dev/null differ diff --git a/docs/images/pg/qucickActionDark.svg b/docs/images/pg/qucickActionDark.svg deleted file mode 100644 index df5cd8c..0000000 --- a/docs/images/pg/qucickActionDark.svg +++ /dev/null @@ -1,295 +0,0 @@ - diff --git a/docs/images/pg/rewards.svg b/docs/images/pg/rewards.svg new file mode 100644 index 0000000..42d7a3b --- /dev/null +++ b/docs/images/pg/rewards.svg @@ -0,0 +1,159 @@ + diff --git a/docs/images/pg/solo-stake.png b/docs/images/pg/solo-stake.png deleted file mode 100644 index 961bd19..0000000 Binary files a/docs/images/pg/solo-stake.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html index e8e64ea..58752a0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -
>>4;if(!X)throw"invalid distance";s+=15&X;var W=fo[F];if(F>3){var G=ro[F];W+=To(e,s)&(1<y)throw"unexpected EOF";i&&o(u+131072);for(var K=u+D;u e.length)&&(n=e.length);var r=new(e instanceof $i?$i:e instanceof eo?eo:_i)(n-t);return r.set(e.subarray(t,n)),r}(t,0,u)};function Oo(e,t){return Vo((function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"}(e),e.subarray(2,-4)),t)}for(var Io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",No=new Array(256),Ao=0;Ao =8&&(t[++i]=r>>>(a-=8)&255);return t}(Eo.bytes,new Uint8Array(Eo.lenIn)),new Uint8Array(Eo.lenOut)),Ho=new Ji(Qi("crypto",Co,null));function Ro(e){return Bo.apply(this,arguments)}function Bo(){return Bo=(0,M.Z)((0,T.Z)().mark((function e(t){return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ho.init(t));case 1:case"end":return e.stop()}}),e)}))),Bo.apply(this,arguments)}function Lo(e){return function(){if(!Ho.wasm)throw new Error("The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.");for(var t=arguments.length,n=new Array(t),r=0;r 1&&void 0!==arguments[1]?arguments[1]:256,a=arguments.length>2?arguments[2]:void 0,i=(0,j.Y)(n);return!Ci.vc||!a&&Xo()?e[r](i):t[r](i)}}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:256,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=Math.ceil(t/8),i=(0,j.Y)(e);return!Ci.vc||!r&&Xo()?Uo(i,(0,j.Y)(n),a):Ei(i,{dkLen:a,key:n||void 0})}var Yo=Wo(Ko),Jo={extrinsic:{},payload:{}},Qo={LimitParathreadCommits:Jo,OnlyStakingAndClaims:Jo,PrevalidateAttests:Jo,RestrictFunctionality:Jo,TransactionCallFilter:Jo,ValidateDoubleVoteReports:Jo},_o={DisallowSigned:Jo},$o={extrinsic:{era:"ExtrinsicEra"},payload:{blockHash:"Hash"}},ec={ChargeTransactionPayment:{extrinsic:{tip:"Compact "},payload:{}},CheckBlockGasLimit:Jo,CheckEra:$o,CheckGenesis:{extrinsic:{},payload:{genesisHash:"Hash"}},CheckMortality:$o,CheckNonZeroSender:Jo,CheckNonce:{extrinsic:{nonce:"Compact "},payload:{}},CheckSpecVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckTxVersion:{extrinsic:{},payload:{transactionVersion:"u32"}},CheckVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckWeight:Jo,LockStakingStatus:Jo,ValidateEquivocationReport:Jo},tc=(0,z.Z)({},ec,Qo,_o,{ChargeAssetTxPayment:{extrinsic:{tip:"Compact ",assetId:"Option "},payload:{}}}),nc=["CheckVersion","CheckGenesis","CheckEra","CheckNonce","CheckWeight","ChargeTransactionPayment","CheckBlockGasLimit"];function rc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[].concat((0,dt.Z)(Object.keys(tc)),(0,dt.Z)(Object.keys(t)));return e.filter((function(e){return!n.includes(e)}))}function ac(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.map((function(e){return n[e]||tc[e]})).filter((function(e){return!!e})).reduce((function(e,n){return(0,z.Z)(e,n[t])}),{})}var ic=new WeakMap,oc=new WeakMap,cc=new WeakMap,sc=new WeakMap,uc=new WeakMap,fc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:" ";(0,V.Z)(this,n);var s=(null==a?void 0:a.fields)||[];i=t.call(this,e,s.map((function(t){var n=t.type;return e.createLookupType(n)})),r),(0,R.Z)((0,I.Z)(i),ic,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(i),oc,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(i),cc,{writable:!0,value:null}),(0,R.Z)((0,I.Z)(i),sc,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(i),uc,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(i),ic,a),(0,L.Z)((0,I.Z)(i),oc,c),(0,L.Z)((0,I.Z)(i),sc,o),(0,L.Z)((0,I.Z)(i),uc,s.map((function(t){var n=t.type;return e.lookup.getTypeDef(n)})));var u=s.map((function(t){var n=t.name;return e.lookup.sanitizeField(n)[0]})).filter((function(e){return!!e}));return u.length===s.length&&((0,L.Z)((0,I.Z)(i),cc,u),ht((0,I.Z)(i),u,(function(e,t){return i[t]}))),i}return(0,O.Z)(n,[{key:"meta",get:function(){return(0,B.Z)(this,ic)}},{key:"method",get:function(){return(0,B.Z)(this,oc)}},{key:"names",get:function(){return(0,B.Z)(this,cc)}},{key:"section",get:function(){return(0,B.Z)(this,sc)}},{key:"typeDef",get:function(){return(0,B.Z)(this,uc)}},{key:"toHuman",value:function(e){if(null!==(0,B.Z)(this,cc)){for(var t={},r=0;r<(0,B.Z)(this,cc).length;r++)t[(0,B.Z)(this,cc)[r]]=this[r].toHuman(e);return t}return H((0,E.Z)(n.prototype),"toHuman",this).call(this,e)}}]),n}(Fr),dc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){(0,V.Z)(this,n);var a=function(e,t){if(!t||!t.length)return{DataType:dn};var n=t.subarray(0,2);return{DataType:e.findMetaEvent(n),value:{data:t.subarray(2),index:n}}}(e,r),i=a.DataType,o=a.value;return t.call(this,e,{index:"EventId",data:i},o)}return(0,O.Z)(n,[{key:"data",get:function(){return this.getT("data")}},{key:"index",get:function(){return this.getT("index")}},{key:"meta",get:function(){return this.data.meta}},{key:"method",get:function(){return this.data.method}},{key:"section",get:function(){return this.data.section}},{key:"typeDef",get:function(){return this.data.typeDef}},{key:"toHuman",value:function(e){return(0,z.Z)({method:this.method,section:this.section},e?{docs:this.meta.docs.map((function(e){return e.toString()}))}:null,H((0,E.Z)(n.prototype),"toHuman",this).call(this,e))}}]),n}(Bn),lc=new WeakMap,pc=function(){function e(t,n,r){(0,V.Z)(this,e),(0,R.Z)(this,lc,{writable:!0,value:void 0}),(0,L.Z)(this,lc,n),this.initialU8aLength=r,this.registry=t}return(0,O.Z)(e,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"inner",get:function(){return(0,B.Z)(this,lc)}},{key:"isEmpty",get:function(){return(0,B.Z)(this,lc).isEmpty}},{key:"eq",value:function(e){return(0,B.Z)(this,lc).eq(e)}},{key:"inspect",value:function(){return(0,B.Z)(this,lc).inspect()}},{key:"toHex",value:function(e){return(0,B.Z)(this,lc).toHex(e)}},{key:"toHuman",value:function(e){return(0,B.Z)(this,lc).toHuman(e)}},{key:"toJSON",value:function(){return(0,B.Z)(this,lc).toJSON()}},{key:"toPrimitive",value:function(){return(0,B.Z)(this,lc).toPrimitive()}},{key:"toString",value:function(){return(0,B.Z)(this,lc).toString()}},{key:"toU8a",value:function(e){return(0,B.Z)(this,lc).toU8a(e)}},{key:"toRawType",value:function(){return"Base"}},{key:"unwrap",value:function(){return(0,B.Z)(this,lc)}}]),e}(),hc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.isSigned;return(0,V.Z)(this,n),t.call(this,e,{signature:"ExtrinsicSignatureV4",method:"Call"},n.decodeExtrinsic(e,r,i))}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"method",get:function(){return this.getT("method")}},{key:"signature",get:function(){return this.getT("signature")}},{key:"version",get:function(){return 4}},{key:"addSignature",value:function(e,t,n){return this.signature.addSignature(e,t,n),this}},{key:"sign",value:function(e,t){return this.signature.sign(this.method,e,t),this}},{key:"signFake",value:function(e,t){return this.signature.signFake(this.method,e,t),this}}],[{key:"decodeExtrinsic",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t instanceof n)return t;if(t instanceof e.createClassUnsafe("Call"))return{method:t};if((0,zt.U)(t)){var a=e.createTypeUnsafe("ExtrinsicSignatureV4",[t,{isSigned:r}]),i=e.createTypeUnsafe("Call",[t.subarray(a.encodedLength)]);return{method:i,signature:a}}return t||{}}}]),n}(Bn),yc=new Uint8Array,bc=new Uint8Array([0]),vc=["ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicV4"];function mc(e,t,n){if(t instanceof Zc)return t.unwrap();var r=128===(128&n),a=vc[127&n]||vc[0];return e.createTypeUnsafe(a,[t,{isSigned:r,version:n}])}function gc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;return(0,zt.U)(t)||Array.isArray(t)||(0,Zt.vq)(t)?xc(e,(0,j.Y)(t),n):t instanceof e.createClassUnsafe("Call")?mc(e,{method:t},n):mc(e,t,n)}function xc(e,t,n){if(!t.length)return mc(e,new Uint8Array,n);var r=Bt(t),a=(0,G.Z)(r,2),i=a[0],o=i+a[1].toNumber();if(o>t.length)throw new Error("Extrinsic: length less than remainder, expected at least ".concat(o,", found ").concat(t.length));var c=t.subarray(i,o);return mc(e,c.subarray(1),c[0])}var wc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r,a){var i;(0,V.Z)(this,n),i=t.call(this,e,r,a);for(var o=Object.keys(e.getSignedExtensionTypes()),c=function(e){return i.inner.signature[e]},s=0;s 2&&void 0!==arguments[2]?arguments[2]:{},o=i.version;return(0,V.Z)(this,n),a=t.call(this,e,gc(e,r,o)),(0,R.Z)((0,I.Z)(a),kc,{writable:!0,value:void 0}),a}return(0,O.Z)(n,[{key:"hash",get:function(){return(0,B.Z)(this,kc)||(0,L.Z)(this,kc,H((0,E.Z)(n.prototype),"hash",this)),(0,B.Z)(this,kc)}},{key:"addSignature",value:function(e,t,n){return this.inner.addSignature(e,t,n),(0,L.Z)(this,kc,void 0),this}},{key:"inspect",value:function(){var e=qt.e.apply(void 0,(0,dt.Z)(this.toU8aInner()));return{inner:this.isSigned?this.inner.inspect().inner:this.inner.method.inspect().inner,outer:[Yt(e.length),new Uint8Array([this.version])]}}},{key:"sign",value:function(e,t){return this.inner.sign(e,t),(0,L.Z)(this,kc,void 0),this}},{key:"signFake",value:function(e,t){return this.inner.signFake(e,t),(0,L.Z)(this,kc,void 0),this}},{key:"toHex",value:function(e){return(0,D.c)(this.toU8a(e))}},{key:"toHuman",value:function(e){return(0,z.Z)({},{isSigned:this.isSigned,method:this.method.toHuman(e)},this.isSigned?{era:this.era.toHuman(e),nonce:this.nonce.toHuman(e),signature:this.signature.toHex(),signer:this.signer.toHuman(e),tip:this.tip.toHuman(e)}:null)}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toRawType",value:function(){return"Extrinsic"}},{key:"toU8a",value:function(e){var t=qt.e.apply(void 0,(0,dt.Z)(this.toU8aInner()));return e?t:aa(t)}},{key:"toU8aInner",value:function(){return[new Uint8Array([this.version]),this.inner.toU8a()]}}]),n}(wc);(0,Et.Z)(Zc,"LATEST_EXTRINSIC_VERSION",4);var Pc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i >12,1),c=(a>>4)*o;if(i<4||c>=i)throw new Error("Invalid data passed to Mortal era");return[new Pc(e,i),new Pc(e,c)]}(e,(0,j.Y)(t));if(!t)return[new Pc(e),new Pc(e)];if((0,mt.K)(t))return function(e,t){var n=t.current,r=t.period,a=Math.pow(2,Math.ceil(Math.log2(r)));a=Math.min(Math.max(a,4),65536);var i=n%a,o=Math.max(a>>12,1),c=i/o*o;return[new Pc(e,a),new Pc(e,c)]}(e,t);throw new Error("Invalid data passed to Mortal era")}function Mc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;if((0,zt.U)(e))return e.length&&0!==e[0]?new Uint8Array([1,e[0],e[1]]):new Uint8Array([0]);if(!e)return new Uint8Array([0]);if(e instanceof Ic)return Mc(e.toU8a());if((0,Zt.vq)(e))return Mc((0,Sc.G)(e));if((0,mt.K)(e)){var t=Object.entries(e).map((function(e){var t=(0,G.Z)(e,2),n=t[0],r=t[1];return[n.toLowerCase(),r]})),n=t.find((function(e){return"mortalera"===(0,G.Z)(e,1)[0].toLowerCase()})),r=t.find((function(e){return"immortalera"===(0,G.Z)(e,1)[0].toLowerCase()}));return n?{MortalEra:n[1]}:r?{ImmortalEra:r[1]}:{MortalEra:e}}throw new Error("Invalid data passed to Era")}var Vc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,bc)}return(0,O.Z)(n)}(It),Oc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,{period:Pc,phase:Pc},Tc(e,r))}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return 2}},{key:"period",get:function(){return this[0]}},{key:"phase",get:function(){return this[1]}},{key:"toHuman",value:function(){return{period:Sr(this.period),phase:Sr(this.phase)}}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toU8a",value:function(e){var t=this.period.toNumber(),n=Math.min(15,Math.max(1,function(e){for(var t=e.toString(2),n=0;"0"===t[t.length-1-n];)n++;return n}(t)-1))+(this.phase.toNumber()/Math.max(t>>12,1)<<4);return new Uint8Array([255&n,n>>8])}},{key:"birth",value:function(e){var t=this.phase.toNumber(),n=this.period.toNumber();return~~((Math.max((0,Dt.G)(e).toNumber(),t)-t)/n)*n+t}},{key:"death",value:function(e){return this.birth(e)+this.period.toNumber()}}]),n}(Fr),Ic=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,{ImmortalEra:Vc,MortalEra:Oc},Mc(r))}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return this.isImmortalEra?this.asImmortalEra.encodedLength:this.asMortalEra.encodedLength}},{key:"asImmortalEra",get:function(){if(!this.isImmortalEra)throw new Error("Cannot convert '".concat(this.type,"' via asImmortalEra"));return this.inner}},{key:"asMortalEra",get:function(){if(!this.isMortalEra)throw new Error("Cannot convert '".concat(this.type,"' via asMortalEra"));return this.inner}},{key:"isImmortalEra",get:function(){return 0===this.index}},{key:"isMortalEra",get:function(){return this.index>0}},{key:"toU8a",value:function(e){return this.isMortalEra?this.asMortalEra.toU8a(e):this.asImmortalEra.toU8a(e)}}]),n}(Sn),Nc=["ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadV4"];function Ac(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;return t instanceof Ec?t.unwrap():e.createTypeUnsafe(Nc[n]||Nc[0],[t,{version:n}])}var Ec=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.version;return(0,V.Z)(this,n),t.call(this,e,Ac(e,r,i))}return(0,O.Z)(n,[{key:"blockHash",get:function(){return this.inner.blockHash}},{key:"era",get:function(){return this.inner.era}},{key:"genesisHash",get:function(){return this.inner.genesisHash||this.registry.createTypeUnsafe("Hash",[])}},{key:"method",get:function(){return this.inner.method}},{key:"nonce",get:function(){return this.inner.nonce}},{key:"specVersion",get:function(){return this.inner.specVersion||this.registry.createTypeUnsafe("u32",[])}},{key:"tip",get:function(){return this.inner.tip||this.registry.createTypeUnsafe("Compact ",[])}},{key:"transactionVersion",get:function(){return this.inner.transactionVersion||this.registry.createTypeUnsafe("u32",[])}},{key:"eq",value:function(e){return this.inner.eq(e)}},{key:"sign",value:function(e){var t=this.inner.sign(e);return{signature:(0,D.c)(t)}}},{key:"toHuman",value:function(e){return this.inner.toHuman(e)}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toString",value:function(){return this.toHex()}},{key:"toU8a",value:function(e){return H((0,E.Z)(n.prototype),"toU8a",this).call(this,!!e&&{method:!0})}}]),n}(pc),Cc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.version,o=void 0===i?0:i;throw(0,V.Z)(this,n),t.call(this,e,{}),new Error("Unsupported extrinsic payload version ".concat(o))}return(0,O.Z)(n)}(Bn),Hc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.isSigned,o=void 0!==i&&i,c=a.version,s=void 0===c?0:c;throw(0,V.Z)(this,n),t.call(this,e,{}),new Error("Unsupported ".concat(o?"":"un","signed extrinsic version ").concat(127&s))}return(0,O.Z)(n)}(Bn),Rc={address:"Address",blockHash:"Hash",blockNumber:"BlockNumber",era:"ExtrinsicEra",genesisHash:"Hash",method:"Call",nonce:"Compact ",runtimeVersion:"RuntimeVersion",signedExtensions:"Vec ",tip:"Compact ",version:"u8"},Bc=new WeakMap,Lc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a;(0,V.Z)(this,n);var i=(0,z.Z)({},e.getSignedExtensionTypes(),e.getSignedExtensionExtra());a=t.call(this,e,(0,z.Z)({},i,Rc),r),(0,R.Z)((0,I.Z)(a),Bc,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),Bc,{});for(var o=function(e){return a.get(e)},c=0,s=Object.entries(i);c 256?e.hash(n):n;return t.sign(a,r)}(this.registry,e,this.toU8a({method:!0}),(0,B.Z)(this,zc))}}]),n}(Bn),Dc=new Uint8Array(256).fill(1);function jc(e,t){return e.createTypeUnsafe("Address",[(0,zt.U)(t)?(0,D.c)(t):t])}for(var qc=new WeakMap,Xc=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.isSigned;(0,V.Z)(this,n);var c=e.getSignedExtensionTypes();return a=t.call(this,e,(0,z.Z)({signer:"Address",signature:"ExtrinsicSignature"},c),n.decodeExtrinsicSignature(r,o)),(0,R.Z)((0,I.Z)(a),qc,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),qc,Object.keys(c)),ht((0,I.Z)(a),(0,B.Z)((0,I.Z)(a),qc),(function(e){return a.get(e)})),a}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return this.isSigned?H((0,E.Z)(n.prototype),"encodedLength",this):0}},{key:"isSigned",get:function(){return!this.signature.isEmpty}},{key:"era",get:function(){return this.getT("era")}},{key:"nonce",get:function(){return this.getT("nonce")}},{key:"signature",get:function(){return this.multiSignature.value||this.multiSignature}},{key:"multiSignature",get:function(){return this.getT("signature")}},{key:"signer",get:function(){return this.getT("signer")}},{key:"tip",get:function(){return this.getT("tip")}},{key:"_injectSignature",value:function(e,t,n){for(var r=0;r<(0,B.Z)(this,qc).length;r++){var a=(0,B.Z)(this,qc)[r],i=n.get(a);(0,vt.o)(i)||this.set(a,i)}return this.set("signer",e),this.set("signature",t),this}},{key:"addSignature",value:function(e,t,n){return this._injectSignature(jc(this.registry,e),this.registry.createTypeUnsafe("ExtrinsicSignature",[t]),new Uc(this.registry,n))}},{key:"createPayload",value:function(e,t){var n=t.era,r=t.runtimeVersion,a=r.specVersion,i=r.transactionVersion;return new Uc(this.registry,(0,z.Z)({},t,{era:n||bc,method:e.toHex(),specVersion:a,transactionVersion:i}))}},{key:"sign",value:function(e,t,n){if(!t||!t.addressRaw)throw new Error("Expected a valid keypair for signing, found ".concat((0,bt.P)(t)));var r=this.createPayload(e,n);return this._injectSignature(jc(this.registry,t.addressRaw),this.registry.createTypeUnsafe("ExtrinsicSignature",[r.sign(t)]),r)}},{key:"signFake",value:function(e,t,n){if(!t)throw new Error("Expected a valid address for signing, found ".concat((0,bt.P)(t)));var r=this.createPayload(e,n);return this._injectSignature(jc(this.registry,t),this.registry.createTypeUnsafe("ExtrinsicSignature",[Dc]),r)}},{key:"toU8a",value:function(e){return this.isSigned?H((0,E.Z)(n.prototype),"toU8a",this).call(this,e):yc}}],[{key:"decodeExtrinsicSignature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(e instanceof n||t)?e:yc}}]),n}(Bn),Fc=[],Wc=[],Gc=[],Kc=BigInt(0),Yc=BigInt(1),Jc=BigInt(2),Qc=BigInt(7),_c=BigInt(256),$c=BigInt(113),es=0,ts=Yc,ns=1,rs=0;es<24;es++){var as=[rs,(2*ns+3*rs)%5];ns=as[0],rs=as[1],Fc.push(2*(5*rs+ns)),Wc.push((es+1)*(es+2)/2%64);for(var is=Kc,os=0;os<7;os++)(ts=(ts< >Qc)*$c)%_c)&Jc&&(is^=Yc<<(Yc< 32?Mi.rotlBH(e,t,n):Mi.rotlSH(e,t,n)},ls=function(e,t,n){return n>32?Mi.rotlBL(e,t,n):Mi.rotlSL(e,t,n)};var ps=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r,a){var i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,V.Z)(this,n),(i=t.call(this)).blockLen=e,i.suffix=r,i.outputLen=a,i.enableXOF=o,i.rounds=c,i.pos=0,i.posOut=0,i.finished=!1,i.destroyed=!1,bi.number(a),0>=i.blockLen||i.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return i.state=new Uint8Array(200),i.state32=vi(i.state),i}return(0,O.Z)(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,c=(i+2)%10,s=n[c],u=n[c+1],f=ds(s,u,1)^n[o],d=ls(s,u,1)^n[o+1],l=0;l<50;l+=10)e[i+l]^=f,e[i+l+1]^=d;for(var p=e[2],h=e[3],y=0;y<24;y++){var b=Wc[y],v=ds(p,h,b),m=ls(p,h,b),g=Fc[y];p=e[g],h=e[g+1],e[g]=v,e[g+1]=m}for(var x=0;x<50;x+=10){for(var w=0;w<10;w++)n[w]=e[x+w];for(var k=0;k<10;k++)e[x+k]^=~n[(k+2)%10]&n[(k+4)%10]}e[0]^=us[r],e[1]^=fs[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){bi.exists(this);for(var t=this.blockLen,n=this.state,r=(e=mi(e)).length,a=0;a =n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return bi.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(bi.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(gi),hs=function(e,t,n){return function(e){var t=function(t){return e().update(mi(t)).digest()},n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=function(){return e()},t}((function(){return new ps(t,e,n)}))},ys=(hs(6,144,28),hs(6,136,32),hs(6,104,48),hs(6,72,64),hs(1,144,28),hs(1,136,32)),bs=(hs(1,104,48),hs(1,72,64)),vs=function(e,t,n){return xi((function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ps(t,e,void 0===r.dkLen?n:r.dkLen,!0)}))},ms=(vs(31,168,16),vs(31,136,32),Go({256:Do,512:jo},{256:ys,512:bs}));Wo(ms);function gs(e){return!(!e||42!==e.length||!(0,Zt.vq)(e))&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||function(e){for(var t,n,r=e.replace("0x",""),a=(0,D.c)(ms(r.toLowerCase()),-1,!1),i=0;i<40;i++)if(t=r[i],n=parseInt(a[i],16),t!==(n>7?t.toUpperCase():t.toLowerCase()))return!1;return!0}(e))}var xs=n(5856),ws=n.t(xs,2),ks=BigInt(0),Zs=BigInt(1),Ps=BigInt(2),Ss=BigInt(3),Ts=BigInt(8),Ms=Object.freeze({a:ks,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:Zs,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function Vs(e){var t=Ms.a,n=Ms.b,r=Ys(e*e),a=Ys(r*e);return Ys(a+t*e+n)}var Os=Ms.a===ks,Is=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){return(0,V.Z)(this,n),t.call(this,e)}return(0,O.Z)(n)}((0,lt.Z)(Error)),Ns=function(){function e(t,n,r){(0,V.Z)(this,e),this.x=t,this.y=n,this.z=r}return(0,O.Z)(e,[{key:"equals",value:function(t){if(!(t instanceof e))throw new TypeError("JacobianPoint expected");var n=this.x,r=this.y,a=this.z,i=t.x,o=t.y,c=t.z,s=Ys(a*a),u=Ys(c*c),f=Ys(n*u),d=Ys(i*s),l=Ys(Ys(r*c)*u),p=Ys(Ys(o*a)*s);return f===d&&l===p}},{key:"negate",value:function(){return new e(this.x,Ys(-this.y),this.z)}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=Ys(t*t),i=Ys(n*n),o=Ys(i*i),c=t+i,s=Ys(Ps*(Ys(c*c)-a-o)),u=Ys(Ss*a),f=Ys(u*u),d=Ys(f-Ps*s);return new e(d,Ys(u*(s-d)-Ts*o),Ys(Ps*n*r))}},{key:"add",value:function(t){if(!(t instanceof e))throw new TypeError("JacobianPoint expected");var n=this.x,r=this.y,a=this.z,i=t.x,o=t.y,c=t.z;if(i===ks||o===ks)return this;if(n===ks||r===ks)return t;var s=Ys(a*a),u=Ys(c*c),f=Ys(n*u),d=Ys(i*s),l=Ys(Ys(r*c)*u),p=Ys(Ys(o*a)*s),h=Ys(d-f),y=Ys(p-l);if(h===ks)return y===ks?this.double():e.ZERO;var b=Ys(h*h),v=Ys(h*b),m=Ys(f*b),g=Ys(y*y-v-Ps*m);return new e(g,Ys(y*(m-g)-l*v),Ys(a*c*h))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){var n=e.ZERO;if("bigint"===typeof t&&t===ks)return n;var r=Ks(t);if(r===Zs)return this;if(!Os){for(var a=n,i=this;r>ks;)r&Zs&&(a=a.add(i)),i=i.double(),r>>=Zs;return a}for(var o=nu(r),c=o.k1neg,s=o.k1,u=o.k2neg,f=o.k2,d=n,l=n,p=this;s>ks||f>ks;)s&Zs&&(d=d.add(p)),f&Zs&&(l=l.add(p)),p=p.double(),s>>=Zs,f>>=Zs;return c&&(d=d.negate()),u&&(l=l.negate()),l=new e(Ys(l.x*Ms.beta),l.y,l.z),d.add(l)}},{key:"precomputeWindow",value:function(e){for(var t=Os?128/e+1:256/e+1,n=[],r=this,a=r,i=0;i >=d,h>s&&(h-=f,t+=Zs),0===h){var y=a[p];l%2&&(y=y.negate()),o=o.add(y)}else{var b=a[p+Math.abs(h)-1];h<0&&(b=b.negate()),i=i.add(b)}}return{p:i,f:o}}},{key:"multiply",value:function(t,n){var r,a,i=Ks(t);if(Os){var o=nu(i),c=o.k1neg,s=o.k1,u=o.k2neg,f=o.k2,d=this.wNAF(s,n),l=d.p,p=d.f,h=this.wNAF(f,n),y=h.p,b=h.f;c&&(l=l.negate()),u&&(y=y.negate()),y=new e(Ys(y.x*Ms.beta),y.y,y.z),r=l.add(y),a=p.add(b)}else{var v=this.wNAF(i,n);r=v.p,a=v.f}return e.normalizeZ([r,a])[0]}},{key:"toAffine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qs(this.z),t=this.x,n=this.y,r=this.z,a=e,i=Ys(a*a),o=Ys(i*a),c=Ys(t*i),s=Ys(n*o),u=Ys(r*a);if(u!==Zs)throw new Error("invZ was invalid");return new Es(c,s)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof Es))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new e(t.x,t.y,Zs)}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.P,n=new Array(e.length),r=e.reduce((function(e,r,a){return r===ks?e:(n[a]=e,Ys(e*r,t))}),Zs),a=Qs(r,t);return e.reduceRight((function(e,r,a){return r===ks?e:(n[a]=Ys(e*n[a],t),Ys(e*r,t))}),a),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();Ns.BASE=new Ns(Ms.Gx,Ms.Gy,Zs),Ns.ZERO=new Ns(ks,Zs,ks);var As=new WeakMap,Es=function(){function e(t,n){(0,V.Z)(this,e),this.x=t,this.y=n}return(0,O.Z)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,As.delete(this)}},{key:"hasEvenY",value:function(){return this.y%Ps===ks}},{key:"toRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Fs(this.toHex(e))}},{key:"toHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Ds(this.x);if(e){var n=this.hasEvenY()?"02":"03";return"".concat(n).concat(t)}return"04".concat(t).concat(Ds(this.y))}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){var e="Point is not on elliptic curve",t=this.x,n=this.y;if(!iu(t)||!iu(n))throw new Error(e);var r=Ys(n*n);if(Ys(r-Vs(t))!==ks)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,Ys(-this.y))}},{key:"double",value:function(){return Ns.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return Ns.fromAffine(this).add(Ns.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return Ns.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var a=Ns.fromAffine(this),i=n===ks||n===Zs||this!==e.BASE?a.multiplyUnsafe(n):a.multiply(n),o=Ns.fromAffine(t).multiplyUnsafe(r),c=i.add(o);return c.equals(Ns.ZERO)?void 0:c.toAffine()}}],[{key:"fromCompressedHex",value:function(t){var n=32===t.length,r=Ws(n?t:t.subarray(1));if(!iu(r))throw new Error("Point is not on curve");var a=function(e){var t=Ms.P,n=BigInt(6),r=BigInt(11),a=BigInt(22),i=BigInt(23),o=BigInt(44),c=BigInt(88),s=e*e*e%t,u=s*s*e%t,f=Js(u,Ss)*u%t,d=Js(f,Ss)*u%t,l=Js(d,Ps)*s%t,p=Js(l,r)*l%t,h=Js(p,a)*p%t,y=Js(h,o)*h%t,b=Js(y,c)*y%t,v=Js(b,o)*h%t,m=Js(v,Ss)*u%t,g=Js(m,i)*p%t,x=Js(g,n)*s%t;return Js(x,Ps)}(Vs(r)),i=(a&Zs)===Zs;n?i&&(a=Ys(-a)):1===(1&t[0])!==i&&(a=Ys(-a));var o=new e(r,a);return o.assertValidity(),o}},{key:"fromUncompressedHex",value:function(t){var n=new e(Ws(t.subarray(1,33)),Ws(t.subarray(33,65)));return n.assertValidity(),n}},{key:"fromHex",value:function(e){var t=Gs(e),n=t.length,r=t[0];if(32===n||33===n&&(2===r||3===r))return this.fromCompressedHex(t);if(65===n&&4===r)return this.fromUncompressedHex(t);throw new Error("Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ".concat(n))}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(ou(t))}},{key:"fromSignature",value:function(t,n,r){var a=ru(t=Gs(t)),i=cu(n),o=i.r,c=i.s;if(0!==r&&1!==r)throw new Error("Cannot recover signature: invalid recovery bit");var s=1&r?"03":"02",u=e.fromHex(s+Ds(o)),f=Ms.n,d=Qs(o,f),l=Ys(-a*d,f),p=Ys(c*d,f),h=e.BASE.multiplyAndAddUnsafe(u,l,p);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}}]),e}();function Cs(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Hs(e){if(e.length<2||2!==e[0])throw new Error("Invalid signature integer tag: ".concat(zs(e)));var t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Ws(n),left:e.subarray(t+2)}}Es.BASE=new Es(Ms.Gx,Ms.Gy),Es.ZERO=new Es(ks,ks);var Rs=function(){function e(t,n){(0,V.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,O.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!au(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!au(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){var e=Ms.n>>Zs;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,Ms.n-this.s):this}},{key:"toDERRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Fs(this.toDERHex(e))}},{key:"toDERHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Cs(qs(this.s));if(e)return t;var n=Cs(qs(this.r)),r=qs(n.length/2),a=qs(t.length/2),i=qs(n.length/2+t.length/2+4);return"30".concat(i,"02").concat(r).concat(n,"02").concat(a).concat(t)}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return Fs(this.toCompactHex())}},{key:"toCompactHex",value:function(){return Ds(this.r)+Ds(this.s)}}],[{key:"fromCompact",value:function(t){var n=t instanceof Uint8Array,r="Signature.fromCompact";if("string"!==typeof t&&!n)throw new TypeError("".concat(r,": Expected string or Uint8Array"));var a=n?zs(t):t;if(128!==a.length)throw new Error("".concat(r,": Expected 64-byte hex"));return new e(Xs(a.slice(0,64)),Xs(a.slice(64,128)))}},{key:"fromDER",value:function(t){var n=t instanceof Uint8Array;if("string"!==typeof t&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");var r=function(e){if(e.length<2||48!=e[0])throw new Error("Invalid signature tag: ".concat(zs(e)));if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");var t=Hs(e.subarray(2)),n=t.data,r=Hs(t.left),a=r.data,i=r.left;if(i.length)throw new Error("Invalid signature: left bytes after parsing: ".concat(zs(i)));return{r:n,s:a}}(n?t:Fs(t));return new e(r.r,r.s)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function Bs(){for(var e=arguments.length,t=new Array(e),n=0;n 0)return BigInt(e);if("bigint"===typeof e&&au(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function Ys(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.P,n=e%t;return n>=ks?n:t+n}function Js(e,t){for(var n=Ms.P,r=e;t-- >ks;)r*=r,r%=n;return r}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ms.P;if(e===ks||t<=ks)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=Ys(e,t),r=t,a=ks,i=Zs,o=Zs,c=ks;n!==ks;){var s=r/n,u=r%n,f=a-o*s,d=i-c*s;r=n,n=u,a=o,i=c,o=f,c=d}var l=r;if(l!==Zs)throw new Error("invert: does not exist");return Ys(a,t)}var _s,$s,eu=function(e,t){return(e+t/Ps)/t},tu={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-Zs*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function nu(e){var t=Ms.n,n=tu.a1,r=tu.b1,a=tu.a2,i=tu.b2,o=tu.POW_2_128,c=eu(i*e,t),s=eu(-r*e,t),u=Ys(e-c*n-s*a,t),f=Ys(-c*r-s*i,t),d=u>o,l=f>o;if(d&&(u=t-u),l&&(f=t-f),u>o||f>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:l,k2:f}}function ru(e){var t=Ms.n,n=8*e.length-256,r=Ws(e);return n>0&&(r>>=BigInt(n)),r>=t&&(r-=t),r}function au(e){return ks 0)t=BigInt(e);else if("string"===typeof e){if(64!==e.length)throw new Error("Expected 32 bytes of private key");t=Xs(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(32!==e.length)throw new Error("Expected 32 bytes of private key");t=Ws(e)}if(!au(t))throw new Error("Expected private key: 0 < key < n");return t}function cu(e){if(e instanceof Rs)return e.assertValidity(),e;try{return Rs.fromDER(e)}catch(t){return Rs.fromCompact(e)}}Es.BASE._setWindowSize(8);var su={node:ws,web:"object"===typeof self&&"crypto"in self?self.crypto:void 0},uu={},fu={bytesToHex:zs,hexToBytes:Fs,concatBytes:Bs,mod:Ys,invert:Qs,isValidPrivateKey:function(e){try{return ou(e),!0}catch(t){return!1}},_bigintTo32Bytes:js,_normalizePrivateKey:ou,hashToPrivateKey:function(e){if((e=Gs(e)).length<40||e.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return js(Ys(Ws(e),Ms.n-Zs)+Zs)},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(su.web)return su.web.getRandomValues(new Uint8Array(e));if(su.node){var t=su.node.randomBytes;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return fu.hashToPrivateKey(fu.randomBytes(40))},sha256:function(){var e=(0,M.Z)((0,T.Z)().mark((function e(){var t,n,r,a,i,o,c=arguments;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=c.length,n=new Array(t),r=0;r 1?n-1:0),a=1;a 1?a-1:0),o=1;o1?r-1:0),i=1;i 0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Es.BASE,n=t===Es.BASE?t:new Es(t.x,t.y);return n._setWindowSize(e),n.multiply(Ss),n}};Object.defineProperties(fu,{sha256Sync:{configurable:!1,get:function(){return _s},set:function(e){_s||(_s=e)}},hmacSha256Sync:{configurable:!1,get:function(){return $s},set:function(e){$s||($s=e)}}});var du={bitLength:256,isLe:!1};function lu(e){return[33,65].includes(e.length)&&(e=ms(function(e,t){if(65===e.length)return e.subarray(1);if(33!==e.length)throw new Error("Invalid publicKey provided");if(!Ci.vc||!t&&Xo())return zo(e).subarray(1);var n=Es.fromHex(e),r=n.x,a=n.y;return(0,qt.e)((0,jt.a)(r,du),(0,jt.a)(a,du))}(e))),e.slice(-20)}function pu(e){return(0,zt.U)(e)||Array.isArray(e)?(0,j.Y)(e):(0,Zt.vq)(e)||gs(e.toString())?(0,Sc.G)(e.toString()):(0,U.H)(e)?(0,j.Y)(e):e}var hu=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return(0,V.Z)(this,n),t.call(this,e,pu(r),160)}return(0,O.Z)(n,[{key:"eq",value:function(e){return H((0,E.Z)(n.prototype),"eq",this).call(this,pu(e))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){return function(e){if(!e)return"0x";var t=(0,j.Y)(e);if(![20,32,33,65].includes(t.length))throw new Error("Invalid address or publicKey passed");for(var n=(0,D.c)(lu(t),-1,!1),r=(0,D.c)(ms(n),-1,!1),a="",i=0;i<40;i++)a="".concat(a).concat(parseInt(r[i],16)>7?n[i].toUpperCase():n[i]);return"0x".concat(a)}(this)}},{key:"toRawType",value:function(){return"AccountId"}}]),n}(ha);function yu(e){if(!Number.isSafeInteger(e))throw new Error("Wrong integer: ".concat(e))}function bu(){for(var e=function(e,t){return function(n){return e(t(n))}},t=arguments.length,n=new Array(t),r=0;r =e.length)throw new Error("Digit index outside alphabet: ".concat(t," (alphabet: ").concat(e.length,")"));return e[t]}))},decode:function(t){if(!Array.isArray(t)||t.length&&"string"!==typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((function(t){if("string"!==typeof t)throw new Error("alphabet.decode: not string element=".concat(t));var n=e.indexOf(t);if(-1===n)throw new Error('Unknown letter: "'.concat(t,'". Allowed: ').concat(e));return n}))}}}function mu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!==typeof e)throw new Error("join separator should be string");return{encode:function(t){if(!Array.isArray(t)||t.length&&"string"!==typeof t[0])throw new Error("join.encode input should be array of strings");var n,r=(0,ft.Z)(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("string"!==typeof a)throw new Error("join.encode: non-string input=".concat(a))}}catch(i){r.e(i)}finally{r.f()}return t.join(e)},decode:function(t){if("string"!==typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function gu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";if(yu(e),"string"!==typeof t)throw new Error("padding chr should be string");return{encode:function(n){if(!Array.isArray(n)||n.length&&"string"!==typeof n[0])throw new Error("padding.encode input should be array of strings");var r,a=(0,ft.Z)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if("string"!==typeof i)throw new Error("padding.encode: non-string input=".concat(i))}}catch(o){a.e(o)}finally{a.f()}for(;n.length*e%8;)n.push(t);return n},decode:function(n){if(!Array.isArray(n)||n.length&&"string"!==typeof n[0])throw new Error("padding.encode input should be array of strings");var r,a=(0,ft.Z)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;if("string"!==typeof i)throw new Error("padding.decode: non-string input=".concat(i))}}catch(c){a.e(c)}finally{a.f()}var o=n.length;if(o*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;o>0&&n[o-1]===t;o--)if(!((o-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,o)}}}function xu(e){if("function"!==typeof e)throw new Error("normalize fn should be function");return{encode:function(e){return e},decode:function(t){return e(t)}}}function wu(e,t,n){if(t<2)throw new Error("convertRadix: wrong from=".concat(t,", base cannot be less than 2"));if(n<2)throw new Error("convertRadix: wrong to=".concat(n,", base cannot be less than 2"));if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];var r=0,a=[],i=Array.from(e);for(i.forEach((function(e){if(yu(e),e<0||e>=t)throw new Error("Wrong integer: ".concat(e))}));;){for(var o=0,c=!0,s=r;s 32)throw new Error("convertRadix2: wrong from=".concat(t));if(n<=0||n>32)throw new Error("convertRadix2: wrong to=".concat(n));if(Zu(t,n)>32)throw new Error("convertRadix2: carry overflow from=".concat(t," to=").concat(n," carryBits=").concat(Zu(t,n)));var a,i=0,o=0,c=Math.pow(2,n)-1,s=[],u=(0,ft.Z)(e);try{for(u.s();!(a=u.n()).done;){var f=a.value;if(yu(f),f>=Math.pow(2,t))throw new Error("convertRadix2: invalid data word=".concat(f," from=").concat(t));if(i=i< 32)throw new Error("convertRadix2: carry overflow pos=".concat(o," from=").concat(t));for(o+=t;o>=n;o-=n)s.push((i>>o-n&c)>>>0);i&=Math.pow(2,o)-1}}catch(d){u.e(d)}finally{u.f()}if(i=i< =t)throw new Error("Excess padding");if(!r&&i)throw new Error("Non-zero padding: ".concat(i));return r&&o>0&&s.push(i>>>0),s}function Su(e){return yu(e),{encode:function(t){if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return wu(Array.from(t),Math.pow(2,8),e)},decode:function(t){if(!Array.isArray(t)||t.length&&"number"!==typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(wu(t,e,Math.pow(2,8)))}}}function Tu(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(yu(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(Zu(8,e)>32||Zu(e,8)>32)throw new Error("radix2: carry overflow");return{encode:function(n){if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return Pu(Array.from(n),8,e,!t)},decode:function(n){if(!Array.isArray(n)||n.length&&"number"!==typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(Pu(n,e,8,t))}}}function Mu(e){if("function"!==typeof e)throw new Error("unsafeWrapper fn should be function");return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r >25,n=(33554431&e)<<5,r=0;r >r&1)&&(n^=Bu[r]);return n}function zu(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.length,a=1,i=0;i 126)throw new Error("Invalid prefix (".concat(e,")"));a=Lu(a)^o>>5}a=Lu(a);for(var c=0;c 1&&void 0!==arguments[1]?arguments[1]:90;if("string"!==typeof e)throw new Error("bech32.decode input should be string, not ".concat(typeof e));if(e.length<8||!1!==n&&e.length>n)throw new TypeError("Wrong string length: ".concat(e.length," (").concat(e,"). Expected (8..").concat(n,")"));var r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");var a=(e=r).lastIndexOf("1");if(0===a||-1===a)throw new Error('Letter "1" must be present between prefix and data only');var i=e.slice(0,a),o=e.slice(a+1);if(o.length<6)throw new Error("Data must be at least 6 characters long");var c=Ru.decode(o).slice(0,-6),s=zu(i,c,t);if(!o.endsWith(s))throw new Error("Invalid checksum in ".concat(e,': expected "').concat(s,'"'));return{prefix:i,words:c}}return{encode:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90;if("string"!==typeof e)throw new Error("bech32.encode prefix should be string, not ".concat(typeof e));if(!Array.isArray(n)||n.length&&"number"!==typeof n[0])throw new Error("bech32.encode words should be array of numbers, not ".concat(typeof n));var a=e.length+7+n.length;if(!1!==r&&a>r)throw new TypeError("Length ".concat(a," exceeds limit ").concat(r));return e=e.toLowerCase(),"".concat(e,"1").concat(Ru.encode(n)).concat(zu(e,n,t))},decode:o,decodeToBytes:function(e){var t=o(e,!1),n=t.prefix,a=t.words;return{prefix:n,words:a,bytes:r(a)}},decodeUnsafe:Mu(o),fromWords:r,fromWordsUnsafe:i,toWords:a}}Uu("bech32"),Uu("bech32m");var Du={encode:function(e){return(new TextDecoder).decode(e)},decode:function(e){return(new TextEncoder).encode(e)}},ju={utf8:Du,hex:bu(Tu(4),vu("0123456789abcdef"),mu(""),xu((function(e){if("string"!==typeof e||e.length%2)throw new TypeError("hex.decode: expected string, got ".concat(typeof e," with length ").concat(e.length));return e.toLowerCase()}))),base16:Vu,base32:Ou,base64:Iu,base64url:Nu,base58:Eu,base58xmr:Hu};"Invalid encoding type. Available types: ".concat(Object.keys(ju).join(", "));function qu(e,t){var n=e.coder,r=e.ipfs;return function(e,a){return t(e,a),n.decode(r&&a?e.substring(1):e)}}function Xu(e){var t=e.coder,n=e.ipfs;return function(e,r){var a=t.encode((0,j.Y)(e));return n&&r?"".concat(n).concat(a):a}}function Fu(e){var t=e.chars,n=e.ipfs,r=e.type;return function(e,a){if(!e||"string"!==typeof e)throw new Error("Expected non-null, non-empty ".concat(r," string input"));if(n&&a&&e[0]!==n)throw new Error("Expected ipfs-compatible ".concat(r," to start with '").concat(n,"'"));for(var i=a?1:0;i >6|(63&e[1])<<8,r=[34+t,35+t].includes(e.length),a=e.length-(r?2:1),i=Qu(e.subarray(0,a));return[0===(128&e[0])&&![46,47].includes(e[0])&&(r?e[e.length-2]===i[0]&&e[e.length-1]===i[1]:e[e.length-1]===i[0]),a,t,n]}var $u={acala:787,ajuna:354,"aleph-node":643,astar:810,bifrost:788,"bifrost-kusama":788,centrifuge:747,composable:354,darwinia:354,"dock-mainnet":594,edgeware:523,equilibrium:99999997,genshiro:99999996,hydradx:354,"interlay-parachain":354,karura:686,khala:434,kusama:434,"nodle-para":1003,origintrail:354,parallel:354,phala:354,polkadex:799,polkadot:354,polymesh:595,sora:617,stafi:907,statemine:434,statemint:354,unique:354,vtb:694,xxnetwork:1955},ef={acala:["0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c"],ajuna:["0xe358eb1d11b31255a286c12e44fe6780b7edb171d657905a97e39f71d9c6c3ee"],"aleph-node":["0x70255b4d28de0fc4e1a193d7e175ad1ccef431598211c55538f1018651a0344e"],astar:["0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6"],basilisk:["0xa85cfb9b9fd4d622a5b28289a02347af987d8f73fa3108450e2b4a11c1ce5755"],bifrost:["0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b"],"bifrost-kusama":["0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed"],centrifuge:["0xb3db41421702df9a7fcac62b53ffeac85f7853cc4e689e0b93aeb3db18c09d82","0x67dddf2673b69e5f875f6f25277495834398eafd67f492e09f3f3345e003d1b5"],composable:["0xdaab8df776eb52ec604a5df5d388bb62a050a0aaec4556a64265b9d42755552d"],darwinia:["0xe71578b37a7c799b0ab4ee87ffa6f059a6b98f71f06fb8c84a8d88013a548ad6"],"dock-mainnet":["0x6bfe24dca2a3be10f22212678ac13a6446ec764103c0f3471c71609eac384aae","0xf73467c6544aa68df2ee546b135f955c46b90fa627e9b5d7935f41061bb8a5a9"],edgeware:["0x742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b"],equilibrium:["0x6f1a800de3daff7f5e037ddf66ab22ce03ab91874debeddb1086f5f7dbd48925"],genshiro:["0x9b8cefc0eb5c568b527998bdd76c184e2b76ae561be76e4667072230217ea243"],hydradx:["0xafdc188f45c71dacbaa0b62e16a91f726c7b8699a9748cdf715459de6b7f366d","0xd2a620c27ec5cbc5621ff9a522689895074f7cca0d08e7134a7804e1a3ba86fc","0x10af6e84234477d84dc572bac0789813b254aa490767ed06fb9591191d1073f9","0x3d75507dd46301767e601265791da1d9cb47b6ebc94e87347b635e5bf58bd047","0x0ed32bfcab4a83517fac88f2aa7cbc2f88d3ab93be9a12b6188a036bf8a943c2"],"interlay-parachain":["0xbf88efe70e9e0e916416e8bed61f2b45717f517d7f3523e33c7b001e5ffcbc72"],karura:["0xbaf5aabe40646d11f0ee8abbdc64f4a4b7674925cba08e4a05ff9ebed6e2126b"],khala:["0xd43540ba6d3eb4897c28a77d48cb5b729fea37603cbbfc7a86a73b72adb3be8d"],kulupu:["0xf7a99d3cb92853d00d5275c971c132c074636256583fee53b3bbe60d7b8769ba"],kusama:["0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe","0xe3777fa922cafbff200cadeaea1a76bd7898ad5b89f7848999058b50e715f636","0x3fd7b9eb6a00376e5be61f01abb429ffb0b104be05eaff4d458da48fcd425baf"],"nodle-para":["0x97da7ede98d7bad4e36b4d734b6055425a3be036da2a332ea5a7037656427a21"],origintrail:["0xe7e0962324a3b86c83404dbea483f25fb5dab4c224791c81b756cfc948006174"],parallel:["0xe61a41c53f5dcd0beb09df93b34402aada44cb05117b71059cce40a2723a4e97"],phala:["0x1bb969d85965e4bb5a651abbedf21a54b6b31a21f66b5401cc3f1e286268d736"],picasso:["0xe8e7f0f4c4f5a00720b4821dbfddefea7490bcf0b19009961cc46957984e2c1c"],polkadex:["0x3920bcb4960a1eef5580cd5367ff3f430eef052774f78468852f7b9cb39f8a3c"],polkadot:["0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3"],polymesh:["0x6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"],rococo:["0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e","0xaaf2cd1b74b5f726895921259421b534124726263982522174147046b8827897","0x037f5f3c8e67b314062025fc886fcd6238ea25a4a9b45dce8d246815c9ebe770","0xc196f81260cf1686172b47a79cf002120735d7cb0eb1474e8adce56618456fff","0xf6e9983c37baf68846fedafe21e56718790e39fb1c582abc408b81bc7b208f9a","0x5fce687da39305dfe682b117f0820b319348e8bb37eb16cf34acbf6a202de9d9","0xe7c3d5edde7db964317cd9b51a3a059d7cd99f81bdbce14990047354334c9779","0x1611e1dbf0405379b861e2e27daa90f480b2e6d3682414a80835a52e8cb8a215","0x343442f12fa715489a8714e79a7b264ea88c0d5b8c66b684a7788a516032f6b9","0x78bcd530c6b3a068bc17473cf5d2aff9c287102bed9af3ae3c41c33b9d6c6147","0x47381ee0697153d64404fc578392c8fd5cba9073391908f46c888498415647bd","0x19c0e4fa8ab75f5ac7865e0b8f74ff91eb9a100d336f423cd013a8befba40299"],sora:["0x7e4e32d0feafd4f9c9414b0be86373f9a1efa904809b683453a9af6856d38ad5"],stafi:["0x290a4149f09ea0e402c74c1c7e96ae4239588577fe78932f94f5404c68243d80"],statemine:["0x48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a"],statemint:["0x68d56f15f85d3136970ec16946040bc1752654e906147f7e43e9d539d7c3de2f"],subsocial:["0x0bd72c1c305172e1275278aaeb3f161e02eccb7a819e63f62d47bd53a28189f8"],unique:["0x84322d9cddbf35088f1e54e9a85c967a41a56a4f43445768125e61af166c7d31"],vtb:["0x286bc8414c7000ce1d6ee6a834e29a54c1784814b76243eb77ed0b2c5573c60f","0x7483b89572fb2bd687c7b9a93b242d0b237f9aba463aba07ec24503931038aaa"],westend:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"],xxnetwork:["0x50dd5d206917bf10502c68fb4d18a59fc8aa31586f4e8856b493e43544aa82aa"]},tf={centrifuge:"polkadot",kusama:"polkadot",polkadot:"polkadot",sora:"polkadot",statemine:"polkadot",statemint:"polkadot",westmint:"polkadot"},nf={"":!0,"cess-testnet":!0,"dock-testnet":!0,jupiter:!0,"mathchain-testnet":!0,p3dt:!0,subspace_testnet:!0,"zero-alphaville":!0},rf=[0,2,42],af=["testnet"];var of=[{prefix:0,network:"polkadot",displayName:"Polkadot Relay Chain",symbols:["DOT"],decimals:[10],standardAccount:"*25519",website:"https://polkadot.network"},{prefix:1,network:"BareSr25519",displayName:"Bare 32-bit Schnorr/Ristretto (S/R 25519) public key.",symbols:[],decimals:[],standardAccount:"Sr25519",website:null},{prefix:2,network:"kusama",displayName:"Kusama Relay Chain",symbols:["KSM"],decimals:[12],standardAccount:"*25519",website:"https://kusama.network"},{prefix:3,network:"BareEd25519",displayName:"Bare 32-bit Ed25519 public key.",symbols:[],decimals:[],standardAccount:"Ed25519",website:null},{prefix:4,network:"katalchain",displayName:"Katal Chain",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:5,network:"astar",displayName:"Astar Network",symbols:["ASTR"],decimals:[18],standardAccount:"*25519",website:"https://astar.network"},{prefix:6,network:"bifrost",displayName:"Bifrost",symbols:["BNC"],decimals:[12],standardAccount:"*25519",website:"https://bifrost.finance/"},{prefix:7,network:"edgeware",displayName:"Edgeware",symbols:["EDG"],decimals:[18],standardAccount:"*25519",website:"https://edgewa.re"},{prefix:8,network:"karura",displayName:"Karura",symbols:["KAR"],decimals:[12],standardAccount:"*25519",website:"https://karura.network/"},{prefix:9,network:"reynolds",displayName:"Laminar Reynolds Canary",symbols:["REY"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:10,network:"acala",displayName:"Acala",symbols:["ACA"],decimals:[12],standardAccount:"*25519",website:"https://acala.network/"},{prefix:11,network:"laminar",displayName:"Laminar",symbols:["LAMI"],decimals:[18],standardAccount:"*25519",website:"http://laminar.network/"},{prefix:12,network:"polymesh",displayName:"Polymesh",symbols:["POLYX"],decimals:[6],standardAccount:"*25519",website:"https://polymath.network/"},{prefix:13,network:"integritee",displayName:"Integritee",symbols:["TEER"],decimals:[12],standardAccount:"*25519",website:"https://integritee.network"},{prefix:14,network:"totem",displayName:"Totem",symbols:["TOTEM"],decimals:[0],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:15,network:"synesthesia",displayName:"Synesthesia",symbols:["SYN"],decimals:[12],standardAccount:"*25519",website:"https://synesthesia.network/"},{prefix:16,network:"kulupu",displayName:"Kulupu",symbols:["KLP"],decimals:[12],standardAccount:"*25519",website:"https://kulupu.network/"},{prefix:17,network:"dark",displayName:"Dark Mainnet",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:18,network:"darwinia",displayName:"Darwinia Network",symbols:["RING","KTON"],decimals:[9,9],standardAccount:"*25519",website:"https://darwinia.network/"},{prefix:19,network:"watr",displayName:"Watr Protocol",symbols:["WATR"],decimals:[18],standardAccount:"*25519",website:"https://www.watr.org"},{prefix:20,network:"stafi",displayName:"Stafi",symbols:["FIS"],decimals:[12],standardAccount:"*25519",website:"https://stafi.io"},{prefix:22,network:"dock-pos-mainnet",displayName:"Dock Mainnet",symbols:["DCK"],decimals:[6],standardAccount:"*25519",website:"https://dock.io"},{prefix:23,network:"shift",displayName:"ShiftNrg",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:24,network:"zero",displayName:"ZERO",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:25,network:"zero-alphaville",displayName:"ZERO Alphaville",symbols:["ZERO"],decimals:[18],standardAccount:"*25519",website:"https://zero.io"},{prefix:26,network:"jupiter",displayName:"Jupiter",symbols:["jDOT"],decimals:[10],standardAccount:"*25519",website:"https://jupiter.patract.io"},{prefix:27,network:"kabocha",displayName:"Kabocha",symbols:["KAB"],decimals:[12],standardAccount:"*25519",website:"https://kabocha.network"},{prefix:28,network:"subsocial",displayName:"Subsocial",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:29,network:"cord",displayName:"CORD Network",symbols:["DHI","WAY"],decimals:[12,12],standardAccount:"*25519",website:"https://cord.network/"},{prefix:30,network:"phala",displayName:"Phala Network",symbols:["PHA"],decimals:[12],standardAccount:"*25519",website:"https://phala.network"},{prefix:31,network:"litentry",displayName:"Litentry Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:32,network:"robonomics",displayName:"Robonomics",symbols:["XRT"],decimals:[9],standardAccount:"*25519",website:"https://robonomics.network"},{prefix:33,network:"datahighway",displayName:"DataHighway",symbols:[],decimals:[],standardAccount:"*25519",website:null},{prefix:34,network:"ares",displayName:"Ares Protocol",symbols:["ARES"],decimals:[12],standardAccount:"*25519",website:"https://www.aresprotocol.com/"},{prefix:35,network:"vln",displayName:"Valiu Liquidity Network",symbols:["USDv"],decimals:[15],standardAccount:"*25519",website:"https://valiu.com/"},{prefix:36,network:"centrifuge",displayName:"Centrifuge Chain",symbols:["CFG"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:37,network:"nodle",displayName:"Nodle Chain",symbols:["NODL"],decimals:[11],standardAccount:"*25519",website:"https://nodle.io/"},{prefix:38,network:"kilt",displayName:"KILT Spiritnet",symbols:["KILT"],decimals:[15],standardAccount:"*25519",website:"https://kilt.io/"},{prefix:39,network:"mathchain",displayName:"MathChain mainnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:40,network:"mathchain-testnet",displayName:"MathChain testnet",symbols:["MATH"],decimals:[18],standardAccount:"*25519",website:"https://mathwallet.org"},{prefix:41,network:"poli",displayName:"Polimec Chain",symbols:[],decimals:[],standardAccount:"*25519",website:"https://polimec.io/"},{prefix:42,network:"substrate",displayName:"Substrate",symbols:[],decimals:[],standardAccount:"*25519",website:"https://substrate.io/"},{prefix:43,network:"BareSecp256k1",displayName:"Bare 32-bit ECDSA SECP-256k1 public key.",symbols:[],decimals:[],standardAccount:"secp256k1",website:null},{prefix:44,network:"chainx",displayName:"ChainX",symbols:["PCX"],decimals:[8],standardAccount:"*25519",website:"https://chainx.org/"},{prefix:45,network:"uniarts",displayName:"UniArts Network",symbols:["UART","UINK"],decimals:[12,12],standardAccount:"*25519",website:"https://uniarts.me"},{prefix:46,network:"reserved46",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:47,network:"reserved47",displayName:"This prefix is reserved.",symbols:[],decimals:[],standardAccount:null,website:null},{prefix:48,network:"neatcoin",displayName:"Neatcoin Mainnet",symbols:["NEAT"],decimals:[12],standardAccount:"*25519",website:"https://neatcoin.org"},{prefix:49,network:"picasso",displayName:"Picasso",symbols:["PICA"],decimals:[12],standardAccount:"*25519",website:"https://picasso.composable.finance"},{prefix:50,network:"composable",displayName:"Composable",symbols:["LAYR"],decimals:[12],standardAccount:"*25519",website:"https://composable.finance"},{prefix:51,network:"oak",displayName:"OAK Network",symbols:["OAK","TUR"],decimals:[10,10],standardAccount:"*25519",website:"https://oak.tech"},{prefix:52,network:"KICO",displayName:"KICO",symbols:["KICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:53,network:"DICO",displayName:"DICO",symbols:["DICO"],decimals:[14],standardAccount:"*25519",website:"https://dico.io"},{prefix:54,network:"cere",displayName:"Cere Network",symbols:["CERE"],decimals:[10],standardAccount:"*25519",website:"https://cere.network"},{prefix:55,network:"xxnetwork",displayName:"xx network",symbols:["XX"],decimals:[9],standardAccount:"*25519",website:"https://xx.network"},{prefix:56,network:"pendulum",displayName:"Pendulum chain",symbols:["PEN"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:57,network:"amplitude",displayName:"Amplitude chain",symbols:["AMPE"],decimals:[12],standardAccount:"*25519",website:"https://pendulumchain.org/"},{prefix:63,network:"hydradx",displayName:"HydraDX",symbols:["HDX"],decimals:[12],standardAccount:"*25519",website:"https://hydradx.io"},{prefix:65,network:"aventus",displayName:"AvN Mainnet",symbols:["AVT"],decimals:[18],standardAccount:"*25519",website:"https://aventus.io"},{prefix:66,network:"crust",displayName:"Crust Network",symbols:["CRU"],decimals:[12],standardAccount:"*25519",website:"https://crust.network"},{prefix:67,network:"genshiro",displayName:"Genshiro Network",symbols:["GENS","EQD","LPT0"],decimals:[9,9,9],standardAccount:"*25519",website:"https://genshiro.equilibrium.io"},{prefix:68,network:"equilibrium",displayName:"Equilibrium Network",symbols:["EQ"],decimals:[9],standardAccount:"*25519",website:"https://equilibrium.io"},{prefix:69,network:"sora",displayName:"SORA Network",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:71,network:"p3d",displayName:"3DP network",symbols:["P3D"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:72,network:"p3dt",displayName:"3DP test network",symbols:["P3Dt"],decimals:[12],standardAccount:"*25519",website:"https://3dpass.org"},{prefix:73,network:"zeitgeist",displayName:"Zeitgeist",symbols:["ZTG"],decimals:[10],standardAccount:"*25519",website:"https://zeitgeist.pm"},{prefix:77,network:"manta",displayName:"Manta network",symbols:["MANTA"],decimals:[18],standardAccount:"*25519",website:"https://manta.network"},{prefix:78,network:"calamari",displayName:"Calamari: Manta Canary Network",symbols:["KMA"],decimals:[12],standardAccount:"*25519",website:"https://manta.network"},{prefix:81,network:"sora_dot_para",displayName:"SORA Polkadot Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:88,network:"polkadex",displayName:"Polkadex Mainnet",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:89,network:"polkadexparachain",displayName:"Polkadex Parachain",symbols:["PDEX"],decimals:[12],standardAccount:"*25519",website:"https://polkadex.trade"},{prefix:90,network:"frequency",displayName:"Frequency",symbols:["FRQCY"],decimals:[8],standardAccount:"*25519",website:"https://www.frequency.xyz"},{prefix:92,network:"anmol",displayName:"Anmol Network",symbols:["ANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:93,network:"fragnova",displayName:"Fragnova Network",symbols:["NOVA"],decimals:[12],standardAccount:"*25519",website:"https://fragnova.com"},{prefix:98,network:"polkasmith",displayName:"PolkaSmith Canary Network",symbols:["PKS"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:99,network:"polkafoundry",displayName:"PolkaFoundry Network",symbols:["PKF"],decimals:[18],standardAccount:"*25519",website:"https://polkafoundry.com"},{prefix:100,network:"ibtida",displayName:"Anmol Network Ibtida Canary network",symbols:["IANML"],decimals:[18],standardAccount:"*25519",website:"https://anmol.network/"},{prefix:101,network:"origintrail-parachain",displayName:"OriginTrail Parachain",symbols:["OTP"],decimals:[12],standardAccount:"*25519",website:"https://parachain.origintrail.io/"},{prefix:105,network:"pontem-network",displayName:"Pontem Network",symbols:["PONT"],decimals:[10],standardAccount:"*25519",website:"https://pontem.network"},{prefix:110,network:"heiko",displayName:"Heiko",symbols:["HKO"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:113,network:"integritee-incognito",displayName:"Integritee Incognito",symbols:[],decimals:[],standardAccount:"*25519",website:"https://integritee.network"},{prefix:117,network:"tinker",displayName:"Tinker",symbols:["TNKR"],decimals:[12],standardAccount:"*25519",website:"https://invarch.network"},{prefix:126,network:"joystream",displayName:"Joystream",symbols:["JOY"],decimals:[10],standardAccount:"*25519",website:"https://www.joystream.org"},{prefix:128,network:"clover",displayName:"Clover Finance",symbols:["CLV"],decimals:[18],standardAccount:"*25519",website:"https://clover.finance"},{prefix:129,network:"dorafactory-polkadot",displayName:"Dorafactory Polkadot Network",symbols:["DORA"],decimals:[12],standardAccount:"*25519",website:"https://dorafactory.org"},{prefix:131,network:"litmus",displayName:"Litmus Network",symbols:["LIT"],decimals:[12],standardAccount:"*25519",website:"https://litentry.com/"},{prefix:136,network:"altair",displayName:"Altair",symbols:["AIR"],decimals:[18],standardAccount:"*25519",website:"https://centrifuge.io/"},{prefix:137,network:"vara",displayName:"Vara Network",symbols:["VARA"],decimals:[12],standardAccount:"*25519",website:"https://vara-network.io/"},{prefix:172,network:"parallel",displayName:"Parallel",symbols:["PARA"],decimals:[12],standardAccount:"*25519",website:"https://parallel.fi/"},{prefix:252,network:"social-network",displayName:"Social Network",symbols:["NET"],decimals:[18],standardAccount:"*25519",website:"https://social.network"},{prefix:255,network:"quartz_mainnet",displayName:"QUARTZ by UNIQUE",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:268,network:"pioneer_network",displayName:"Pioneer Network by Bit.Country",symbols:["NEER"],decimals:[18],standardAccount:"*25519",website:"https://bit.country"},{prefix:420,network:"sora_kusama_para",displayName:"SORA Kusama Parachain",symbols:["XOR"],decimals:[18],standardAccount:"*25519",website:"https://sora.org"},{prefix:789,network:"geek",displayName:"GEEK Network",symbols:["GEEK"],decimals:[18],standardAccount:"*25519",website:"https://geek.gl"},{prefix:1110,network:"efinity",displayName:"Efinity",symbols:["EFI"],decimals:[18],standardAccount:"*25519",website:"https://efinity.io/"},{prefix:1221,network:"peaq",displayName:"Peaq Network",symbols:["PEAQ"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1222,network:"krest",displayName:"Krest Network",symbols:["KREST"],decimals:[18],standardAccount:"Sr25519",website:"https://www.peaq.network/"},{prefix:1284,network:"moonbeam",displayName:"Moonbeam",symbols:["GLMR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1285,network:"moonriver",displayName:"Moonriver",symbols:["MOVR"],decimals:[18],standardAccount:"secp256k1",website:"https://moonbeam.network"},{prefix:1328,network:"ajuna",displayName:"Ajuna Network",symbols:["AJUN"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1337,network:"bajun",displayName:"Bajun Network",symbols:["BAJU"],decimals:[12],standardAccount:"*25519",website:"https://ajuna.io"},{prefix:1985,network:"seals",displayName:"Seals Network",symbols:["SEAL"],decimals:[9],standardAccount:"*25519",website:"https://seals.app"},{prefix:2007,network:"kapex",displayName:"Kapex",symbols:["KAPEX"],decimals:[12],standardAccount:"*25519",website:"https://totemaccounting.com"},{prefix:2009,network:"cloudwalk_mainnet",displayName:"CloudWalk Network Mainnet",symbols:["CWN"],decimals:[18],standardAccount:"*25519",website:"https://explorer.mainnet.cloudwalk.io"},{prefix:2032,network:"interlay",displayName:"Interlay",symbols:["INTR"],decimals:[10],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2092,network:"kintsugi",displayName:"Kintsugi",symbols:["KINT"],decimals:[12],standardAccount:"*25519",website:"https://interlay.io/"},{prefix:2106,network:"bitgreen",displayName:"Bitgreen",symbols:["BBB"],decimals:[18],standardAccount:"*25519",website:"https://bitgreen.org/"},{prefix:2112,network:"chainflip",displayName:"Chainflip",symbols:["FLIP"],decimals:[18],standardAccount:"*25519",website:"https://chainflip.io/"},{prefix:2114,network:"Turing",displayName:"Turing Network",symbols:["TUR"],decimals:[10],standardAccount:"*25519",website:"https://oak.tech/turing/home/"},{prefix:2207,network:"SNOW",displayName:"SNOW: ICE Canary Network",symbols:["ICZ"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2208,network:"ICE",displayName:"ICE Network",symbols:["ICY"],decimals:[18],standardAccount:"*25519",website:"https://icenetwork.io"},{prefix:2254,network:"subspace_testnet",displayName:"Subspace testnet",symbols:["tSSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:4006,network:"tangle",displayName:"Tangle Network",symbols:["TNT"],decimals:[18],standardAccount:"*25519",website:"https://www.webb.tools/"},{prefix:4450,network:"g1",displayName:"\u011e1",symbols:["G1"],decimals:[2],standardAccount:"*25519",website:"https://duniter.org"},{prefix:5234,network:"humanode",displayName:"Humanode Network",symbols:["HMND"],decimals:[18],standardAccount:"*25519",website:"https://humanode.io"},{prefix:6094,network:"subspace",displayName:"Subspace",symbols:["SSC"],decimals:[18],standardAccount:"*25519",website:"https://subspace.network"},{prefix:7007,network:"tidefi",displayName:"Tidefi",symbols:["TDFY"],decimals:[12],standardAccount:"*25519",website:"https://tidefi.com"},{prefix:7013,network:"gm",displayName:"GM",symbols:["FREN","GM","GN"],decimals:[12,0,0],standardAccount:"*25519",website:"https://gmordie.com"},{prefix:7391,network:"unique_mainnet",displayName:"Unique Network",symbols:["UNQ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:8883,network:"sapphire_mainnet",displayName:"Sapphire by Unique",symbols:["QTZ"],decimals:[18],standardAccount:"*25519",website:"https://unique.network"},{prefix:9072,network:"hashed",displayName:"Hashed Network",symbols:["HASH"],decimals:[18],standardAccount:"*25519",website:"https://hashed.network"},{prefix:9807,network:"dentnet",displayName:"DENTNet",symbols:["DENTX"],decimals:[18],standardAccount:"*25519",website:"https://www.dentnet.io"},{prefix:9935,network:"t3rn",displayName:"t3rn",symbols:["TRN"],decimals:[12],standardAccount:"*25519",website:"https://t3rn.io/"},{prefix:10041,network:"basilisk",displayName:"Basilisk",symbols:["BSX"],decimals:[12],standardAccount:"*25519",website:"https://bsx.fi"},{prefix:11330,network:"cess-testnet",displayName:"CESS Testnet",symbols:["TCESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11331,network:"cess",displayName:"CESS",symbols:["CESS"],decimals:[12],standardAccount:"*25519",website:"https://cess.cloud"},{prefix:11486,network:"luhn",displayName:"Luhn Network",symbols:["LUHN"],decimals:[18],standardAccount:"*25519",website:"https://luhn.network"},{prefix:11820,network:"contextfree",displayName:"Automata ContextFree",symbols:["CTX"],decimals:[18],standardAccount:"*25519",website:"https://ata.network"},{prefix:12191,network:"nftmart",displayName:"NFTMart",symbols:["NMT"],decimals:[12],standardAccount:"*25519",website:"https://nftmart.io"}].map((function(e){var t=e.network||"",n=t.replace(/_/g,"-").split("-"),r=e;return r.slip44=$u[t],r.hasLedgerSupport=!!r.slip44,r.genesisHash=ef[t]||[],r.icon=tf[t]||"substrate",r.isTestnet=!!nf[t]||af.includes(n[n.length-1]),r.isIgnored=r.isTestnet||!(e.standardAccount&&e.decimals&&e.decimals.length&&e.symbols&&e.symbols.length)&&42!==e.prefix,r})).filter((function(e){return!e.isIgnored&&!!e.network})).sort((function(e,t){var n=rf.includes(e.prefix);return n===rf.includes(t.prefix)?n?0:e.displayName.localeCompare(t.displayName):n?-1:1})),cf=of.filter((function(e){var t=e.genesisHash,n=e.prefix;return!!t.length||42===n})),sf={allowedDecodedLengths:[1,2,4,8,32,33],allowedEncodedLengths:[3,4,6,10,35,36,37,38],allowedPrefix:of.map((function(e){return e.prefix})),prefix:42};function uf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(!e)throw new Error("Invalid empty address passed");if((0,zt.U)(e)||(0,Zt.vq)(e))return(0,j.Y)(e);try{var r=Ku(e);if(!sf.allowedEncodedLengths.includes(r.length))throw new Error("Invalid decoded address length");var a=_u(r),i=(0,G.Z)(a,4),o=i[0],c=i[1],s=i[2],u=i[3];if(!o&&!t)throw new Error("Invalid decoded address checksum");if(-1!==n&&n!==u)throw new Error("Expected ss58Format ".concat(n,", received ").concat(u));return r.slice(s,c)}catch(f){throw new Error("Decoding ".concat(e,": ").concat(f.message))}}var ff=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i 1&&void 0!==arguments[1]?arguments[1]:sf.prefix,n=uf(e);if(t<0||t>16383||[46,47].includes(t))throw new Error("Out of range ss58Format specified");if(!sf.allowedDecodedLengths.includes(n.length))throw new Error("Expected a valid key to convert, with length ".concat(sf.allowedDecodedLengths.join(", ")));var r=(0,qt.e)(t<64?[t]:[(252&t)>>2|64,t>>8|(3&t)<<6],n);return Yu((0,qt.e)(r,Qu(r).subarray(0,[32,33].includes(n.length)?2:1)))}var lf=new Ht(239),pf=new Ht(1).shln(16),hf=new Ht(1).shln(32);function yf(e){return e instanceof bf?e.toBn():(0,Ln.H)(e)||(0,_t.h)(e)||(0,Zt.vq)(e)||(0,zt.U)(e)||(0,zn.C)(e)?e:yf(uf(e))}var bf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ht(0);return(0,V.Z)(this,n),t.call(this,e,yf(r))}return(0,O.Z)(n,[{key:"eq",value:function(e){return(0,Ln.H)(e)||(0,_t.h)(e)?H((0,E.Z)(n.prototype),"eq",this).call(this,e):H((0,E.Z)(n.prototype),"eq",this).call(this,this.registry.createTypeUnsafe("AccountIndex",[e]))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){var e=n.calcLength(this);return df(this.toU8a().subarray(0,e),this.registry.chainSS58)}},{key:"toRawType",value:function(){return"AccountIndex"}}],[{key:"calcLength",value:function(e){var t=(0,Dt.G)(e);return t.lte(lf)?1:t.lt(pf)?2:t.lt(hf)?4:8}},{key:"readLength",value:function(e){var t=e[0];return 252===t?[1,2]:253===t?[1,4]:254===t?[1,8]:[0,1]}},{key:"writeLength",value:function(e){switch(e.length){case 2:return new Uint8Array([252]);case 4:return new Uint8Array([253]);case 8:return new Uint8Array([254]);default:return new Uint8Array([])}}}]),n}(ff),vf=new Uint8Array([255]);function mf(e,t){return t instanceof gf?t.inner:t instanceof hu||t instanceof bf?t:(0,zt.U)(t)||Array.isArray(t)||(0,Zt.vq)(t)?function(e,t){if(20===t.length)return e.createTypeUnsafe("EthereumAccountId",[t]);if(255===t[0])return e.createTypeUnsafe("EthereumAccountId",[t.subarray(1)]);var n=bf.readLength(t),r=(0,G.Z)(n,2),a=r[0],i=r[1];return e.createTypeUnsafe("AccountIndex",[Rt(t.subarray(a,a+i))])}(e,(0,j.Y)(t)):(0,Ln.H)(t)||(0,_t.h)(t)||(0,zn.C)(t)?e.createTypeUnsafe("AccountIndex",[t]):function(e,t){var n=uf(t);return 20===n.length?e.createTypeUnsafe("EthereumAccountId",[n]):e.createTypeUnsafe("AccountIndex",[Rt(n)])}(e,t)}var gf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return(0,V.Z)(this,n),t.call(this,e,mf(e,r))}return(0,O.Z)(n,[{key:"encodedLength",get:function(){var e=this._rawLength;return e+(e>1?1:0)}},{key:"_rawLength",get:function(){return this.inner instanceof bf?bf.calcLength(this.inner):this.inner.encodedLength}},{key:"toHex",value:function(){return(0,D.c)(this.toU8a())}},{key:"toRawType",value:function(){return"Address"}},{key:"toU8a",value:function(e){var t=this.inner.toU8a().subarray(0,this._rawLength);return e?t:(0,qt.e)(this.inner instanceof bf?bf.writeLength(t):vf,t)}}]),n}(pc);function xf(e){if((0,zt.U)(e)||Array.isArray(e))return(0,j.Y)(e);if(!e)return new Uint8Array;if((0,Zt.vq)(e))return(0,Sc.G)(e);if((0,U.H)(e))return uf(e.toString());throw new Error("Unknown type passed to AccountId constructor, found typeof ".concat(typeof e))}var wf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:264,a=arguments.length>2?arguments[2]:void 0;(0,V.Z)(this,n);var i=xf(a),o=8*i.length;if(o >3," bytes, found ").concat(i.length));return t.call(this,e,i,r)}return(0,O.Z)(n,[{key:"eq",value:function(e){return H((0,E.Z)(n.prototype),"eq",this).call(this,xf(e))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toString",value:function(){return df(this,this.registry.chainSS58)}},{key:"toRawType",value:function(){return"AccountId"}}]),n}(ha),kf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,256,r)}return(0,O.Z)(n)}(wf),Zf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,264,r)}return(0,O.Z)(n)}(wf),Pf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,{header:"Header",extrinsics:"Vec "},r)}return(0,O.Z)(n,[{key:"contentHash",get:function(){return this.registry.hash(this.toU8a())}},{key:"extrinsics",get:function(){return this.getT("extrinsics")}},{key:"hash",get:function(){return this.header.hash}},{key:"header",get:function(){return this.getT("header")}}]),n}(Bn);function Sf(e,t){return t.fields.reduce((function(t,n,r){var a=n.name,i=n.type;return t[a.unwrapOr("param".concat(r)).toString()]=e.createLookupType(i),t}),{})}function Tf(e,t,n){var r=t.args,a=t.callIndex,i=a instanceof Vf?a.toU8a():a,o=n||e.findMetaCall(i).meta;return{args:r,argsDef:Sf(e,o),callIndex:a,meta:o}}function Mf(e,t,n){var r=e.firstCallIndex.slice();r.set(t.subarray(0,2),0);var a=n||e.findMetaCall(r).meta;return{args:t.subarray(2),argsDef:Sf(e,a),callIndex:r,meta:a}}var Vf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,r,16)}return(0,O.Z)(n,[{key:"toPrimitive",value:function(){return this.toHex()}}]),n}(ha),Of=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r,a){var i;(0,V.Z)(this,n);var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array,n=arguments.length>2?arguments[2]:void 0;if((0,zt.U)(t)||(0,Zt.vq)(t))return Mf(e,(0,j.Y)(t),n);if((0,mt.K)(t)&&t.callIndex&&t.args)return Tf(e,t,n);throw new Error("Call: Cannot decode value '".concat(t,"' of type ").concat(typeof t))}(e,r,a);try{i=t.call(this,e,{callIndex:Vf,args:Bn.with(o.argsDef)},o)}catch(u){var c="unknown.unknown";try{var s=e.findMetaCall(o.callIndex);c="".concat(s.section,".").concat(s.method)}catch(u){}throw new Error("Call: failed decoding ".concat(c,":: ").concat(u.message))}return i._meta=o.meta,i}return(0,O.Z)(n,[{key:"args",get:function(){return(0,dt.Z)(this.getT("args").values())}},{key:"argsDef",get:function(){return Sf(this.registry,this.meta)}},{key:"argsEntries",get:function(){return(0,dt.Z)(this.getT("args").entries())}},{key:"callIndex",get:function(){return this.getT("callIndex").toU8a()}},{key:"data",get:function(){return this.getT("args").toU8a()}},{key:"meta",get:function(){return this._meta}},{key:"method",get:function(){return this.registry.findMetaCall(this.callIndex).method}},{key:"section",get:function(){return this.registry.findMetaCall(this.callIndex).section}},{key:"is",value:function(e){return e.callIndex[0]===this.callIndex[0]&&e.callIndex[1]===this.callIndex[1]}},{key:"toHuman",value:function(e){var t,n,r;try{r=this.registry.findMetaCall(this.callIndex)}catch(a){}return(0,z.Z)({args:this.argsEntries.reduce((function(t,n){var r=(0,G.Z)(n,2),a=r[0],i=r[1];return(0,z.Z)(t,(0,Et.Z)({},a,i.toHuman(e)))}),{}),method:null==(t=r)?void 0:t.method,section:null==(n=r)?void 0:n.section},e&&r?{docs:r.meta.docs.map((function(e){return e.toString()}))}:null)}},{key:"toRawType",value:function(){return"Call"}}]),n}(Bn);function If(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return n&&(0,yt.m)(n.unwrapOrDefault)?n:e.createTypeUnsafe(t,[r?(0,fn.F)(n)||(0,vt.o)(n)?null:Array.isArray(n)?n:[n]:n])}function Nf(e,t){return(t&&(0,yt.m)(t.entries)?(0,dt.Z)(t.entries()):Object.entries(t||{})).reduce((function(t,n){var r=(0,G.Z)(n,2),a=r[0],i=r[1];return t[a]=function(e,t,n){return"ss58Format"===t?If(e,"Option ",n,!1):"tokenDecimals"===t?If(e,"Option >",n):"tokenSymbol"===t?If(e,"Option >",n):n}(e,a,i),t}),{ss58Format:e.createTypeUnsafe("Option ",[]),tokenDecimals:e.createTypeUnsafe("Option >",[]),tokenSymbol:e.createTypeUnsafe("Option >",[])})}var Af=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,Nf(e,r))}return(0,O.Z)(n,[{key:"ss58Format",get:function(){return this.getT("ss58Format")}},{key:"tokenDecimals",get:function(){return this.getT("tokenDecimals")}},{key:"tokenSymbol",get:function(){return this.getT("tokenSymbol")}}]),n}(kt),Ef=(0,Hi.d)("aura"),Cf=(0,Hi.d)("BABE"),Hf=(0,Hi.d)("FRNK"),Rf=(0,Hi.d)("pow_");var Bf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,(0,_t.h)(r)?(0,jt.a)(r,{isLe:!1}):r,32)}return(0,O.Z)(n,[{key:"isAura",get:function(){return this.eq(Ef)}},{key:"isBabe",get:function(){return this.eq(Cf)}},{key:"isGrandpa",get:function(){return this.eq(Hf)}},{key:"isPow",get:function(){return this.eq(Rf)}},{key:"extractAuthor",value:function(e,t){if(null!=t&&t.length){if(this.isAura)return function(e,t,n){return n[e.createTypeUnsafe("RawAuraPreDigest",[t.toU8a(!0)]).slotNumber.mod(new Ht(n.length)).toNumber()]}(this.registry,e,t);if(this.isBabe)return function(e,t,n){return n[e.createTypeUnsafe("RawBabePreDigestCompat",[t.toU8a(!0)]).value.toNumber()]}(this.registry,e,t)}if(this.isPow||20===e.length)return function(e,t){return e.createTypeUnsafe("AccountId",[t])}(this.registry,e)}},{key:"toHuman",value:function(){return this.toString()}},{key:"toRawType",value:function(){return"ConsensusEngineId"}},{key:"toString",value:function(){return this.isAscii?Ot(this):(0,D.c)(this)}}]),n}(ha),Lf=new Uint8Array([255]);function zf(e,t){return t instanceof Uf?t.inner:t instanceof kf||t instanceof bf?t:(0,Ln.H)(t)||(0,_t.h)(t)||(0,zn.C)(t)?e.createTypeUnsafe("AccountIndex",[t]):Array.isArray(t)||(0,Zt.vq)(t)||(0,zt.U)(t)?function(e,t){if(32===t.length)return e.createTypeUnsafe("AccountId",[t]);if(255===t[0])return e.createTypeUnsafe("AccountId",[t.subarray(1)]);var n=bf.readLength(t),r=(0,G.Z)(n,2),a=r[0],i=r[1];return e.createTypeUnsafe("AccountIndex",[Rt(t.subarray(a,a+i))])}(e,(0,j.Y)(t)):function(e,t){var n=uf(t);return 32===n.length?e.createTypeUnsafe("AccountId",[n]):e.createTypeUnsafe("AccountIndex",[Rt(n)])}(e,t)}var Uf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint8Array;return(0,V.Z)(this,n),t.call(this,e,zf(e,r))}return(0,O.Z)(n,[{key:"encodedLength",get:function(){var e=this._rawLength;return e+(e>1?1:0)}},{key:"_rawLength",get:function(){return this.inner instanceof bf?bf.calcLength(this.inner):this.inner.encodedLength}},{key:"inspect",value:function(){var e=this.inner.toU8a().subarray(0,this._rawLength);return{outer:[new Uint8Array(this.inner instanceof bf?bf.writeLength(e):Lf),e]}}},{key:"toHex",value:function(){return(0,D.c)(this.toU8a())}},{key:"toRawType",value:function(){return"Address"}},{key:"toU8a",value:function(e){var t=this.inner.toU8a().subarray(0,this._rawLength);return e?t:(0,qt.e)(this.inner instanceof bf?bf.writeLength(t):Lf,t)}}]),n}(pc);function Df(e,t){return[0,32].includes(t.length)?{Id:t}:20===t.length?{Address20:t}:t.length<=8?{Index:e.createTypeUnsafe("AccountIndex",[t]).toNumber()}:t}function jf(e,t){return t instanceof kf?{Id:t}:(0,zt.U)(t)?Df(e,t):t instanceof qf?t:t instanceof bf||(0,Ln.H)(t)||(0,_t.h)(t)?{Index:(0,_t.h)(t)?t:t.toNumber()}:(0,U.H)(t)?Df(e,uf(t.toString())):t}var qf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){return(0,V.Z)(this,n),t.call(this,e,{Id:"AccountId",Index:"Compact ",Raw:"Bytes",Address32:"H256",Address20:"H160"},jf(e,r))}return(0,O.Z)(n,[{key:"inspect",value:function(){var e=this.inner.inspect(),t=e.inner,n=e.outer,r=void 0===n?[]:n;return{inner:t,outer:[new Uint8Array([this.index])].concat((0,dt.Z)(r))}}},{key:"toString",value:function(){return this.value.toString()}}]),n}(Sn),Xf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,V.Z)(this,n),(r=t.call(this,(0,zt.U)(a)?1===a[0]:a instanceof Boolean?a.valueOf():!!a)).registry=e,r}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return 1}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return this.isFalse}},{key:"isFalse",get:function(){return!this.isTrue}},{key:"isTrue",get:function(){return this.valueOf()}},{key:"eq",value:function(e){return this.valueOf()===(e instanceof Boolean?e.valueOf():e)}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,D.c)(this.toU8a())}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.valueOf()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toRawType",value:function(){return"bool"}},{key:"toString",value:function(){return this.toJSON().toString()}},{key:"toU8a",value:function(e){return new Uint8Array([this.valueOf()?1:0])}}]),n}((0,lt.Z)(Boolean)),Ff=128;function Wf(e){return e?new Uint8Array([128]):new Uint8Array([0])}function Gf(e,t){return(0,zt.U)(t)?function(e){return e.length?e.subarray(0,1):new Uint8Array([0])}(t):(0,vt.o)(t)||t instanceof Boolean||Vn(t)?Wf(new Xf(e,t).isTrue):(0,_t.h)(t)?Wf(t<0):function(e,t){return new Uint8Array([(new Xf(e,t.aye).isTrue?Ff:0)|e.createTypeUnsafe("Conviction",[t.conviction||0]).index])}(e,t)}var Kf=new WeakMap,Yf=new WeakMap,Jf=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a;(0,V.Z)(this,n);var i=Gf(e,r);return a=t.call(this,e,i,8),(0,R.Z)((0,I.Z)(a),Kf,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),Yf,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),Kf,(i[0]&Ff)===Ff),(0,L.Z)((0,I.Z)(a),Yf,a.registry.createTypeUnsafe("Conviction",[127&i[0]])),a}return(0,O.Z)(n,[{key:"conviction",get:function(){return(0,B.Z)(this,Yf)}},{key:"isAye",get:function(){return(0,B.Z)(this,Kf)}},{key:"isNay",get:function(){return!this.isAye}},{key:"toHuman",value:function(e){return{conviction:this.conviction.toHuman(e),vote:this.isAye?"Aye":"Nay"}}},{key:"toPrimitive",value:function(){return{aye:this.isAye,conviction:this.conviction.toPrimitive()}}},{key:"toRawType",value:function(){return"Vote"}}]),n}(ha);function Qf(e){if(Array.isArray(e)||(0,U.H)(e)){var t=(0,j.Y)(e);return[t.length/8,t]}return function(e){if(!e||!e.length)return[0,new Uint8Array];var t=Lt(e),n=(0,G.Z)(t,2),r=n[0],a=n[1],i=r+Math.ceil(a/8);if(i>e.length)throw new Error("BitVec: required length less than remainder, expected at least ".concat(i,", found ").concat(e.length));return[a,e.subarray(r,i)]}(e)}var _f=new WeakMap,$f=new WeakMap,ed=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,V.Z)(this,n);var o=Qf(r),c=(0,G.Z)(o,2),s=c[0],u=c[1];return a=t.call(this,e,u),(0,R.Z)((0,I.Z)(a),_f,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),$f,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),_f,s),(0,L.Z)((0,I.Z)(a),$f,i),a}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return this.length+Yt((0,B.Z)(this,_f)).length}},{key:"inspect",value:function(){return{outer:[Yt((0,B.Z)(this,_f)),H((0,E.Z)(n.prototype),"toU8a",this).call(this)]}}},{key:"toHuman",value:function(){var e=this;return"0b".concat((0,dt.Z)(this.toU8a(!0)).map((function(e){return"00000000".concat(e.toString(2)).slice(-8)})).map((function(t){return(0,B.Z)(e,$f)?t:t.split("").reverse().join("")})).join("_"))}},{key:"toRawType",value:function(){return"BitVec"}},{key:"toU8a",value:function(e){var t=H((0,E.Z)(n.prototype),"toU8a",this).call(this);return e?t:(0,qt.d)([Yt((0,B.Z)(this,_f)),t])}}]),n}(It);function td(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bitLength,r=void 0===n?32:n,a=t.isLe,i=void 0===a||a;if(32!==r&&64!==r)throw new Error("Invalid bitLength provided, expected 32 or 64");if(e.length 2&&void 0!==arguments[2]?arguments[2]:{},o=i.bitLength,c=void 0===o?32:o;return(0,V.Z)(this,n),a=t.call(this,(0,zt.U)(r)||(0,Zt.vq)(r)?0===r.length?0:td((0,j.Y)(r),{bitLength:c}):r||0),(0,R.Z)((0,I.Z)(a),nd,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),nd,c),a.encodedLength=c/8,a.initialU8aLength=a.encodedLength,a.registry=e,a}return(0,O.Z)(n,[{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.valueOf()}},{key:"eq",value:function(e){return this.valueOf()===Number(e)}},{key:"inspect",value:function(){return{outer:[this.toU8a()]}}},{key:"toHex",value:function(){return(0,D.c)(this.toU8a())}},{key:"toHuman",value:function(){return this.toString()}},{key:"toJSON",value:function(){return this.toHex()}},{key:"toNumber",value:function(){return this.valueOf()}},{key:"toPrimitive",value:function(){return this.toNumber()}},{key:"toRawType",value:function(){return"f".concat((0,B.Z)(this,nd))}},{key:"toU8a",value:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bitLength,r=void 0===n?32:n,a=t.isLe,i=void 0===a||a;if(32!==r&&64!==r)throw new Error("Invalid bitLength provided, expected 32 or 64");var o=new Uint8Array(r/8),c=new DataView(o.buffer,o.byteOffset);return 32===r?c.setFloat32(0,Number(e),i):c.setFloat64(0,Number(e),i),o}(this,{bitLength:(0,B.Z)(this,nd)})}}],[{key:"with",value:function(e){return function(t){(0,N.Z)(r,t);var n=(0,A.Z)(r);function r(t,a){return(0,V.Z)(this,r),n.call(this,t,a,{bitLength:e})}return(0,O.Z)(r)}(n)}}]),n}((0,lt.Z)(Number)),ad=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i "}},{key:"toU8a",value:function(e){return e?H((0,E.Z)(n.prototype),"toU8a",this).call(this,!0):this.isSome?new Uint8Array([this.isTrue?1:2]):new Uint8Array([0])}}]),n}(Dr),pd=131072;var hd=new WeakMap,yd=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a;(0,V.Z)(this,n);var i=function(e){if((0,zt.U)(e)){if(!e.length)return["",0];if(e instanceof It)return[Ot(e),0];var t=Lt(e),n=(0,G.Z)(t,2),r=n[0],a=n[1],i=r+a;if(a>pd)throw new Error("Text: length ".concat(a.toString()," exceeds ").concat(pd));if(i>e.length)throw new Error("Text: required length less than remainder, expected at least ".concat(i,", found ").concat(e.length));return[Ot(e.subarray(r,i)),i]}return(0,Zt.vq)(e)?[Ot((0,Sc.G)(e)),0]:[e?e.toString():"",0]}(r),o=(0,G.Z)(i,2),c=o[0],s=o[1];return a=t.call(this,c),(0,R.Z)((0,I.Z)(a),hd,{writable:!0,value:null}),a.registry=e,a.initialU8aLength=s,a}return(0,O.Z)(n,[{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"hash",get:function(){return this.registry.hash(this.toU8a())}},{key:"isEmpty",get:function(){return 0===this.length}},{key:"length",get:function(){return H((0,E.Z)(n.prototype),"length",this)}},{key:"eq",value:function(e){return!!(0,U.H)(e)&&this.toString()===e.toString()}},{key:"inspect",value:function(){var e=(0,Hi.d)(H((0,E.Z)(n.prototype),"toString",this).call(this));return{outer:e.length?[Yt(e.length),e]:[Yt(e.length)]}}},{key:"setOverride",value:function(e){(0,L.Z)(this,hd,e)}},{key:"toHex",value:function(){return(0,D.c)(this.toU8a(!0))}},{key:"toHuman",value:function(){return this.toJSON()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toPrimitive",value:function(){return this.toJSON()}},{key:"toRawType",value:function(){return"Text"}},{key:"toString",value:function(){return(0,B.Z)(this,hd)||H((0,E.Z)(n.prototype),"toString",this).call(this)}},{key:"toU8a",value:function(e){var t=(0,Hi.d)(H((0,E.Z)(n.prototype),"toString",this).call(this));return e?t:aa(t)}}]),n}((0,lt.Z)(String)),bd=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,V.Z)(this,n),(r=t.call(this,e,a)).setOverride(Ha(r.toString())),r}return(0,O.Z)(n,[{key:"toRawType",value:function(){return"Type"}}]),n}(yd),vd=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(){var e;(0,V.Z)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i =1&&n<=33){var r=n-1,a=t.subarray(1,r+1);return[e.createTypeUnsafe("Raw",[a]),1]}if(n>=34&&n<=37)return[t.subarray(1,33),n-32];throw new Error("Unable to decode Data, invalid indicator byte ".concat(n))}(e,(0,j.Y)(t)):t?[t,void 0]:[void 0,void 0]}var Zd=function(e){(0,N.Z)(n,e);var t=(0,A.Z)(n);function n(e,r){var a;if((0,V.Z)(this,n),(a=t.call.apply(t,[this,e,{None:"Null",Raw:"Bytes",BlakeTwo256:"H256",Sha256:"H256",Keccak256:"H256",ShaThree256:"H256"}].concat((0,dt.Z)(kd(e,r))))).isRaw&&a.asRaw.length>32)throw new Error("Data.Raw values are limited to a maximum length of 32 bytes");return a}return(0,O.Z)(n,[{key:"asBlakeTwo256",get:function(){return this.value}},{key:"asKeccak256",get:function(){return this.value}},{key:"asRaw",get:function(){return this.value}},{key:"asSha256",get:function(){return this.value}},{key:"asShaThree256",get:function(){return this.value}},{key:"isBlakeTwo256",get:function(){return 2===this.index}},{key:"isKeccak256",get:function(){return 4===this.index}},{key:"isNone",get:function(){return 0===this.index}},{key:"isRaw",get:function(){return 1===this.index}},{key:"isSha256",get:function(){return 3===this.index}},{key:"isShaThree256",get:function(){return 5===this.index}},{key:"encodedLength",get:function(){return this.toU8a().length}},{key:"toU8a",value:function(){if(0===this.index)return new Uint8Array(1);if(1===this.index){var e=this.value.toU8a(!0),t=Math.min(e.length,32),n=new Uint8Array(t+1);return n.set([t+1],0),n.set(e.subarray(0,t),1),n}var r=new Uint8Array(33);return r.set([this.index+32],0),r.set(this.value.toU8a(),1),r}}]),n}(Sn);function Pd(e,t){var n=e.getTypeDef(t);return n.lookupName||n.type}var Sd={Blake2_128:[16,!1],Blake2_128Concat:[16,!0],Blake2_256:[32,!1],Identity:[0,!0],Twox128:[16,!1],Twox256:[32,!1],Twox64Concat:[8,!0]};function Td(e,t,n){var r=Pd(e.lookup,function(e){return e.isPlain?e.asPlain:e.asMap.value}(t));return n?"Option<".concat(r,">"):r}function Md(e){if((0,zt.U)(e)||!e||(0,U.H)(e))return{key:e};if(e instanceof Rd)return{key:e,method:e.method,section:e.section};if((0,yt.m)(e))return{key:e(),method:e.method,section:e.section};if(Array.isArray(e)){var t=(0,G.Z)(e,2),n=t[0],r=t[1],a=void 0===r?[]:r;if(!(0,yt.m)(n))throw new Error("Expected function input for key construction");if(n.meta&&n.meta.type.isMap){var i=n.meta.type.asMap;if(!Array.isArray(a)||a.length!==i.hashers.length)throw new Error("Expected an array of ".concat(i.hashers.length," values as params to a Map query"))}return{key:n.apply(void 0,(0,dt.Z)(a)),method:n.method,section:n.section}}throw new Error("Unable to convert input ".concat(e," to StorageKey"))}function Vd(e,t,n){if(!n||!n.type.isMap)return[];var r=n.type.asMap,a=r.hashers,i=r.key,o=1===a.length?[i]:e.lookup.getSiType(i).def.asTuple;return function(e,t,n){for(var r=32,a=new Array(n.length),i=0;i 2&&void 0!==arguments[2]?arguments[2]:{};(0,V.Z)(this,n);var o=Md(r),c=o.key,s=o.method,u=o.section;return a=t.call(this,e,c),(0,R.Z)((0,I.Z)(a),Nd,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),Ad,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),Ed,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),Cd,{writable:!0,value:void 0}),(0,R.Z)((0,I.Z)(a),Hd,{writable:!0,value:void 0}),(0,L.Z)((0,I.Z)(a),Ed,Id(e,r)),a.setMeta(Od(r),i.section||u,i.method||s),a}return(0,O.Z)(n,[{key:"args",get:function(){return(0,B.Z)(this,Nd)}},{key:"meta",get:function(){return(0,B.Z)(this,Ad)}},{key:"method",get:function(){return(0,B.Z)(this,Cd)}},{key:"outputType",get:function(){return(0,B.Z)(this,Ed)}},{key:"section",get:function(){return(0,B.Z)(this,Hd)}},{key:"is",value:function(e){return e.section===this.section&&e.method===this.method}},{key:"setMeta",value:function(e,t,n){(0,L.Z)(this,Ad,e),(0,L.Z)(this,Cd,n||(0,B.Z)(this,Cd)),(0,L.Z)(this,Hd,t||(0,B.Z)(this,Hd)),e&&(0,L.Z)(this,Ed,Td(this.registry,e.type));try{(0,L.Z)(this,Nd,Vd(this.registry,this.toU8a(!0),e))}catch(r){}return this}},{key:"toHuman",value:function(){return(0,B.Z)(this,Nd).length?(0,B.Z)(this,Nd).map((function(e){return e.toHuman()})):H((0,E.Z)(n.prototype),"toHuman",this).call(this)}},{key:"toRawType",value:function(){return"StorageKey"}}]),n}(oa),Bd={ErrorMetadataV11:"ErrorMetadataV10",EventMetadataV11:"EventMetadataV10",ExtrinsicMetadataV11:{version:"u8",signedExtensions:"Vec "},FunctionArgumentMetadataV11:"FunctionArgumentMetadataV10",FunctionMetadataV11:"FunctionMetadataV10",MetadataV11:{modules:"Vec ",extrinsic:"ExtrinsicMetadataV11"},ModuleConstantMetadataV11:"ModuleConstantMetadataV10",ModuleMetadataV11:{name:"Text",storage:"Option ",calls:"Option >",events:"Option >",constants:"Vec ",errors:"Vec "},StorageEntryModifierV11:"StorageEntryModifierV10",StorageEntryMetadataV11:{name:"Text",modifier:"StorageEntryModifierV11",type:"StorageEntryTypeV11",fallback:"Bytes",docs:"Vec "},StorageEntryTypeV11:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV11",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV11",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV11"}}},StorageMetadataV11:{prefix:"Text",items:"Vec "},StorageHasherV11:{_enum:{Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null,Identity:null}}},Ld={name:"Text",fields:"Vec ",index:"u8",docs:"Vec "},zd={Si1Field:{name:"Option ",type:"Si1LookupTypeId",typeName:"Option ",docs:"Vec "},Si1LookupTypeId:"Compact ",Si1Path:"Si0Path",Si1Type:{path:"Si1Path",params:"Vec ",def:"Si1TypeDef",docs:"Vec "},Si1TypeDef:{_enum:{Composite:"Si1TypeDefComposite",Variant:"Si1TypeDefVariant",Sequence:"Si1TypeDefSequence",Array:"Si1TypeDefArray",Tuple:"Si1TypeDefTuple",Primitive:"Si1TypeDefPrimitive",Compact:"Si1TypeDefCompact",BitSequence:"Si1TypeDefBitSequence",HistoricMetaCompat:"Type"}},Si1TypeDefArray:{len:"u32",type:"Si1LookupTypeId"},Si1TypeDefBitSequence:{bitStoreType:"Si1LookupTypeId",bitOrderType:"Si1LookupTypeId"},Si1TypeDefCompact:{type:"Si1LookupTypeId"},Si1TypeDefComposite:{fields:"Vec "},Si1TypeDefPrimitive:"Si0TypeDefPrimitive",Si1TypeDefSequence:{type:"Si1LookupTypeId"},Si1TypeDefTuple:"Vec ",Si1TypeParameter:{name:"Text",type:"Option "},Si1TypeDefVariant:{variants:"Vec "},Si1Variant:Ld},Ud={PortableTypeV14:{id:"Si1LookupTypeId",type:"Si1Type"},ErrorMetadataV14:(0,z.Z)({},Ld,{args:"Vec "}),EventMetadataV14:(0,z.Z)({},Ld,{args:"Vec "}),FunctionArgumentMetadataV14:{name:"Text",type:"Type",typeName:"Option "},FunctionMetadataV14:(0,z.Z)({},Ld,{args:"Vec "}),ExtrinsicMetadataV14:{type:"SiLookupTypeId",version:"u8",signedExtensions:"Vec "},MetadataV14:{lookup:"PortableRegistry",pallets:"Vec ",extrinsic:"ExtrinsicMetadataV14",type:"SiLookupTypeId"},PalletCallMetadataV14:{type:"SiLookupTypeId"},PalletConstantMetadataV14:{name:"Text",type:"SiLookupTypeId",value:"Bytes",docs:"Vec "},PalletErrorMetadataV14:{type:"SiLookupTypeId"},PalletEventMetadataV14:{type:"SiLookupTypeId"},PalletMetadataV14:{name:"Text",storage:"Option ",calls:"Option ",events:"Option ",constants:"Vec ",errors:"Option ",index:"u8"},PalletStorageMetadataV14:{prefix:"Text",items:"Vec "},SignedExtensionMetadataV14:{identifier:"Text",type:"SiLookupTypeId",additionalSigned:"SiLookupTypeId"},StorageEntryMetadataV14:{name:"Text",modifier:"StorageEntryModifierV14",type:"StorageEntryTypeV14",fallback:"Bytes",docs:"Vec "},StorageEntryModifierV14:"StorageEntryModifierV13",StorageEntryTypeV14:{_enum:{Plain:"SiLookupTypeId",Map:{hashers:"Vec ",key:"SiLookupTypeId",value:"SiLookupTypeId"}}},StorageHasherV14:"StorageHasherV13"},Dd={rpc:{},runtime:{Metadata:[{methods:{metadata:{description:"Returns the metadata of a runtime",params:[],type:"OpaqueMetadata"}},version:1}]},types:(0,z.Z)({},{ErrorMetadataV9:{name:"Text",docs:"Vec "},EventMetadataV9:{name:"Text",args:"Vec ",docs:"Vec "},FunctionArgumentMetadataV9:{name:"Text",type:"Type"},FunctionMetadataV9:{name:"Text",args:"Vec ",docs:"Vec "},MetadataV9:{modules:"Vec "},ModuleConstantMetadataV9:{name:"Text",type:"Type",value:"Bytes",docs:"Vec "},ModuleMetadataV9:{name:"Text",storage:"Option ",calls:"Option >",events:"Option >",constants:"Vec ",errors:"Vec "},StorageEntryMetadataV9:{name:"Text",modifier:"StorageEntryModifierV9",type:"StorageEntryTypeV9",fallback:"Bytes",docs:"Vec "},StorageEntryModifierV9:{_enum:["Optional","Default","Required"]},StorageEntryTypeV9:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV9",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV9",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV9"}}},StorageHasherV9:{_enum:{Blake2_128:null,Blake2_256:null,Twox128:null,Twox256:null,Twox64Concat:null}},StorageMetadataV9:{prefix:"Text",items:"Vec "}},{ErrorMetadataV10:"ErrorMetadataV9",EventMetadataV10:"EventMetadataV9",FunctionArgumentMetadataV10:"FunctionArgumentMetadataV9",FunctionMetadataV10:"FunctionMetadataV9",MetadataV10:{modules:"Vec "},ModuleConstantMetadataV10:"ModuleConstantMetadataV9",ModuleMetadataV10:{name:"Text",storage:"Option ",calls:"Option >",events:"Option >",constants:"Vec ",errors:"Vec "},StorageEntryModifierV10:"StorageEntryModifierV9",StorageEntryMetadataV10:{name:"Text",modifier:"StorageEntryModifierV10",type:"StorageEntryTypeV10",fallback:"Bytes",docs:"Vec "},StorageEntryTypeV10:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV10",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV10",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV10"}}},StorageMetadataV10:{prefix:"Text",items:"Vec "},StorageHasherV10:{_enum:{Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null}}},Bd,{ErrorMetadataV12:"ErrorMetadataV11",EventMetadataV12:"EventMetadataV11",ExtrinsicMetadataV12:"ExtrinsicMetadataV11",FunctionArgumentMetadataV12:"FunctionArgumentMetadataV11",FunctionMetadataV12:"FunctionMetadataV11",MetadataV12:{modules:"Vec ",extrinsic:"ExtrinsicMetadataV12"},ModuleConstantMetadataV12:"ModuleConstantMetadataV11",ModuleMetadataV12:{name:"Text",storage:"Option ",calls:"Option >",events:"Option >",constants:"Vec ",errors:"Vec ",index:"u8"},StorageEntryModifierV12:"StorageEntryModifierV11",StorageEntryMetadataV12:"StorageEntryMetadataV11",StorageEntryTypeV12:"StorageEntryTypeV11",StorageMetadataV12:"StorageMetadataV11",StorageHasherV12:"StorageHasherV11"},{ErrorMetadataV13:"ErrorMetadataV12",EventMetadataV13:"EventMetadataV12",ExtrinsicMetadataV13:"ExtrinsicMetadataV12",FunctionArgumentMetadataV13:"FunctionArgumentMetadataV12",FunctionMetadataV13:"FunctionMetadataV12",MetadataV13:{modules:"Vec ",extrinsic:"ExtrinsicMetadataV13"},ModuleConstantMetadataV13:"ModuleConstantMetadataV12",ModuleMetadataV13:{name:"Text",storage:"Option ",calls:"Option >",events:"Option >",constants:"Vec ",errors:"Vec ",index:"u8"},StorageEntryModifierV13:"StorageEntryModifierV12",StorageEntryMetadataV13:{name:"Text",modifier:"StorageEntryModifierV13",type:"StorageEntryTypeV13",fallback:"Bytes",docs:"Vec "},StorageEntryTypeV13:{_enum:{Plain:"Type",Map:{hasher:"StorageHasherV13",key:"Type",value:"Type",linked:"bool"},DoubleMap:{hasher:"StorageHasherV13",key1:"Type",key2:"Type",value:"Type",key2Hasher:"StorageHasherV13"},NMap:{keyVec:"Vec ",hashers:"Vec ",value:"Type"}}},StorageMetadataV13:{prefix:"Text",items:"Vec "},StorageHasherV13:"StorageHasherV12"},Ud,{ErrorMetadataLatest:"ErrorMetadataV14",EventMetadataLatest:"EventMetadataV14",ExtrinsicMetadataLatest:"ExtrinsicMetadataV14",FunctionArgumentMetadataLatest:"FunctionArgumentMetadataV14",FunctionMetadataLatest:"FunctionMetadataV14",MetadataLatest:"MetadataV14",PalletCallMetadataLatest:"PalletCallMetadataV14",PalletConstantMetadataLatest:"PalletConstantMetadataV14",PalletErrorMetadataLatest:"PalletErrorMetadataV14",PalletEventMetadataLatest:"PalletEventMetadataV14",PalletMetadataLatest:"PalletMetadataV14",PalletStorageMetadataLatest:"PalletStorageMetadataV14",PortableType:"PortableTypeV14",SignedExtensionMetadataLatest:"SignedExtensionMetadataV14",StorageEntryMetadataLatest:"StorageEntryMetadataV14",StorageEntryModifierLatest:"StorageEntryModifierV14",StorageEntryTypeLatest:"StorageEntryTypeV14",StorageHasher:"StorageHasherV14",OpaqueMetadata:"Opaque ",MetadataAll:{_enum:{V0:"DoNotConstruct ",V1:"DoNotConstruct ",V2:"DoNotConstruct ",V3:"DoNotConstruct ",V4:"DoNotConstruct ",V5:"DoNotConstruct ",V6:"DoNotConstruct ",V7:"DoNotConstruct ",V8:"DoNotConstruct ",V9:"MetadataV9",V10:"MetadataV10",V11:"MetadataV11",V12:"MetadataV12",V13:"MetadataV13",V14:"MetadataV14"}}})},jd={execute_block:{description:"Execute the given block.",params:[{name:"block",type:"Block"}],type:"Null"}},qd={version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre3"}},Xd={initialize_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},Fd={Core:[{methods:(0,z.Z)({version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersion"}},jd,Xd),version:4},{methods:(0,z.Z)({version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre4"}},jd,Xd),version:3},{methods:(0,z.Z)({},qd,jd,Xd),version:2},{methods:(0,z.Z)({initialise_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},qd,jd),version:1}]},Wd={Council:"CollectiveOrigin",System:"SystemOrigin",TechnicalCommittee:"CollectiveOrigin",Xcm:"XcmOrigin",XcmPallet:"XcmOrigin",Authority:"AuthorityOrigin",GeneralCouncil:"CollectiveOrigin"},Gd={rpc:{},runtime:Fd,types:(0,z.Z)({},{Fixed64:"Int<64, Fixed64>",FixedI64:"Int<64, FixedI64>",FixedU64:"UInt<64, FixedU64>",Fixed128:"Int<128, Fixed128>",FixedI128:"Int<128, FixedI128>",FixedU128:"UInt<128, FixedU128>",I32F32:"Int<64, I32F32>",U32F32:"UInt<64, U32F32>",PerU16:"UInt<16, PerU16>",Perbill:"UInt<32, Perbill>",Percent:"UInt<8, Percent>",Permill:"UInt<32, Permill>",Perquintill:"UInt<64, Perquintill>"},{AccountId:"AccountId32",AccountId20:"GenericEthereumAccountId",AccountId32:"GenericAccountId32",AccountId33:"GenericAccountId33",AccountIdOf:"AccountId",AccountIndex:"GenericAccountIndex",Address:"MultiAddress",AssetId:"u32",Balance:"UInt<128, Balance>",BalanceOf:"Balance",Block:"GenericBlock",BlockNumber:"u32",BlockNumberFor:"BlockNumber",BlockNumberOf:"BlockNumber",Call:"GenericCall",CallHash:"Hash",CallHashOf:"CallHash",ChangesTrieConfiguration:{digestInterval:"u32",digestLevels:"u32"},ChangesTrieSignal:{_enum:{NewConfiguration:"Option "}},ConsensusEngineId:"GenericConsensusEngineId",CodecHash:"Hash",CrateVersion:{major:"u16",minor:"u8",patch:"u8"},Digest:{logs:"Vec