diff --git a/assets/Inline-whCU5b6Q.js b/assets/Inline-MRakLQrl.js similarity index 93% rename from assets/Inline-whCU5b6Q.js rename to assets/Inline-MRakLQrl.js index 4d2df1bc..b08bccdb 100644 --- a/assets/Inline-whCU5b6Q.js +++ b/assets/Inline-MRakLQrl.js @@ -1 +1 @@ -import{j as r}from"./index-HRU4k55l.js";const x=()=>r.jsxs("svg",{version:"1.1",id:"Logo",x:"0px",y:"0px",viewBox:"0 0 1326.1 1410.3",xmlSpace:"preserve",children:[r.jsx("ellipse",{className:"primary",cx:"663",cy:"147.9",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{className:"primary",cx:"663",cy:"1262.3",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{transform:"matrix(0.5 -0.866 0.866 0.5 -279.1512 369.5916)",className:"primary",cx:"180.5",cy:"426.5",rx:"254.3",ry:"148"}),r.jsx("ellipse",{transform:"matrix(0.5 -0.866 0.866 0.5 -279.1552 1483.9517)",className:"primary",cx:"1145.6",cy:"983.7",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{transform:"matrix(0.866 -0.5 0.5 0.866 -467.6798 222.044)",className:"primary",cx:"180.5",cy:"983.7",rx:"148",ry:"254.3"}),r.jsx("ellipse",{transform:"matrix(0.866 -0.5 0.5 0.866 -59.8007 629.9254)",className:"primary",cx:"1145.6",cy:"426.6",rx:"147.9",ry:"254.3"})]});export{x as Inline,x as default}; +import{j as r}from"./index-bqlWiOOz.js";const x=()=>r.jsxs("svg",{version:"1.1",id:"Logo",x:"0px",y:"0px",viewBox:"0 0 1326.1 1410.3",xmlSpace:"preserve",children:[r.jsx("ellipse",{className:"primary",cx:"663",cy:"147.9",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{className:"primary",cx:"663",cy:"1262.3",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{transform:"matrix(0.5 -0.866 0.866 0.5 -279.1512 369.5916)",className:"primary",cx:"180.5",cy:"426.5",rx:"254.3",ry:"148"}),r.jsx("ellipse",{transform:"matrix(0.5 -0.866 0.866 0.5 -279.1552 1483.9517)",className:"primary",cx:"1145.6",cy:"983.7",rx:"254.3",ry:"147.9"}),r.jsx("ellipse",{transform:"matrix(0.866 -0.5 0.5 0.866 -467.6798 222.044)",className:"primary",cx:"180.5",cy:"983.7",rx:"148",ry:"254.3"}),r.jsx("ellipse",{transform:"matrix(0.866 -0.5 0.5 0.866 -59.8007 629.9254)",className:"primary",cx:"1145.6",cy:"426.6",rx:"147.9",ry:"254.3"})]});export{x as Inline,x as default}; diff --git a/assets/Inline-D8DyLrdD.js b/assets/Inline-N9rLe-w5.js similarity index 93% rename from assets/Inline-D8DyLrdD.js rename to assets/Inline-N9rLe-w5.js index bf1156c0..8532abc2 100644 --- a/assets/Inline-D8DyLrdD.js +++ b/assets/Inline-N9rLe-w5.js @@ -1 +1 @@ -import{j as s}from"./index-HRU4k55l.js";const l=()=>s.jsx("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128.1 75.577",children:s.jsx("path",{d:"M32.56,46.446l8.146.115L2.152,66.063l3.187.462-5.339,4.03s2.105.092,4.138,0c1.966-.162,3.887-.663,5.672-1.478l-.559,1.328s19.205-6.674,25.151-8.567c22.178-7.055,31.585-5.334,31.585-5.334l-4.959,1.674c2.263.407,4.56.611,6.862.612,1.475,0,1.938.97,2.069,1.997.47,2.143,1.709,4.054,3.496,5.392,2.381,1.746,4.664,3.616,6.838,5.6.476.577.678,1.155-.274,1.847-.727.581-1.389,1.235-1.974,1.951,2.555-.521,5.155-.804,7.765-.843,2.479.072,4.95.304,7.397.693-.963-.939-2.106-1.684-3.365-2.194-2.212-.993-12.13-5.531-11.892-14.467.178-7.032,11.666-9.549,20.906-15.01,10.203-6.027,11.309-14.398,13.521-20.229,2.64-6.928,6.053-10.253,9.775-11.708,1.974-.785,5.946-2.159,5.946-2.159,0,0-7.135-6.708-11.547-8.671-3.688-1.508-7.886-1.282-11.381.612-4.59,2.378-9.847,7.147-13.081,10.253-2.248,2.182-6.897,2.817-12.451,5.773-11.476,6.119-47.08,28.819-47.08,28.819Z"})});export{l as Inline,l as default}; +import{j as s}from"./index-bqlWiOOz.js";const l=()=>s.jsx("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128.1 75.577",children:s.jsx("path",{d:"M32.56,46.446l8.146.115L2.152,66.063l3.187.462-5.339,4.03s2.105.092,4.138,0c1.966-.162,3.887-.663,5.672-1.478l-.559,1.328s19.205-6.674,25.151-8.567c22.178-7.055,31.585-5.334,31.585-5.334l-4.959,1.674c2.263.407,4.56.611,6.862.612,1.475,0,1.938.97,2.069,1.997.47,2.143,1.709,4.054,3.496,5.392,2.381,1.746,4.664,3.616,6.838,5.6.476.577.678,1.155-.274,1.847-.727.581-1.389,1.235-1.974,1.951,2.555-.521,5.155-.804,7.765-.843,2.479.072,4.95.304,7.397.693-.963-.939-2.106-1.684-3.365-2.194-2.212-.993-12.13-5.531-11.892-14.467.178-7.032,11.666-9.549,20.906-15.01,10.203-6.027,11.309-14.398,13.521-20.229,2.64-6.928,6.053-10.253,9.775-11.708,1.974-.785,5.946-2.159,5.946-2.159,0,0-7.135-6.708-11.547-8.671-3.688-1.508-7.886-1.282-11.381.612-4.59,2.378-9.847,7.147-13.081,10.253-2.248,2.182-6.897,2.817-12.451,5.773-11.476,6.119-47.08,28.819-47.08,28.819Z"})});export{l as Inline,l as default}; diff --git a/assets/Inline-86CzOZAW.js b/assets/Inline-ruB8Z1WC.js similarity index 90% rename from assets/Inline-86CzOZAW.js rename to assets/Inline-ruB8Z1WC.js index 5249c46d..386b4d82 100644 --- a/assets/Inline-86CzOZAW.js +++ b/assets/Inline-ruB8Z1WC.js @@ -1 +1 @@ -import{j as s}from"./index-HRU4k55l.js";const a=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 766 506",children:[s.jsx("defs",{}),s.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:s.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:s.jsx("path",{className:"primary",d:"M130.66,506H301.83L356.4,308.12c7.52-27.29,45.89-27.27,53.39,0L464.17,506H635L766,0H605.61l-41,200.81c-5.95,29.16-47,30-54,1.06L461.23,0H304.77L256.66,203.13c-6.86,29-48,28.44-54.06-.74l-14.44-69.25C172,55.55,104.1,0,25.48,0H0Z"})})})]})});export{a as Inline,a as default}; +import{j as s}from"./index-bqlWiOOz.js";const a=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",children:s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 766 506",children:[s.jsx("defs",{}),s.jsx("g",{id:"Layer_2","data-name":"Layer 2",children:s.jsx("g",{id:"Layer_1-2","data-name":"Layer 1",children:s.jsx("path",{className:"primary",d:"M130.66,506H301.83L356.4,308.12c7.52-27.29,45.89-27.27,53.39,0L464.17,506H635L766,0H605.61l-41,200.81c-5.95,29.16-47,30-54,1.06L461.23,0H304.77L256.66,203.13c-6.86,29-48,28.44-54.06-.74l-14.44-69.25C172,55.55,104.1,0,25.48,0H0Z"})})})]})});export{a as Inline,a as default}; diff --git a/assets/index-HRU4k55l.js b/assets/index-bqlWiOOz.js similarity index 99% rename from assets/index-HRU4k55l.js rename to assets/index-bqlWiOOz.js index 59803cec..2685c1ff 100644 --- a/assets/index-HRU4k55l.js +++ b/assets/index-bqlWiOOz.js @@ -1346,7 +1346,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `,J1=0,NW={activeSection:J1,setActiveSection:(e,t)=>{}},h5=(e,t)=>{const n=di(`pageSection:${t}:${e}`,void 0,!0);if(n)return n},OW=(e,t,n)=>{localStorage.setItem(`pageSection:${t}:${e}`,JSON.stringify(n))};var IW=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;rO.useContext(aP),RW=({pageId:e,children:t})=>{const{activeTabId:n}=Er(),[r,i]=O.useState(h5(e,n)||J1),a=(s,o=!0)=>{o&&OW(e,n,s),i(s)};return iP(()=>{a(h5(e,n)||J1)},[e,n]),j.jsx(aP.Provider,{value:{activeSection:r,setActiveSection:a},children:t})},p5=({active:e,disabled:t,onClick:n,icon:r,iconTransform:i,tooltipText:a})=>{const{openTooltip:s}=C2(),o=O.useRef(null);return j.jsx(rP,{ref:o,onPointerOver:()=>s(a,o),onClick:()=>n(),disabled:t,className:e?"active":void 0,children:j.jsx(Ht,{icon:r,transform:i||void 0})})},LW={isReady:!1,getTabApi:()=>{},getApiStatus:e=>"disconnected"},m5={name:"@polkadot/api",path:import.meta&&import.meta.url?new URL(import.meta.url).pathname.substring(0,new URL(import.meta.url).pathname.lastIndexOf("/")+1):"auto",type:"esm",version:"10.11.2"},g5=-99999;function zc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})}class sP extends Error{constructor(n="",r=g5,i){super();I(this,"code");I(this,"data");I(this,"message");I(this,"name");I(this,"stack");if(zc(this,"message",String(n)),zc(this,"name",this.constructor.name),zc(this,"data",i),zc(this,"code",r),oe(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);else{const{stack:a}=new Error(n);a&&zc(this,"stack",a)}}}I(sP,"CODES",{ASSERT:-90009,INVALID_JSONRPC:-99998,METHOD_NOT_FOUND:-32601,UNKNOWN:g5});function BW(e){if(it(e))return"";const t=`: ${Ge(e)?e.replace(/Error\("/g,"").replace(/\("/g,"(").replace(/"\)/g,")").replace(/\(/g,", ").replace(/\)/g,""):Te(e)}`;return t.length<=256?t:`${t.substring(0,255)}…`}function y5(e){if(e){const{code:t,data:n,message:r}=e;throw new sP(`${t}: ${r}${BW(n)}`,t,n)}}class DW{constructor(){I(this,"__internal__id",0)}decodeResponse(t){if(!t||t.jsonrpc!=="2.0")throw new Error("Invalid jsonrpc field in decoded object");const n=!it(t.params)&&!it(t.method);if(!Oe(t.id)&&(!n||!Oe(t.params.subscription)&&!Ge(t.params.subscription)))throw new Error("Invalid id field in decoded object");if(y5(t.error),t.result===void 0&&!n)throw new Error("No result found in jsonrpc response");return n?(y5(t.params.error),t.params.result):t.result}encodeJson(t,n){const[r,i]=this.encodeObject(t,n);return[r,Te(i)]}encodeObject(t,n){const r=++this.__internal__id;return[r,{id:r,jsonrpc:"2.0",method:t,params:n}]}}const HW="http://127.0.0.1:9933",zW="ws://127.0.0.1:9944",jW={HTTP_URL:HW,WS_URL:zW},UW=128;class b5{constructor(t){I(this,"key");I(this,"next");I(this,"prev");this.key=t,this.next=this.prev=this}}class FW{constructor(t=UW){I(this,"capacity");I(this,"__internal__data",new Map);I(this,"__internal__refs",new Map);I(this,"__internal__length",0);I(this,"__internal__head");I(this,"__internal__tail");this.capacity=t,this.__internal__head=this.__internal__tail=new b5("")}get length(){return this.__internal__length}get lengthData(){return this.__internal__data.size}get lengthRefs(){return this.__internal__refs.size}entries(){const t=this.keys(),n=t.length,r=new Array(n);for(let i=0;i=0&&e<=999)return"(Unused)";if(e>=1016){if(e<=1999)return"(For WebSocket standard)";if(e<=2999)return"(For WebSocket extensions)";if(e<=3999)return"(For libraries and frameworks)";if(e<=4999)return"(For applications)"}return XW[e]||"(Unknown)"}const GW={chain_finalisedHead:"chain_finalizedHead",chain_subscribeFinalisedHeads:"chain_subscribeFinalizedHeads",chain_unsubscribeFinalisedHeads:"chain_unsubscribeFinalizedHeads"},ZW=2500,KW=60*1e3,YW=5e3,Hn=Cr("api-ws");function x5(e,t){Object.keys(e).forEach(n=>{t&&t(e[n]),delete e[n]})}function Am(){return{bytesRecv:0,bytesSent:0,cached:0,errors:0,requests:0,subscriptions:0,timeout:0}}class Mp{constructor(t=jW.WS_URL,n=ZW,r={},i){I(this,"__internal__callCache",new FW);I(this,"__internal__coder");I(this,"__internal__endpoints");I(this,"__internal__headers");I(this,"__internal__eventemitter");I(this,"__internal__handlers",{});I(this,"__internal__isReadyPromise");I(this,"__internal__stats");I(this,"__internal__waitingForId",{});I(this,"__internal__autoConnectMs");I(this,"__internal__endpointIndex");I(this,"__internal__endpointStats");I(this,"__internal__isConnected",!1);I(this,"__internal__subscriptions",{});I(this,"__internal__timeoutId",null);I(this,"__internal__websocket");I(this,"__internal__timeout");I(this,"__internal__emit",(t,...n)=>{this.__internal__eventemitter.emit(t,...n)});I(this,"__internal__onSocketClose",t=>{const n=new Error(`disconnected from ${this.endpoint}: ${t.code}:: ${t.reason||qW(t.code)}`);this.__internal__autoConnectMs>0&&Hn.error(n.message),this.__internal__isConnected=!1,this.__internal__websocket&&(this.__internal__websocket.onclose=null,this.__internal__websocket.onerror=null,this.__internal__websocket.onmessage=null,this.__internal__websocket.onopen=null,this.__internal__websocket=null),this.__internal__timeoutId&&(clearInterval(this.__internal__timeoutId),this.__internal__timeoutId=null),x5(this.__internal__handlers,r=>{try{r.callback(n,void 0)}catch(i){Hn.error(i)}}),x5(this.__internal__waitingForId),this.__internal__endpointStats=Am(),this.__internal__emit("disconnected"),this.__internal__autoConnectMs>0&&setTimeout(()=>{this.connectWithRetry().catch(Vi)},this.__internal__autoConnectMs)});I(this,"__internal__onSocketError",t=>{Hn.debug(()=>["socket error",t]),this.__internal__emit("error",t)});I(this,"__internal__onSocketMessage",t=>{Hn.debug(()=>["received",t.data]);const n=t.data.length;this.__internal__endpointStats.bytesRecv+=n,this.__internal__stats.total.bytesRecv+=n;const r=JSON.parse(t.data);return it(r.method)?this.__internal__onSocketMessageResult(r):this.__internal__onSocketMessageSubscribe(r)});I(this,"__internal__onSocketMessageResult",t=>{const n=this.__internal__handlers[t.id];if(!n){Hn.debug(()=>`Unable to find handler for id=${t.id}`);return}try{const{method:r,params:i,subscription:a}=n,s=this.__internal__coder.decodeResponse(t);if(n.callback(null,s),a){const o=`${a.type}::${s}`;this.__internal__subscriptions[o]=$({},a,{method:r,params:i}),this.__internal__waitingForId[o]&&this.__internal__onSocketMessageSubscribe(this.__internal__waitingForId[o])}}catch(r){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,n.callback(r,void 0)}delete this.__internal__handlers[t.id]});I(this,"__internal__onSocketMessageSubscribe",t=>{if(!t.method)throw new Error("No method found in JSONRPC response");const r=`${GW[t.method]||t.method}::${t.params.subscription}`,i=this.__internal__subscriptions[r];if(!i){this.__internal__waitingForId[r]=t,Hn.debug(()=>`Unable to find handler for subscription=${r}`);return}delete this.__internal__waitingForId[r];try{const a=this.__internal__coder.decodeResponse(t);i.callback(null,a)}catch(a){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,i.callback(a,void 0)}});I(this,"__internal__onSocketOpen",()=>{if(this.__internal__websocket===null)throw new Error("WebSocket cannot be null in onOpen");return Hn.debug(()=>["connected to",this.endpoint]),this.__internal__isConnected=!0,this.__internal__resubscribe(),this.__internal__emit("connected"),!0});I(this,"__internal__resubscribe",()=>{const t=this.__internal__subscriptions;this.__internal__subscriptions={},Promise.all(Object.keys(t).map(async n=>{const{callback:r,method:i,params:a,type:s}=t[n];if(!s.startsWith("author_"))try{await this.subscribe(s,i,a,r)}catch(o){Hn.error(o)}})).catch(Hn.error)});I(this,"__internal__timeoutHandlers",()=>{const t=Date.now(),n=Object.keys(this.__internal__handlers);for(let r=0,i=n.length;rthis.__internal__timeout){try{a.callback(new Error(`No response received from RPC endpoint in ${this.__internal__timeout/1e3}s`),void 0)}catch{}this.__internal__endpointStats.timeout++,this.__internal__stats.total.timeout++,delete this.__internal__handlers[n[r]]}}});const a=Array.isArray(t)?t:[t];if(a.length===0)throw new Error("WsProvider requires at least one Endpoint");a.forEach(s=>{if(!/^(wss|ws):\/\//.test(s))throw new Error(`Endpoint should start with 'ws://', received '${s}'`)}),this.__internal__eventemitter=new cP,this.__internal__autoConnectMs=n||0,this.__internal__coder=new DW,this.__internal__endpointIndex=-1,this.__internal__endpoints=a,this.__internal__headers=r,this.__internal__websocket=null,this.__internal__stats={active:{requests:0,subscriptions:0},total:Am()},this.__internal__endpointStats=Am(),this.__internal__timeout=i||KW,n&&n>0&&this.connectWithRetry().catch(Vi),this.__internal__isReadyPromise=new Promise(s=>{this.__internal__eventemitter.once("connected",()=>{s(this)})})}get hasSubscriptions(){return!0}get isClonable(){return!0}get isConnected(){return this.__internal__isConnected}get isReady(){return this.__internal__isReadyPromise}get endpoint(){return this.__internal__endpoints[this.__internal__endpointIndex]}clone(){return new Mp(this.__internal__endpoints)}selectEndpointIndex(t){return(this.__internal__endpointIndex+1)%t.length}async connect(){if(this.__internal__websocket)throw new Error("WebSocket is already connected");try{this.__internal__endpointIndex=this.selectEndpointIndex(this.__internal__endpoints),this.__internal__websocket=typeof Sr.WebSocket<"u"&&rL(Sr.WebSocket,Mm)?new Mm(this.endpoint):new Mm(this.endpoint,void 0,{headers:this.__internal__headers}),this.__internal__websocket&&(this.__internal__websocket.onclose=this.__internal__onSocketClose,this.__internal__websocket.onerror=this.__internal__onSocketError,this.__internal__websocket.onmessage=this.__internal__onSocketMessage,this.__internal__websocket.onopen=this.__internal__onSocketOpen),this.__internal__timeoutId=setInterval(()=>this.__internal__timeoutHandlers(),YW)}catch(t){throw Hn.error(t),this.__internal__emit("error",t),t}}async connectWithRetry(){if(this.__internal__autoConnectMs>0)try{await this.connect()}catch{setTimeout(()=>{this.connectWithRetry().catch(Vi)},this.__internal__autoConnectMs)}}async disconnect(){this.__internal__autoConnectMs=0;try{this.__internal__websocket&&this.__internal__websocket.close(1e3)}catch(t){throw Hn.error(t),this.__internal__emit("error",t),t}}get stats(){return{active:{requests:Object.keys(this.__internal__handlers).length,subscriptions:Object.keys(this.__internal__subscriptions).length},total:this.__internal__stats.total}}get endpointStats(){return this.__internal__endpointStats}on(t,n){return this.__internal__eventemitter.on(t,n),()=>{this.__internal__eventemitter.removeListener(t,n)}}send(t,n,r,i){this.__internal__endpointStats.requests++,this.__internal__stats.total.requests++;const[a,s]=this.__internal__coder.encodeJson(t,n);let o=r?this.__internal__callCache.get(s):null;return o?(this.__internal__endpointStats.cached++,this.__internal__stats.total.cached++):(o=this.__internal__send(a,s,t,n,i),r&&this.__internal__callCache.set(s,o)),o}async __internal__send(t,n,r,i,a){return new Promise((s,o)=>{try{if(!this.isConnected||this.__internal__websocket===null)throw new Error("WebSocket is not connected");const c=(u,d)=>{u?o(u):s(d)};Hn.debug(()=>["calling",r,n]),this.__internal__handlers[t]={callback:c,method:r,params:i,start:Date.now(),subscription:a};const l=n.length;this.__internal__endpointStats.bytesSent+=l,this.__internal__stats.total.bytesSent+=l,this.__internal__websocket.send(n)}catch(c){this.__internal__endpointStats.errors++,this.__internal__stats.total.errors++,o(c)}})}subscribe(t,n,r,i){return this.__internal__endpointStats.subscriptions++,this.__internal__stats.total.subscriptions++,this.send(n,r,!1,{callback:i,type:t})}async unsubscribe(t,n,r){const i=`${t}::${r}`;if(it(this.__internal__subscriptions[i]))return Hn.debug(()=>`Unable to find active subscription=${i}`),!1;delete this.__internal__subscriptions[i];try{return this.isConnected&&!_s(this.__internal__websocket)?this.send(n,[r]):!0}catch{return!1}}}var Q1=function(e,t){return Q1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Q1(e,t)};function er(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Q1(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function JW(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?a(u.value):i(u.value).then(o,c)}l((r=r.apply(e,t||[])).next())})}function lP(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function cc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function lc(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r1||o(h,m)})})}function o(h,m){try{c(r[h](m))}catch(y){d(a[0][3],y)}}function c(h){h.value instanceof Ho?Promise.resolve(h.value.v).then(l,u):d(a[0][2],h)}function l(h){o("next",h)}function u(h){o("throw",h)}function d(h,m){h(m),a.shift(),a.length&&o(a[0][0],a[0][1])}}function $W(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof oc=="function"?oc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(s){return new Promise(function(o,c){s=e[a](s),i(o,c,s.done,s.value)})}}function i(a,s,o,c){Promise.resolve(c).then(function(l){a({value:l,done:o})},s)}}function tt(e){return typeof e=="function"}function E2(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Vm=E2(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: `+n.map(function(r,i){return i+1+") "+r.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=n}});function bh(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Wi=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=oc(s),c=o.next();!c.done;c=o.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else s.remove(this);var u=this.initialTeardown;if(tt(u))try{u()}catch(v){a=v instanceof Vm?v.errors:[v]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=oc(d),m=h.next();!m.done;m=h.next()){var y=m.value;try{v5(y)}catch(v){a=a??[],v instanceof Vm?a=lc(lc([],cc(a)),cc(v.errors)):a.push(v)}}}catch(v){r={error:v}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(a)throw new Vm(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)v5(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&bh(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&bh(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),uP=Wi.EMPTY;function dP(e){return e instanceof Wi||e&&"closed"in e&&tt(e.remove)&&tt(e.add)&&tt(e.unsubscribe)}function v5(e){tt(e)?e():e.unsubscribe()}var fP={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hP={setTimeout:function(e,t){for(var n=[],r=2;r0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,s=i.isStopped,o=i.observers;return a||s?uP:(this.currentObservers=null,o.push(n),new Wi(function(){r.currentObservers=null,bh(o,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,s=r.isStopped;i?n.error(a):s&&n.complete()},t.prototype.asObservable=function(){var n=new qt;return n.source=this,n},t.create=function(n,r){return new T5(n,r)},t}(qt),T5=function(e){er(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:uP},t}(Ap),au=function(e){er(t,e);function t(n){var r=e.call(this)||this;return r._value=n,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(n){var r=e.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},t.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},t.prototype.next=function(n){e.prototype.next.call(this,this._value=n)},t}(Ap),V2={now:function(){return(V2.delegate||Date).now()},delegate:void 0},uX=function(e){er(t,e);function t(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=V2);var a=e.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return t.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,s=r._infiniteTimeWindow,o=r._timestampProvider,c=r._windowTime;i||(a.push(n),!s&&a.push(o.now()+c)),this._trimBuffer(),e.prototype.next.call(this,n)},t.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,s=i._buffer,o=s.slice(),c=0;c0?e.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=ty.setImmediate(n.flush.bind(n,void 0))))},t.prototype.recycleAsyncId=function(n,r,i){var a;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,n,r,i);var s=n.actions;r!=null&&((a=s[s.length-1])===null||a===void 0?void 0:a.id)!==r&&(ty.clearImmediate(r),n._scheduled===r&&(n._scheduled=void 0))},t}(fX),P5=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=V2.now,e}(),yX=function(e){er(t,e);function t(n,r){r===void 0&&(r=P5.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(P5),bX=function(e){er(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(n){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,a;n=n||i.shift();do if(a=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,a){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw a}},t}(yX),xX=new bX(gX),Bu=new qt(function(e){return e.complete()});function vX(e){return e&&tt(e.schedule)}function yP(e){return e[e.length-1]}function wX(e){return tt(yP(e))?e.pop():void 0}function Vp(e){return vX(yP(e))?e.pop():void 0}var bP=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function xP(e){return tt(e==null?void 0:e.then)}function vP(e){return tt(e[M2])}function wP(e){return Symbol.asyncIterator&&tt(e==null?void 0:e[Symbol.asyncIterator])}function SP(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function SX(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var TP=SX();function kP(e){return tt(e==null?void 0:e[TP])}function PP(e){return QW(this,arguments,function(){var n,r,i,a;return lP(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ho(n.read())];case 3:return r=s.sent(),i=r.value,a=r.done,a?[4,Ho(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ho(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function CP(e){return tt(e==null?void 0:e.getReader)}function Ya(e){if(e instanceof qt)return e;if(e!=null){if(vP(e))return TX(e);if(bP(e))return kX(e);if(xP(e))return PX(e);if(wP(e))return EP(e);if(kP(e))return CX(e);if(CP(e))return EX(e)}throw SP(e)}function TX(e){return new qt(function(t){var n=e[M2]();if(tt(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kX(e){return new qt(function(t){for(var n=0;n=2,!1,!0))}var QX=function(e,t){return e.push(t),e};function Op(){return on(function(e,t){JX(QX,[])(e).subscribe(t)})}function $X(e){return new qt(function(t){return e.subscribe(t)})}var eq={connector:function(){return new Ap}};function tq(e,t){t===void 0&&(t=eq);var n=t.connector;return on(function(r,i){var a=n();Ya(e($X(a))).subscribe(i),i.add(r.subscribe(a))})}function nq(e){return on(function(t,n){var r=!1;t.subscribe(sn(n,function(i){r=!0,n.next(i)},function(){r||n.next(e),n.complete()}))})}function rq(e){return e<=0?function(){return Bu}:on(function(t,n){var r=0;t.subscribe(sn(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function iq(e,t){return t===void 0&&(t=Qs),e=e??aq,on(function(n,r){var i,a=!0;n.subscribe(sn(r,function(s){var o=t(s);(a||!e(i,o))&&(a=!1,i=o,r.next(s))}))})}function aq(e,t){return e===t}function sq(e){return e===void 0&&(e=oq),on(function(t,n){var r=!1;t.subscribe(sn(n,function(i){r=!0,n.next(i)},function(){return r?n.complete():n.error(e())}))})}function oq(){return new N2}function _5(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?KX(function(i,a){return e(i,a,r)}):Qs,rq(1),n?nq(t):sq(function(){return new N2}))}}function cq(e,t){var n=tt(e)?e:function(){return e};return tt(t)?tq(t,{connector:n}):function(r){return new cX(r,n)}}function VP(e,t,n,r){n&&!tt(n)&&(r=n);var i=tt(n)?n:void 0;return function(a){return cq(new uX(e,t,r),i)(a)}}function Du(){for(var e=[],t=0;to.isApplyExtrinsic&&o.asApplyExtrinsic.eqn(a)),txIndex:a};if(i.isInBlock){const a=t.map(s=>s.hash.toHex());lq.warn(`block ${n.hash.toHex()}: Unable to find extrinsic ${e.toHex()} inside ${a.join(", ")}`)}return{}}function Im(e){return oe(e.sign)}const dq={Blake2_128:null,Blake2_256:null,Blake2_128Concat:null,Twox128:null,Twox256:null,Twox64Concat:null,Identity:null},M5={metadata:{description:"Returns the metadata of a runtime",params:[],type:"OpaqueMetadata"}},fq={Metadata:[{methods:{metadata_at_version:{description:"Returns the metadata at a given version.",params:[{name:"version",type:"u32"}],type:"Option"},metadata_versions:{description:"Returns the supported metadata versions.",params:[],type:"Vec"},...M5},version:2},{methods:{...M5},version:1}]},hq={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"}},pq={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}}},mq={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:dq}},gq={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"},yq={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"},xf={name:"Text",fields:"Vec",index:"u8",docs:"Vec"},bq={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:xf},xq={PortableTypeV14:{id:"Si1LookupTypeId",type:"Si1Type"},ErrorMetadataV14:{...xf,args:"Vec"},EventMetadataV14:{...xf,args:"Vec"},FunctionArgumentMetadataV14:{name:"Text",type:"Type",typeName:"Option"},FunctionMetadataV14:{...xf,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"},vq={CustomMetadata15:{map:"BTreeMap"},CustomValueMetadata15:{type:"SiLookupTypeId",value:"Bytes"},ExtrinsicMetadataV15:{version:"u8",addressType:"SiLookupTypeId",callType:"SiLookupTypeId",signatureType:"SiLookupTypeId",extraType:"SiLookupTypeId",signedExtensions:"Vec"},OuterEnums15:{callType:"SiLookupTypeId",eventType:"SiLookupTypeId",errorType:"SiLookupTypeId"},PalletMetadataV15:{name:"Text",storage:"Option",calls:"Option",events:"Option",constants:"Vec",errors:"Option",index:"u8",docs:"Vec"},RuntimeApiMetadataV15:{name:"Text",methods:"Vec",docs:"Vec"},RuntimeApiMethodMetadataV15:{name:"Text",inputs:"Vec",output:"SiLookupTypeId",docs:"Vec"},RuntimeApiMethodParamMetadataV15:{name:"Text",type:"SiLookupTypeId"},MetadataV15:{lookup:"PortableRegistry",pallets:"Vec",extrinsic:"ExtrinsicMetadataV15",type:"SiLookupTypeId",apis:"Vec",outerEnums:"OuterEnums15",custom:"CustomMetadata15"}},wq={rpc:{},runtime:fq,types:{...hq,...pq,...mq,...gq,...yq,...xq,...vq,ErrorMetadataLatest:"ErrorMetadataV14",EventMetadataLatest:"EventMetadataV14",ExtrinsicMetadataLatest:"ExtrinsicMetadataV15",FunctionArgumentMetadataLatest:"FunctionArgumentMetadataV14",FunctionMetadataLatest:"FunctionMetadataV14",MetadataLatest:"MetadataV15",PalletCallMetadataLatest:"PalletCallMetadataV14",PalletConstantMetadataLatest:"PalletConstantMetadataV14",PalletErrorMetadataLatest:"PalletErrorMetadataV14",PalletEventMetadataLatest:"PalletEventMetadataV14",PalletMetadataLatest:"PalletMetadataV15",PalletStorageMetadataLatest:"PalletStorageMetadataV14",PortableType:"PortableTypeV14",RuntimeApiMetadataLatest:"RuntimeApiMetadataV15",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",V15:"MetadataV15"}}}},Nd={execute_block:{description:"Execute the given block.",params:[{name:"block",type:"Block"}],type:"Null"}},A5={version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre3"}},Rm={initialize_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"}},Sq={Core:[{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersion"},...Nd,...Rm},version:4},{methods:{version:{description:"Returns the version of the runtime.",params:[],type:"RuntimeVersionPre4"},...Nd,...Rm},version:3},{methods:{...A5,...Nd,...Rm},version:2},{methods:{initialise_block:{description:"Initialize a block with the given header.",params:[{name:"header",type:"Header"}],type:"Null"},...A5,...Nd},version:1}]},Tq={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>"},kq={Council:"CollectiveOrigin",System:"SystemOrigin",TechnicalCommittee:"CollectiveOrigin",Xcm:"XcmOrigin",XcmPallet:"XcmOrigin",Authority:"AuthorityOrigin",GeneralCouncil:"CollectiveOrigin"},Pq={rpc:{},runtime:Sq,types:{...Tq,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"},DigestItem:{_enum:{Other:"Bytes",AuthoritiesChange:"Vec",ChangesTrieRoot:"Hash",SealV0:"SealV0",Consensus:"Consensus",Seal:"Seal",PreRuntime:"PreRuntime",ChangesTrieSignal:"ChangesTrieSignal",RuntimeEnvironmentUpdated:"Null"}},ExtrinsicsWeight:{normal:"Weight",operational:"Weight"},H32:"[u8; 4; H32]",H64:"[u8; 8; H64]",H128:"[u8; 16; H128]",H160:"[u8; 20; H160]",H256:"[u8; 32; H256]",H512:"[u8; 64; H512]",H1024:"[u8; 128; H1024]",H2048:"[u8; 256; H2048]",Hash:"H256",Header:{parentHash:"Hash",number:"Compact",stateRoot:"Hash",extrinsicsRoot:"Hash",digest:"Digest"},HeaderPartial:{parentHash:"Hash",number:"BlockNumber"},IndicesLookupSource:"GenericLookupSource",Index:"u32",Justification:"(ConsensusEngineId, EncodedJustification)",EncodedJustification:"Bytes",Justifications:"Vec",KeyValue:"(StorageKey, StorageData)",KeyTypeId:"u32",LockIdentifier:"[u8; 8]",LookupSource:"MultiAddress",LookupTarget:"AccountId",ModuleId:"LockIdentifier",MultiAddress:"GenericMultiAddress",MultiSigner:{_enum:{Ed25519:"[u8; 32]",Sr25519:"[u8; 32]",Ecdsa:"[u8; 33]"}},Moment:"UInt<64, Moment>",OpaqueCall:"Bytes",Origin:"DoNotConstruct",OriginCaller:{_enum:{System:"SystemOrigin"}},PalletId:"LockIdentifier",PalletsOrigin:"OriginCaller",PalletVersion:{major:"u16",minor:"u8",patch:"u8"},Pays:{_enum:["Yes","No"]},Phantom:"Null",PhantomData:"Null",Releases:{_enum:["V1","V2","V3","V4","V5","V6","V7","V8","V9","V10"]},RuntimeCall:"Call",RuntimeEvent:"Event",RuntimeDbWeight:{read:"Weight",write:"Weight"},SignedBlock:"SignedBlockWithJustifications",SignedBlockWithJustification:{block:"Block",justification:"Option"},SignedBlockWithJustifications:{block:"Block",justifications:"Option"},Slot:"u64",SlotDuration:"u64",StorageData:"Bytes",StorageInfo:{palletName:"Bytes",storage_name:"Bytes",prefix:"Bytes",maxValues:"Option",maxSize:"Option"},StorageProof:{trieNodes:"Vec"},TransactionPriority:"u64",TransactionLongevity:"u64",TransactionTag:"Bytes",TransactionInfo:{_alias:{dataSize:"size"},chunkRoot:"H256",contentHash:"H256",dataSize:"u32",blockChunks:"u32"},TransactionStorageProof:{chunk:"Vec",proof:"Vec>"},ValidatorId:"AccountId",ValidatorIdOf:"ValidatorId",WeightV0:"u32",WeightV1:"u64",WeightV2:{refTime:"Compact",proofSize:"Compact"},Weight:"WeightV2",WeightMultiplier:"Fixed64",PreRuntime:"(ConsensusEngineId, Bytes)",SealV0:"(u64, Signature)",Seal:"(ConsensusEngineId, Bytes)",Consensus:"(ConsensusEngineId, Bytes)"}},Cq={Si0Field:{name:"Option",type:"Si0LookupTypeId",typeName:"Option",docs:"Vec"},Si0LookupTypeId:"u32",Si0Path:"Vec",Si0Type:{path:"Si0Path",params:"Vec",def:"Si0TypeDef"},Si0TypeDef:{_enum:{Composite:"Si0TypeDefComposite",Variant:"Si0TypeDefVariant",Sequence:"Si0TypeDefSequence",Array:"Si0TypeDefArray",Tuple:"Si0TypeDefTuple",Primitive:"Si0TypeDefPrimitive",Compact:"Si0TypeDefCompact",Phantom:"Si0TypeDefPhantom",BitSequence:"Si0TypeDefBitSequence"}},Si0TypeDefArray:{len:"u32",type:"Si0LookupTypeId"},Si0TypeDefBitSequence:{bitStoreType:"Si0LookupTypeId",bitOrderType:"Si0LookupTypeId"},Si0TypeDefCompact:{type:"Si0LookupTypeId"},Si0TypeDefComposite:{fields:"Vec"},Si0TypeDefPhantom:"Null",Si0TypeDefVariant:{variants:"Vec"},Si0TypeDefPrimitive:{_enum:["Bool","Char","Str","U8","U16","U32","U64","U128","U256","I8","I16","I32","I64","I128","I256"]},Si0TypeDefSequence:{type:"Si0LookupTypeId"},Si0TypeDefTuple:"Vec",Si0TypeParameter:{name:"Text",type:"Option"},Si0Variant:{name:"Text",fields:"Vec",index:"Option",discriminant:"Option",docs:"Vec"}},Eq={rpc:{},types:{...Cq,...bq,SiField:"Si1Field",SiLookupTypeId:"Si1LookupTypeId",SiPath:"Si1Path",SiType:"Si1Type",SiTypeDef:"Si1TypeDef",SiTypeDefArray:"Si1TypeDefArray",SiTypeDefBitSequence:"Si1TypeDefBitSequence",SiTypeDefCompact:"Si1TypeDefCompact",SiTypeDefComposite:"Si1TypeDefComposite",SiTypeDefPrimitive:"Si1TypeDefPrimitive",SiTypeDefSequence:"Si1TypeDefSequence",SiTypeDefTuple:"Si1TypeDefTuple",SiTypeParameter:"Si1TypeParameter",SiTypeDefVariant:"Si1TypeDefVariant",SiVariant:"Si1Variant"}},_q={AssetConversionApi:[{methods:{get_reserves:{description:"Get pool reserves",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"}],type:"Option<(Balance,Balance)>"},quote_price_exact_tokens_for_tokens:{description:"Quote price: exact tokens for tokens",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"},{name:"amount",type:"u128"},{name:"include_fee",type:"bool"}],type:"Option<(Balance)>"},quote_price_tokens_for_exact_tokens:{description:"Quote price: tokens for exact tokens",params:[{name:"asset1",type:"XcmV3MultiLocation"},{name:"asset2",type:"XcmV3MultiLocation"},{name:"amount",type:"u128"},{name:"include_fee",type:"bool"}],type:"Option<(Balance)>"}},version:1}]},Mq={rpc:{},runtime:_q,types:{TAssetConversion:"Option"}},Aq={AssetsApi:[{methods:{account_balances:{description:"Return the current set of authorities.",params:[{name:"account",type:"AccountId"}],type:"Vec<(u32, TAssetBalance)>"}},version:1}]},Vq={rpc:{},runtime:Aq,types:{AssetApprovalKey:{owner:"AccountId",delegate:"AccountId"},AssetApproval:{amount:"TAssetBalance",deposit:"TAssetDepositBalance"},AssetBalance:{balance:"TAssetBalance",isFrozen:"bool",isSufficient:"bool"},AssetDestroyWitness:{accounts:"Compact",sufficients:"Compact",approvals:"Compact"},AssetDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",supply:"TAssetBalance",deposit:"TAssetDepositBalance",minBalance:"TAssetBalance",isSufficient:"bool",accounts:"u32",sufficients:"u32",approvals:"u32",isFrozen:"bool"},AssetMetadata:{deposit:"TAssetDepositBalance",name:"Vec",symbol:"Vec",decimals:"u8",isFrozen:"bool"},TAssetBalance:"u64",TAssetDepositBalance:"BalanceOf"}},Nq={AuraApi:[{methods:{authorities:{description:"Return the current set of authorities.",params:[],type:"Vec"},slot_duration:{description:"Returns the slot duration for Aura.",params:[],type:"SlotDuration"}},version:1}]},Oq={rpc:{},runtime:Nq,types:{RawAuraPreDigest:{slotNumber:"u64"}}},Iq={rpc:{},types:{UncleEntryItem:{_enum:{InclusionHeight:"BlockNumber",Uncle:"(Hash, Option)"}}}},Rq={epochAuthorship:{description:"Returns data about which slots (primary or secondary) can be claimed in the current epoch with the keys in the keystore",isUnsafe:!0,params:[],type:"HashMap"}},V5={current_epoch:{description:"Returns information regarding the current epoch.",params:[],type:"Epoch"},current_epoch_start:{description:"Returns the slot that started the current epoch.",params:[],type:"Slot"},generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the current epoch.",params:[{name:"slot",type:"Slot"},{name:"authorityId",type:"AuthorityId"}],type:"Option"},next_epoch:{description:"Returns information regarding the next epoch (which was already previously announced).",params:[],type:"Epoch"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"BabeEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"}},Lq={BabeApi:[{methods:{configuration:{description:"Return the genesis configuration for BABE. The configuration is only read on genesis.",params:[],type:"BabeGenesisConfiguration"},...V5},version:2},{methods:{configuration:{description:"Return the configuration for BABE. Version 1.",params:[],type:"BabeGenesisConfigurationV1"},...V5},version:1}]},Bq={rpc:Rq,runtime:Lq,types:{AllowedSlots:{_enum:["PrimarySlots","PrimaryAndSecondaryPlainSlots","PrimaryAndSecondaryVRFSlots"]},BabeAuthorityWeight:"u64",BabeEpochConfiguration:{c:"(u64, u64)",allowedSlots:"AllowedSlots"},BabeBlockWeight:"u32",BabeEquivocationProof:{offender:"AuthorityId",slotNumber:"SlotNumber",firstHeader:"Header",secondHeader:"Header"},BabeGenesisConfiguration:{slotDuration:"u64",epochLength:"u64",c:"(u64, u64)",genesisAuthorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Randomness",allowedSlots:"AllowedSlots"},BabeGenesisConfigurationV1:{slotDuration:"u64",epochLength:"u64",c:"(u64, u64)",genesisAuthorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Randomness",secondarySlots:"bool"},BabeWeight:"u64",MaybeRandomness:"Option",MaybeVrf:"Option",Epoch:{epochIndex:"u64",startSlot:"Slot",duration:"u64",authorities:"Vec<(AuthorityId, BabeAuthorityWeight)>",randomness:"Hash",config:"BabeEpochConfiguration"},EpochAuthorship:{primary:"Vec",secondary:"Vec",secondary_vrf:"Vec"},NextConfigDescriptor:{_enum:{V0:"Null",V1:"NextConfigDescriptorV1"}},NextConfigDescriptorV1:{c:"(u64, u64)",allowedSlots:"AllowedSlots"},OpaqueKeyOwnershipProof:"Bytes",Randomness:"Hash",RawBabePreDigest:{_enum:{Phantom:"Null",Primary:"RawBabePreDigestPrimary",SecondaryPlain:"RawBabePreDigestSecondaryPlain",SecondaryVRF:"RawBabePreDigestSecondaryVRF"}},RawBabePreDigestPrimary:{authorityIndex:"u32",slotNumber:"SlotNumber",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestSecondaryPlain:{authorityIndex:"u32",slotNumber:"SlotNumber"},RawBabePreDigestSecondaryVRF:{authorityIndex:"u32",slotNumber:"SlotNumber",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestTo159:{_enum:{Primary:"RawBabePreDigestPrimaryTo159",Secondary:"RawBabePreDigestSecondaryTo159"}},RawBabePreDigestPrimaryTo159:{authorityIndex:"u32",slotNumber:"SlotNumber",weight:"BabeBlockWeight",vrfOutput:"VrfOutput",vrfProof:"VrfProof"},RawBabePreDigestSecondaryTo159:{authorityIndex:"u32",slotNumber:"SlotNumber",weight:"BabeBlockWeight"},RawBabePreDigestCompat:{_enum:{Zero:"u32",One:"u32",Two:"u32",Three:"u32"}},SlotNumber:"u64",VrfData:"[u8; 32]",VrfOutput:"[u8; 32]",VrfProof:"[u8; 64]"}},Dq={rpc:{},types:{AccountData:{free:"Balance",reserved:"Balance",miscFrozen:"Balance",feeFrozen:"Balance"},BalanceLockTo212:{id:"LockIdentifier",amount:"Balance",until:"BlockNumber",reasons:"WithdrawReasons"},BalanceLock:{id:"LockIdentifier",amount:"Balance",reasons:"Reasons"},BalanceStatus:{_enum:["Free","Reserved"]},Reasons:{_enum:["Fee","Misc","All"]},ReserveData:{id:"ReserveIdentifier",amount:"Balance"},ReserveIdentifier:"[u8; 8]",VestingSchedule:{offset:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"},WithdrawReasons:{_set:{TransactionPayment:1,Transfer:2,Reserve:4,Fee:8,Tip:16}}}},Hq={getFinalizedHead:{description:"Returns hash of the latest BEEFY finalized block as seen by this client.",params:[],type:"H256"},subscribeJustifications:{description:"Returns the block most recently finalized by BEEFY, alongside its justification.",params:[],pubsub:["justifications","subscribeJustifications","unsubscribeJustifications"],type:"BeefyVersionedFinalityProof"}},Lm={beefy_genesis:{description:"Return the block number where BEEFY consensus is enabled/started",params:[],type:"Option"},generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the given set.",params:[{name:"setId",type:"ValidatorSetId"},{name:"authorityId",type:"AuthorityId"}],type:"Option"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"BeefyEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"},validator_set:{description:"Return the current active BEEFY validator set",params:[],type:"Option"}},zq={authority_set_proof:{description:"Return the currently active BEEFY authority set proof.",params:[],type:"BeefyAuthoritySet"},next_authority_set_proof:{description:"Return the next/queued BEEFY authority set proof.",params:[],type:"BeefyNextAuthoritySet"}},jq={BeefyApi:[{methods:Lm,version:3},{methods:Lm,version:2},{methods:Lm,version:1}],BeefyMmrApi:[{methods:zq,version:1}]},Uq={rpc:Hq,runtime:jq,types:{BeefyAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyCommitment:{payload:"BeefyPayload",blockNumber:"BlockNumber",validatorSetId:"ValidatorSetId"},BeefyId:"[u8; 33]",BeefyEquivocationProof:{first:"BeefyVoteMessage",second:"BeefyVoteMessage"},BeefySignedCommitment:{commitment:"BeefyCommitment",signatures:"Vec>"},BeefyVersionedFinalityProof:{_enum:{V0:"Null",V1:"BeefySignedCommitment"}},BeefyNextAuthoritySet:{id:"u64",len:"u32",root:"H256"},BeefyPayload:"Vec<(BeefyPayloadId, Bytes)>",BeefyPayloadId:"[u8;2]",BeefyVoteMessage:{commitment:"BeefyCommitment",id:"AuthorityId",signature:"Signature"},MmrRootHash:"H256",ValidatorSetId:"u64",ValidatorSet:{validators:"Vec",id:"ValidatorSetId"}}},Fq={Benchmark:[{methods:{benchmark_metadata:{description:"Get the benchmark metadata available for this runtime.",params:[{name:"extra",type:"bool"}],type:"(Vec, Vec)"},dispatch_benchmark:{description:"Dispatch the given benchmark.",params:[{name:"config",type:"BenchmarkConfig"}],type:"Result, Text>"}},version:1}]},Wq={rpc:{},runtime:Fq,types:{BenchmarkBatch:{pallet:"Text",instance:"Text",benchmark:"Text",results:"Vec"},BenchmarkConfig:{pallet:"Bytes",benchmark:"Bytes",selectedComponents:"Vec<(BenchmarkParameter, u32)>",verify:"bool",internalRepeats:"u32"},BenchmarkList:{pallet:"Bytes",instance:"Bytes",benchmarks:"Vec"},BenchmarkMetadata:{name:"Bytes",components:"Vec<(BenchmarkParameter, u32, u32)>"},BenchmarkParameter:{_enum:["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]},BenchmarkResult:{components:"Vec<(BenchmarkParameter, u32)>",extrinsicTime:"u128",storageRootTime:"u128",reads:"u32",repeatReads:"u32",writes:"u32",repeatWrites:"u32",proofSize:"u32",benchKeys:"Vec<(Vec, u32, u32, bool)>"}}},Bm={random_seed:{description:"Generate a random seed.",params:[],type:"Hash"}},N5={apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResultPre6"}},jc={check_inherents:{description:"Check that the inherents are valid.",params:[{name:"block",type:"Block"},{name:"data",type:"InherentData"}],type:"CheckInherentsResult"},inherent_extrinsics:{description:"Generate inherent extrinsics.",params:[{name:"inherent",type:"InherentData"}],type:"Vec"}},Od={finalize_block:{description:"Finish the current block.",params:[],type:"Header"}},Xq={BlockBuilder:[{methods:{apply_extrinsic:{description:"Apply the given extrinsic.",params:[{name:"extrinsic",type:"Extrinsic"}],type:"ApplyExtrinsicResult"},...jc,...Od},version:6},{methods:{...N5,...jc,...Od},version:5},{methods:{...Bm,...N5,...jc,...Od},version:4},{methods:{...Bm,...jc,...Od},version:3},{methods:{finalise_block:{description:"Finish the current block.",params:[],type:"Header"},...Bm,...jc},version:2}]},qq={rpc:{},runtime:Xq,types:{CheckInherentsResult:{okay:"bool",fatalError:"bool",errors:"InherentData"},InherentData:{data:"BTreeMap"},InherentIdentifier:"[u8; 8]"}},Gq={rpc:{},types:{CollectiveOrigin:{_enum:{Members:"(MemberCount, MemberCount)",Member:"AccountId"}},MemberCount:"u32",ProposalIndex:"u32",VotesTo230:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec",nays:"Vec"},Votes:{index:"ProposalIndex",threshold:"MemberCount",ayes:"Vec",nays:"Vec",end:"BlockNumber"}}},Zq={rpc:{},types:{AuthorityId:"AccountId",RawVRFOutput:"[u8; 32]"}},Kq={call:{deprecated:"Use the runtime interface `api.call.contractsApi.call` instead",description:"Executes a call to a contract",params:[{name:"callRequest",type:"ContractCallRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractExecResult"},getStorage:{deprecated:"Use the runtime interface `api.call.contractsApi.getStorage` instead",description:"Returns the value under a specified storage key in a contract",params:[{name:"address",type:"AccountId"},{name:"key",type:"H256"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option"},instantiate:{deprecated:"Use the runtime interface `api.call.contractsApi.instantiate` instead",description:"Instantiate a new contract",params:[{name:"request",type:"InstantiateRequestV1"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ContractInstantiateResult"},rentProjection:{deprecated:"Not available in newer versions of the contracts interfaces",description:"Returns the projected time a given contract will be able to sustain paying its rent",params:[{name:"address",type:"AccountId"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Option"},uploadCode:{deprecated:"Use the runtime interface `api.call.contractsApi.uploadCode` instead",description:"Upload new code without instantiating a contract from it",endpoint:"contracts_upload_code",params:[{name:"uploadRequest",type:"CodeUploadRequest"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"CodeUploadResult"}},O5={get_storage:{description:"Query a given storage key in a given contract.",params:[{name:"address",type:"AccountId"},{name:"key",type:"Bytes"}],type:"Option"},upload_code:{description:"Upload new code without instantiating a contract from it.",params:[{name:"origin",type:"AccountId"},{name:"code",type:"Bytes"},{name:"storageDepositLimit",type:"Option"}],type:"CodeUploadResult"}},Yq={ContractsApi:[{methods:{call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option"},{name:"storageDepositLimit",type:"Option"},{name:"inputData",type:"Vec"}],type:"ContractExecResult"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"Option"},{name:"storageDepositLimit",type:"Option"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResult"},...O5},version:2},{methods:{call:{description:"Perform a call from a specified account to a given contract.",params:[{name:"origin",type:"AccountId"},{name:"dest",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option"},{name:"inputData",type:"Vec"}],type:"ContractExecResultU64"},instantiate:{description:"Instantiate a new contract.",params:[{name:"origin",type:"AccountId"},{name:"value",type:"Balance"},{name:"gasLimit",type:"u64"},{name:"storageDepositLimit",type:"Option"},{name:"code",type:"CodeSource"},{name:"data",type:"Bytes"},{name:"salt",type:"Bytes"}],type:"ContractInstantiateResultU64"},...O5},version:1}]},Jq={rpc:Kq,runtime:Yq,types:{AliveContractInfo:{trieId:"TrieId",storageSize:"u32",pairCount:"u32",codeHash:"CodeHash",rentAllowance:"Balance",rentPaid:"Balance",deductBlock:"BlockNumber",lastWrite:"Option",_reserved:"Option"},CodeHash:"Hash",CodeSource:{_enum:{Upload:"Bytes",Existing:"Hash"}},CodeUploadRequest:{origin:"AccountId",code:"Bytes",storageDepositLimit:"Option"},CodeUploadResult:"Result",CodeUploadResultValue:{codeHash:"CodeHash",deposit:"Balance"},ContractCallRequest:{origin:"AccountId",dest:"AccountId",value:"Balance",gasLimit:"u64",storageDepositLimit:"Option",inputData:"Bytes"},ContractExecResultSuccessTo255:{status:"u8",data:"Raw"},ContractExecResultTo255:{_enum:{Success:"ContractExecResultSuccessTo255",Error:"Null"}},ContractExecResultSuccessTo260:{flags:"ContractReturnFlags",data:"Bytes",gasConsumed:"u64"},ContractExecResultTo260:{_enum:{Success:"ContractExecResultSuccessTo260",Error:"Null"}},ContractExecResultOk:{flags:"ContractReturnFlags",data:"Bytes"},ContractExecResultResult:"Result",ContractExecResultTo267:{gasConsumed:"u64",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResult:{gasConsumed:"Weight",gasRequired:"Weight",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractExecResultU64:{gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"ContractExecResultResult"},ContractInfo:{_enum:{Alive:"AliveContractInfo",Tombstone:"TombstoneContractInfo"}},ContractCallFlags:{_set:{_bitLength:32,ForwardInput:1,CloneInput:2,TailCall:4,AllowReentry:8}},ContractReturnFlags:{_set:{_bitLength:32,Revert:1}},ContractStorageKey:"[u8; 32]",DeletedContract:{pairCount:"u32",trieId:"TrieId"},ExecReturnValue:{flags:"ContractReturnFlags",data:"Bytes"},Gas:"u64",HostFnWeightsTo264:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",restoreTo:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight"},HostFnWeights:{caller:"Weight",address:"Weight",gasLeft:"Weight",balance:"Weight",valueTransferred:"Weight",minimumBalance:"Weight",tombstoneDeposit:"Weight",rentAllowance:"Weight",blockNumber:"Weight",now:"Weight",weightToFee:"Weight",gas:"Weight",input:"Weight",inputPerByte:"Weight",return:"Weight",returnPerByte:"Weight",terminate:"Weight",terminatePerCodeByte:"Weight",restoreTo:"Weight",restoreToPerCallerCodeByte:"Weight",restoreToPerTombstoneCodeByte:"Weight",restoreToPerDelta:"Weight",random:"Weight",depositEvent:"Weight",depositEventPerTopic:"Weight",depositEventPerByte:"Weight",setRentAllowance:"Weight",setStorage:"Weight",setStoragePerByte:"Weight",clearStorage:"Weight",getStorage:"Weight",getStoragePerByte:"Weight",transfer:"Weight",call:"Weight",callPerCodeByte:"Weight",callTransferSurcharge:"Weight",callPerInputByte:"Weight",callPerOutputByte:"Weight",instantiate:"Weight",instantiatePerCodeByte:"Weight",instantiatePerInputByte:"Weight",instantiatePerOutputByte:"Weight",instantiatePerSaltByte:"Weight",hashSha2256:"Weight",hashSha2256PerByte:"Weight",hashKeccak256:"Weight",hashKeccak256PerByte:"Weight",hashBlake2256:"Weight",hashBlake2256PerByte:"Weight",hashBlake2128:"Weight",hashBlake2128PerByte:"Weight",rentParams:"Weight"},InstantiateRequestV1:{origin:"AccountId",value:"Balance",gasLimit:"Gas",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequestV2:{_fallback:"InstantiateRequestV1",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option",code:"Bytes",data:"Bytes",salt:"Bytes"},InstantiateRequest:{_fallback:"InstantiateRequestV2",origin:"AccountId",value:"Balance",gasLimit:"Gas",storageDepositLimit:"Option",code:"CodeSource",data:"Bytes",salt:"Bytes"},ContractInstantiateResultTo267:"Result",ContractInstantiateResultTo299:"Result",ContractInstantiateResult:{gasConsumed:"WeightV2",gasRequired:"WeightV2",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},ContractInstantiateResultU64:{_fallback:"ContractInstantiateResultTo299",gasConsumed:"u64",gasRequired:"u64",storageDeposit:"StorageDeposit",debugMessage:"Text",result:"InstantiateReturnValue"},InstantiateReturnValueTo267:{result:"ExecReturnValue",accountId:"AccountId",rentProjection:"Option"},InstantiateReturnValueOk:{result:"ExecReturnValue",accountId:"AccountId"},InstantiateReturnValue:"Result",InstructionWeights:{i64const:"u32",i64load:"u32",i64store:"u32",select:"u32",rIf:"u32",br:"u32",brIf:"u32",brIable:"u32",brIablePerEntry:"u32",call:"u32",callIndirect:"u32",callIndirectPerParam:"u32",localGet:"u32",localSet:"u32",local_tee:"u32",globalGet:"u32",globalSet:"u32",memoryCurrent:"u32",memoryGrow:"u32",i64clz:"u32",i64ctz:"u32",i64popcnt:"u32",i64eqz:"u32",i64extendsi32:"u32",i64extendui32:"u32",i32wrapi64:"u32",i64eq:"u32",i64ne:"u32",i64lts:"u32",i64ltu:"u32",i64gts:"u32",i64gtu:"u32",i64les:"u32",i64leu:"u32",i64ges:"u32",i64geu:"u32",i64add:"u32",i64sub:"u32",i64mul:"u32",i64divs:"u32",i64divu:"u32",i64rems:"u32",i64remu:"u32",i64and:"u32",i64or:"u32",i64xor:"u32",i64shl:"u32",i64shrs:"u32",i64shru:"u32",i64rotl:"u32",i64rotr:"u32"},LimitsTo264:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32",codeSize:"u32"},Limits:{eventTopics:"u32",stackHeight:"u32",globals:"u32",parameters:"u32",memoryPages:"u32",tableSize:"u32",brTableSize:"u32",subjectLen:"u32"},PrefabWasmModule:{scheduleVersion:"Compact",initial:"Compact",maximum:"Compact",refcount:"Compact",_reserved:"Option",code:"Bytes",originalCodeLen:"u32"},RentProjection:{_enum:{EvictionAt:"BlockNumber",NoEviction:"Null"}},ScheduleTo212:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo258:{version:"u32",putCodePerByteCost:"Gas",growMemCost:"Gas",regularOpCost:"Gas",returnDataPerByteCost:"Gas",eventDataPerByteCost:"Gas",eventPerTopicCost:"Gas",eventBaseCost:"Gas",sandboxDataReadCost:"Gas",sandboxDataWriteCost:"Gas",transferCost:"Gas",maxEventTopics:"u32",maxStackHeight:"u32",maxMemoryPages:"u32",enablePrintln:"bool",maxSubjectLen:"u32"},ScheduleTo264:{version:"u32",enablePrintln:"bool",limits:"LimitsTo264",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeightsTo264"},Schedule:{version:"u32",enablePrintln:"bool",limits:"Limits",instructionWeights:"InstructionWeights",hostFnWeights:"HostFnWeights"},SeedOf:"Hash",StorageDeposit:{_enum:{Refund:"Balance",Charge:"Balance"}},TombstoneContractInfo:"Hash",TrieId:"Bytes"}},Qq=["None","Locked1x","Locked2x","Locked3x","Locked4x","Locked5x","Locked6x"],$q={rpc:{},types:{AccountVote:{_enum:{Standard:"AccountVoteStandard",Split:"AccountVoteSplit"}},AccountVoteSplit:{aye:"Balance",nay:"Balance"},AccountVoteStandard:{vote:"Vote",balance:"Balance"},Conviction:{_enum:Qq},Delegations:{votes:"Balance",capital:"Balance"},PreimageStatus:{_enum:{Missing:"BlockNumber",Available:"PreimageStatusAvailable"}},PreimageStatusAvailable:{data:"Bytes",provider:"AccountId",deposit:"Balance",since:"BlockNumber",expiry:"Option"},PriorLock:"(BlockNumber, Balance)",PropIndex:"u32",Proposal:"Call",ProxyState:{_enum:{Open:"AccountId",Active:"AccountId"}},ReferendumIndex:"u32",ReferendumInfoTo239:{end:"BlockNumber",proposalHash:"Hash",threshold:"VoteThreshold",delay:"BlockNumber"},ReferendumInfo:{_enum:{Ongoing:"ReferendumStatus",Finished:"ReferendumInfoFinished"}},ReferendumInfoFinished:{approved:"bool",end:"BlockNumber"},ReferendumStatus:{end:"BlockNumber",proposalHash:"Hash",threshold:"VoteThreshold",delay:"BlockNumber",tally:"Tally"},Tally:{ayes:"Balance",nays:"Balance",turnout:"Balance"},Voting:{_enum:{Direct:"VotingDirect",Delegating:"VotingDelegating"}},VotingDirect:{votes:"Vec",delegations:"Delegations",prior:"PriorLock"},VotingDirectVote:"(ReferendumIndex, AccountVote)",VotingDelegating:{balance:"Balance",target:"AccountId",conviction:"Conviction",delegations:"Delegations",prior:"PriorLock"}}},eG={getBlockStats:{description:"Reexecute the specified `block_hash` and gather statistics while doing so",isUnsafe:!0,params:[{isHistoric:!0,name:"at",type:"Hash"}],type:"Option"}},tG={rpc:eG,types:{BlockStats:{witnessLen:"u64",witnessCompactLen:"u64",blockLen:"u64",blockNumExtrinsics:"u64"}}},nG={AuthorityDiscoveryApi:[{methods:{authorities:{description:"Retrieve authority identifiers of the current and next authority set.",params:[],type:"Vec"}},version:1}]},rG={rpc:{},runtime:nG,types:{}},iG={rpc:{},types:{ApprovalFlag:"u32",DefunctVoter:{who:"AccountId",voteCount:"Compact",candidateCount:"Compact"},Renouncing:{_enum:{Member:"Null",RunnerUp:"Null",Candidate:"Compact"}},SetIndex:"u32",Vote:"GenericVote",VoteIndex:"u32",VoterInfo:{lastActive:"VoteIndex",lastWin:"VoteIndex",pot:"Balance",stake:"Balance"},VoteThreshold:{_enum:["Super Majority Approve","Super Majority Against","Simple Majority"]}}},aG={createBlock:{description:"Instructs the manual-seal authorship task to create a new block",params:[{name:"createEmpty",type:"bool"},{name:"finalize",type:"bool"},{isOptional:!0,name:"parentHash",type:"BlockHash"}],type:"CreatedBlock"},finalizeBlock:{description:"Instructs the manual-seal authorship task to finalize a block",params:[{name:"hash",type:"BlockHash"},{isOptional:!0,name:"justification",type:"Justification"}],type:"bool"}},sG={rpc:aG,types:{CreatedBlock:{_alias:{blockHash:"hash"},blockHash:"BlockHash",aux:"ImportedAux"},ImportedAux:{headerOnly:"bool",clearJustificationRequests:"bool",needsJustification:"bool",badJustification:"bool",needsFinalityProof:"bool",isNewBest:"bool"}}},oG={rpc:{},types:{EvmAccount:{nonce:"u256",balance:"u256"},EvmCallInfo:{exitReason:"ExitReason",value:"Bytes",usedGas:"U256",logs:"Vec"},EvmCreateInfo:{exitReason:"ExitReason",value:"H160",usedGas:"U256",logs:"Vec"},EvmCallInfoV2:{exitReason:"ExitReason",value:"Bytes",usedGas:"U256",weightInfo:"Option",logs:"Vec"},EvmCreateInfoV2:{exitReason:"ExitReason",value:"H160",usedGas:"U256",weightInfo:"Option",logs:"Vec"},EvmLog:{address:"H160",topics:"Vec",data:"Bytes"},EvmVicinity:{gasPrice:"u256",origin:"H160"},EvmWeightInfo:{refTimeLimit:"Option",proofSizeLimit:"Option",refTimeUsage:"Option",proofSizeUsage:"Option"},ExitError:{_enum:{StackUnderflow:"Null",StackOverflow:"Null",InvalidJump:"Null",InvalidRange:"Null",DesignatedInvalid:"Null",CallTooDeep:"Null",CreateCollision:"Null",CreateContractLimit:"Null",OutOfOffset:"Null",OutOfGas:"Null",OutOfFund:"Null",PCUnderflow:"Null",CreateEmpty:"Null",Other:"Text"}},ExitFatal:{_enum:{NotSupported:"Null",UnhandledInterrupt:"Null",CallErrorAsFatal:"ExitError",Other:"Text"}},ExitReason:{_enum:{Succeed:"ExitSucceed",Error:"ExitError",Revert:"ExitRevert",Fatal:"ExitFatal"}},ExitRevert:{_enum:["Reverted"]},ExitSucceed:{_enum:["Stopped","Returned","Suicided"]}}},cG={rpc:{},types:{Extrinsic:"GenericExtrinsic",ExtrinsicEra:"GenericExtrinsicEra",ExtrinsicPayload:"GenericExtrinsicPayload",ExtrinsicSignature:"MultiSignature",ExtrinsicV4:"GenericExtrinsicV4",ExtrinsicPayloadV4:"GenericExtrinsicPayloadV4",ExtrinsicSignatureV4:"GenericExtrinsicSignatureV4",ExtrinsicUnknown:"GenericExtrinsicUnknown",ExtrinsicPayloadUnknown:"GenericExtrinsicPayloadUnknown",Era:"ExtrinsicEra",ImmortalEra:"GenericImmortalEra",MortalEra:"GenericMortalEra",AnySignature:"H512",MultiSignature:{_enum:{Ed25519:"Ed25519Signature",Sr25519:"Sr25519Signature",Ecdsa:"EcdsaSignature"}},Signature:"H512",SignerPayload:"GenericSignerPayload",EcdsaSignature:"[u8; 65]",Ed25519Signature:"H512",Sr25519Signature:"H512"}},lG={FungiblesApi:[{methods:{query_account_balances:{description:"Returns the list of all `MultiAsset` that an `AccountId` has",params:[{name:"account",type:"AccountId"}],type:"Result, FungiblesAccessError>"}},version:1},{methods:{query_account_balances:{description:"Returns the list of all `MultiAsset` that an `AccountId` has",params:[{name:"account",type:"AccountId"}],type:"Result"}},version:2}]},uG={rpc:{},runtime:lG,types:{FungiblesAccessError:{_enum:["AssetIdConversionFailed","AmountToBalanceConversionFailed"]}}},dG={rpc:{},types:{AssetOptions:{initalIssuance:"Compact",permissions:"PermissionLatest"},Owner:{_enum:{None:"Null",Address:"AccountId"}},PermissionsV1:{update:"Owner",mint:"Owner",burn:"Owner"},PermissionVersions:{_enum:{V1:"PermissionsV1"}},PermissionLatest:"PermissionsV1"}},fG={rpc:{},types:{ActiveGilt:{proportion:"Perquintill",amount:"Balance",who:"AccountId",expiry:"BlockNumber"},ActiveGiltsTotal:{frozen:"Balance",proportion:"Perquintill",index:"ActiveIndex",target:"Perquintill"},ActiveIndex:"u32",GiltBid:{amount:"Balance",who:"AccountId"}}},hG={proveFinality:{description:"Prove finality for the given block number, returning the Justification for the last block in the set.",params:[{name:"blockNumber",type:"BlockNumber"}],type:"Option"},roundState:{description:"Returns the state of the current best round state as well as the ongoing background rounds",params:[],type:"ReportedRoundStates"},subscribeJustifications:{description:"Subscribes to grandpa justifications",params:[],pubsub:["justifications","subscribeJustifications","unsubscribeJustifications"],type:"JustificationNotification"}},I5={generate_key_ownership_proof:{description:"Generates a proof of key ownership for the given authority in the given set.",params:[{name:"setId",type:"SetId"},{name:"authorityId",type:"AuthorityId"}],type:"Option"},grandpa_authorities:{description:"Get the current GRANDPA authorities and weights. This should not change except for when changes are scheduled and the corresponding delay has passed.",params:[],type:"AuthorityList"},submit_report_equivocation_unsigned_extrinsic:{description:"Submits an unsigned extrinsic to report an equivocation.",params:[{name:"equivocationProof",type:"GrandpaEquivocationProof"},{name:"keyOwnerProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"}},pG={GrandpaApi:[{methods:{current_set_id:{description:"Get current GRANDPA authority set id.",params:[],type:"SetId"},...I5},version:3},{methods:I5,version:2}]},mG={rpc:hG,runtime:pG,types:{AuthorityIndex:"u64",AuthorityList:"Vec",AuthoritySet:{currentAuthorities:"AuthorityList",setId:"u64",pendingStandardChanges:"ForkTreePendingChange",pendingForcedChanges:"Vec",authoritySetChanges:"AuthoritySetChanges"},ForkTreePendingChange:{roots:"Vec",bestFinalizedNumber:"Option"},ForkTreePendingChangeNode:{hash:"BlockHash",number:"BlockNumber",data:"PendingChange",children:"Vec"},AuthoritySetChange:"(U64, BlockNumber)",AuthoritySetChanges:"Vec",AuthorityWeight:"u64",DelayKind:{_enum:{Finalized:"Null",Best:"DelayKindBest"}},DelayKindBest:{medianLastFinalized:"BlockNumber"},EncodedFinalityProofs:"Bytes",GrandpaEquivocation:{_enum:{Prevote:"GrandpaEquivocationValue",Precommit:"GrandpaEquivocationValue"}},GrandpaEquivocationProof:{setId:"SetId",equivocation:"GrandpaEquivocation"},GrandpaEquivocationValue:{roundNumber:"u64",identity:"AuthorityId",first:"(GrandpaPrevote, AuthoritySignature)",second:"(GrandpaPrevote, AuthoritySignature)"},GrandpaPrevote:{targetHash:"Hash",targetNumber:"BlockNumber"},GrandpaCommit:{targetHash:"BlockHash",targetNumber:"BlockNumber",precommits:"Vec"},GrandpaPrecommit:{targetHash:"BlockHash",targetNumber:"BlockNumber"},GrandpaSignedPrecommit:{precommit:"GrandpaPrecommit",signature:"AuthoritySignature",id:"AuthorityId"},GrandpaJustification:{round:"u64",commit:"GrandpaCommit",votesAncestries:"Vec
"},JustificationNotification:"Bytes",KeyOwnerProof:"MembershipProof",NextAuthority:"(AuthorityId, AuthorityWeight)",PendingChange:{nextAuthorities:"AuthorityList",delay:"BlockNumber",canonHeight:"BlockNumber",canonHash:"BlockHash",delayKind:"DelayKind"},PendingPause:{scheduledAt:"BlockNumber",delay:"BlockNumber"},PendingResume:{scheduledAt:"BlockNumber",delay:"BlockNumber"},Precommits:{currentWeight:"u32",missing:"BTreeSet"},Prevotes:{currentWeight:"u32",missing:"BTreeSet"},ReportedRoundStates:{setId:"u32",best:"RoundState",background:"Vec"},RoundState:{round:"u32",totalWeight:"u32",thresholdWeight:"u32",prevotes:"Prevotes",precommits:"Precommits"},SetId:"u64",StoredPendingChange:{scheduledAt:"BlockNumber",delay:"BlockNumber",nextAuthorities:"AuthorityList"},StoredState:{_enum:{Live:"Null",PendingPause:"PendingPause",Paused:"Null",PendingResume:"PendingResume"}}}},gG={rpc:{},types:{IdentityFields:{_set:{_bitLength:64,Display:1,Legal:2,Web:4,Riot:8,Email:16,PgpFingerprint:32,Image:64,Twitter:128}},IdentityInfoAdditional:"(Data, Data)",IdentityInfoTo198:{additional:"Vec",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option",image:"Data"},IdentityInfo:{_fallback:"IdentityInfoTo198",additional:"Vec",display:"Data",legal:"Data",web:"Data",riot:"Data",email:"Data",pgpFingerprint:"Option",image:"Data",twitter:"Data"},IdentityJudgement:{_enum:{Unknown:"Null",FeePaid:"Balance",Reasonable:"Null",KnownGood:"Null",OutOfDate:"Null",LowQuality:"Null",Erroneous:"Null"}},RegistrationJudgement:"(RegistrarIndex, IdentityJudgement)",RegistrationTo198:{judgements:"Vec",deposit:"Balance",info:"IdentityInfoTo198"},Registration:{_fallback:"RegistrationTo198",judgements:"Vec",deposit:"Balance",info:"IdentityInfo"},RegistrarIndex:"u32",RegistrarInfo:{account:"AccountId",fee:"Balance",fields:"IdentityFields"}}},yG={rpc:{},types:{AuthIndex:"u32",AuthoritySignature:"Signature",Heartbeat:{blockNumber:"BlockNumber",networkState:"OpaqueNetworkState",sessionIndex:"SessionIndex",authorityIndex:"AuthIndex",validatorsLen:"u32"},HeartbeatTo244:{blockNumber:"BlockNumber",networkState:"OpaqueNetworkState",sessionIndex:"SessionIndex",authorityIndex:"AuthIndex"},OpaqueMultiaddr:"Opaque",OpaquePeerId:"Opaque",OpaqueNetworkState:{peerId:"OpaquePeerId",externalAddresses:"Vec"}}},bG={rpc:{},types:{CallIndex:"(u8, u8)",LotteryConfig:{price:"Balance",start:"BlockNumber",length:"BlockNumber",delay:"BlockNumber",repeat:"bool"}}},xG={generateProof:{description:"Generate MMR proof for the given block numbers.",params:[{name:"blockNumbers",type:"Vec"},{isOptional:!0,name:"bestKnownBlockNumber",type:"u64"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrLeafBatchProof"},root:{description:"Get the MMR root hash for the current best block.",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MmrHash"},verifyProof:{description:"Verify an MMR proof",params:[{name:"proof",type:"MmrLeafBatchProof"}],type:"bool"},verifyProofStateless:{description:"Verify an MMR proof statelessly given an mmr_root",params:[{name:"root",type:"MmrHash"},{name:"proof",type:"MmrLeafBatchProof"}],type:"bool"}},vG={generate_proof:{description:"Generate MMR proof for the given block numbers.",params:[{name:"blockNumbers",type:"Vec"},{name:"bestKnownBlockNumber",type:"Option"}],type:"Result<(Vec, MmrBatchProof), MmrError>"},root:{description:"Return the on-chain MMR root hash.",params:[],type:"Result"},verify_proof:{description:"Verify MMR proof against on-chain MMR.",params:[{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_proof_stateless:{description:"Verify MMR proof against given root hash.",params:[{name:"root",type:"Hash"},{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"}},wG={generate_batch_proof:{description:"Generate MMR proof for a series of leaves under given indices.",params:[{name:"leafIndices",type:"Vec"}],type:"Result<(Vec, MmrBatchProof), MmrError>"},generate_proof:{description:"Generate MMR proof for a leaf under given index.",params:[{name:"leafIndex",type:"MmrLeafIndex"}],type:"Result<(MmrEncodableOpaqueLeaf, MmrProof), MmrError>"},mmr_root:{description:"Return the on-chain MMR root hash.",params:[],type:"Result"},verify_batch_proof:{description:"Verify MMR proof against on-chain MMR for a batch of leaves.",params:[{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_batch_proof_stateless:{description:"Verify MMR proof against given root hash or a batch of leaves.",params:[{name:"root",type:"Hash"},{name:"leaves",type:"Vec"},{name:"proof",type:"MmrBatchProof"}],type:"Result<(), MmrError>"},verify_proof:{description:"Verify MMR proof against on-chain MMR.",params:[{name:"leaf",type:"MmrEncodableOpaqueLeaf"},{name:"proof",type:"MmrProof"}],type:"Result<(), MmrError>"},verify_proof_stateless:{description:"Verify MMR proof against given root hash.",params:[{name:"root",type:"Hash"},{name:"leaf",type:"MmrEncodableOpaqueLeaf"},{name:"proof",type:"MmrProof"}],type:"Result<(), MmrError>"}},SG={MmrApi:[{methods:vG,version:2},{methods:wG,version:1}]},TG={rpc:xG,runtime:SG,types:{MmrBatchProof:{leafIndices:"Vec",leafCount:"MmrNodeIndex",items:"Vec"},MmrEncodableOpaqueLeaf:"Bytes",MmrError:{_enum:["Push","GetRoot","Commit","GenerateProof","Verify","LeafNotFound"," PalletNotIncluded","InvalidLeafIndex"]},MmrHash:"Hash",MmrLeafBatchProof:{blockHash:"BlockHash",leaves:"Bytes",proof:"Bytes"},MmrLeafIndex:"u64",MmrLeafProof:{blockHash:"BlockHash",leaf:"Bytes",proof:"Bytes"},MmrNodeIndex:"u64",MmrProof:{leafIndex:"MmrLeafIndex",leafCount:"MmrNodeIndex",items:"Vec"}}},kG={NftsApi:[{methods:{attribute:{description:"An attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"},collection_attribute:{description:"A collection attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"key",type:"Bytes"}],type:"Option"},collection_owner:{description:"A collection owner",params:[{name:"collection",type:"NftCollectionId"}],type:"Option"},custom_attribute:{description:"A custom attribute",params:[{name:"account",type:"AccountId"},{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"},owner:{description:"Collection owner",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"}],type:"Option"},system_attribute:{description:"System attribute",params:[{name:"collection",type:"NftCollectionId"},{name:"item",type:"NftItemId"},{name:"key",type:"Bytes"}],type:"Option"}},version:1}]},PG={rpc:{},runtime:kG,types:{NftCollectionId:"u32",NftItemId:"u32"}},CG={NominationPoolsApi:[{methods:{balance_to_points:{description:"Returns the equivalent points of `new_funds` for a given pool.",params:[{name:"poolId",type:"NpPoolId"},{name:"newFunds",type:"Balance"}],type:"Balance"},pending_rewards:{description:"Returns the pending rewards for the given member.",params:[{name:"member",type:"AccountId"}],type:"Balance"},points_to_balance:{description:"Returns the equivalent balance of `points` for a given pool.",params:[{name:"poolId",type:"NpPoolId"},{name:"points",type:"Balance"}],type:"Balance"}},version:1}]},EG={rpc:{},runtime:CG,types:{NpApiError:{_enum:["MemberNotFound","OverflowInPendingRewards"]},NpPoolId:"u32"}},_G={rpc:{},types:{DeferredOffenceOf:"(Vec, Vec, SessionIndex)",Kind:"[u8; 16]",OffenceDetails:{offender:"Offender",reporters:"Vec"},Offender:"IdentificationTuple",OpaqueTimeSlot:"Bytes",ReportIdOf:"Hash",Reporter:"AccountId"}},MG={DifficultyApi:[{methods:{difficulty:{description:"Return the target difficulty of the next block.",params:[],type:"Raw"}},version:1}],TimestampApi:[{methods:{timestamp:{description:"API necessary for timestamp-based difficulty adjustment algorithms.",params:[],type:"Moment"}},version:1}]},AG={rpc:{},runtime:MG,types:{}},VG={rpc:{},types:{ProxyDefinition:{delegate:"AccountId",proxyType:"ProxyType",delay:"BlockNumber"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking"]},ProxyAnnouncement:{real:"AccountId",callHash:"Hash",height:"BlockNumber"}}},NG={rpc:{},types:{ActiveRecovery:{created:"BlockNumber",deposit:"Balance",friends:"Vec"},RecoveryConfig:{delayPeriod:"BlockNumber",deposit:"Balance",friends:"Vec",threshold:"u16"}}},OG={rpc:{},types:{Period:"(BlockNumber, u32)",Priority:"u8",SchedulePeriod:"Period",SchedulePriority:"Priority",Scheduled:{maybeId:"Option",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option",origin:"PalletsOrigin"},ScheduledTo254:{maybeId:"Option",priority:"SchedulePriority",call:"Call",maybePeriodic:"Option"},TaskAddress:"(BlockNumber, u32)"}},IG={SessionKeys:[{methods:{decode_session_keys:{description:"Decode the given public session keys.",params:[{name:"encoded",type:"Bytes"}],type:"Option>"},generate_session_keys:{description:"Generate a set of session keys with optionally using the given seed.",params:[{name:"seed",type:"Option"}],type:"Bytes"}},version:1}]},RG={BeefyKey:"[u8; 33]",Keys:"SessionKeys4",SessionKeys1:"(AccountId)",SessionKeys2:"(AccountId, AccountId)",SessionKeys3:"(AccountId, AccountId, AccountId)",SessionKeys4:"(AccountId, AccountId, AccountId, AccountId)",SessionKeys5:"(AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys6B:"(AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys7:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys7B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys8:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys8B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys9:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys9B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)",SessionKeys10:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId)",SessionKeys10B:"(AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, AccountId, BeefyKey)"},LG={rpc:{},runtime:IG,types:{...RG,FullIdentification:"Exposure",IdentificationTuple:"(ValidatorId, FullIdentification)",MembershipProof:{session:"SessionIndex",trieNodes:"Vec",validatorCount:"ValidatorCount"},SessionIndex:"u32",ValidatorCount:"u32"}},BG={rpc:{},types:{Bid:{who:"AccountId",kind:"BidKind",value:"Balance"},BidKind:{_enum:{Deposit:"Balance",Vouch:"(AccountId, Balance)"}},SocietyJudgement:{_enum:["Rebid","Reject","Approve"]},SocietyVote:{_enum:["Skeptic","Reject","Approve"]},StrikeCount:"u32",VouchingStatus:{_enum:["Vouching","Banned"]}}},DG={StakingApi:[{methods:{nominations_quota:{description:"Returns the nominations quota for a nominator with a given balance.",params:[{name:"balance",type:"Balance"}],type:"u32"}},version:1}]},HG={Points:"u32",EraPoints:{total:"Points",individual:"Vec"}},zG={CompactAssignments:"CompactAssignmentsWith16",CompactAssignmentsWith16:{votes1:"Vec<(NominatorIndexCompact, ValidatorIndexCompact)>",votes2:"Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>",votes3:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>",votes4:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>",votes5:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>",votes6:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>",votes7:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>",votes8:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>",votes9:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>",votes10:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>",votes11:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>",votes12:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>",votes13:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>",votes14:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>",votes15:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>",votes16:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>"},CompactAssignmentsWith24:{votes1:"Vec<(NominatorIndexCompact, ValidatorIndexCompact)>",votes2:"Vec<(NominatorIndexCompact, CompactScoreCompact, ValidatorIndexCompact)>",votes3:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 2], ValidatorIndexCompact)>",votes4:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 3], ValidatorIndexCompact)>",votes5:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 4], ValidatorIndexCompact)>",votes6:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 5], ValidatorIndexCompact)>",votes7:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 6], ValidatorIndexCompact)>",votes8:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 7], ValidatorIndexCompact)>",votes9:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 8], ValidatorIndexCompact)>",votes10:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 9], ValidatorIndexCompact)>",votes11:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 10], ValidatorIndexCompact)>",votes12:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 11], ValidatorIndexCompact)>",votes13:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 12], ValidatorIndexCompact)>",votes14:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 13], ValidatorIndexCompact)>",votes15:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 14], ValidatorIndexCompact)>",votes16:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 15], ValidatorIndexCompact)>",votes17:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 16], ValidatorIndexCompact)>",votes18:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 17], ValidatorIndexCompact)>",votes19:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 18], ValidatorIndexCompact)>",votes20:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 19], ValidatorIndexCompact)>",votes21:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 20], ValidatorIndexCompact)>",votes22:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 21], ValidatorIndexCompact)>",votes23:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 22], ValidatorIndexCompact)>",votes24:"Vec<(NominatorIndexCompact, [CompactScoreCompact; 23], ValidatorIndexCompact)>"},CompactAssignmentsTo265:"CompactAssignmentsWith16",CompactAssignmentsTo257:{votes1:"Vec<(NominatorIndex, [CompactScore; 0], ValidatorIndex)>",votes2:"Vec<(NominatorIndex, [CompactScore; 1], ValidatorIndex)>",votes3:"Vec<(NominatorIndex, [CompactScore; 2], ValidatorIndex)>",votes4:"Vec<(NominatorIndex, [CompactScore; 3], ValidatorIndex)>",votes5:"Vec<(NominatorIndex, [CompactScore; 4], ValidatorIndex)>",votes6:"Vec<(NominatorIndex, [CompactScore; 5], ValidatorIndex)>",votes7:"Vec<(NominatorIndex, [CompactScore; 6], ValidatorIndex)>",votes8:"Vec<(NominatorIndex, [CompactScore; 7], ValidatorIndex)>",votes9:"Vec<(NominatorIndex, [CompactScore; 8], ValidatorIndex)>",votes10:"Vec<(NominatorIndex, [CompactScore; 9], ValidatorIndex)>",votes11:"Vec<(NominatorIndex, [CompactScore; 10], ValidatorIndex)>",votes12:"Vec<(NominatorIndex, [CompactScore; 11], ValidatorIndex)>",votes13:"Vec<(NominatorIndex, [CompactScore; 12], ValidatorIndex)>",votes14:"Vec<(NominatorIndex, [CompactScore; 13], ValidatorIndex)>",votes15:"Vec<(NominatorIndex, [CompactScore; 14], ValidatorIndex)>",votes16:"Vec<(NominatorIndex, [CompactScore; 15], ValidatorIndex)>"},CompactScore:"(ValidatorIndex, OffchainAccuracy)",CompactScoreCompact:"(ValidatorIndexCompact, OffchainAccuracyCompact)",ElectionCompute:{_enum:["OnChain","Signed","Unsigned"]},ElectionPhase:{_enum:{Off:null,Signed:null,Unsigned:"(bool, BlockNumber)",Emergency:null}},ElectionResult:{compute:"ElectionCompute",slotStake:"Balance",electedStashes:"Vec",exposures:"Vec<(AccountId, Exposure)>"},ElectionScore:"[u128; 3]",ElectionSize:{validators:"Compact",nominators:"Compact"},ElectionStatus:{_enum:{Close:"Null",Open:"BlockNumber"}},ExtendedBalance:"u128",RawSolution:"RawSolutionWith16",RawSolutionWith16:{compact:"CompactAssignmentsWith16",score:"ElectionScore",round:"u32"},RawSolutionWith24:{compact:"CompactAssignmentsWith24",score:"ElectionScore",round:"u32"},RawSolutionTo265:"RawSolutionWith16",ReadySolution:{supports:"SolutionSupports",score:"ElectionScore",compute:"ElectionCompute"},RoundSnapshot:{voters:"Vec<(AccountId, VoteWeight, Vec)>",targets:"Vec"},SeatHolder:{who:"AccountId",stake:"Balance",deposit:"Balance"},SignedSubmission:{_fallback:"SignedSubmissionTo276",who:"AccountId",deposit:"Balance",solution:"RawSolution",reward:"Balance"},SignedSubmissionTo276:{who:"AccountId",deposit:"Balance",solution:"RawSolution"},SignedSubmissionOf:"SignedSubmission",SolutionOrSnapshotSize:{voters:"Compact",targets:"Compact"},SolutionSupport:{total:"ExtendedBalance",voters:"Vec<(AccountId, ExtendedBalance)>"},SolutionSupports:"Vec<(AccountId, SolutionSupport)>",Supports:"SolutionSupports",SubmissionIndicesOf:"BTreeMap",Voter:{votes:"Vec",stake:"Balance",deposit:"Balance"},VoteWeight:"u64"},jG={rpc:{},runtime:DG,types:{...HG,...zG,ActiveEraInfo:{index:"EraIndex",start:"Option"},EraIndex:"u32",EraRewardPoints:{total:"RewardPoint",individual:"BTreeMap"},EraRewards:{total:"u32",rewards:"Vec"},Exposure:{total:"Compact",own:"Compact",others:"Vec"},Forcing:{_enum:["NotForcing","ForceNew","ForceNone","ForceAlways"]},IndividualExposure:{who:"AccountId",value:"Compact"},KeyType:"AccountId",MomentOf:"Moment",Nominations:{targets:"Vec",submittedIn:"EraIndex",suppressed:"bool"},NominatorIndex:"u32",NominatorIndexCompact:"Compact",OffchainAccuracy:"PerU16",OffchainAccuracyCompact:"Compact",PhragmenScore:"[u128; 3]",Points:"u32",RewardDestination:{_enum:{Staked:"Null",Stash:"Null",Controller:"Null",Account:"AccountId",None:"Null"}},RewardPoint:"u32",SlashJournalEntry:{who:"AccountId",amount:"Balance",ownSlash:"Balance"},SlashingSpansTo204:{spanIndex:"SpanIndex",lastStart:"EraIndex",prior:"Vec"},SlashingSpans:{spanIndex:"SpanIndex",lastStart:"EraIndex",lastNonzeroSlash:"EraIndex",prior:"Vec"},SpanIndex:"u32",SpanRecord:{slashed:"Balance",paidOut:"Balance"},StakingLedgerTo223:{stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec"},StakingLedgerTo240:{_fallback:"StakingLedgerTo223",stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec",lastReward:"Option"},StakingLedger:{stash:"AccountId",total:"Compact",active:"Compact",unlocking:"Vec",claimedRewards:"Vec"},UnappliedSlashOther:"(AccountId, Balance)",UnappliedSlash:{validator:"AccountId",own:"Balance",others:"Vec",reporters:"Vec",payout:"Balance"},UnlockChunk:{value:"Compact",era:"Compact"},ValidatorIndex:"u16",ValidatorIndexCompact:"Compact",ValidatorPrefs:"ValidatorPrefsWithBlocked",ValidatorPrefsWithCommission:{commission:"Compact"},ValidatorPrefsWithBlocked:{commission:"Compact",blocked:"bool"},ValidatorPrefsTo196:{validatorPayment:"Compact"},ValidatorPrefsTo145:{unstakeThreshold:"Compact",validatorPayment:"Compact"}}},UG={rpc:{},types:{WeightToFeeCoefficient:{coeffInteger:"Balance",coeffFrac:"Perbill",negative:"bool",degree:"u8"}}},FG={genSyncSpec:{description:"Returns the json-serialized chainspec running the node, with a sync state.",endpoint:"sync_state_genSyncSpec",params:[{name:"raw",type:"bool"}],type:"Json"}},WG={rpc:FG,types:{}},XG={accountNextIndex:{alias:["account_nextIndex"],description:"Retrieves the next accountIndex as available on the node",params:[{name:"accountId",type:"AccountId"}],type:"Index"},addLogFilter:{description:"Adds the supplied directives to the current log filter",isUnsafe:!0,params:[{name:"directives",type:"Text"}],type:"Null"},addReservedPeer:{description:"Adds a reserved peer",isUnsafe:!0,params:[{name:"peer",type:"Text"}],type:"Text"},chain:{description:"Retrieves the chain",params:[],type:"Text"},chainType:{description:"Retrieves the chain type",params:[],type:"ChainType"},dryRun:{alias:["system_dryRunAt"],description:"Dry run an extrinsic at a given block",isUnsafe:!0,params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ApplyExtrinsicResult"},health:{description:"Return health status of the node",noErrorLog:!0,params:[],type:"Health"},localListenAddresses:{description:"The addresses include a trailing /p2p/ with the local PeerId, and are thus suitable to be passed to addReservedPeer or as a bootnode address for example",params:[],type:"Vec"},localPeerId:{description:"Returns the base58-encoded PeerId of the node",params:[],type:"Text"},name:{description:"Retrieves the node name",params:[],type:"Text"},networkState:{alias:["system_unstable_networkState"],description:"Returns current state of the network",isUnsafe:!0,params:[],type:"NetworkState"},nodeRoles:{description:"Returns the roles the node is running as",params:[],type:"Vec"},peers:{description:"Returns the currently connected peers",isUnsafe:!0,params:[],type:"Vec"},properties:{description:"Get a custom set of properties as a JSON object, defined in the chain spec",params:[],type:"ChainProperties"},removeReservedPeer:{description:"Remove a reserved peer",isUnsafe:!0,params:[{name:"peerId",type:"Text"}],type:"Text"},reservedPeers:{description:"Returns the list of reserved peers",params:[],type:"Vec"},resetLogFilter:{description:"Resets the log filter to Substrate defaults",isUnsafe:!0,params:[],type:"Null"},syncState:{description:"Returns the state of the syncing of the node",params:[],type:"SyncState"},version:{description:"Retrieves the version of the node",params:[],type:"Text"}},qG={AccountNonceApi:[{methods:{account_nonce:{description:"The API to query account nonce (aka transaction index)",params:[{name:"accountId",type:"AccountId"}],type:"Index"}},version:1}]},GG={rpc:XG,runtime:qG,types:{AccountInfo:"AccountInfoWithTripleRefCount",AccountInfoWithRefCountU8:{nonce:"Index",refcount:"u8",data:"AccountData"},AccountInfoWithRefCount:{_fallback:"AccountInfoWithRefCountU8",nonce:"Index",refcount:"RefCount",data:"AccountData"},AccountInfoWithDualRefCount:{_fallback:"AccountInfoWithRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",data:"AccountData"},AccountInfoWithProviders:"AccountInfoWithDualRefCount",AccountInfoWithTripleRefCount:{_fallback:"AccountInfoWithDualRefCount",nonce:"Index",consumers:"RefCount",providers:"RefCount",sufficients:"RefCount",data:"AccountData"},ApplyExtrinsicResult:"Result",ApplyExtrinsicResultPre6:"Result",ArithmeticError:{_enum:["Underflow","Overflow","DivisionByZero"]},BlockLength:{max:"PerDispatchClassU32"},BlockWeights:{baseBlock:"Weight",maxBlock:"Weight",perClass:"PerDispatchClassWeightsPerClass"},ChainProperties:"GenericChainProperties",ChainType:{_enum:{Development:"Null",Local:"Null",Live:"Null",Custom:"Text"}},ConsumedWeight:"PerDispatchClassWeight",DigestOf:"Digest",DispatchClass:{_enum:["Normal","Operational","Mandatory"]},DispatchError:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModule",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError",Exhausted:"Null",Corruption:"Null",Unavailable:"Null"}},DispatchErrorPre6:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",TooManyConsumers:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorPre6First:{_enum:{Other:"Null",CannotLookup:"Null",BadOrigin:"Null",Module:"DispatchErrorModulePre6",ConsumerRemaining:"Null",NoProviders:"Null",Token:"TokenError",Arithmetic:"ArithmeticError",Transactional:"TransactionalError"}},DispatchErrorModuleU8:{index:"u8",error:"u8"},DispatchErrorModuleU8a:{index:"u8",error:"[u8; 4]"},DispatchErrorModule:"DispatchErrorModuleU8a",DispatchErrorModulePre6:"DispatchErrorModuleU8",DispatchErrorTo198:{module:"Option",error:"u8"},DispatchInfo:{weight:"Weight",class:"DispatchClass",paysFee:"Pays"},DispatchInfoTo190:{weight:"Weight",class:"DispatchClass"},DispatchInfoTo244:{weight:"Weight",class:"DispatchClass",paysFee:"bool"},DispatchOutcome:"Result<(), DispatchError>",DispatchOutcomePre6:"Result<(), DispatchErrorPre6>",DispatchResult:"Result<(), DispatchError>",DispatchResultOf:"DispatchResult",DispatchResultTo198:"Result<(), Text>",Event:"GenericEvent",EventId:"[u8; 2]",EventIndex:"u32",EventRecord:{phase:"Phase",event:"Event",topics:"Vec"},Health:{peers:"u64",isSyncing:"bool",shouldHavePeers:"bool"},InvalidTransaction:{_enum:{Call:"Null",Payment:"Null",Future:"Null",Stale:"Null",BadProof:"Null",AncientBirthBlock:"Null",ExhaustsResources:"Null",Custom:"u8",BadMandatory:"Null",MandatoryDispatch:"Null",BadSigner:"Null"}},Key:"Bytes",LastRuntimeUpgradeInfo:{specVersion:"Compact",specName:"Text"},NetworkState:{peerId:"Text",listenedAddresses:"Vec",externalAddresses:"Vec",connectedPeers:"HashMap",notConnectedPeers:"HashMap",averageDownloadPerSec:"u64",averageUploadPerSec:"u64",peerset:"NetworkStatePeerset"},NetworkStatePeerset:{messageQueue:"u64",nodes:"HashMap"},NetworkStatePeersetInfo:{connected:"bool",reputation:"i32"},NodeRole:{_enum:{Full:"Null",LightClient:"Null",Authority:"Null",UnknownRole:"u8"}},NotConnectedPeer:{knownAddresses:"Vec",latestPingTime:"Option",versionString:"Option"},Peer:{enabled:"bool",endpoint:"PeerEndpoint",knownAddresses:"Vec",latestPingTime:"PeerPing",open:"bool",versionString:"Text"},PeerEndpoint:{listening:"PeerEndpointAddr"},PeerEndpointAddr:{_alias:{localAddr:"local_addr",sendBackAddr:"send_back_addr"},localAddr:"Text",sendBackAddr:"Text"},PeerPing:{nanos:"u64",secs:"u64"},PeerInfo:{peerId:"Text",roles:"Text",protocolVersion:"u32",bestHash:"Hash",bestNumber:"BlockNumber"},PerDispatchClassU32:{normal:"u32",operational:"u32",mandatory:"u32"},PerDispatchClassWeight:{normal:"Weight",operational:"Weight",mandatory:"Weight"},PerDispatchClassWeightsPerClass:{normal:"WeightPerClass",operational:"WeightPerClass",mandatory:"WeightPerClass"},Phase:{_enum:{ApplyExtrinsic:"u32",Finalization:"Null",Initialization:"Null"}},RawOrigin:{_enum:{Root:"Null",Signed:"AccountId",None:"Null"}},RefCount:"u32",RefCountTo259:"u8",SyncState:{startingBlock:"BlockNumber",currentBlock:"BlockNumber",highestBlock:"Option"},SystemOrigin:"RawOrigin",TokenError:{_enum:["NoFunds","WouldDie","BelowMinimum","CannotCreate","UnknownAsset","Frozen","Unsupported","Underflow","Overflow"]},TransactionValidityError:{_enum:{Invalid:"InvalidTransaction",Unknown:"UnknownTransaction"}},TransactionalError:{_enum:["LimitReached","NoLayer"]},UnknownTransaction:{_enum:{CannotLookup:"Null",NoUnsignedValidator:"Null",Custom:"u8"}},WeightPerClass:{baseExtrinsic:"Weight",maxExtrinsic:"Option",maxTotal:"Option",reserved:"Option"}}},ZG={rpc:{},types:{Bounty:{proposer:"AccountId",value:"Balance",fee:"Balance",curatorDeposit:"Balance",bond:"Balance",status:"BountyStatus"},BountyIndex:"u32",BountyStatus:{_enum:{Proposed:"Null",Approved:"Null",Funded:"Null",CuratorProposed:"BountyStatusCuratorProposed",Active:"BountyStatusActive",PendingPayout:"BountyStatusPendingPayout"}},BountyStatusActive:{curator:"AccountId",updateDue:"BlockNumber"},BountyStatusCuratorProposed:{curator:"AccountId"},BountyStatusPendingPayout:{curator:"AccountId",beneficiary:"AccountId",unlockAt:"BlockNumber"},OpenTip:{reason:"Hash",who:"AccountId",finder:"AccountId",deposit:"Balance",closes:"Option",tips:"Vec",findersFee:"bool"},OpenTipTo225:{reason:"Hash",who:"AccountId",finder:"Option",closes:"Option",tips:"Vec"},OpenTipFinderTo225:"(AccountId, Balance)",OpenTipTip:"(AccountId, Balance)",TreasuryProposal:{proposer:"AccountId",value:"Balance",beneficiary:"AccountId",bond:"Balance"}}},KG={rpc:{},types:{Multiplier:"Fixed128"}},YG={TaggedTransactionQueue:[{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"source",type:"TransactionSource"},{name:"tx",type:"Extrinsic"},{name:"blockHash",type:"BlockHash"}],type:"TransactionValidity"}},version:3},{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"source",type:"TransactionSource"},{name:"tx",type:"Extrinsic"}],type:"TransactionValidity"}},version:2},{methods:{validate_transaction:{description:"Validate the transaction.",params:[{name:"tx",type:"Extrinsic"}],type:"TransactionValidity"}},version:1}]},JG={rpc:{},runtime:YG,types:{TransactionSource:{_enum:["InBlock","Local","External"]},TransactionValidity:"Result",ValidTransaction:{priority:"TransactionPriority",requires:"Vec",provides:"Vec",longevity:"TransactionLongevity",propagate:"bool"}}},QG={rpc:{},types:{ClassId:"u32",InstanceId:"u32",DepositBalance:"Balance",DepositBalanceOf:"Balance",ClassDetails:{owner:"AccountId",issuer:"AccountId",admin:"AccountId",freezer:"AccountId",totalDeposit:"DepositBalance",freeHolding:"bool",instances:"u32",instanceMetadatas:"u32",attributes:"u32",isFrozen:"bool"},DestroyWitness:{instances:"Compact",instanceMetadatas:"Compact",attributes:"Compact"},InstanceDetails:{owner:"AccountId",approved:"Option",isFrozen:"bool",deposit:"DepositBalance"},ClassMetadata:{deposit:"DepositBalance",data:"Vec",isFrozen:"bool"},InstanceMetadata:{deposit:"DepositBalance",data:"Vec",isFrozen:"bool"}}},$G={rpc:{},types:{Multisig:{when:"Timepoint",deposit:"Balance",depositor:"AccountId",approvals:"Vec"},Timepoint:{height:"BlockNumber",index:"u32"}}},eZ={rpc:{},types:{VestingInfo:{locked:"Balance",perBlock:"Balance",startingBlock:"BlockNumber"}}},tZ={rpc:{},types:{BlockAttestations:{receipt:"CandidateReceipt",valid:"Vec",invalid:"Vec"},IncludedBlocks:{actualNumber:"BlockNumber",session:"SessionIndex",randomSeed:"H256",activeParachains:"Vec",paraBlocks:"Vec"},MoreAttestations:{}}},nZ={rpc:{},types:{BridgedBlockHash:"H256",BridgedBlockNumber:"BlockNumber",BridgedHeader:"Header",BridgeMessageId:"(LaneId, MessageNonce)",CallOrigin:{_enum:{SourceRoot:"Null",TargetAccount:"(AccountId, MultiSigner, MultiSignature)",SourceAccount:"AccountId"}},ChainId:"[u8; 4]",DeliveredMessages:{begin:"MessageNonce",end:"MessageNonce",dispatchResults:"BitVec"},DispatchFeePayment:{_enum:["AtSourceChain","AtTargetChain"]},InboundLaneData:{relayers:"Vec",lastConfirmedNonce:"MessageNonce"},InboundRelayer:"AccountId",InitializationData:{header:"Header",authorityList:"AuthorityList",setId:"SetId",isHalted:"bool"},LaneId:"[u8; 4]",MessageData:{payload:"Bytes",fee:"Balance"},MessagesDeliveryProofOf:{bridgedHeaderHash:"BlockHash",storageProof:"Vec",lane:"LaneId"},MessageKey:{laneId:"LaneId",nonce:"MessageNonce"},MessageNonce:"u64",MessagesProofOf:{bridgedHeaderHash:"BridgedBlockHash",storageProof:"Vec",lane:"LaneId",noncesStart:"MessageNonce",noncesEnd:"MessageNonce"},OperatingMode:{_enum:["Normal","RejectingOutboundMessages","Halted"]},OutboundLaneData:{oldestUnprunedNonce:"MessageNonce",latestReceivedNonce:"MessageNonce",latestGeneratedNonce:"MessageNonce"},OutboundMessageFee:"Balance",OutboundPayload:{specVersion:"u32",weight:"Weight",origin:"CallOrigin",dispatchFeePayment:"DispatchFeePayment",call:"Bytes"},Parameter:"Null",RelayerId:"AccountId",UnrewardedRelayer:{relayer:"RelayerId",messages:"DeliveredMessages"},UnrewardedRelayersState:{unrewardedRelayer_Entries:"MessageNonce",messagesInOldestEntry:"MessageNonce",totalMessages:"MessageNonce"}}},rZ={rpc:{},types:{StatementKind:{_enum:["Regular","Saft"]}}},iZ={rpc:{},types:{FundIndex:"u32",LastContribution:{_enum:{Never:"Null",PreEnding:"u32",Ending:"BlockNumber"}},FundInfo:{depositor:"AccountId",verifier:"Option",deposit:"Balance",raised:"Balance",end:"BlockNumber",cap:"Balance",lastContribution:"LastContribution",firstPeriod:"LeasePeriod",lastPeriod:"LeasePeriod",trieIndex:"TrieIndex"},TrieIndex:"u32"}},aZ={CollectCollationInfo:[{methods:{collect_collation_info:{description:"Collect information about a collation.",params:[{name:"header",type:"Header"}],type:"CollationInfo"}},version:2},{methods:{collect_collation_info:{description:"Collect information about a collation.",params:[],type:"CollationInfoV1"}},version:1}]},sZ={CollationInfo:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber",headData:"HeadData"},CollationInfoV1:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",processedDownwardMessages:"u32",hrmpWatermark:"RelayBlockNumber"},ConfigData:{maxIndividual:"Weight"},MessageId:"[u8; 32]",OverweightIndex:"u64",PageCounter:"u32",PageIndexData:{beginUsed:"PageCounter",endUsed:"PageCounter",overweightCount:"OverweightIndex"}},oZ={rpc:{},runtime:aZ,types:sZ},Id={methods:{best_finalized:{description:"Returns number and hash of the best finalized header known to the bridge module.",params:[],type:"(BlockNumber, Hash)"}},version:1},cZ={KusamaFinalityApi:[Id],PolkadotFinalityApi:[Id],RococoFinalityApi:[Id],WestendFinalityApi:[Id]},lZ={rpc:{},runtime:cZ,types:{}},uZ={HrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option",senderDeposit:"Balance",recipientDeposit:"Balance"},HrmpChannelId:{sender:"u32",receiver:"u32"},HrmpOpenChannelRequest:{confirmed:"bool",age:"SessionIndex",senderDeposit:"Balance",maxMessageSize:"u32",maxCapacity:"u32",maxTotalSize:"u32"}},Uc={assumed_validation_data:{description:"Returns the persisted validation data for the given `ParaId` along with the corresponding validation code hash.",params:[{name:"paraId",type:"ParaId"},{name:"hash",type:"Hash"}],type:"Option<(PersistedValidationData, ValidationCodeHash)>"},availability_cores:{description:"Yields information on all availability cores as relevant to the child block.",params:[],type:"Vec"},candidate_events:{description:"Get a vector of events concerning candidates that occurred within a block.",params:[],type:"Vec"},candidate_pending_availability:{description:"Get the receipt of a candidate pending availability.",params:[{name:"paraId",type:"ParaId"}],type:"Option"},check_validation_outputs:{description:"Checks if the given validation outputs pass the acceptance criteria.",params:[{name:"paraId",type:"ParaId"},{name:"outputs",type:"CandidateCommitments"}],type:"bool"},dmq_contents:{description:"Get all the pending inbound messages in the downward message queue for a para.",params:[{name:"paraId",type:"ParaId"}],type:"Vec"},inbound_hrmp_channels_contents:{description:"Get the contents of all channels addressed to the given recipient.",params:[{name:"paraId",type:"ParaId"}],type:"Vec"},on_chain_votes:{description:"Scrape dispute relevant from on-chain, backing votes and resolved disputes.",params:[],type:"Option"},persisted_validation_data:{description:"Yields the persisted validation data for the given `ParaId` along with an assumption that should be used if the para currently occupies a core.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"Option"},session_index_for_child:{description:"Returns the session index expected at a child of the block.",params:[],type:"SessionIndex"},validation_code:{description:"Fetch the validation code used by a para, making the given `OccupiedCoreAssumption`.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"ValidationCode"},validation_code_by_hash:{description:"Get the validation code from its hash.",params:[{name:"hash",type:"ValidationCodeHash"}],type:"Option"},validator_groups:{description:"Returns the validator groups and rotation info localized based on the hypothetical child of a block whose state this is invoked on",params:[],type:"(Vec>, GroupRotationInfo)"},validators:{description:"Get the current validators.",params:[],type:"Vec"}},Rd={pvfs_require_precheck:{description:"Returns code hashes of PVFs that require pre-checking by validators in the active set.",params:[],type:"Vec"},session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option"},submit_pvf_check_statement:{description:"Submits a PVF pre-checking statement into the transaction pool.",params:[{name:"stmt",type:"PvfCheckStatement"},{name:"signature",type:"ValidatorSignature"}],type:"Null"},validation_code_hash:{description:"Fetch the hash of the validation code used by a para, making the given `OccupiedCoreAssumption`.",params:[{name:"paraId",type:"ParaId"},{name:"assumption",type:"OccupiedCoreAssumption"}],type:"Option"}},Dm={disputes:{description:"Returns all onchain disputes.",params:[],type:"Vec<(SessionIndex, CandidateHash, DisputeState)>"}},R5={session_executor_params:{description:"Returns execution parameters for the session.",params:[{name:"sessionIndex",type:"SessionIndex"}],type:"Option"}},dZ={key_ownership_proof:{description:"Returns a merkle proof of a validator session key",params:[{name:"validatorId",type:"ValidatorId"}],type:"Option"},submit_report_dispute_lost:{description:"Submit an unsigned extrinsic to slash validators who lost a dispute about a candidate of a past session",params:[{name:"disputeProof",type:"DisputeProof"},{name:"keyOwnershipProof",type:"OpaqueKeyOwnershipProof"}],type:"Option"},unapplied_slashes:{description:"Returns a list of validators that lost a past session dispute and need to be slashed",params:[],type:"Vec<(SessionIndex, CandidateHash, PendingSlashes)>"}},fZ={ParachainHost:[{methods:{...Uc,...Rd,...Dm,...R5,...dZ},version:5},{methods:{...Uc,...Rd,...Dm,...R5},version:4},{methods:{...Uc,...Rd,...Dm},version:3},{methods:{...Uc,...Rd},version:2},{methods:{session_info:{description:"Get the session info for the given session, if stored.",params:[{name:"index",type:"SessionIndex"}],type:"Option"},...Uc},version:1}]},L5={_enum:["ZeroZero","ZeroOne","ZeroTwo","ZeroThree","OneOne","OneTwo","OneThree","TwoTwo","TwoThree","ThreeThree"]},B5={_enum:["ZeroZero","ZeroOne","ZeroTwo","ZeroThree","ZeroFour","ZeroFive","ZeroSix","ZeroSeven","OneOne","OneTwo","OneThree","OneFour","OneFive","OneSix","OneSeven","TwoTwo","TwoThree","TwoFour","TwoFive","TwoSix","TwoSeven","ThreeThree","ThreeFour","ThreeFive","ThreeSix","ThreeSeven","FourFour","FourFive","FourSix","FourSeven","FiveFive","FiveSix","FiveSeven","SixSix","SixSeven","SevenSeven"]},hZ={Bidder:{_enum:{New:"NewBidder",Existing:"ParaId"}},IncomingParachain:{_enum:{Unset:"NewBidder",Fixed:"IncomingParachainFixed",Deploy:"IncomingParachainDeploy"}},IncomingParachainDeploy:{code:"ValidationCode",initialHeadData:"HeadData"},IncomingParachainFixed:{codeHash:"Hash",codeSize:"u32",initialHeadData:"HeadData"},NewBidder:{who:"AccountId",sub:"SubId"},SubId:"u32"},pZ={...hZ,AuctionIndex:"u32",LeasePeriod:"BlockNumber",LeasePeriodOf:"BlockNumber",SlotRange10:L5,SlotRange:B5,WinningData10:`[WinningDataEntry; ${L5._enum.length}]`,WinningData:`[WinningDataEntry; ${B5._enum.length}]`,WinningDataEntry:"Option<(AccountId, ParaId, BalanceOf)>",WinnersData10:"Vec",WinnersData:"Vec",WinnersDataTuple10:"(AccountId, ParaId, BalanceOf, SlotRange10)",WinnersDataTuple:"(AccountId, ParaId, BalanceOf, SlotRange)"},mZ={ParachainProposal:{proposer:"AccountId",genesisHead:"HeadData",validators:"Vec",name:"Bytes",balance:"Balance"},RegisteredParachainInfo:{validators:"Vec",proposer:"AccountId"}},gZ={ServiceQuality:{_enum:["Ordered","Fast"]}},yZ={DisputeLocation:{_enum:["Local","Remote"]},DisputeResult:{_enum:["Valid","Invalid"]},DisputeState:{validatorsFor:"BitVec",validatorsAgainst:"BitVec",start:"BlockNumber",concludedAt:"Option"},DisputeStatement:{_enum:{Valid:"ValidDisputeStatementKind",Invalid:"InvalidDisputeStatementKind"}},DisputeStatementSet:{candidateHash:"CandidateHash",session:"SessionIndex",statements:"Vec<(DisputeStatement, ParaValidatorIndex, ValidatorSignature)>"},ExecutorParam:{_enum:{Phantom:"Null",MaxMemoryPages:"u32",StackLogicalMax:"u32",StackNativeMax:"u32",PrecheckingMaxMemory:"u64",PvfPrepTimeout:"(PvfPrepTimeoutKind, u64)",PvfExecTimeout:"(PvfExecTimeoutKind, u64)"}},ExecutorParamsHash:"Hash",ExecutorParams:"Vec",ExplicitDisputeStatement:{valid:"bool",candidateHash:"CandidateHash",session:"SessionIndex"},InvalidDisputeStatementKind:{_enum:["Explicit"]},MultiDisputeStatementSet:"Vec",PvfExecTimeoutKind:{_enum:["Backing","Approval"]},PvfPrepTimeoutKind:{_enum:["Precheck","Lenient"]},ValidDisputeStatementKind:{_enum:{Explicit:"Null",BackingSeconded:"Hash",BackingValid:"Hash",ApprovalChecking:"Null"}}},bZ={rpc:{},runtime:fZ,types:{...gZ,...yZ,...uZ,...mZ,...pZ,AbridgedCandidateReceipt:{parachainIndex:"ParaId",relayParent:"Hash",headData:"HeadData",collator:"CollatorId",signature:"CollatorSignature",povBlockHash:"Hash",commitments:"CandidateCommitments"},AbridgedHostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeFrequency:"BlockNumber",validationUpgradeDelay:"BlockNumber"},AbridgedHrmpChannel:{maxCapacity:"u32",maxTotalSize:"u32",maxMessageSize:"u32",msgCount:"u32",totalSize:"u32",mqcHead:"Option"},AssignmentId:"AccountId",AssignmentKind:{_enum:{Parachain:"Null",Parathread:"(CollatorId, u32)"}},AttestedCandidate:{candidate:"AbridgedCandidateReceipt",validityVotes:"Vec",validatorIndices:"BitVec"},AuthorityDiscoveryId:"AccountId",AvailabilityBitfield:"BitVec",AvailabilityBitfieldRecord:{bitfield:"AvailabilityBitfield",submittedTt:"BlockNumber"},BackedCandidate:{candidate:"CommittedCandidateReceipt",validityVotes:"Vec",validatorIndices:"BitVec"},BufferedSessionChange:{applyAt:"BlockNumber",validators:"Vec",queued:"Vec",sessionIndex:"SessionIndex"},CandidateCommitments:{upwardMessages:"Vec",horizontalMessages:"Vec",newValidationCode:"Option",headData:"HeadData",processedDownwardMessages:"u32",hrmpWatermark:"BlockNumber"},CandidateDescriptor:{paraId:"ParaId",relayParent:"RelayChainHash",collatorId:"CollatorId",persistedValidationDataHash:"Hash",povHash:"Hash",erasureRoot:"Hash",signature:"CollatorSignature",paraHead:"Hash",validationCodeHash:"ValidationCodeHash"},CandidateEvent:{_enum:{CandidateBacked:"(CandidateReceipt, HeadData, CoreIndex, GroupIndex)",CandidateIncluded:"(CandidateReceipt, HeadData, CoreIndex, GroupIndex)",CandidateTimedOut:"(CandidateReceipt, HeadData, CoreIndex)"}},CandidateHash:"Hash",CandidateInfo:{who:"AccountId",deposit:"Balance"},CandidatePendingAvailability:{core:"CoreIndex",hash:"CandidateHash",descriptor:"CandidateDescriptor",availabilityVotes:"BitVec",backers:"BitVec",relayParentNumber:"BlockNumber",backedInNumber:"BlockNumber",backingGroup:"GroupIndex"},CandidateReceipt:{descriptor:"CandidateDescriptor",commitmentsHash:"Hash"},GlobalValidationData:{maxCodeSize:"u32",maxHeadDataSize:"u32",blockNumber:"BlockNumber"},CollatorId:"H256",CollatorSignature:"Signature",CommittedCandidateReceipt:{descriptor:"CandidateDescriptor",commitments:"CandidateCommitments"},CoreAssignment:{core:"CoreIndex",paraId:"ParaId",kind:"AssignmentKind",groupIdx:"GroupIndex"},CoreIndex:"u32",CoreOccupied:{_enum:{Parathread:"ParathreadEntry",Parachain:"Null"}},CoreState:{_enum:{Occupied:"OccupiedCore",Scheduled:"ScheduledCore",Free:"Null"}},DisputeProof:{timeSlot:"DisputesTimeSlot",kind:"SlashingOffenceKind",validatorIndex:"ValidatorIndex",validatorId:"ValidatorId"},DisputesTimeSlot:{sessionIndex:"SessionIndex",candidateHash:"CandidateHash"},DoubleVoteReport:{identity:"ValidatorId",first:"(Statement, ValidatorSignature)",second:"(Statement, ValidatorSignature)",proof:"MembershipProof",signingContext:"SigningContext"},DownwardMessage:"Bytes",GroupIndex:"u32",GroupRotationInfo:{sessionStartBlock:"BlockNumber",groupRotationFrequency:"BlockNumber",now:"BlockNumber"},GlobalValidationSchedule:{maxCodeSize:"u32",maxHeadDataSize:"u32",blockNumber:"BlockNumber"},HeadData:"Bytes",HostConfiguration:{maxCodeSize:"u32",maxHeadDataSize:"u32",maxUpwardQueueCount:"u32",maxUpwardQueueSize:"u32",maxUpwardMessageSize:"u32",maxUpwardMessageNumPerCandidate:"u32",hrmpMaxMessageNumPerCandidate:"u32",validationUpgradeFrequency:"BlockNumber",validationUpgradeDelay:"BlockNumber",maxPovSize:"u32",maxDownwardMessageSize:"u32",preferredDispatchableUpwardMessagesStepWeight:"Weight",hrmpMaxParachainOutboundChannels:"u32",hrmpMaxParathreadOutboundChannels:"u32",hrmpOpenRequestTtl:"u32",hrmpSenderDeposit:"Balance",hrmpRecipientDeposit:"Balance",hrmpChannelMaxCapacity:"u32",hrmpChannelMaxTotalSize:"u32",hrmpMaxParachainInboundChannels:"u32",hrmpMaxParathreadInboundChannels:"u32",hrmpChannelMaxMessageSize:"u32",codeRetentionPeriod:"BlockNumber",parathreadCores:"u32",parathreadRetries:"u32",groupRotationFrequency:"BlockNumber",chainAvailabilityPeriod:"BlockNumber",threadAvailabilityPeriod:"BlockNumber",schedulingLookahead:"u32",maxValidatorsPerCore:"Option",maxValidators:"Option",disputePeriod:"SessionIndex",disputePostConclusionAcceptancePeriod:"BlockNumber",disputeMaxSpamSlots:"u32",disputeConclusionByTimeOutPeriod:"BlockNumber",noShowSlots:"u32",nDelayTranches:"u32",zerothDelayTrancheWidth:"u32",neededApprovals:"u32",relayVrfModuloSamples:"u32"},InboundDownwardMessage:{pubSentAt:"BlockNumber",pubMsg:"DownwardMessage"},InboundHrmpMessage:{sentAt:"BlockNumber",data:"Bytes"},InboundHrmpMessages:"Vec",LocalValidationData:{parentHead:"HeadData",balance:"Balance",codeUpgradeAllowed:"Option"},MessageIngestionType:{downwardMessages:"Vec",horizontalMessages:"BTreeMap"},MessageQueueChain:"RelayChainHash",OccupiedCore:{nextUpOnAvailable:"Option",occupiedSince:"BlockNumber",timeOutAt:"BlockNumber",nextUpOnTimeOut:"Option",availability:"BitVec",groupResponsible:"GroupIndex",candidateHash:"CandidateHash",candidateDescriptor:"CandidateDescriptor"},OccupiedCoreAssumption:{_enum:["Included,","TimedOut","Free"]},OutboundHrmpMessage:{recipient:"u32",data:"Bytes"},PendingSlashes:{_alias:{slashKeys:"keys"},slashKeys:"BTreeMap",kind:"SlashingOffenceKind"},ParachainDispatchOrigin:{_enum:["Signed","Parachain","Root"]},ParachainInherentData:{validationData:"PersistedValidationData",relayChainState:"StorageProof",downwardMessages:"Vec",horizontalMessages:"BTreeMap"},ParachainsInherentData:{bitfields:"SignedAvailabilityBitfields",backedCandidates:"Vec",disputes:"MultiDisputeStatementSet",parentHeader:"Header"},ParaGenesisArgs:{genesisHead:"Bytes",validationCode:"Bytes",parachain:"bool"},ParaId:"u32",ParaInfo:{manager:"AccountId",deposit:"Balance",locked:"bool"},ParaLifecycle:{_enum:["Onboarding","Parathread","Parachain","UpgradingToParachain","DowngradingToParathread","OutgoingParathread","OutgoingParachain"]},ParaPastCodeMeta:{upgradeTimes:"Vec",lastPruned:"Option"},ParaScheduling:{_enum:["Always","Dynamic"]},ParathreadClaim:"(ParaId, CollatorId)",ParathreadClaimQueue:{queue:"Vec",nextCoreOffset:"u32"},ParathreadEntry:{claim:"ParathreadClaim",retries:"u32"},ParaValidatorIndex:"u32",PersistedValidationData:{parentHead:"HeadData",relayParentNumber:"RelayChainBlockNumber",relayParentStorageRoot:"Hash",maxPovSize:"u32"},PvfCheckStatement:{accept:"bool",subject:"ValidationCodeHash",sessionIndex:"SessionIndex",validatorIndex:"ParaValidatorIndex"},QueuedParathread:{claim:"ParathreadEntry",coreOffset:"u32"},RelayBlockNumber:"u32",RelayChainBlockNumber:"RelayBlockNumber",RelayHash:"Hash",RelayChainHash:"RelayHash",Remark:"[u8; 32]",ReplacementTimes:{expectedAt:"BlockNumber",activatedAt:"BlockNumber"},Retriable:{_enum:{Never:"Null",WithRetries:"u32"}},ScheduledCore:{paraId:"ParaId",collator:"Option"},Scheduling:{_enum:["Always","Dynamic"]},ScrapedOnChainVotes:{session:"SessionIndex",backingValidatorsPerCandidate:"Vec<(CandidateReceipt, Vec<(ParaValidatorIndex, ValidityAttestation)>)>",disputes:"MultiDisputeStatementSet"},SessionInfo:{activeValidatorIndices:"Vec",randomSeed:"[u8; 32]",disputePeriod:"SessionIndex",validators:"Vec",discoveryKeys:"Vec",assignmentKeys:"Vec",validatorGroups:"Vec>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},OldV1SessionInfo:{validators:"Vec",discoveryKeys:"Vec",assignmentKeys:"Vec",validatorGroups:"Vec>",nCores:"u32",zerothDelayTrancheWidth:"u32",relayVrfModuloSamples:"u32",nDelayTranches:"u32",noShowSlots:"u32",neededApprovals:"u32"},SessionInfoValidatorGroup:"Vec",SignedAvailabilityBitfield:{payload:"BitVec",validatorIndex:"ParaValidatorIndex",signature:"ValidatorSignature"},SignedAvailabilityBitfields:"Vec",SigningContext:{sessionIndex:"SessionIndex",parentHash:"Hash"},SlashingOffenceKind:{_enum:["ForInvalid","AgainstValid"]},Statement:{_enum:{Never:"Null",Candidate:"Hash",Valid:"Hash",Invalid:"Hash"}},TransientValidationData:{maxCodeSize:"u32",maxHeadDataSize:"u32",balance:"Balance",codeUpgradeAllowed:"Option",dmqLength:"u32"},UpgradeGoAhead:{_enum:["Abort","GoAhead"]},UpgradeRestriction:{_enum:["Present"]},UpwardMessage:"Bytes",ValidationFunctionParams:{maxCodeSize:"u32",relayChainHeight:"RelayChainBlockNumber",codeUpgradeAllowed:"Option"},ValidationCode:"Bytes",ValidationCodeHash:"Hash",ValidationData:{persisted:"PersistedValidationData",transient:"TransientValidationData"},ValidationDataType:{validationData:"ValidationData",relayChainState:"Vec"},ValidatorSignature:"Signature",ValidityAttestation:{_enum:{Never:"Null",Implicit:"ValidatorSignature",Explicit:"ValidatorSignature"}},MessagingStateSnapshot:{relayDispatchQueueSize:"(u32, u32)",egressChannels:"Vec"},MessagingStateSnapshotEgressEntry:"(ParaId, AbridgedHrmpChannel)",SystemInherentData:"ParachainInherentData",VecInboundHrmpMessage:"Vec"}},xZ={rpc:{},types:{Approvals:"[bool; 4]"}},vZ={rpc:{},types:{AccountStatus:{validity:"AccountValidity",freeBalance:"Balance",lockedBalance:"Balance",signature:"Vec",vat:"Permill"},AccountValidity:{_enum:["Invalid","Initiated","Pending","ValidLow","ValidHigh","Completed"]}}};var F;(function(e){e[e.BTreeMap=0]="BTreeMap",e[e.BTreeSet=1]="BTreeSet",e[e.Compact=2]="Compact",e[e.DoNotConstruct=3]="DoNotConstruct",e[e.Enum=4]="Enum",e[e.HashMap=5]="HashMap",e[e.Int=6]="Int",e[e.Linkage=7]="Linkage",e[e.Null=8]="Null",e[e.Option=9]="Option",e[e.Plain=10]="Plain",e[e.Range=11]="Range",e[e.RangeInclusive=12]="RangeInclusive",e[e.Result=13]="Result",e[e.Set=14]="Set",e[e.Si=15]="Si",e[e.Struct=16]="Struct",e[e.Tuple=17]="Tuple",e[e.UInt=18]="UInt",e[e.Vec=19]="Vec",e[e.VecFixed=20]="VecFixed",e[e.WrapperKeepOpaque=21]="WrapperKeepOpaque",e[e.WrapperOpaque=22]="WrapperOpaque"})(F||(F={}));function NP(e){return oe(e.eq)}function OP(e,t){return Array.isArray(t)?e.length===t.length&&it(e.find((n,r)=>NP(n)?!n.eq(t[r]):n!==t[r])):!1}class Ip extends Array{constructor(n,r){super(r);I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");this.registry=n}static get[Symbol.species](){return Array}get encodedLength(){const n=this.length;let r=At(n).length;for(let i=0;iNumber.MAX_SAFE_INTEGER||eo)throw new Error(`${this.toRawType()}: Input too large. Found input with ${super.bitLength()} bits, expected ${o}`)}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isZero()}bitLength(){return this.__internal__bitLength}eq(n){return super.eq(Ne(n)?zb(n.toString(),{isLe:!1,isNegative:!this.isUnsigned}):$t(n))}inspect(){return{outer:[this.toU8a()]}}isMax(){return this.toU8a().filter(r=>r===255).length===this.__internal__bitLength/8}toBigInt(){return BigInt(this.toString())}toBn(){return this}toHex(n=!1){return XR(this,{bitLength:this.bitLength(),isLe:n,isNegative:!this.isUnsigned})}toHuman(n){const r=this.toRawType();if(r==="Balance")return this.isMax()?"everything":Zs(this,{decimals:this.registry.chainDecimals[0],withSi:!0,withUnit:this.registry.chainTokens[0]});const[,i]=TZ.find(([a])=>a===r)||[];return i?PZ(this,i):w1(this)}toJSON(n=!1){return n||this.__internal__bitLength>128||super.bitLength()>D5?this.toHex():this.toNumber()}toPrimitive(){return super.bitLength()>D5?this.toString():this.toNumber()}toRawType(){return this instanceof this.registry.createClassUnsafe("Balance")?"Balance":`${this.isUnsigned?"u":"i"}${this.bitLength()}`}toString(n){return super.toString(n)}toU8a(n){return Mi(this,{bitLength:this.bitLength(),isLe:!0,isNegative:!this.isUnsigned})}}function CZ(e,t){return it(e)||(NP(e)?!e.eq(t):e!==t)}function EZ(e){return!Array.isArray(e)||e.length!==2}function Hm(e,t){return e.size===t.length&&!t.some(n=>EZ(n)||CZ(e.get(n[0]),n[1]))}function O2(e,t){return Array.isArray(t)?Hm(e,t):t instanceof Map?Hm(e,[...t.entries()]):Qn(t)?Hm(e,Object.entries(t)):!1}function zm(e,t){return e.size===t.length&&!t.some(n=>!e.has(n))}function _Z(e,t){return Array.isArray(t)?zm(e,t):t instanceof Set?zm(e,[...t.values()]):Qn(t)?zm(e,Object.values(t)):!1}function I2(e,t,n,{message:r},i,a,s,o,c){let l="";try{l=`: ${new o(e).toRawType()}`}catch{}return`${t}: failed at ${we(i.subarray(0,16))}…${c?` on ${c}`:""} (index ${a+1}/${s})${l}:: ${r}`}function R2(e,t,n,[r,i]){const a=t.length;let s=0,o=0;try{for(;o::Inherent","InherentOfflineReport",!1),Kr("VecDeque<","Vec<",!1),NZ(),z5("Bounded",!0),z5("Weak",!1),BZ(),LZ(),DZ("Box<"),RZ(),Kr("String","Text"),Kr("Vec","Bytes"),Kr("&\\[u8\\]","Bytes"),Kr("&'static\\[u8\\]","Bytes"),Kr("RawAddress","Address"),Kr("Lookup::Source","LookupSource"),Kr("Lookup::Target","LookupTarget"),Kr("exec::StorageKey","ContractStorageKey"),OZ(),IZ(),VZ()];function VZ(){return e=>e.trim()}function L2(e,t){let n=0;for(let r=t,i=e.length;r"){if(!n)return r;n--}else e[r]==="<"&&n++;throw new Error(`Unable to find closing matching <> on '${e}' (start ${t})`)}function Kr(e,t,n=!0){const r=new RegExp(`(^${e}|${vh.map(a=>`\\${a}${e}`).join("|")})`,"g"),i=a=>(r.lastIndex=0,n&&vh.includes(a[0])?`${a[0]}${t}`:t);return a=>a.replace(r,i)}function NZ(){return e=>{if(e.includes(" as HasCompact")){for(let t=0,n=e.length;t`)}}return e}}function OZ(){const e=/,\)/g,t=/\(([^,]+)\)/;return n=>(e.lastIndex=0,n.replace(e,")").replace(t,"$1"))}function B2(e,t,n){let r=-1;for(;;){if(r=e.indexOf(t,r+1),r===-1)return e;const i=r+t.length,a=L2(e,i);e=`${e.substring(0,r)}${n(e.substring(i,a))}${e.substring(a+1)}`}}function z5(e,t){return n=>{for(let r=0,i=ny.length;r{const o=s.split(",").map(c=>c.trim()).filter(c=>c);return t&&o.pop(),`${a}<${o.join(",")}>`})}return n}}function IZ(){return e=>{let t=0;for(;t!==-1;)if(t=e.indexOf("::"),t===0)e=e.substring(2);else if(t!==-1){let n=t;for(;n!==-1&&!vh.includes(e[n]);)n--;e=`${e.substring(0,n+1)}${e.substring(t+2)}`}return e}}function RZ(){return e=>{for(let t=0,n=e.length;t{const a=t-i.length;return a>=0&&e.substring(a,t)===i&&(a===0||vh.includes(e[a-1]))})){const i=L2(e,t+1);e=`${e.substring(0,t)}${e.substring(i+1)}`}return e}}function LZ(){const e=t=>`(${t},${t})`;return t=>B2(t,"PairOf<",e)}function BZ(){const e=/\s/g,t=/(T|Self)::/g,n=/<(T|Self)asTrait>::/g,r=/::/g,i=//g,a=/::Type/g;return s=>(e.lastIndex=0,t.lastIndex=0,n.lastIndex=0,r.lastIndex=0,i.lastIndex=0,a.lastIndex=0,s.replace(e,"").replace(t,"").replace(n,"").replace(r,"").replace(i,"Lookup").replace(a,""))}function DZ(e){const t=n=>n;return n=>B2(n,e,t)}const j5=new Map;function wh(e){const t=e.toString(),n=j5.get(t);if(n)return n;let r=t;for(let i=0,a=H5.length;i ${Te(t)} (typeof ${typeof t})`)}function zZ(e){return new Set(Array.from(e).sort(vs))}function jZ(e){return new Map(Array.from(e.entries()).sort(([t],[n])=>vs(t,n)))}function Xr(e,t){return typeof t=="function"?t:e.createClassUnsafe(t)}function UZ(e,t){const n=t.length,r=new Array(n);for(let i=0;in=i;return class extends su{constructor(i,a){super(i,t,a,{definition:n,setDefinition:r})}}}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.__internal__raw.isEmpty}bitLength(){return this.__internal__raw.bitLength()}eq(t){return this.__internal__raw.eq(t instanceof su?t.__internal__raw:t)}inspect(){return{outer:[this.toU8a()]}}toBigInt(){return this.__internal__raw.toBigInt()}toBn(){return this.__internal__raw.toBn()}toHex(t){return this.__internal__raw.toHex(t)}toHuman(t){return this.__internal__raw.toHuman(t)}toJSON(){return this.__internal__raw.toJSON()}toNumber(){return this.__internal__raw.toNumber()}toPrimitive(){return this.__internal__raw.toPrimitive()}toRawType(){return`Compact<${this.registry.getClassName(this.__internal__Type)||this.__internal__raw.toRawType()}>`}toString(){return this.__internal__raw.toString()}toU8a(t){return At(this.__internal__raw.toBn())}unwrap(){return this.__internal__raw}}class Bp{constructor(t,n="DoNotConstruct"){I(this,"registry");I(this,"createdAtHash");I(this,"isStorageFallback");I(this,"__internal__neverError");throw this.registry=t,this.__internal__neverError=new Error(`DoNotConstruct: Cannot construct unknown type ${n}`),this.__internal__neverError}static with(t){return class extends Bp{constructor(n){super(n,t)}}}get encodedLength(){throw this.__internal__neverError}get hash(){throw this.__internal__neverError}get isEmpty(){throw this.__internal__neverError}eq(){throw this.__internal__neverError}inspect(){throw this.__internal__neverError}toHex(){throw this.__internal__neverError}toHuman(){throw this.__internal__neverError}toJSON(){throw this.__internal__neverError}toPrimitive(){throw this.__internal__neverError}toRawType(){throw this.__internal__neverError}toString(){throw this.__internal__neverError}toU8a(){throw this.__internal__neverError}}class li{constructor(t){I(this,"encodedLength",0);I(this,"isEmpty",!0);I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength",0);I(this,"isStorageFallback");this.registry=t}get hash(){throw new Error(".hash is not implemented on Null")}eq(t){return t instanceof li||_s(t)}inspect(){return{}}toHex(){return"0x"}toHuman(){return this.toJSON()}toJSON(){return null}toPrimitive(){return null}toRawType(){return"Null"}toString(){return""}toU8a(t){return new Uint8Array}}function WZ(e){const t=Object.values(e);if(t.some(n=>Oe(n))){if(!t.every(n=>Oe(n)&&n>=0&&n<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function XZ(e,t){const n={};let r,i;if(Array.isArray(t)){for(let a=0,s=t.length;ao!==li),i=!1}else{const a=Object.entries(t);for(let s=0,o=a.length;so.toLowerCase()),a=n.toLowerCase(),s=i.indexOf(a);if(s===-1)throw new Error(`Cannot map Enum JSON, unable to find '${n}' in ${i.join(", ")}`);try{return nl(e,t,Object.values(t)[s].index,r)}catch(o){throw new Error(`Enum(${n}):: ${o.message}`)}}function qZ(e,t,n,r){if(Oe(r))return nl(e,t,r,n);if(me(n)||Ne(n)){const i=fe(n);if(i.length)return DP(e,t,i[0],i.subarray(1))}else{if(n instanceof kr)return nl(e,t,n.index,n.value);if(Oe(n))return nl(e,t,n);if(Ge(n))return X5(e,t,n.toString());if(Qn(n)){const i=Object.keys(n)[0];return X5(e,t,i,n[i])}}return nl(e,t,Object.values(t)[0].index)}class kr{constructor(t,n,r,i,{definition:a,setDefinition:s=Ks}={}){I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");I(this,"__internal__def");I(this,"__internal__entryIndex");I(this,"__internal__indexes");I(this,"__internal__isBasic");I(this,"__internal__isIndexed");I(this,"__internal__raw");const{def:o,isBasic:c,isIndexed:l}=a||s(XZ(t,n)),u=me(r)&&r.length&&!Oe(i)?DP(t,o,r[0],r.subarray(1)):qZ(t,o,r,i);this.registry=t,this.__internal__def=o,this.__internal__isBasic=c,this.__internal__isIndexed=l,this.__internal__indexes=Object.values(o).map(({index:d})=>d),this.__internal__entryIndex=this.__internal__indexes.indexOf(u.index),this.__internal__raw=u.value,this.__internal__raw.initialU8aLength&&(this.initialU8aLength=1+this.__internal__raw.initialU8aLength)}static with(t){var i;let n;const r=a=>n=a;return i=class extends kr{constructor(s,o,c){super(s,t,o,c,{definition:n,setDefinition:r})}},(()=>{const s=Array.isArray(t)?t:Object.keys(t),o=s.length,c=new Array(o),l=new Array(o);for(let u=0;uh.type===s[d]),Hs(i.prototype,c,(u,d,h)=>{if(h.type!==s[d])throw new Error(`Cannot convert '${h.type}' via ${u}`);return h.value})})(),i}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get index(){return this.__internal__indexes[this.__internal__entryIndex]}get inner(){return this.__internal__raw}get isBasic(){return this.__internal__isBasic}get isEmpty(){return this.__internal__raw.isEmpty}get isNone(){return this.__internal__raw instanceof li}get defIndexes(){return this.__internal__indexes}get defKeys(){return Object.keys(this.__internal__def)}get type(){return this.defKeys[this.__internal__entryIndex]}get value(){return this.__internal__raw}eq(t){return me(t)?!this.toU8a().some((n,r)=>n!==t[r]):Oe(t)?this.toNumber()===t:this.__internal__isBasic&&Ge(t)?this.type===t:Ne(t)?this.toHex()===t:t instanceof kr?this.index===t.index&&this.value.eq(t.value):Qn(t)?this.value.eq(t[this.type]):this.value.eq(t)}inspect(){if(this.__internal__isBasic)return{outer:[new Uint8Array([this.index])]};const{inner:t,outer:n=[]}=this.__internal__raw.inspect();return{inner:t,outer:[new Uint8Array([this.index]),...n]}}toHex(){return we(this.toU8a())}toHuman(t){return this.__internal__isBasic||this.isNone?this.type:{[this.type]:this.__internal__raw.toHuman(t)}}toJSON(){return this.__internal__isBasic?this.type:{[ze(this.type)]:this.__internal__raw.toJSON()}}toNumber(){return this.index}toPrimitive(){return this.__internal__isBasic?this.type:{[ze(this.type)]:this.__internal__raw.toPrimitive()}}_toRawStruct(){if(this.__internal__isBasic)return this.__internal__isIndexed?this.defKeys.reduce((n,r,i)=>(n[r]=this.__internal__indexes[i],n),{}):this.defKeys;const t=Object.entries(this.__internal__def);return LP(this.registry,t.reduce((n,[r,{Type:i}],a)=>(n[0][a]=i,n[1][a]=r,n),[new Array(t.length),new Array(t.length)]))}toRawType(){return Te({_enum:this._toRawStruct()})}toString(){return this.isNone?this.type:Te(this.toJSON())}toU8a(t){return t?this.__internal__raw.toU8a(t):Zn([new Uint8Array([this.index]),this.__internal__raw.toU8a(t)])}}class Zi extends RP{constructor(t,n=0,r){super(t,n,r,!0)}static with(t,n){return class extends Zi{constructor(r,i){super(r,i,t)}toRawType(){return n||super.toRawType()}}}}class _o extends li{toRawType(){return"None"}}function GZ(e,t,n){return n instanceof t?n:n instanceof Wa?n.value instanceof t?n.value:n.isNone?new _o(e):new t(e,n.value):_s(n)||it(n)||n==="0x"||n instanceof _o?new _o(e):me(n)?!n.length||n[0]===0?new _o(e):new t(e,n.subarray(1)):new t(e,n)}class Wa{constructor(t,n,r,{definition:i,setDefinition:a=Ks}={}){I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");I(this,"__internal__Type");I(this,"__internal__raw");const s=i||a(Xr(t,n)),o=me(r)&&r.length&&!Ai(r)?r[0]===0?new _o(t):new s(t,r.subarray(1)):GZ(t,s,r);this.registry=t,this.__internal__Type=s,this.__internal__raw=o,o!=null&&o.initialU8aLength&&(this.initialU8aLength=1+o.initialU8aLength)}static with(t){let n;const r=i=>(n=i,i);return class extends Wa{constructor(i,a){super(i,t,a,{definition:n,setDefinition:r})}}}get encodedLength(){return 1+this.__internal__raw.encodedLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isNone}get isNone(){return this.__internal__raw instanceof _o}get isSome(){return!this.isNone}get value(){return this.__internal__raw}eq(t){return t instanceof Wa?this.isSome===t.isSome&&this.value.eq(t.value):this.value.eq(t)}inspect(){if(this.isNone)return{outer:[new Uint8Array([0])]};const{inner:t,outer:n=[]}=this.__internal__raw.inspect();return{inner:t,outer:[new Uint8Array([1]),...n]}}toHex(){return this.isNone?"0x":we(this.toU8a().subarray(1))}toHuman(t){return this.__internal__raw.toHuman(t)}toJSON(){return this.isNone?null:this.__internal__raw.toJSON()}toPrimitive(){return this.isNone?null:this.__internal__raw.toPrimitive()}toRawType(t){const n=this.registry.getClassName(this.__internal__Type)||new this.__internal__Type(this.registry).toRawType();return t?n:`Option<${n}>`}toString(){return this.__internal__raw.toString()}toU8a(t){if(t)return this.__internal__raw.toU8a(!0);const n=new Uint8Array(this.encodedLength);return this.isSome&&(n.set([1]),n.set(this.__internal__raw.toU8a(),1)),n}unwrap(){if(this.isNone)throw new Error("Option: unwrapping a None value");return this.__internal__raw}unwrapOr(t){return this.isSome?this.unwrap():t}unwrapOrDefault(){return this.isSome?this.unwrap():new this.__internal__Type(this.registry)}}class H2 extends kr{constructor(t,n,r,i){super(t,{Ok:n,Err:r},i)}static with(t){return class extends H2{constructor(n,r){super(n,t.Ok,t.Err,r)}}}get asErr(){if(!this.isErr)throw new Error("Cannot extract Err value from Ok result, check isErr first");return this.value}get asOk(){if(!this.isOk)throw new Error("Cannot extract Ok value from Err result, check isOk first");return this.value}get isEmpty(){return this.isOk&&this.value.isEmpty}get isErr(){return!this.isOk}get isOk(){return this.index===0}toRawType(){const t=this._toRawStruct();return`Result<${t.Ok},${t.Err}>`}}function ZZ(e,t,n,r){if(Array.isArray(n)){const i=r[0];for(let a=0,s=i.length;ar=a;return class extends Sc{constructor(a,s){super(a,n,s,{definition:r,setDefinition:i})}}}get encodedLength(){let n=0;for(let r=0,i=this.length;rnew n(this.registry).toRawType())}inspect(){return{inner:this.inspectInner()}}toRawType(){return`(${this.__internal__Types[0].map(r=>this.registry.getClassName(r)||new r(this.registry).toRawType()).join(",")})`}toString(){return Te(this.toJSON())}toU8a(n){return Zn(this.toU8aInner(n))}}class Ki extends RP{static with(t,n){return class extends Ki{constructor(r,i){super(r,i,t)}toRawType(){return n||super.toRawType()}}}}const q5=64*1024,KZ=Cr("Vec");function YZ(e){if(Array.isArray(e))return[e,e.length,0];if(me(e)||Ne(e)){const t=fe(e),[n,r]=Gs(t);if(r>q5)throw new Error(`Vec length ${r.toString()} exceeds ${q5}`);return[t,r,n]}else if(!e)return[null,0,0];throw new Error(`Expected array/hex input to Vec<*> decoding, found ${typeof e}: ${Te(e)}`)}function HP(e,t,n,r,i){if(Array.isArray(n)){const a=t.length;for(let s=0;sr=a;return class extends z2{constructor(a,s){super(a,n,s,{definition:r,setDefinition:i})}}}get Type(){return this.__internal__Type.name}indexOf(n){const r=n instanceof this.__internal__Type?n:new this.__internal__Type(this.registry,n);for(let i=0,a=this.length;i`}}class j2 extends Ip{constructor(n,r,i,a=[],{definition:s,setDefinition:o=Ks}={}){super(n,i);I(this,"__internal__Type");this.__internal__Type=s||o(Xr(n,r)),this.initialU8aLength=(me(a)?Lp(n,this,a,0,this.__internal__Type):HP(n,this,a,0,this.__internal__Type))[1]}static with(n,r){let i;const a=s=>i=s;return class extends j2{constructor(s,o){super(s,n,r,o,{definition:i,setDefinition:a})}}}get Type(){return new this.__internal__Type(this.registry).toRawType()}get encodedLength(){let n=0;for(let r=0,i=this.length;r!!n))}get isUtf8(){return oL(this)}bitLength(){return this.length*8}eq(n){return n instanceof Uint8Array?this.length===n.length&&!this.some((r,i)=>r!==n[i]):this.eq(fe(n))}inspect(){return{outer:[this.toU8a()]}}toHex(){return we(this)}toHuman(){return this.toPrimitive()}toJSON(){return this.toHex()}toPrimitive(){if(this.isAscii){const n=this.toUtf8();if(Y3(n))return n}return this.toJSON()}toRawType(){return"Raw"}toString(){return this.toHex()}toU8a(n){return Uint8Array.from(this)}toUtf8(){if(!this.isUtf8)throw new Error("The character sequence is not a valid Utf8 string");return _i(this)}}function JZ(e){if(!(e!=null&&e.length))return[0,new Uint8Array];const[t,n]=Gs(e),r=t+Math.ceil(n/8);if(r>e.length)throw new Error(`BitVec: required length less than remainder, expected at least ${r}, found ${e.length}`);return[n,e.subarray(t,r)]}function QZ(e){if(Array.isArray(e)||Ge(e)){const t=fe(e);return[t.length/8,t]}return JZ(e)}class $Z extends Pr{constructor(n,r,i=!1){const[a,s]=QZ(r);super(n,s);I(this,"__internal__decodedLength");I(this,"__internal__isMsb");this.__internal__decodedLength=a,this.__internal__isMsb=i}get encodedLength(){return this.length+At(this.__internal__decodedLength).length}inspect(){return{outer:[At(this.__internal__decodedLength),super.toU8a()]}}toBoolArray(){const n=[...this.toU8a(!0)].map(a=>[!!(a&128),!!(a&64),!!(a&32),!!(a&16),!!(a&8),!!(a&4),!!(a&2),!!(a&1)]),r=n.length,i=new Array(8*r);for(let a=0;a`00000000${n.toString(2)}`.slice(-8)).map(n=>this.__internal__isMsb?n:n.split("").reverse().join("")).join("_")}`}toRawType(){return"BitVec"}toU8a(n){const r=super.toU8a(n);return n?r:Zn([At(this.__internal__decodedLength),r])}}function eK(e){return e}function tK(e,[t,n],r,i){let a;const s=Array.isArray(r),o=r instanceof Map,c=n.length;if(!s&&!o&&!Qn(r))throw new Error(`Struct: Cannot decode value ${Te(r)} (typeof ${typeof r}), expected an input object, map or array`);if(s&&r.length!==c)throw new Error(`Struct: Unable to map ${Te(r)} array to object with known keys ${n.join(", ")}`);const l=new Array(c);for(let u=0;ui=o;return s=class extends en{constructor(c,l){super(c,n,l,r,{definition:i,setDefinition:a})}},(()=>{const c=Object.keys(n);Hs(s.prototype,c,(l,u,d)=>d.get(l))})(),s}get defKeys(){return this.__internal__Types[1]}get isEmpty(){for(const n of this.values())if(!n.isEmpty)return!1;return!0}get encodedLength(){let n=0;for(const r of this.values())n+=r.encodedLength;return n}get hash(){return this.registry.hash(this.toU8a())}get Type(){const n={},[r,i]=this.__internal__Types;for(let a=0,s=i.length;a`}toString(){return Te(this.toJSON())}toU8a(n){const r=[];n||r.push(At(this.size));for(const[i,a]of this.entries())r.push(i.toU8a(n),a.toU8a(n));return Zn(r)}}class U2 extends zP{static with(t,n){return class extends U2{constructor(r,i){super(r,t,n,i,"BTreeMap")}}}}const aK=Cr("BTreeSet");function sK(e,t,n){const r=new Set,[i,a]=Gs(n),s=new Array(a),[o]=Lp(e,s,n,i,t);for(let c=0;c{try{r.add(i instanceof t?i:new t(e,i))}catch(a){throw aK.error("Failed to decode key or value:",a.message),a}}),[t,r,0]}function cK(e,t,n){const r=Xr(e,t);if(n){if(me(n)||Ne(n))return sK(e,r,fe(n));if(Array.isArray(n)||n instanceof Set)return oK(e,r,n)}else return[r,new Set,0];throw new Error("BTreeSet: cannot decode type")}class F2 extends Set{constructor(n,r,i){const[a,s,o]=cK(n,r,i);super(zZ(s));I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");I(this,"__internal__ValClass");this.registry=n,this.initialU8aLength=o,this.__internal__ValClass=a}static with(n){return class extends F2{constructor(r,i){super(r,n,i)}}}get encodedLength(){let n=At(this.size).length;for(const r of this.values())n+=r.encodedLength;return n}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()].map(n=>n.toString())}eq(n){return _Z(this,n)}inspect(){const n=[];for(const r of this.values())n.push(r.inspect());return{inner:n,outer:[At(this.size)]}}toHex(){return we(this.toU8a())}toHuman(n){const r=[];for(const i of this.values())r.push(i.toHuman(n));return r}toJSON(){const n=[];for(const r of this.values())n.push(r.toJSON());return n}toRawType(){return`BTreeSet<${this.registry.getClassName(this.__internal__ValClass)||new this.__internal__ValClass(this.registry).toRawType()}>`}toPrimitive(){const n=[];for(const r of this.values())n.push(r.toPrimitive());return n}toString(){return Te(this.toJSON())}toU8a(n){const r=[];n||r.push(At(this.size));for(const i of this.values())r.push(i.toU8a(n));return Zn(r)}}const Z5=10*1024*1024;function lK(e){if(!e.length)return[new Uint8Array,0];const[t,n]=Gs(e),r=t+n;if(n>Z5)throw new Error(`Bytes length ${n.toString()} exceeds ${Z5}`);if(r>e.length)throw new Error(`Bytes: required length less than remainder, expected at least ${r}, found ${e.length}`);return[e.subarray(t,r),r]}class Dp extends Pr{constructor(t,n){const[r,i]=me(n)&&!(n instanceof Pr)?lK(n):Array.isArray(n)||Ge(n)?[fe(n),0]:[n,0];super(t,r,i)}get encodedLength(){return this.length+At(this.length).length}inspect(t){const n=At(this.length);return{outer:t?[super.toU8a()]:this.length?[n,super.toU8a()]:[n]}}toRawType(){return"Bytes"}toU8a(t){return t?super.toU8a(t):yc(this)}}class W2 extends zP{static with(t,n){return class extends W2{constructor(r,i){super(r,t,n,i)}}}}class uc extends Boolean{constructor(n,r=!1){super(me(r)?r[0]===1:r instanceof Boolean?r.valueOf():!!r);I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength",1);I(this,"isStorageFallback");this.registry=n}get encodedLength(){return 1}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.isFalse}get isFalse(){return!this.isTrue}get isTrue(){return this.valueOf()}eq(n){return this.valueOf()===(n instanceof Boolean?n.valueOf():n)}inspect(){return{outer:[this.toU8a()]}}toHex(){return we(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.valueOf()}toPrimitive(){return this.toJSON()}toRawType(){return"bool"}toString(){return this.toJSON().toString()}toU8a(n){return new Uint8Array([this.valueOf()?1:0])}}function uK(e,t){return t[0]===0?null:new uc(e,t[0]===1)}class dK extends Wa{constructor(t,n){super(t,uc,me(n)||Ne(n)?uK(t,fe(n)):n),this.initialU8aLength=1}get encodedLength(){return 1}get isFalse(){return this.isSome?!this.value.valueOf():!1}get isTrue(){return this.isSome?this.value.valueOf():!1}inspect(){return{outer:[this.toU8a()]}}toRawType(t){return t?"bool":"Option"}toU8a(t){return t?super.toU8a(!0):this.isSome?new Uint8Array([this.isTrue?1:2]):new Uint8Array([0])}}class Hp extends Sc{constructor(n,r,i,{rangeName:a="Range"}={}){super(n,[r,r],i);I(this,"__internal__rangeName");this.__internal__rangeName=a}static with(n){return class extends Hp{constructor(r,i){super(r,n,i)}}}get start(){return this[0]}get end(){return this[1]}toRawType(){return`${this.__internal__rangeName}<${this.start.toRawType()}>`}}class X2 extends Hp{constructor(t,n,r){super(t,n,r,{rangeName:"RangeInclusive"})}static with(t){return class extends X2{constructor(n,r){super(n,t,r)}}}}const K5=128*1024;function fK(e){if(me(e)){if(!e.length)return["",0];if(e instanceof Pr)return[_i(e),0];const[t,n]=Gs(e),r=t+n;if(n>K5)throw new Error(`Text: length ${n.toString()} exceeds ${K5}`);if(r>e.length)throw new Error(`Text: required length less than remainder, expected at least ${r}, found ${e.length}`);return[_i(e.subarray(t,r)),r]}else if(Ne(e))return[_i(Hi(e)),0];return[e?e.toString():"",0]}class jP extends String{constructor(n,r){const[i,a]=fK(r);super(i);I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");I(this,"__internal__override",null);this.registry=n,this.initialU8aLength=a}get encodedLength(){return this.toU8a().length}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.length===0}get length(){return super.length}eq(n){return Ge(n)?this.toString()===n.toString():!1}inspect(){const n=Fr(super.toString());return{outer:n.length?[At(n.length),n]:[At(n.length)]}}setOverride(n){this.__internal__override=n}toHex(){return we(this.toU8a(!0))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toRawType(){return"Text"}toString(){return this.__internal__override||super.toString()}toU8a(n){const r=Fr(super.toString());return n?r:yc(r)}}class hK extends jP{constructor(t,n=""){super(t,n),this.setOverride(wh(this.toString()))}toRawType(){return"Type"}}function pK(e,t){const n=fe(e),r=t/8;if(!n.length)return[new Uint8Array(r),0];if(me(e)?n.length`}toString(){return this.__internal__decoded?this.__internal__decoded.toString():super.toString()}unwrap(){if(!this.__internal__decoded)throw new Error(`${this.__internal__opaqueName}: unwrapping an undecodable value`);return this.__internal__decoded}}class q2 extends zp{constructor(t,n,r){super(t,n,r,{opaqueName:"WrapperOpaque"})}static with(t){return class extends q2{constructor(n,r){super(n,t,r)}}}get inner(){return this.unwrap()}}class jp extends Number{constructor(n,r,{bitLength:i=32}={}){super(me(r)||Ne(r)?r.length===0?0:IR(fe(r),{bitLength:i}):r||0);I(this,"encodedLength");I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");I(this,"__internal__bitLength");this.__internal__bitLength=i,this.encodedLength=i/8,this.initialU8aLength=this.encodedLength,this.registry=n}static with(n){return class extends jp{constructor(r,i){super(r,i,{bitLength:n})}}}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.valueOf()===0}eq(n){return this.valueOf()===Number(n)}inspect(){return{outer:[this.toU8a()]}}toHex(){return we(this.toU8a())}toHuman(){return this.toString()}toJSON(){return this.toHex()}toNumber(){return this.valueOf()}toPrimitive(){return this.toNumber()}toRawType(){return`f${this.__internal__bitLength}`}toU8a(n){return JR(this,{bitLength:this.__internal__bitLength})}}function gK(e){return Object.entries(e||{})}class UP extends Map{constructor(n,r){const i=gK(r);super(i);I(this,"registry");I(this,"createdAtHash");I(this,"initialU8aLength");I(this,"isStorageFallback");this.registry=n,Hs(this,i.map(([a])=>a),a=>this.get(a))}get encodedLength(){return 0}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return[...this.keys()].length===0}eq(n){return O2(this,n)}getT(n){return this.get(n)}inspect(){throw new Error("Unimplemented")}toHex(){throw new Error("Unimplemented")}toHuman(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=oe(i.toHuman)?i.toHuman():i,n),{})}toJSON(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=i,n),{})}toPrimitive(){return[...this.entries()].reduce((n,[r,i])=>(n[r]=oe(i.toPrimitive)?i.toPrimitive():i,n),{})}toRawType(){return"Json"}toString(){return Te(this.toJSON())}toU8a(n){throw new Error("Unimplemented")}}function FP(e,t){const n=new re(0);for(let r=0,i=t.length;r{if(this.__internal__allowed&&it(this.__internal__allowed[n]))throw new Error(`Set: Invalid key '${n}' on add`);return super.add(n),this});this.registry=n,this.__internal__allowed=r,this.__internal__byteLength=a/8}static with(n,r){var i;return i=class extends G2{constructor(s,o){super(s,n,o,r)}},(()=>{const s=Object.keys(n),o=s.length,c=new Array(o);for(let l=0;ld.strings.includes(s[u]))})(),i}get encodedLength(){return this.__internal__byteLength}get hash(){return this.registry.hash(this.toU8a())}get isEmpty(){return this.size===0}get strings(){return[...super.values()]}get valueEncoded(){return FP(this.__internal__allowed,this.strings)}eq(n){return Array.isArray(n)?OP(this.strings.sort(),n.sort()):n instanceof Set?this.eq([...n.values()]):Oe(n)||qr(n)?this.valueEncoded.eq($t(n)):!1}inspect(){return{outer:[this.toU8a()]}}toHex(){return we(this.toU8a())}toHuman(){return this.toJSON()}toJSON(){return this.strings}toNumber(){return this.valueEncoded.toNumber()}toPrimitive(){return this.toJSON()}toRawType(){return Te({_set:this.__internal__allowed})}toString(){return`[${this.strings.join(", ")}]`}toU8a(n){return Mi(this.valueEncoded,{bitLength:this.__internal__byteLength*8,isLe:!0})}}class J5 extends jp.with(32){constructor(){super(...arguments);I(this,"__FloatType","f32")}}class Q5 extends jp.with(64){constructor(){super(...arguments);I(this,"__FloatType","f64")}}class $5 extends Zi.with(8){constructor(){super(...arguments);I(this,"__IntType","i8")}}class ew extends Zi.with(16){constructor(){super(...arguments);I(this,"__IntType","i16")}}class ry extends Zi.with(32){constructor(){super(...arguments);I(this,"__IntType","i32")}}class tw extends Zi.with(64){constructor(){super(...arguments);I(this,"__IntType","i64")}}class nw extends Zi.with(128){constructor(){super(...arguments);I(this,"__IntType","i128")}}class rw extends Zi.with(256){constructor(){super(...arguments);I(this,"__IntType","i256")}}class iw extends ry{constructor(t,n){throw super(t,n),new Error("The `isize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally i64) and WASM (always i32) code. Use one of the `i32` or `i64` types explicitly.")}}class aw extends Ki.with(8){constructor(){super(...arguments);I(this,"__UIntType","u8")}}class sw extends Ki.with(16){constructor(){super(...arguments);I(this,"__UIntType","u16")}}class ou extends Ki.with(32){constructor(){super(...arguments);I(this,"__UIntType","u32")}}class yr extends Ki.with(64){constructor(){super(...arguments);I(this,"__UIntType","u64")}}class ow extends Ki.with(128){constructor(){super(...arguments);I(this,"__UIntType","u128")}}class cw extends Ki.with(256){constructor(){super(...arguments);I(this,"__UIntType","u256")}}class lw extends ou{constructor(t,n){throw super(t,n),new Error("The `usize` type should not be used. Since it is platform-specific, it creates incompatibilities between native (generally u64) and WASM (always u32) code. Use one of the `u32` or `u64` types explicitly.")}}function bK(e){const t=[];let n=0,r=0,i=0,a=0,s=0;for(let o=0,c=e.length;o":n--;break;case"[":r++;break;case"]":r--;break;case"{":i++;break;case"}":i--;break;case"(":a++;break;case")":a--;break}if(n||r||i||a)throw new Error(`Invalid definition (missing terminators) found in ${e}`);return t.push(e.substring(s,e.length).trim()),t}const xK=["_alias","_fallback"];function XP(e){return Ge(e)?e.toString():Te(e)}function vK(e){const t=Object.values(e);if(t.some(n=>Oe(n))){if(!t.every(n=>Oe(n)&&n>=0&&n<=255))throw new Error("Invalid number-indexed enum definition");return!1}return!0}function wK(e,t,n,r){return e.info=F.Enum,e.fallbackType=r,Array.isArray(t)?e.sub=t.map((i,a)=>({index:a,info:F.Plain,name:i,type:"Null"})):vK(t)?e.sub=Object.entries(t).map(([i,a],s)=>$({},Yi(XP(a||"Null"),{name:i},n),{index:s})):e.sub=Object.entries(t).map(([i,a])=>({index:a,info:F.Plain,name:i,type:"Null"})),e}function SK(e,t,n){return e.info=F.Set,e.fallbackType=n,e.length=t._bitLength,e.sub=Object.entries(t).filter(([r])=>!r.startsWith("_")).map(([r,i])=>({index:i,info:F.Plain,name:r,type:"Null"})),e}function TK(e,t,n,r){const i=JSON.parse(t),a=Object.keys(i);return i._enum?wK(e,i._enum,r,i._fallback):i._set?SK(e,i._set,i._fallback):(e.alias=i._alias?new Map(Object.entries(i._alias)):void 0,e.fallbackType=i._fallback,e.sub=a.filter(s=>!xK.includes(s)).map(s=>Yi(XP(i[s]),{name:s},r)),e)}function kK(e,t,n,r){const i=t.length-1;let a=-1,s=0;for(let d=1;d":s--;break}if(a===-1)throw new Error(`${t}: Unable to extract location of ';'`);const o=t.substring(1,a),[c,l]=t.substring(a+1,i).split(";"),u=parseInt(c.trim(),10);if(u>2048)throw new Error(`${t}: Only support for [Type; ], where length <= 2048`);return e.displayName=l,e.length=u,e.sub=Yi(o,{},r),e}function Ld(e,t,n,r){return e.sub=n.length===0?[]:bK(n).map(i=>Yi(i,{},r)),e}function qP(e,t,n,r){const[i,a]=t.substring(r.length+1,t.length-1).split(","),s=parseInt(i.trim(),10);if(s>8192||s%8)throw new Error(`${t}: Only support for ${r}, where length <= 8192 and a power of 8, found ${s}`);return e.displayName=a,e.length=s,e}function PK(e,t,n){return qP(e,t,n,"Int")}function CK(e,t,n){return qP(e,t,n,"UInt")}function EK(e,t,n){return e.displayName=t.substring(15,t.length-1),e}function uw(e,[t,n]){return e.startsWith(t)&&e.slice(-1*n.length)===n}const _K=[["[","]",F.VecFixed,kK],["{","}",F.Struct,TK],["(",")",F.Tuple,Ld],["BTreeMap<",">",F.BTreeMap,Ld],["HashMap<",">",F.HashMap,Ld],["Int<",">",F.Int,PK],["Result<",">",F.Result,Ld],["UInt<",">",F.UInt,CK],["DoNotConstruct<",">",F.DoNotConstruct,EK]],MK=[["BTreeSet<",">",F.BTreeSet],["Compact<",">",F.Compact],["Linkage<",">",F.Linkage],["Opaque<",">",F.WrapperOpaque],["Option<",">",F.Option],["Range<",">",F.Range],["RangeInclusive<",">",F.RangeInclusive],["Vec<",">",F.Vec],["WrapperKeepOpaque<",">",F.WrapperKeepOpaque],["WrapperOpaque<",">",F.WrapperOpaque]];function dw(e,[t,n]){return e.substring(t.length,e.length-n.length)}function Yi(e,{displayName:t,name:n}={},r=0){const i=wh(e),a={displayName:t,info:F.Plain,name:n,type:i};if(++r>64)throw new Error("getTypeDef: Maximum nested limit reached");const s=_K.find(c=>uw(i,c));if(s)return a.info=s[2],s[3](a,i,dw(i,s),r);const o=MK.find(c=>uw(i,c));return o&&(a.info=o[2],a.sub=Yi(dw(i,o),{},r)),a}function cu({lookupName:e,type:t}){return e||t}function Sh(e){if(!Array.isArray(e.sub))throw new Error(`Expected subtype as TypeDef[] in ${Te(e)}`);return e.sub}function AK(e){if(!e.sub||Array.isArray(e.sub))throw new Error(`Expected subtype as TypeDef in ${Te(e)}`);return e.sub}function GP(e){return cu(AK(e))}function fw(e){const t=Sh(e),n={};for(let r=0,i=t.length;r`);return e.with(n,t)}function pw(e,t){const[n,r]=iy(t);return e.with(n,r)}function ns(e,t){return e.with(GP(t))}const VK={[F.BTreeMap]:(e,t)=>pw(U2,t),[F.BTreeSet]:(e,t)=>ns(F2,t),[F.Compact]:(e,t)=>ns(su,t),[F.DoNotConstruct]:(e,t)=>Bp.with(t.displayName||t.type),[F.Enum]:(e,t)=>{const n=Sh(t);return kr.with(n.every(({type:r})=>r==="Null")?n.reduce((r,{index:i,name:a},s)=>{if(!a)throw new Error("No name found in sub definition");return r[a]=i||s,r},{}):fw(t))},[F.HashMap]:(e,t)=>pw(W2,t),[F.Int]:(e,t)=>hw(Zi,t),[F.Linkage]:(e,t)=>{const n=`Option<${GP(t)}>`,r=en.with({previous:n,next:n});return r.prototype.toRawType=function(){return`Linkage<${this.next.toRawType(!0)}>`},r},[F.Null]:(e,t)=>li,[F.Option]:(e,t)=>{if(!t.sub||Array.isArray(t.sub))throw new Error("Expected type information for Option");return ns(Wa,t)},[F.Plain]:(e,t)=>e.getOrUnknown(t.type),[F.Range]:(e,t)=>ns(Hp,t),[F.RangeInclusive]:(e,t)=>ns(X2,t),[F.Result]:(e,t)=>{const[n,r]=iy(t);return H2.with({Err:r,Ok:n})},[F.Set]:(e,t)=>G2.with(Sh(t).reduce((n,{index:r,name:i})=>{if(!i||!Oe(r))throw new Error("No name found in sub definition");return n[i]=r,n},{}),t.length),[F.Si]:(e,t)=>ZP(e,e.lookup.getTypeDef(t.type)),[F.Struct]:(e,t)=>en.with(fw(t),t.alias),[F.Tuple]:(e,t)=>Sc.with(iy(t)),[F.UInt]:(e,t)=>hw(Ki,t),[F.Vec]:(e,{sub:t})=>{if(!t||Array.isArray(t))throw new Error("Expected type information for vector");return t.type==="u8"?Dp:z2.with(cu(t))},[F.VecFixed]:(e,{displayName:t,length:n,sub:r})=>{if(!Oe(n)||!r||Array.isArray(r))throw new Error("Expected length & type information for fixed vector");return r.type==="u8"?Ja.with(n*8,t):j2.with(cu(r),n)},[F.WrapperKeepOpaque]:(e,t)=>ns(zp,t),[F.WrapperOpaque]:(e,t)=>ns(q2,t)};function NK(e,t){try{const n=VK[t.info](e,t);if(!n)throw new Error("No class created");return!n.__fallbackType&&t.fallbackType&&(n.__fallbackType=t.fallbackType),n}catch(n){throw new Error(`Unable to construct class from ${Te(t)}: ${n.message}`)}}function ZP(e,t){return e.getUnsafe(t.type,!1,t)}function Tl(e,t){return e.getUnsafe(t)||ZP(e,e.isLookupType(t)?e.lookup.getTypeDef(t):Yi(t))}function mw(e,t){const n=e.toU8a(),r=e.toRawType();if(!(j6(n,t)||["Bytes","Text","Type"].includes(r)&&t.length===e.length||e.isEmpty&&t.every(a=>!a)))throw new Error(`${r}:: Decoded input doesn't match input, received ${we(t,512)} (${t.length} bytes), created ${we(n,512)} (${n.length} bytes)`)}function OK(e,[t]){me(t)?mw(e,t):Ne(t)&&mw(e,fe(t))}function gw(e,t,n=[],{blockHash:r,isFallback:i,isOptional:a,isPedantic:s}={}){const o=new(a?Wa.with(t):t)(e,...n);return s&&OK(o,n),r&&(o.createdAtHash=ay(e,"BlockHash",[r])),i&&(o.isStorageFallback=!0),o}function ay(e,t,n=[],r={}){let i=null,a=null;try{return i=Tl(e,t),gw(e,i,n,r)}catch(s){a=new Error(`createType(${t}):: ${s.message}`)}if(i!=null&&i.__fallbackType)try{return i=Tl(e,i.__fallbackType),gw(e,i,n,r)}catch{}throw a}const IK=e=>e.toString(),RK=["BTreeMap","BTreeSet","Compact","HashMap","Option","Result","Vec"];function LK(e,t,n=IK){return`${e}${t?`<${(Array.isArray(t)?t:[t]).map(n).join(", ")}>`:""}`}function sr(e,t,n){const{info:r,sub:i}=t;switch(r){case F.BTreeMap:case F.BTreeSet:case F.Compact:case F.HashMap:case F.Linkage:case F.Option:case F.Range:case F.RangeInclusive:case F.Result:case F.Vec:case F.WrapperKeepOpaque:case F.WrapperOpaque:return LK(n,i,a=>Z2(e,a))}throw new Error(`Unable to encode ${Te(t)} with params`)}function yw(e,t,n,r){const i=t.map(({name:s})=>s);if(!i.every(s=>!!s))throw new Error(`Subtypes does not have consistent names, ${i.join(", ")}`);const a=$({},r);for(let s=0,o=t.length;ssr(e,t,"BTreeMap"),[F.BTreeSet]:(e,t)=>sr(e,t,"BTreeSet"),[F.Compact]:(e,t)=>sr(e,t,"Compact"),[F.DoNotConstruct]:(e,{displayName:t,lookupIndex:n,lookupName:r})=>`DoNotConstruct<${r||t||(it(n)?"Unknown":e.createLookupType(n))}>`,[F.Enum]:(e,{sub:t})=>{if(!Array.isArray(t))throw new Error("Unable to encode Enum type");return t.every(({type:n})=>n==="Null")?Te({_enum:t.map(({name:n},r)=>`${n||`Empty${r}`}`)}):yw(e,t,!0)},[F.HashMap]:(e,t)=>sr(e,t,"HashMap"),[F.Int]:(e,{length:t=32})=>`Int<${t}>`,[F.Linkage]:(e,t)=>sr(e,t,"Linkage"),[F.Null]:(e,t)=>"Null",[F.Option]:(e,t)=>sr(e,t,"Option"),[F.Plain]:(e,{displayName:t,type:n})=>t||n,[F.Range]:(e,t)=>sr(e,t,"Range"),[F.RangeInclusive]:(e,t)=>sr(e,t,"RangeInclusive"),[F.Result]:(e,t)=>sr(e,t,"Result"),[F.Set]:(e,{length:t=8,sub:n})=>{if(!Array.isArray(n))throw new Error("Unable to encode Set type");return Te({_set:n.reduce((r,{index:i,name:a},s)=>$(r,{[`${a||`Unknown${i||s}`}`]:i||s}),{_bitLength:t||8})})},[F.Si]:(e,{lookupName:t,type:n})=>t||n,[F.Struct]:(e,{alias:t,sub:n})=>{if(!Array.isArray(n))throw new Error("Unable to encode Struct type");return yw(e,n,!1,t?{_alias:[...t.entries()].reduce((r,[i,a])=>$(r,{[i]:a}),{})}:{})},[F.Tuple]:(e,{sub:t})=>{if(!Array.isArray(t))throw new Error("Unable to encode Tuple type");return`(${t.map(n=>Z2(e,n)).join(",")})`},[F.UInt]:(e,{length:t=32})=>`UInt<${t}>`,[F.Vec]:(e,t)=>sr(e,t,"Vec"),[F.VecFixed]:(e,{length:t,sub:n})=>{if(!Oe(t)||!n||Array.isArray(n))throw new Error("Unable to encode VecFixed type");return`[${n.type};${t}]`},[F.WrapperKeepOpaque]:(e,t)=>sr(e,t,"WrapperKeepOpaque"),[F.WrapperOpaque]:(e,t)=>sr(e,t,"WrapperOpaque")};function KP(e,t,n=!0){return n&&t.lookupName?t.lookupName:BK[t.info](e,t)}function Z2(e,t){return t.displayName&&!RK.some(n=>t.displayName===n)?t.displayName:KP(e,t)}function zn(e,t){return $({},t,{type:KP(e,t,!1)})}const DK=["AssetInstance","Fungibility","Junction","Junctions","MultiAsset","MultiAssetFilter","MultiLocation","Response","WildFungibility","WildMultiAsset","Xcm","XcmError","XcmOrder"];function Kn(e){return DK.reduce((t,n)=>$(t,{[n]:`${n}${e}`}),{})}const HK={FungibilityV0:"FungibilityV1",WildFungibilityV0:"WildFungibilityV1",AssetInstanceV0:{_enum:{Undefined:"Null",Index8:"u8",Index16:"Compact",Index32:"Compact",Index64:"Compact",Index128:"Compact",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Vec"}},JunctionV0:{_enum:{Parent:"Null",Parachain:"Compact",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:{id:"BodyId",part:"BodyPart"}}},MultiAssetV0:{_enum:{None:"Null",All:"Null",AllFungible:"Null",AllNonFungible:"Null",AllAbstractFungible:"Vec",AllAbstractNonFungible:"Vec",AllConcreteFungible:"MultiLocationV0",AllConcreteNonFungible:"MultiLocationV0",AbstractFungible:{id:"Vec",instance:"Compact"},AbstractNonFungible:{class:"Vec",instance:"AssetInstanceV0"},ConcreteFungible:{id:"MultiLocationV0",amount:"Compact"},ConcreteNonFungible:{class:"MultiLocationV0",instance:"AssetInstanceV0"}}},MultiLocationV0:{_enum:{Here:"Null",X1:"JunctionV0",X2:"(JunctionV0, JunctionV0)",X3:"(JunctionV0, JunctionV0, JunctionV0)",X4:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X5:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X6:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X7:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)",X8:"(JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0, JunctionV0)"}},OriginKindV0:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},ResponseV0:{_enum:{Assets:"Vec"}},XcmV0:{_enum:{WithdrawAsset:{assets:"Vec",effects:"Vec"},ReserveAssetDeposit:{assets:"Vec",effects:"Vec"},ReceiveTeleportedAsset:{assets:"Vec",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"ResponseV0"},TransferAsset:{assets:"Vec",dest:"MultiLocationV0"},TransferReserveAsset:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"MultiLocationV0",message:"XcmV0"}}},XcmErrorV0:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",SendFailed:"Null",CannotReachDestination:"(MultiLocation, Xcm)",MultiLocationFull:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",RecursionLimitReached:"Null"}},XcmOrderV0:{_enum:{Null:"Null",DepositAsset:{assets:"Vec",dest:"MultiLocationV0"},DepositReserveAsset:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},ExchangeAsset:{give:"Vec",receive:"Vec"},InitiateReserveWithdraw:{assets:"Vec",reserve:"MultiLocationV0",effects:"Vec"},InitiateTeleport:{assets:"Vec",dest:"MultiLocationV0",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"MultiLocationV0",assets:"Vec"},BuyExecution:{fees:"MultiAssetV0",weight:"u64",debt:"u64",haltOnError:"bool",xcm:"Vec"}}}},zK={AssetInstanceV1:{_enum:{Undefined:"Null",Index:"Compact",Array4:"[u8; 4]",Array8:"[u8; 8]",Array16:"[u8; 16]",Array32:"[u8; 32]",Blob:"Bytes"}},FungibilityV1:{_enum:{Fungible:"Compact",NonFungible:"AssetInstanceV1"}},JunctionV1:{_enum:{Parachain:"Compact",AccountId32:{network:"NetworkId",id:"AccountId"},AccountIndex64:{network:"NetworkId",index:"Compact"},AccountKey20:{network:"NetworkId",key:"[u8; 20]"},PalletInstance:"u8",GeneralIndex:"Compact",GeneralKey:"Vec",OnlyChild:"Null",Plurality:{id:"BodyId",part:"BodyPart"}}},JunctionsV1:{_enum:{Here:"Null",X1:"JunctionV1",X2:"(JunctionV1, JunctionV1)",X3:"(JunctionV1, JunctionV1, JunctionV1)",X4:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X5:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X6:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X7:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)",X8:"(JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1, JunctionV1)"}},MultiAssetsV1:"Vec",MultiAssetV1:{id:"XcmAssetId",fungibility:"FungibilityV1"},MultiAssetFilterV1:{_enum:{Definite:"MultiAssetsV1",Wild:"WildMultiAssetV1"}},MultiLocationV1:{parents:"u8",interior:"JunctionsV1"},OriginKindV1:"OriginKindV0",ResponseV1:{_enum:{Assets:"MultiAssetsV1"}},WildFungibilityV1:{_enum:["Fungible","NonFungible"]},WildMultiAssetV1:{_enum:{All:"Null",AllOf:{id:"XcmAssetId",fungibility:"WildFungibilityV1"}}},XcmV1:{_enum:{WithdrawAsset:{assets:"MultiAssetsV1",effects:"Vec"},ReserveAssetDeposit:{assets:"MultiAssetsV1",effects:"Vec"},ReceiveTeleportedAsset:{assets:"MultiAssetsV1",effects:"Vec"},QueryResponse:{queryId:"Compact",response:"ResponseV1"},TransferAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1"},TransferReserveAsset:{assets:"MultiAssetsV1",dest:"MultiLocationV1",effects:"Vec"},Transact:{originType:"XcmOriginKind",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},RelayedFrom:{who:"MultiLocationV1",message:"XcmV1"}}},XcmErrorV1:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",SendFailed:"Null",CannotReachDestination:"(MultiLocationV1, XcmV1)",MultiLocationFull:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",DestinationUnsupported:"Null",RecursionLimitReached:"Null"}},XcmOrderV1:{_enum:{Noop:"Null",DepositAsset:{assets:"MultiAssetFilterV1",maxAssets:"u32",beneficiary:"MultiLocationV1"},DepositReserveAsset:{assets:"MultiAssetFilterV1",maxAssets:"u32",dest:"MultiLocationV1",effects:"Vec"},ExchangeAsset:{give:"MultiAssetFilterV1",receive:"MultiAssetsV1"},InitiateReserveWithdraw:{assets:"MultiAssetFilterV1",reserve:"MultiLocationV1",effects:"Vec"},InitiateTeleport:{assets:"MultiAssetFilterV1",dest:"MultiLocationV1",effects:"Vec"},QueryHolding:{queryId:"Compact",dest:"MultiLocationV1",assets:"MultiAssetFilterV1"},BuyExecution:{fees:"MultiAssetV1",weight:"u64",debt:"u64",haltOnError:"bool",instructions:"Vec"}}}},jK={AssetInstanceV2:"AssetInstanceV1",FungibilityV2:"FungibilityV1",JunctionV2:"JunctionV1",JunctionsV2:"JunctionsV1",MultiAssetsV2:"MultiAssetsV1",MultiAssetV2:"MultiAssetV1",MultiAssetFilterV2:"MultiAssetFilterV1",MultiLocationV2:"MultiLocationV1",OriginKindV2:"OriginKindV1",WildFungibilityV2:"WildFungibilityV1",ResponseV2:{_enum:{Null:"Null",Assets:"MultiAssetsV2",ExecutionResult:"ResponseV2Result"}},ResponseV2Error:"(u32, XcmErrorV2)",ResponseV2Result:"Result",WeightLimitV2:{_enum:{Unlimited:"Null",Limited:"Compact"}},InstructionV2:{_enum:{WithdrawAsset:"MultiAssetsV2",ReserveAssetDeposited:"MultiAssetsV2",ReceiveTeleportedAsset:"MultiAssetsV2",QueryResponse:{queryId:"Compact",response:"ResponseV2",maxWeight:"Compact"},TransferAsset:{assets:"MultiAssetsV2",beneficiary:"MultiLocationV2"},TransferReserveAsset:{assets:"MultiAssetsV2",dest:"MultiLocationV2",xcm:"XcmV2"},Transact:{originType:"OriginKindV2",requireWeightAtMost:"u64",call:"DoubleEncodedCall"},HrmpNewChannelOpenRequest:{sender:"Compact",maxMessageSize:"Compact",maxCapacity:"Compact"},HrmpChannelAccepted:{recipient:"Compact"},HrmpChannelClosing:{initiator:"Compact",sender:"Compact",recipient:"Compact"},ClearOrigin:"Null",DescendOrigin:"InteriorMultiLocation",ReportError:{queryId:"Compact",dest:"MultiLocationV2",maxResponseWeight:"Compact"},DepositAsset:{assets:"MultiAssetFilterV2",maxAssets:"u32",beneficiary:"MultiLocationV2"},DepositReserveAsset:{assets:"MultiAssetFilterV2",maxAssets:"u32",dest:"MultiLocationV2",xcm:"XcmV2"},ExchangeAsset:{give:"MultiAssetFilterV2",receive:"MultiAssetsV2"},InitiateReserveWithdraw:{assets:"MultiAssetFilterV2",reserve:"MultiLocationV2",xcm:"XcmV2"},InitiateTeleport:{assets:"MultiAssetFilterV2",dest:"MultiLocationV2",xcm:"XcmV2"},QueryHolding:{query_id:"Compact",dest:"MultiLocationV2",assets:"MultiAssetFilterV2",maxResponse_Weight:"Compact"},BuyExecution:{fees:"MultiAssetV2",weightLimit:"WeightLimitV2"},RefundSurplus:"Null",SetErrorHandler:"XcmV2",SetAppendix:"XcmV2",ClearError:"Null",ClaimAsset:{assets:"MultiAssetsV2",ticket:"MultiLocationV2"},Trap:"u64"}},WildMultiAssetV2:"WildMultiAssetV1",XcmV2:"Vec",XcmErrorV2:{_enum:{Undefined:"Null",Overflow:"Null",Unimplemented:"Null",UnhandledXcmVersion:"Null",UnhandledXcmMessage:"Null",UnhandledEffect:"Null",EscalationOfPrivilege:"Null",UntrustedReserveLocation:"Null",UntrustedTeleportLocation:"Null",DestinationBufferOverflow:"Null",MultiLocationFull:"Null",MultiLocationNotInvertible:"Null",FailedToDecode:"Null",BadOrigin:"Null",ExceedsMaxMessageSize:"Null",FailedToTransactAsset:"Null",WeightLimitReached:"Weight",Wildcard:"Null",TooMuchWeightRequired:"Null",NotHoldingFees:"Null",WeightNotComputable:"Null",Barrier:"Null",NotWithdrawable:"Null",LocationCannotHold:"Null",TooExpensive:"Null",AssetNotFound:"Null",DestinationUnsupported:"Null",RecursionLimitReached:"Null",Transport:"Null",Unroutable:"Null",UnknownWeightRequired:"Null",Trap:"u64",UnknownClaim:"Null",InvalidLocation:"Null"}},XcmOrderV2:"XcmOrderV1"},UK="V2",FK={XcmOrigin:{_enum:{Xcm:"MultiLocation"}},XcmpMessageFormat:{_enum:["ConcatenatedVersionedXcm","ConcatenatedEncodedBlob","Signals"]},XcmAssetId:{_enum:{Concrete:"MultiLocation",Abstract:"Bytes"}},InboundStatus:{_enum:["Ok","Suspended"]},OutboundStatus:{_enum:["Ok","Suspended"]},MultiAssets:"Vec"},WK={BodyId:{_enum:{Unit:"Null",Named:"Vec",Index:"Compact",Executive:"Null",Technical:"Null",Legislative:"Null",Judicial:"Null"}},BodyPart:{_enum:{Voice:"Null",Members:"Compact",Fraction:{nom:"Compact",denom:"Compact"},AtLeastProportion:{nom:"Compact",denom:"Compact"},MoreThanProportion:{nom:"Compact",denom:"Compact"}}},InteriorMultiLocation:"Junctions",NetworkId:{_enum:{Any:"Null",Named:"Vec",Polkadot:"Null",Kusama:"Null"}}},XK={rpc:{},types:{...WK,...FK,...HK,...zK,...jK,...Kn(UK),DoubleEncodedCall:{encoded:"Vec"},XcmOriginKind:{_enum:["Native","SovereignAccount","Superuser","Xcm"]},Outcome:{_enum:{Complete:"Weight",Incomplete:"(Weight, XcmErrorV0)",Error:"XcmErrorV0"}},QueryId:"u64",QueryStatus:{_enum:{Pending:{responder:"VersionedMultiLocation",maybeNotify:"Option<(u8, u8)>",timeout:"BlockNumber"},Ready:{response:"VersionedResponse",at:"BlockNumber"}}},QueueConfigData:{suspendThreshold:"u32",dropThreshold:"u32",resumeThreshold:"u32",thresholdWeight:"Weight",weightRestrictDecay:"Weight"},VersionMigrationStage:{_enum:{MigrateSupportedVersion:"Null",MigrateVersionNotifiers:"Null",NotifyCurrentTargets:"Option",MigrateAndNotifyOldTargets:"Null"}},VersionedMultiAsset:{_enum:{V0:"MultiAssetV0",V1:"MultiAssetV1",V2:"MultiAssetV2"}},VersionedMultiAssets:{_enum:{V0:"Vec",V1:"MultiAssetsV1",V2:"MultiAssetsV2"}},VersionedMultiLocation:{_enum:{V0:"MultiLocationV0",V1:"MultiLocationV1",V2:"MultiLocationV2"}},VersionedResponse:{V0:"ResponseV0",V1:"ResponseV1",V2:"ResponseV2"},VersionedXcm:{_enum:{V0:"XcmV0",V1:"XcmV1",V2:"XcmV2"}},XcmVersion:"u32"}},qK={ContractCryptoHasher:{_enum:["Blake2x256","Sha2x256","Keccak256"]},ContractDiscriminant:"u32",ContractLayoutArray:{offset:"ContractLayoutKey",len:"u32",cellsPerElem:"u64",layout:"ContractStorageLayout"},ContractLayoutCell:{key:"ContractLayoutKey",ty:"SiLookupTypeId"},ContractLayoutEnum:{dispatchKey:"ContractLayoutKey",variants:"BTreeMap"},ContractLayoutHash:{offset:"ContractLayoutKey",strategy:"ContractLayoutHashingStrategy",layout:"ContractStorageLayout"},ContractLayoutHashingStrategy:{hasher:"ContractCryptoHasher",postfix:"Vec",prefix:"Vec"},ContractLayoutKey:"[u8; 32]",ContractLayoutStruct:{fields:"Vec"},ContractLayoutStructField:{layout:"ContractStorageLayout",name:"Text"},ContractStorageLayout:{_enum:{Cell:"ContractLayoutCell",Hash:"ContractLayoutHash",Array:"ContractLayoutArray",Struct:"ContractLayoutStruct",Enum:"ContractLayoutEnum"}}},GK={ContractConstructorSpecV0:{name:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV1:{name:"Vec",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV2:{label:"Text",selector:"ContractSelector",args:"Vec",docs:"Vec"},ContractConstructorSpecV3:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec"},ContractConstructorSpecV4:{label:"Text",selector:"ContractSelector",payable:"bool",args:"Vec",docs:"Vec",default:"bool",returnType:"Option"},ContractContractSpecV0:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV1:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV2:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV3:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec"},ContractContractSpecV4:{constructors:"Vec",messages:"Vec",events:"Vec",docs:"Vec",environment:"ContractEnvironmentV4"},ContractDisplayName:"SiPath",ContractEventParamSpecV0:{name:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventParamSpecV2:{label:"Text",indexed:"bool",type:"ContractTypeSpec",docs:"Vec"},ContractEventSpecV0:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV1:{name:"Text",args:"Vec",docs:"Vec"},ContractEventSpecV2:{label:"Text",args:"Vec",docs:"Vec"},ContractMessageParamSpecV0:{name:"Text",type:"ContractTypeSpec"},ContractMessageParamSpecV2:{label:"Text",type:"ContractTypeSpec"},ContractMessageSpecV0:{name:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV1:{name:"Vec",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV2:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec"},ContractMessageSpecV3:{label:"Text",selector:"ContractSelector",mutates:"bool",payable:"bool",args:"Vec",returnType:"Option",docs:"Vec",default:"bool"},ContractSelector:"[u8; 4]",ContractTypeSpec:{type:"SiLookupTypeId",displayName:"ContractDisplayName"}},ZK={ContractConstructorSpecLatest:"ContractConstructorSpecV4",ContractEventSpecLatest:"ContractEventSpecV2",ContractEventParamSpecLatest:"ContractEventParamSpecV2",ContractMessageParamSpecLatest:"ContractMessageParamSpecV2",ContractMessageSpecLatest:"ContractMessageSpecV3",ContractMetadataLatest:"ContractMetadataV4"},KK={rpc:{},types:{...qK,...GK,...ZK,ContractProjectInfo:{source:"ContractProjectSource",contract:"ContractProjectContract"},ContractMetadataV0:{metadataVersion:"Text",types:"Vec",spec:"ContractContractSpecV0"},ContractMetadataV1:{types:"Vec",spec:"ContractContractSpecV1"},ContractMetadataV2:{types:"Vec",spec:"ContractContractSpecV2"},ContractMetadataV3:{types:"Vec",spec:"ContractContractSpecV3"},ContractMetadataV4:{types:"Vec",spec:"ContractContractSpecV4"},ContractMetadata:{_enum:{V0:"ContractMetadataV0",V1:"ContractMetadataV1",V2:"ContractMetadataV2",V3:"ContractMetadataV3",V4:"ContractMetadataV4"}},ContractProjectV0:{metadataVersion:"Text",source:"ContractProjectSource",contract:"ContractProjectContract",types:"Vec",spec:"ContractContractSpecV0"},ContractProject:"(ContractProjectInfo, ContractMetadata)",ContractProjectContract:{_alias:{docs:"documentation"},name:"Text",version:"Text",authors:"Vec",description:"Option",docs:"Option",repository:"Option",homepage:"Option",license:"Option"},ContractProjectSource:{_alias:{wasmHash:"hash"},wasmHash:"[u8; 32]",language:"Text",compiler:"Text",wasm:"Raw"},ContractEnvironmentV4:{_alias:{hashType:"hash"},accountId:"Option",balance:"Option",blockNumber:"Option",hashType:"Option",timestamp:"Option",maxEventTopics:"Option"}}},YK={listening:{aliasSection:"net",description:"Returns true if client is actively listening for network connections. Otherwise false.",params:[],type:"bool"},peerCount:{aliasSection:"net",description:"Returns number of peers connected to node.",params:[],type:"Text"},version:{aliasSection:"net",description:"Returns protocol version.",params:[],type:"Text"}},JK={clientVersion:{aliasSection:"web3",description:"Returns current client version.",params:[],type:"Text"},sha3:{aliasSection:"web3",description:"Returns sha3 of the given data",params:[{name:"data",type:"Bytes"}],type:"H256"}},QK={...YK,...JK,accounts:{description:"Returns accounts list.",params:[],type:"Vec"},blockNumber:{description:"Returns the blockNumber",params:[],type:"U256"},call:{description:"Call contract, returning the output data.",params:[{name:"request",type:"EthCallRequest"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"Bytes"},chainId:{description:"Returns the chain ID used for transaction signing at the current best block. None is returned if not available.",params:[],type:"U64"},coinbase:{description:"Returns block author.",params:[],type:"H160"},estimateGas:{description:"Estimate gas needed for execution of given contract.",params:[{name:"request",type:"EthCallRequest"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},feeHistory:{description:"Returns fee history for given block count & reward percentiles",params:[{name:"blockCount",type:"U256"},{name:"newestBlock",type:"BlockNumber"},{name:"rewardPercentiles",type:"Option>"}],type:"EthFeeHistory"},gasPrice:{description:"Returns current gas price.",params:[],type:"U256"},getBalance:{description:"Returns balance of the given account.",params:[{name:"address",type:"H160"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},getBlockByHash:{description:"Returns block with given hash.",params:[{name:"hash",type:"H256"},{name:"full",type:"bool"}],type:"Option"},getBlockByNumber:{description:"Returns block with given number.",params:[{name:"block",type:"BlockNumber"},{name:"full",type:"bool"}],type:"Option"},getBlockTransactionCountByHash:{description:"Returns the number of transactions in a block with given hash.",params:[{name:"hash",type:"H256"}],type:"U256"},getBlockTransactionCountByNumber:{description:"Returns the number of transactions in a block with given block number.",params:[{name:"block",type:"BlockNumber"}],type:"U256"},getCode:{description:"Returns the code at given address at given time (block number).",params:[{name:"address",type:"H160"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"Bytes"},getFilterChanges:{description:"Returns filter changes since last poll.",params:[{name:"index",type:"U256"}],type:"EthFilterChanges"},getFilterLogs:{description:"Returns all logs matching given filter (in a range 'from' - 'to').",params:[{name:"index",type:"U256"}],type:"Vec"},getLogs:{description:"Returns logs matching given filter object.",params:[{name:"filter",type:"EthFilter"}],type:"Vec"},getProof:{description:"Returns proof for account and storage.",params:[{name:"address",type:"H160"},{name:"storageKeys",type:"Vec"},{name:"number",type:"BlockNumber"}],type:"EthAccount"},getStorageAt:{description:"Returns content of the storage at given address.",params:[{name:"address",type:"H160"},{name:"index",type:"U256"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"H256"},getTransactionByBlockHashAndIndex:{description:"Returns transaction at given block hash and index.",params:[{name:"hash",type:"H256"},{name:"index",type:"U256"}],type:"EthTransaction"},getTransactionByBlockNumberAndIndex:{description:"Returns transaction by given block number and index.",params:[{name:"number",type:"BlockNumber"},{name:"index",type:"U256"}],type:"EthTransaction"},getTransactionByHash:{description:"Get transaction by its hash.",params:[{name:"hash",type:"H256"}],type:"EthTransaction"},getTransactionCount:{description:"Returns the number of transactions sent from given address at given time (block number).",params:[{name:"address",type:"H160"},{isHistoric:!0,isOptional:!0,name:"number",type:"BlockNumber"}],type:"U256"},getTransactionReceipt:{description:"Returns transaction receipt by transaction hash.",params:[{name:"hash",type:"H256"}],type:"EthReceipt"},getUncleByBlockHashAndIndex:{description:"Returns an uncles at given block and index.",params:[{name:"hash",type:"H256"},{name:"index",type:"U256"}],type:"EthRichBlock"},getUncleByBlockNumberAndIndex:{description:"Returns an uncles at given block and index.",params:[{name:"number",type:"BlockNumber"},{name:"index",type:"U256"}],type:"EthRichBlock"},getUncleCountByBlockHash:{description:"Returns the number of uncles in a block with given hash.",params:[{name:"hash",type:"H256"}],type:"U256"},getUncleCountByBlockNumber:{description:"Returns the number of uncles in a block with given block number.",params:[{name:"number",type:"BlockNumber"}],type:"U256"},getWork:{description:"Returns the hash of the current block, the seedHash, and the boundary condition to be met.",params:[],type:"EthWork"},hashrate:{description:"Returns the number of hashes per second that the node is mining with.",params:[],type:"U256"},maxPriorityFeePerGas:{description:"Returns max priority fee per gas",params:[],type:"U256"},mining:{description:"Returns true if client is actively mining new blocks.",params:[],type:"bool"},newBlockFilter:{description:"Returns id of new block filter.",params:[],type:"U256"},newFilter:{description:"Returns id of new filter.",params:[{name:"filter",type:"EthFilter"}],type:"U256"},newPendingTransactionFilter:{description:"Returns id of new block filter.",params:[],type:"U256"},protocolVersion:{description:"Returns protocol version encoded as a string (quotes are necessary).",params:[],type:"u64"},sendRawTransaction:{description:"Sends signed transaction, returning its hash.",params:[{name:"bytes",type:"Bytes"}],type:"H256"},sendTransaction:{description:"Sends transaction; will block waiting for signer to return the transaction hash",params:[{name:"tx",type:"EthTransactionRequest"}],type:"H256"},submitHashrate:{description:"Used for submitting mining hashrate.",params:[{name:"index",type:"U256"},{name:"hash",type:"H256"}],type:"bool"},submitWork:{description:"Used for submitting a proof-of-work solution.",params:[{name:"nonce",type:"H64"},{name:"headerHash",type:"H256"},{name:"mixDigest",type:"H256"}],type:"bool"},subscribe:{description:"Subscribe to Eth subscription.",params:[{name:"kind",type:"EthSubKind"},{isOptional:!0,name:"params",type:"EthSubParams"}],pubsub:["subscription","subscribe","unsubscribe"],type:"Null"},syncing:{description:"Returns an object with data about the sync status or false.",params:[],type:"EthSyncStatus"},uninstallFilter:{description:"Uninstalls filter.",params:[{name:"index",type:"U256"}],type:"bool"}},bw={account_basic:{description:"Returns pallet_evm::Accounts by address.",params:[{name:"address",type:"H160"}],type:"EvmAccount"},account_code_at:{description:"For a given account address, returns pallet_evm::AccountCodes.",params:[{name:"address",type:"H160"}],type:"Bytes"},author:{description:"Returns the converted FindAuthor::find_author authority id.",params:[],type:"H160"},call:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"to",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},chain_id:{description:"Returns runtime defined pallet_evm::ChainId.",params:[],type:"u64"},create:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},current_all:{description:"Return all the current data for a block in a single runtime call.",params:[],type:"(Option, Option>, Option>)"},current_block:{description:"Return the current block.",params:[],type:"BlockV2"},current_receipts:{description:"Return the current receipt.",params:[],type:"Option>"},current_transaction_statuses:{description:"Return the current transaction status.",params:[],type:"Option>"},elasticity:{description:"Return the elasticity multiplier.",params:[],type:"Option"},extrinsic_filter:{description:"Receives a `Vec` and filters all the ethereum transactions.",params:[{name:"xts",type:"Vec"}],type:"Vec"},gas_price:{description:"Returns FixedGasPrice::min_gas_price",params:[],type:"u256"},storage_at:{description:"For a given account address and index, returns pallet_evm::AccountStorages.",params:[{name:"address",type:"H160"},{name:"index",type:"u256"}],type:"H256"}},$K={call:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"to",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"},create:{description:"Returns a frame_ethereum::call response. If `estimate` is true,",params:[{name:"from",type:"H160"},{name:"data",type:"Vec"},{name:"value",type:"U256"},{name:"gasLimit",type:"U256"},{name:"maxFeePerGas",type:"Option"},{name:"maxPriorityFeePerGas",type:"Option"},{name:"nonce",type:"Option"},{name:"estimate",type:"bool"},{name:"accessList",type:"Option)>>"}],type:"Result"}},eY={ConvertTransactionRuntimeApi:[{methods:{convert_transaction:{description:"Converts an Ethereum-style transaction to Extrinsic",params:[{name:"transaction",type:"TransactionV2"}],type:"Extrinsic"}},version:2}],DebugRuntimeApi:[{methods:{trace_block:{description:"Trace all block extrinsics",params:[{name:"extrinsics",type:"Vec"},{name:"knownTransactions",type:"Vec"}],type:"Result<(), DispatchError>"},trace_transaction:{description:"Trace transaction extrinsics",params:[{name:"extrinsics",type:"Vec"},{name:"transaction",type:"EthTransaction"}],type:"Result<(), DispatchError>"}},version:4}],EthereumRuntimeRPCApi:[{methods:{...bw},version:4},{methods:{...bw,...$K},version:5}]},tY={BlockV0:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},LegacyTransaction:{nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",signature:"EthTransactionSignature"},TransactionV0:"LegacyTransaction"},nY={BlockV1:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},EIP2930Transaction:{chainId:"u64",nonce:"U256",gasPrice:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},TransactionV1:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction"}}},rY={BlockV2:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},EIP1559Transaction:{chainId:"u64",nonce:"U256",maxPriorityFeePerGas:"U256",maxFeePerGas:"U256",gasLimit:"U256",action:"EthTransactionAction",value:"U256",input:"Bytes",accessList:"EthAccessList",oddYParity:"bool",r:"H256",s:"H256"},TransactionV2:{_enum:{Legacy:"LegacyTransaction",EIP2930:"EIP2930Transaction",EIP1559:"EIP1559Transaction"}}},iY={...tY,...nY,...rY,EthereumAccountId:"GenericEthereumAccountId",EthereumAddress:"GenericEthereumAccountId",EthereumLookupSource:"GenericEthereumLookupSource",EthereumSignature:"[u8; 65]",EthAccessListItem:{address:"EthAddress",slots:"Vec"},EthAccessList:"Vec",EthAccount:{address:"EthAddress",balance:"U256",nonce:"U256",codeHash:"H256",storageHash:"H256",accountProof:"Vec",storageProof:"Vec"},EthAddress:"H160",EthBlock:{header:"EthHeader",transactions:"Vec",ommers:"Vec"},EthHeader:{parentHash:"H256",ommersHash:"H256",beneficiary:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",logsBloom:"EthBloom",difficulty:"U256",number:"U256",gasLimit:"U256",gasUsed:"U256",timestamp:"u64",extraData:"Bytes",mixMash:"H256",nonce:"H64"},EthRichBlock:{_alias:{blockHash:"hash",blockSize:"size"},blockHash:"Option",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",totalDifficulty:"Option",sealFields:"Vec",uncles:"Vec",transactions:"Vec",blockSize:"Option"},EthBloom:"H2048",EthCallRequest:{from:"Option",to:"Option",gasPrice:"Option",gas:"Option",value:"Option",data:"Option",nonce:"Option"},EthFeeHistory:{oldestBlock:"U256",baseFeePerGas:"Vec",gasUsedRatio:"Vec",reward:"Option>>"},EthFilter:{fromBlock:"Option",toBlock:"Option",blockHash:"Option",address:"Option",topics:"Option"},EthFilterAddress:{_enum:{Single:"EthAddress",Multiple:"Vec",Null:"Null"}},EthFilterChanges:{_enum:{Logs:"Vec",Hashes:"Vec",Empty:"Null"}},EthFilterTopic:{_enum:{Single:"EthFilterTopicInner",Multiple:"Vec",Null:"Null"}},EthFilterTopicEntry:"Option",EthFilterTopicInner:{_enum:{Single:"EthFilterTopicEntry",Multiple:"Vec",Null:"Null"}},EthRichHeader:{_alias:{blockHash:"hash",blockSize:"size"},blockHash:"Option",parentHash:"H256",sha3Uncles:"H256",author:"EthAddress",miner:"EthAddress",stateRoot:"H256",transactionsRoot:"H256",receiptsRoot:"H256",number:"Option",gasUsed:"U256",gasLimit:"U256",extraData:"Bytes",logsBloom:"EthBloom",timestamp:"U256",difficulty:"U256",sealFields:"Vec",blockSize:"Option"},EthLog:{address:"EthAddress",topics:"Vec",data:"Bytes",blockHash:"Option",blockNumber:"Option",transactionHash:"Option",transactionIndex:"Option",logIndex:"Option",transactionLogIndex:"Option",removed:"bool"},EthReceipt:{transactionHash:"Option",transactionIndex:"Option",blockHash:"Option",from:"Option",to:"Option",blockNumber:"Option",cumulativeGasUsed:"U256",gasUsed:"Option",contractAddress:"Option",logs:"Vec",root:"Option",logsBloom:"EthBloom",statusCode:"Option"},EthReceiptV0:"EthReceipt",EthReceiptV3:"EthReceipt",EthStorageProof:{key:"U256",value:"U256",proof:"Vec"},EthSubKind:{_enum:["newHeads","logs","newPendingTransactions","syncing"]},EthSubParams:{_enum:{None:"Null",Logs:"EthFilter"}},EthSubResult:{_enum:{Header:"EthRichHeader",Log:"EthLog",TransactionHash:"H256",SyncState:"EthSyncStatus"}},EthSyncInfo:{startingBlock:"U256",currentBlock:"U256",highestBlock:"U256",warpChunksAmount:"Option",warpChunksProcessed:"Option"},EthSyncStatus:{_enum:{Info:"EthSyncInfo",None:"Null"}},EthTransaction:{hash:"H256",nonce:"U256",blockHash:"Option",blockNumber:"Option",transactionIndex:"Option",from:"H160",to:"Option",value:"U256",gasPrice:"Option",maxFeePerGas:"Option",maxPriorityFeePerGas:"Option",gas:"U256",input:"Bytes",creates:"Option",raw:"Bytes",publicKey:"Option",chainId:"Option",standardV:"U256",v:"U256",r:"U256",s:"U256",accessList:"Option>",transactionType:"Option"},EthTransactionSignature:{v:"u64",r:"H256",s:"H256"},EthTransactionAction:{_enum:{Call:"H160",Create:"Null"}},EthTransactionCondition:{_enum:{block:"u64",time:"u64"}},EthTransactionRequest:{from:"Option",to:"Option",gasPrice:"Option",gas:"Option",value:"Option",data:"Option",nonce:"Option"},EthTransactionStatus:{transactionHash:"H256",transactionIndex:"u32",from:"EthAddress",to:"Option",contractAddress:"Option",logs:"Vec",logsBloom:"EthBloom"},EthWork:{powHash:"H256",seedHash:"H256",target:"H256",number:"Option"}},aY={rpc:QK,runtime:eY,types:iY},sY={AuthorFilterAPI:[{methods:{can_author:{description:"The runtime api used to predict whether an author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"},{name:"parentHeader",type:"Header"}],type:"bool"}},version:2},{methods:{can_author:{description:"The runtime api used to predict whether an author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"}],type:"bool"}},version:1}],NimbusApi:[{methods:{can_author:{description:"The runtime api used to predict whether a Nimbus author will be eligible in the given slot",params:[{name:"author",type:"AccountId"},{name:"relayParent",type:"u32"},{name:"parentHeader",type:"Header"}],type:"bool"}},version:1}]},oY={rpc:{},runtime:sY,types:{}},cY={OracleApi:[{methods:{get_all_values:{description:"Retrieves all values",params:[{name:"providerId",type:"Raw"}],type:"Raw"},get_value:{description:"Retrieves a single value",params:[{name:"providerId",type:"Raw"},{name:"key",type:"Raw"}],type:"Option"}},version:1}]},lY={rpc:{},runtime:cY,types:{}},uY={TokensApi:[{methods:{query_existential_deposit:{description:"Query the existential amount for a specific currency",params:[{name:"currencyId",type:"Raw"}],type:"u128"}},version:1}]},dY={rpc:{},runtime:uY,types:{}},fY={methods:{description:"Retrieves the list of RPC methods that are exposed by the node",params:[],type:"RpcMethods"}},hY={rpc:fY,types:{RpcMethods:{version:"u32",methods:"Vec"}}},pY={hasKey:{description:"Returns true if the keystore has private keys for the given public key and key type.",isUnsafe:!0,params:[{name:"publicKey",type:"Bytes"},{name:"keyType",type:"Text"}],type:"bool"},hasSessionKeys:{description:"Returns true if the keystore has private keys for the given session public keys.",isUnsafe:!0,params:[{name:"sessionKeys",type:"Bytes"}],type:"bool"},insertKey:{description:"Insert a key into the keystore.",isUnsafe:!0,params:[{name:"keyType",type:"Text"},{name:"suri",type:"Text"},{name:"publicKey",type:"Bytes"}],type:"Bytes"},pendingExtrinsics:{description:"Returns all pending extrinsics, potentially grouped by sender",params:[],type:"Vec"},removeExtrinsic:{description:"Remove given extrinsic from the pool and temporarily ban it to prevent reimporting",isUnsafe:!0,params:[{name:"bytesOrHash",type:"Vec"}],type:"Vec"},rotateKeys:{description:"Generate new session keys and returns the corresponding public keys",isUnsafe:!0,params:[],type:"Bytes"},submitAndWatchExtrinsic:{description:"Submit and subscribe to watch an extrinsic until unsubscribed",isSigned:!0,params:[{name:"extrinsic",type:"Extrinsic"}],pubsub:["extrinsicUpdate","submitAndWatchExtrinsic","unwatchExtrinsic"],type:"ExtrinsicStatus"},submitExtrinsic:{description:"Submit a fully formatted extrinsic for block inclusion",isSigned:!0,params:[{name:"extrinsic",type:"Extrinsic"}],type:"Hash"}},mY={rpc:pY,types:{ExtrinsicOrHash:{_enum:{Hash:"Hash",Extrinsic:"Bytes"}},ExtrinsicStatus:{_enum:{Future:"Null",Ready:"Null",Broadcast:"Vec",InBlock:"Hash",Retracted:"Hash",FinalityTimeout:"Hash",Finalized:"Hash",Usurped:"Hash",Dropped:"Null",Invalid:"Null"}}}},gY={getBlock:{description:"Get header and body of a relay chain block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"SignedBlock"},getBlockHash:{description:"Get the block hash for a specific block",params:[{isOptional:!0,name:"blockNumber",type:"BlockNumber"}],type:"BlockHash"},getFinalizedHead:{alias:["chain_getFinalisedHead"],description:"Get hash of the last finalized block in the canon chain",params:[],type:"BlockHash"},getHeader:{alias:["chain_getHead"],description:"Retrieves the header for a specific block",params:[{isHistoric:!0,isOptional:!0,name:"hash",type:"BlockHash"}],type:"Header"},subscribeAllHeads:{description:"Retrieves the newest header via subscription",params:[],pubsub:["allHead","subscribeAllHeads","unsubscribeAllHeads"],type:"Header"},subscribeFinalizedHeads:{alias:["chain_subscribeFinalisedHeads","chain_unsubscribeFinalisedHeads"],description:"Retrieves the best finalized header via subscription",params:[],pubsub:["finalizedHead","subscribeFinalizedHeads","unsubscribeFinalizedHeads"],type:"Header"},subscribeNewHeads:{alias:["chain_unsubscribeNewHeads","subscribe_newHead","unsubscribe_newHead"],description:"Retrieves the best header via subscription",params:[],pubsub:["newHead","subscribeNewHead","unsubscribeNewHead"],type:"Header"}},yY={rpc:gY,types:{BlockHash:"Hash"}},bY={getKeys:{description:"Returns the keys with prefix from a child storage, leave empty to get all the keys",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec"},getKeysPaged:{alias:["childstate_getKeysPagedAt"],description:"Returns the keys with prefix from a child storage with pagination support",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"prefix",type:"StorageKey"},{name:"count",type:"u32"},{isOptional:!0,name:"startKey",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec"},getStorage:{description:"Returns a child storage entry at a specific block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option"},getStorageEntries:{description:"Returns child storage entries for multiple keys at a specific block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Vec>"},getStorageHash:{description:"Returns the hash of a child storage entry at a block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option"},getStorageSize:{description:"Returns the size of a child storage entry at a block state",params:[{name:"childKey",type:"PrefixedStorageKey"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"Hash"}],type:"Option"}},xY={rpc:bY,types:{PrefixedStorageKey:"StorageKey"}},vY={localStorageGet:{description:"Get offchain local storage under given key and prefix",isUnsafe:!0,params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"}],type:"Option"},localStorageSet:{description:"Set offchain local storage under given key and prefix",isUnsafe:!0,params:[{name:"kind",type:"StorageKind"},{name:"key",type:"Bytes"},{name:"value",type:"Bytes"}],type:"Null"}},wY={OffchainWorkerApi:[{methods:{offchain_worker:{description:"Starts the off-chain task for given block header.",params:[{name:"header",type:"Header"}],type:"Null"}},version:2},{methods:{offchain_worker:{description:"Starts the off-chain task for given block header.",params:[{name:"number",type:"BlockNumber"}],type:"Null"}},version:1}]},SY={rpc:vY,runtime:wY,types:{StorageKind:{_enum:{PERSISTENT:1,LOCAL:2}}}},TY={queryFeeDetails:{deprecated:"Use `api.call.transactionPaymentApi.queryFeeDetails` instead",description:"Query the detailed fee of a given encoded extrinsic",params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"FeeDetails"},queryInfo:{deprecated:"Use `api.call.transactionPaymentApi.queryInfo` instead",description:"Retrieves the fee information for an encoded extrinsic",params:[{name:"extrinsic",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"RuntimeDispatchInfoV1"}},Bd={query_fee_details:{description:"The transaction fee details",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"FeeDetails"}},jm={query_call_fee_details:{description:"The call fee details",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"FeeDetails"}},Um={query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},xw={query_call_info:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"}},Fm={query_length_to_fee:{description:"Query the output of the current LengthToFee given some input",params:[{name:"length",type:"u32"}],type:"Balance"},query_weight_to_fee:{description:"Query the output of the current WeightToFee given some input",params:[{name:"weight",type:"Weight"}],type:"Balance"}},kY={TransactionPaymentApi:[{methods:{...Fm,...Um,...Bd},version:4},{methods:{...Fm,...Um,...Bd},version:3},{methods:{...Um,...Bd},version:2},{methods:{query_info:{description:"The transaction info",params:[{name:"uxt",type:"Extrinsic"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"},...Bd},version:1}],TransactionPaymentCallApi:[{methods:{...Fm,...xw,...jm},version:3},{methods:{...xw,...jm},version:2},{methods:{CALL:{description:"The call info",params:[{name:"call",type:"Call"},{name:"len",type:"u32"}],type:"RuntimeDispatchInfo"},...jm},version:1}]},PY={rpc:TY,runtime:kY,types:{FeeDetails:{inclusionFee:"Option"},InclusionFee:{baseFee:"Balance",lenFee:"Balance",adjustedWeightFee:"Balance"},RuntimeDispatchInfo:{weight:"Weight",class:"DispatchClass",partialFee:"Balance"},RuntimeDispatchInfoV1:{weight:"WeightV1",class:"DispatchClass",partialFee:"Balance"},RuntimeDispatchInfoV2:{weight:"WeightV2",class:"DispatchClass",partialFee:"Balance"}}},CY={call:{alias:["state_callAt"],description:"Perform a call to a builtin on the chain",params:[{name:"method",type:"Text"},{name:"data",type:"Bytes"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Bytes"},getChildKeys:{description:"Retrieves the keys with prefix of a specific child storage",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getChildReadProof:{description:"Returns proof of storage for child key entries at a specific block state.",params:[{name:"childStorageKey",type:"PrefixedStorageKey"},{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getChildStorage:{description:"Retrieves the child storage for a key",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getChildStorageHash:{description:"Retrieves the child storage hash",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getChildStorageSize:{description:"Retrieves the child storage size",params:[{name:"childStorageKey",type:"StorageKey"},{name:"childDefinition",type:"StorageKey"},{name:"childType",type:"u32"},{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},getKeys:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Retrieves the keys with a certain prefix",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getKeysPaged:{alias:["state_getKeysPagedAt"],description:"Returns the keys with prefix with pagination support.",params:[{name:"key",type:"StorageKey"},{name:"count",type:"u32"},{isOptional:!0,name:"startKey",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getMetadata:{description:"Returns the runtime metadata",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Metadata"},getPairs:{deprecated:"Use `api.rpc.state.getKeysPaged` to retrieve keys",description:"Returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged)",isUnsafe:!0,params:[{name:"prefix",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},getReadProof:{description:"Returns proof of storage entries at a specific block state",params:[{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"ReadProof"},getRuntimeVersion:{alias:["chain_getRuntimeVersion"],description:"Get the runtime version",params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"RuntimeVersion"},getStorage:{alias:["state_getStorageAt"],description:"Retrieves the storage for a key",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"StorageData"},getStorageHash:{alias:["state_getStorageHashAt"],description:"Retrieves the storage hash",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Hash"},getStorageSize:{alias:["state_getStorageSizeAt"],description:"Retrieves the storage size",params:[{name:"key",type:"StorageKey"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"u64"},queryStorage:{description:"Query historical storage entries (by key) starting from a start block",isUnsafe:!0,params:[{name:"keys",type:"Vec"},{name:"fromBlock",type:"Hash"},{isOptional:!0,name:"toBlock",type:"BlockHash"}],type:"Vec"},queryStorageAt:{description:"Query storage entries (by key) starting at block hash given as the second parameter",params:[{name:"keys",type:"Vec"},{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"Vec"},subscribeRuntimeVersion:{alias:["chain_subscribeRuntimeVersion","chain_unsubscribeRuntimeVersion"],description:"Retrieves the runtime version via subscription",params:[],pubsub:["runtimeVersion","subscribeRuntimeVersion","unsubscribeRuntimeVersion"],type:"RuntimeVersion"},subscribeStorage:{description:"Subscribes to storage changes for the provided keys",params:[{isOptional:!0,name:"keys",type:"Vec"}],pubsub:["storage","subscribeStorage","unsubscribeStorage"],type:"StorageChangeSet"},traceBlock:{description:"Provides a way to trace the re-execution of a single block",isUnsafe:!0,params:[{name:"block",type:"Hash"},{name:"targets",type:"Option"},{name:"storageKeys",type:"Option"},{name:"methods",type:"Option"}],type:"TraceBlockResponse"},trieMigrationStatus:{description:"Check current migration state",isUnsafe:!0,params:[{isHistoric:!0,isOptional:!0,name:"at",type:"BlockHash"}],type:"MigrationStatusResult"}},EY={rpc:CY,types:{ApiId:"[u8; 8]",BlockTrace:{blockHash:"Text",parentHash:"Text",tracingTargets:"Text",storageKeys:"Text",spans:"Vec",events:"Vec"},BlockTraceEvent:{target:"Text",data:"BlockTraceEventData",parentId:"Option"},BlockTraceEventData:{stringValues:"HashMap"},BlockTraceSpan:{id:"u64",parentId:"Option",name:"Text",target:"Text",wasm:"bool"},KeyValueOption:"(StorageKey, Option)",MigrationStatusResult:{topRemainingToMigrate:"u64",childRemainingToMigrate:"u64"},ReadProof:{at:"Hash",proof:"Vec"},RuntimeVersionApi:"(ApiId, u32)",RuntimeVersion:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32",stateVersion:"u8"},RuntimeVersionPre4:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec",transactionVersion:"u32"},RuntimeVersionPre3:{specName:"Text",implName:"Text",authoringVersion:"u32",specVersion:"u32",implVersion:"u32",apis:"Vec"},RuntimeVersionPartial:{specName:"Text",specVersion:"u32",apis:"Vec"},SpecVersion:"u32",StorageChangeSet:{block:"Hash",changes:"Vec"},TraceBlockResponse:{_enum:{TraceError:"TraceError",BlockTrace:"BlockTrace"}},TraceError:{error:"Text"}}},Th=Object.freeze(Object.defineProperty({__proto__:null,assetConversion:Mq,assets:Vq,attestations:tZ,aura:Oq,author:mY,authorship:Iq,babe:Bq,balances:Dq,beefy:Uq,benchmark:Wq,blockbuilder:qq,bridges:nZ,chain:yY,childstate:xY,claims:rZ,collective:Gq,consensus:Zq,contracts:Jq,contractsAbi:KK,crowdloan:iZ,cumulus:oZ,democracy:$q,dev:tG,discovery:rG,elections:iG,engine:sG,eth:aY,evm:oG,extrinsics:cG,finality:lZ,fungibles:uG,genericAsset:dG,gilt:fG,grandpa:mG,identity:gG,imOnline:yG,lottery:bG,metadata:wq,mmr:TG,nfts:PG,nimbus:oY,nompools:EG,offchain:SY,offences:_G,ormlOracle:lY,ormlTokens:dY,parachains:bZ,payment:PY,poll:xZ,pow:AG,proxy:VG,purchase:vZ,recovery:NG,rpc:hY,runtime:Pq,scaleInfo:Eq,scheduler:OG,session:LG,society:BG,staking:jG,state:EY,support:UG,syncstate:WG,system:GG,treasury:ZG,txpayment:KG,txqueue:JG,uniques:QG,utility:$G,vesting:eZ,xcm:XK},Symbol.toStringTag,{value:"Module"})),kl={};Object.keys(Th).forEach(e=>Object.entries(Th[e].rpc||{}).forEach(([t,n])=>{const r=n.aliasSection||e;kl[r]||(kl[r]={}),kl[r][t]=$({},n,{isSubscription:!!n.pubsub,jsonrpc:`${r}_${t}`,method:t,section:r})}));const vw=Cr("PortableRegistry"),ww={toNumber:()=>-1},_Y={Char:"u32",Str:"Text"},MY=JP(["sp_core::crypto::AccountId32","sp_runtime::generic::era::Era","sp_runtime::multiaddress::MultiAddress","fp_account::AccountId20","account::AccountId20","polkadot_runtime_common::claims::EthereumAddress","frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight","*_democracy::vote::Vote","*_conviction_voting::vote::Vote","*_identity::types::Data","sp_core::OpaqueMetadata","sp_core::OpaquePeerId","sp_core::offchain::OpaqueMultiaddr","primitive_types::*","sp_arithmetic::per_things::*","*_runtime::RuntimeCall","*_runtime::RuntimeEvent","ink::env::types::*","ink::primitives::types::*","ink_env::types::*","ink_primitives::types::*","np_runtime::accountname::AccountName","np_runtime::universaladdress::UniversalAddress"]),AY=JP(["pallet_identity::types::BitFlags"]),YP=["bitvec::order::Lsb0","BitOrderLsb0"],VY=["bitvec::order::Msb0","BitOrderMsb0"],Sw=[...YP,...VY],NY=["BoundedBTreeMap","BoundedBTreeSet","BoundedVec","Box","BTreeMap","BTreeSet","Cow","Option","Range","RangeInclusive","Result","WeakBoundedVec","WrapperKeepOpaque","WrapperOpaque"],OY=["entries","keys","new","size","hash","registry"],IY=["generic","misc","pallet","traits","types"];function Tw(e){const t=e.length,n=new Array(t);for(let r=0;r{const i=t[r].toString();if(n==="*"||n===i)return!0;if(n.includes("*")&&n.includes("_")&&i.includes("_")){let a=n.split("_"),s=i.split("_");if(a[0]==="*"){const o=s.indexOf(a[1]);o!==-1&&(a=a.slice(1),s=s.slice(o))}return a.length===2&&a[1]==="*"&&a[0]===s[0]?!0:K2(a,s)}return!1})}function RY({def:e,path:t}){return["frame_support::weights::weight_v2::Weight","sp_weights::weight_v2::Weight"].includes(t.join("::"))?!e.isComposite||e.asComposite.fields.length===1?"WeightV1":null:t.length&&MY.some(n=>K2(n,t))?t[t.length-1].toString():null}function QP(e,t,n,r,i=!1){const a=r.length;if(a===0||NY.includes(r[a-1].toString()))return null;const s=new Array(a),o=new Array(a);for(let l=0;l{const{lookupIndex:s,name:o,params:c}=i;if(o){if(r[s])return i}else return null;const l=BY(o,a,n);if(l.length===1||!l.some(y=>c.length!==y.params.length||c.some((v,P)=>!v.name.eq(y.params[P].name)||v.type.unwrapOr(ww).toNumber()!==y.params[P].type.unwrapOr(ww).toNumber())))return i;const d=c.findIndex(({type:y},v)=>l.every(({params:P},S)=>P[v].type.isSome&&(S===0||!P[v].type.eq(y))));if(d===-1)return i;const h=l.length,m=new Array(h);for(let y=0;y!!i).map(({lookupIndex:i,name:a,params:s})=>({lookupIndex:i,name:r[i]||a,params:s}))}function HY(e,t,n,r){if(e.registry.register(t),r.SpRuntimeUncheckedExtrinsic){const[i,,a]=r.SpRuntimeUncheckedExtrinsic,s=e.getSiType(i.type.unwrap()),c=e.getSiType(a.type.unwrap()).path.join("::");let l=s.path.join("::");const u=l==="sp_runtime::multiaddress::MultiAddress";if(u){const[d]=s.params;l=e.getSiType(d.type.unwrap()).path.join("::")}e.registry.register({AccountId:l.endsWith("::AccountId20")||l.endsWith("::H160")?"AccountId20":"AccountId32",Address:u?"MultiAddress":"AccountId",ExtrinsicSignature:["sp_runtime::MultiSignature"].includes(c)?"MultiSignature":n[a.type.unwrap().toNumber()]||"MultiSignature"})}}function zY(e,t){const n=Object.keys(e).some(i=>!i.startsWith("Pallet")),r={};if(e.SpRuntimeUncheckedExtrinsic){const[,{type:i}]=e.SpRuntimeUncheckedExtrinsic;r[i.unwrap().toNumber()]="Call"}else n&&!t&&vw.warn("Unable to determine runtime Call type, cannot inspect sp_runtime::generic::unchecked_extrinsic::UncheckedExtrinsic");if(e.FrameSystemEventRecord){const[{type:i}]=e.FrameSystemEventRecord;r[i.unwrap().toNumber()]="Event"}else n&&!t&&vw.warn("Unable to determine runtime Event type, cannot inspect frame_system::EventRecord");return r}function jY(e,t){const n=[],r={};for(let c=0,l=t.length;c"},r);I(this,"__internal__alias");I(this,"__internal__lookups");I(this,"__internal__names");I(this,"__internal__params");I(this,"__internal__typeDefs",{});I(this,"__internal__types");const{lookups:a,names:s,params:o,types:c}=jY(this,this.types);this.__internal__alias=zY(o,i),this.__internal__lookups=a,this.__internal__names=s,this.__internal__params=o,this.__internal__types=c}get names(){return Object.values(this.__internal__names).sort()}get paramTypes(){return this.__internal__params}get types(){return this.getT("types")}register(){HY(this,this.__internal__lookups,this.__internal__names,this.__internal__params)}getName(n){return this.__internal__names[this.__internal__getLookupId(n)]}getSiType(n){const r=(this.__internal__types||this.types)[this.__internal__getLookupId(n)];if(!r)throw new Error(`PortableRegistry: Unable to find type with lookupId ${n.toString()}`);return r.type}getTypeDef(n){const r=this.__internal__getLookupId(n);if(!this.__internal__typeDefs[r]){const i=this.__internal__names[r],a={info:F.DoNotConstruct,lookupIndex:r,lookupName:i,type:this.registry.createLookupType(r)};i&&(this.__internal__typeDefs[r]=a);const s=this.__internal__extract(this.getSiType(n),r);i||(this.__internal__typeDefs[r]=a),Object.keys(s).forEach(o=>{(o!=="lookupName"||s[o])&&(this.__internal__typeDefs[r][o]=s[o])}),s.info===F.Plain&&(this.__internal__typeDefs[r].lookupNameRoot=this.__internal__typeDefs[r].lookupName,delete this.__internal__typeDefs[r].lookupName)}return this.__internal__typeDefs[r]}sanitizeField(n){let r=null,i=null;return n.isSome&&(r=ze(n.unwrap()),r.includes("#")?(i=r,r=i.replace(/#/g,"_")):OY.includes(r)&&(i=r,r=`${r}_`)),[r,i]}__internal__createSiDef(n){const r=this.getTypeDef(n),i=n.toNumber();return[F.DoNotConstruct,F.Enum,F.Struct].includes(r.info)&&r.lookupName?{docs:r.docs,info:F.Si,lookupIndex:i,lookupName:this.__internal__names[i],type:this.registry.createLookupType(n)}:r}__internal__getLookupId(n){if(Ge(n)){if(!this.registry.isLookupType(n))throw new Error(`PortableRegistry: Expected a lookup string type, found ${n}`);return parseInt(n.replace("Lookup",""),10)}else if(Oe(n))return n;return n.toNumber()}__internal__extract(n,r){const i=n.path.join("::");let a;const s=this.__internal__alias[r]||RY(n);try{if(s)a=this.__internal__extractAliasPath(r,s);else switch(n.def.type){case"Array":a=this.__internal__extractArray(r,n.def.asArray);break;case"BitSequence":a=this.__internal__extractBitSequence(r,n.def.asBitSequence);break;case"Compact":a=this.__internal__extractCompact(r,n.def.asCompact);break;case"Composite":a=this.__internal__extractComposite(r,n,n.def.asComposite);break;case"HistoricMetaCompat":a=this.__internal__extractHistoric(r,n.def.asHistoricMetaCompat);break;case"Primitive":a=this.__internal__extractPrimitive(r,n);break;case"Sequence":a=this.__internal__extractSequence(r,n.def.asSequence);break;case"Tuple":a=this.__internal__extractTuple(r,n.def.asTuple);break;case"Variant":a=this.__internal__extractVariant(r,n,n.def.asVariant);break;default:vR(n.def.type)}}catch(o){throw new Error(`PortableRegistry: ${r}${i?` (${i})`:""}: Error extracting ${Te(n)}: ${o.message}`)}return $({docs:Tw(n.docs),namespace:i},a)}__internal__extractArray(n,{len:r,type:i}){const a=r.toNumber();if(a>2048)throw new Error("Only support for [Type; ], where length <= 2048");return zn(this.registry,{info:F.VecFixed,length:a,sub:this.__internal__createSiDef(i)})}__internal__extractBitSequence(n,{bitOrderType:r,bitStoreType:i}){const a=this.__internal__createSiDef(r),s=this.__internal__createSiDef(i),[o,c]=Sw.includes(a.namespace||"")?[a,s]:[s,a];if(!o.namespace||!Sw.includes(o.namespace))throw new Error(`Unexpected bitOrder found as ${o.namespace||""}`);if(c.info!==F.Plain||c.type!=="u8")throw new Error(`Only u8 bitStore is currently supported, found ${c.type}`);return YP.includes(o.namespace),{info:F.Plain,type:"BitVec"}}__internal__extractCompact(n,{type:r}){return zn(this.registry,{info:F.Compact,sub:this.__internal__createSiDef(r)})}__internal__extractComposite(n,{params:r,path:i},{fields:a}){if(i.length){const s=i[0].toString(),o=i[i.length-1].toString();if(i.length===1&&s==="BTreeMap"){if(r.length!==2)throw new Error(`BTreeMap requires 2 parameters, found ${r.length}`);return zn(this.registry,{info:F.BTreeMap,sub:r.map(({type:c})=>this.__internal__createSiDef(c.unwrap()))})}else if(i.length===1&&s==="BTreeSet"){if(r.length!==1)throw new Error(`BTreeSet requires 1 parameter, found ${r.length}`);return zn(this.registry,{info:F.BTreeSet,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(["Range","RangeInclusive"].includes(s)){if(r.length!==1)throw new Error(`Range requires 1 parameter, found ${r.length}`);return zn(this.registry,{info:s==="Range"?F.Range:F.RangeInclusive,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:s})}else if(["WrapperKeepOpaque","WrapperOpaque"].includes(o)){if(r.length!==1)throw new Error(`WrapperOpaque requires 1 parameter, found ${r.length}`);return zn(this.registry,{info:o==="WrapperKeepOpaque"?F.WrapperKeepOpaque:F.WrapperOpaque,sub:this.__internal__createSiDef(r[0].type.unwrap()),type:o})}}return AY.some(s=>K2(s,i))?this.__internal__extractCompositeSet(n,r,a):this.__internal__extractFields(n,a)}__internal__extractCompositeSet(n,r,i){if(r.length!==1||i.length!==1)throw new Error("Set handling expects param/field as single entries");return zn(this.registry,{info:F.Set,length:this.registry.createTypeUnsafe(this.registry.createLookupType(i[0].type),[]).bitLength(),sub:this.getSiType(r[0].type.unwrap()).def.asVariant.variants.map(({index:a,name:s})=>({index:a.toNumber(),info:F.Plain,name:s.toString(),type:"Null"}))})}__internal__extractFields(n,r){let i=!0,a=!0;const s=r.length;for(let l=0;lthis.__internal__createSiDef(a));return zn(this.registry,{info:F.Tuple,lookupIndex:n,lookupName:this.__internal__names[n],sub:i})}__internal__extractVariant(n,{params:r,path:i},{variants:a}){if(i.length){const s=i[0].toString();if(s==="Option"){if(r.length!==1)throw new Error(`Option requires 1 parameter, found ${r.length}`);return zn(this.registry,{info:F.Option,sub:this.__internal__createSiDef(r[0].type.unwrap())})}else if(s==="Result"){if(r.length!==2)throw new Error(`Result requires 2 parameters, found ${r.length}`);return zn(this.registry,{info:F.Result,sub:r.map(({type:o},c)=>$({name:["Ok","Error"][c]},this.__internal__createSiDef(o.unwrap())))})}}return a.length===0?{info:F.Null,type:"Null"}:this.__internal__extractVariantEnum(n,a)}__internal__extractVariantEnum(n,r){const i=[];return r.slice().sort((a,s)=>a.index.cmp(s.index)).forEach(({fields:a,index:s,name:o})=>{const c=s.toNumber();for(;i.length!==c;)i.push({index:i.length,info:F.Null,name:`__Unused${i.length}`,type:"Null"});i.push($(this.__internal__extractFields(-1,a),{index:c,name:o.toString()}))}),zn(this.registry,{info:F.Enum,lookupIndex:n,lookupName:this.__internal__names[n],sub:i})}}function Y2(e,t=[]){for(let n=0,r=e.length;nn||r))}function Fc(e,{info:t}){throw new Error(`Unhandled: Unable to create and validate type from ${e} (info=${F[t]})`)}const FY={[F.BTreeMap]:rs,[F.BTreeSet]:Yr,[F.Compact]:Yr,[F.DoNotConstruct]:Fc,[F.Enum]:rs,[F.HashMap]:rs,[F.Int]:Fc,[F.Linkage]:Yr,[F.Null]:Fc,[F.Option]:Yr,[F.Plain]:(e,t)=>t.lookupName||t.type,[F.Range]:Yr,[F.RangeInclusive]:Yr,[F.Result]:rs,[F.Set]:rs,[F.Si]:Fc,[F.Struct]:rs,[F.Tuple]:rs,[F.UInt]:Fc,[F.Vec]:Yr,[F.VecFixed]:Yr,[F.WrapperKeepOpaque]:Yr,[F.WrapperOpaque]:Yr};function J2(e){const t=e.length,n=new Array(t);for(let r=0;r!e.hasType(i)&&!e.isLookupType(i)).sort();if(r.length!==0){const i=`Unknown types found, no types for ${r.join(", ")}`;if(t)throw new Error(i);WY.warn(i)}return n}function $P(e,t){return t.map(({type:n})=>e.getTypeDef(n).type)}function Pw(e,t){return e.getSiType(t).def.asVariant.variants.map(({fields:n})=>$P(e,n))}function qY({lookup:e,pallets:t}){return t.reduce((n,{calls:r,constants:i,events:a,storage:s})=>(n.push([$P(e,i)]),r.isSome&&n.push(Pw(e,r.unwrap().type)),a.isSome&&n.push(Pw(e,a.unwrap().type)),s.isSome&&n.push(s.unwrap().items.map(({type:o})=>{if(o.isPlain)return[e.getTypeDef(o.asPlain).type];const{hashers:c,key:l,value:u}=o.asMap;return c.length===1?[e.getTypeDef(u).type,e.getTypeDef(l).type]:[e.getTypeDef(u).type,...e.getSiType(l).def.asTuple.map(d=>e.getTypeDef(d).type)]})),n),[])}function GY(e,t,n){return XY(e,n,Y2(qY(t)))}function ZY(e){const t=e.map(r=>r.toString().trim()),n=t.findIndex(r=>!r.length);return n===-1?t:t.slice(0,n)}function KY(e,{extrinsic:t,lookup:n,pallets:r}){return e.createTypeUnsafe("MetadataLatest",[{extrinsic:t,lookup:{types:n.types.map(({id:i,type:a})=>e.createTypeUnsafe("PortableType",[{id:i,type:$({},a,{docs:ZY(a.docs)})}]))},pallets:r.map(({calls:i,index:a,name:s})=>({calls:e.createTypeUnsafe("Option",[i.unwrapOr(null)]),index:a,name:s}))}]).toJSON()}function YY(e){return e.isPlain?e.asPlain:e.asMap.value}function sy(e,t,n){const r=lu(e.lookup,YY(t));return n?`Option<${r}>`:r}function Tc(e,{type:t},n,r){const i={},a=e.getSiType(t).def.asVariant.variants;for(let s=0,o=a.length;s",assetId:"TAssetConversion"},payload:{}}},Cw={extrinsic:{era:"ExtrinsicEra"},payload:{blockHash:"Hash"}},Ew={extrinsic:{tip:"Compact"},payload:{}},eJ={ChargeTransactionPayment:Ew,CheckBlockGasLimit:mr,CheckEra:Cw,CheckGenesis:{extrinsic:{},payload:{genesisHash:"Hash"}},CheckMortality:Cw,CheckNonZeroSender:mr,CheckNonce:{extrinsic:{nonce:"Compact"},payload:{}},CheckSpecVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckTxVersion:{extrinsic:{},payload:{transactionVersion:"u32"}},CheckVersion:{extrinsic:{},payload:{specVersion:"u32"}},CheckWeight:mr,LockStakingStatus:mr,SkipCheckIfFeeless:Ew,ValidateEquivocationReport:mr},eC=$({},eJ,JY,QY,$Y),Wm=["CheckVersion","CheckGenesis","CheckEra","CheckNonce","CheckWeight","ChargeTransactionPayment","CheckBlockGasLimit"];function tJ(e,t={}){const n=[...Object.keys(eC),...Object.keys(t)];return e.filter(r=>!n.includes(r))}function _w(e,t,n={}){return e.map(r=>n[r]||eC[r]).filter(r=>!!r).reduce((r,i)=>$(r,i[t]),{})}function nJ(e,t){if(!(t!=null&&t.length))return{DataType:li};const n=t.subarray(0,2);return{DataType:e.findMetaEvent(n),value:{data:t.subarray(2),index:n}}}class tC extends Sc{constructor(n,r,i,a="",s=""){const o=(i==null?void 0:i.fields)||[];super(n,o.map(({type:l})=>n.createLookupType(l)),r);I(this,"__internal__meta");I(this,"__internal__method");I(this,"__internal__names",null);I(this,"__internal__section");I(this,"__internal__typeDef");this.__internal__meta=i,this.__internal__method=s,this.__internal__section=a,this.__internal__typeDef=o.map(({type:l})=>n.lookup.getTypeDef(l));const c=o.map(({name:l})=>n.lookup.sanitizeField(l)[0]).filter(l=>!!l);c.length===o.length&&(this.__internal__names=c,Hs(this,c,(l,u)=>this[u]))}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get names(){return this.__internal__names}get section(){return this.__internal__section}get typeDef(){return this.__internal__typeDef}toHuman(n){if(this.__internal__names!==null){const r={};for(let i=0,a=this.__internal__names.length;in.toString())}:null,super.toHuman(t))}}const nC=4;class kh extends en{constructor(t,n,{isSigned:r}={}){super(t,{signature:"ExtrinsicSignatureV4",method:"Call"},kh.decodeExtrinsic(t,n,r))}static decodeExtrinsic(t,n,r=!1){if(n instanceof kh)return n;if(n instanceof t.createClassUnsafe("Call"))return{method:n};if(me(n)){const i=t.createTypeUnsafe("ExtrinsicSignatureV4",[n,{isSigned:r}]);return{method:t.createTypeUnsafe("Call",[n.subarray(i.encodedLength)]),signature:i}}return n||{}}get encodedLength(){return this.toU8a().length}get method(){return this.getT("method")}get signature(){return this.getT("signature")}get version(){return nC}addSignature(t,n,r){return this.signature.addSignature(t,n,r),this}sign(t,n){return this.signature.sign(this.method,t,n),this}signFake(t,n){return this.signature.signFake(this.method,t,n),this}}const oy=128,iJ=0,Xm=new Uint8Array,rC=4,iC=new Uint8Array([0]),aC=127,Mw=["ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicUnknown","ExtrinsicV4"];function Ph(e,t,n){if(t instanceof Up)return t.unwrap();const r=(n&oy)===oy,i=Mw[n&aC]||Mw[0];return e.createTypeUnsafe(i,[t,{isSigned:r,version:n}])}function aJ(e,t,n=rC){return me(t)||Array.isArray(t)||Ne(t)?sJ(e,fe(t),n):t instanceof e.createClassUnsafe("Call")?Ph(e,{method:t},n):Ph(e,t,n)}function sJ(e,t,n){if(!t.length)return Ph(e,new Uint8Array,n);const[r,i]=jb(t),a=r+i.toNumber();if(a>t.length)throw new Error(`Extrinsic: length less than remainder, expected at least ${a}, found ${t.length}`);const s=t.subarray(r,a);return Ph(e,s.subarray(1),s[0])}class oJ extends Rp{constructor(t,n,r){super(t,n,r);const i=Object.keys(t.getSignedExtensionTypes()),a=s=>this.inner.signature[s];for(let s=0,o=i.length;s>12,1),o=a/s*s;return[new yr(e,i),new yr(e,o)]}function dJ(e,t){if(t.length===0)return[new yr(e),new yr(e)];const n=zi(t.subarray(0,1)).toNumber(),r=zi(t.subarray(1,2)).toNumber(),i=n+(r<<8),a=2<>12,1),o=(i>>4)*s;if(a<4||o>=a)throw new Error("Invalid data passed to Mortal era");return[new yr(e,a),new yr(e,o)]}function cy(e=new Uint8Array){if(me(e))return!e.length||e[0]===0?new Uint8Array([0]):new Uint8Array([1,e[0],e[1]]);if(e){if(e instanceof cC)return cy(e.toU8a());if(Ne(e))return cy(Hi(e));if(Qn(e)){const t=Object.entries(e).map(([i,a])=>[i.toLowerCase(),a]),n=t.find(([i])=>i.toLowerCase()==="mortalera"),r=t.find(([i])=>i.toLowerCase()==="immortalera");return n?{MortalEra:n[1]}:r?{ImmortalEra:r[1]}:{MortalEra:e}}}else return new Uint8Array([0]);throw new Error("Invalid data passed to Era")}class sC extends Pr{constructor(t,n){super(t,iC)}}class oC extends Sc{constructor(t,n){super(t,{period:yr,phase:yr},lJ(t,n))}get encodedLength(){return 2}get period(){return this[0]}get phase(){return this[1]}toHuman(){return{period:w1(this.period),phase:w1(this.phase)}}toJSON(){return this.toHex()}toU8a(t){const n=this.period.toNumber(),r=Math.min(15,Math.max(1,cJ(n)-1))+(this.phase.toNumber()/Math.max(n>>12,1)<<4);return new Uint8Array([r&255,r>>8])}birth(t){const n=this.phase.toNumber(),r=this.period.toNumber();return~~((Math.max($t(t).toNumber(),n)-n)/r)*r+n}death(t){return this.birth(t)+this.period.toNumber()}}class cC extends kr{constructor(t,n){super(t,{ImmortalEra:sC,MortalEra:oC},cy(n))}get encodedLength(){return this.isImmortalEra?this.asImmortalEra.encodedLength:this.asMortalEra.encodedLength}get asImmortalEra(){if(!this.isImmortalEra)throw new Error(`Cannot convert '${this.type}' via asImmortalEra`);return this.inner}get asMortalEra(){if(!this.isMortalEra)throw new Error(`Cannot convert '${this.type}' via asMortalEra`);return this.inner}get isImmortalEra(){return this.index===0}get isMortalEra(){return this.index>0}toU8a(t){return this.isMortalEra?this.asMortalEra.toU8a(t):this.asImmortalEra.toU8a(t)}}const Aw=["ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadUnknown","ExtrinsicPayloadV4"];function fJ(e,t,n=rC){return t instanceof lC?t.unwrap():e.createTypeUnsafe(Aw[n]||Aw[0],[t,{version:n}])}class lC extends Rp{constructor(t,n,{version:r}={}){super(t,fJ(t,n,r))}get blockHash(){return this.inner.blockHash}get era(){return this.inner.era}get genesisHash(){return this.inner.genesisHash||this.registry.createTypeUnsafe("Hash",[])}get method(){return this.inner.method}get nonce(){return this.inner.nonce}get specVersion(){return this.inner.specVersion||this.registry.createTypeUnsafe("u32",[])}get tip(){return this.inner.tip||this.registry.createTypeUnsafe("Compact",[])}get transactionVersion(){return this.inner.transactionVersion||this.registry.createTypeUnsafe("u32",[])}eq(t){return this.inner.eq(t)}sign(t){const n=this.inner.sign(t);return{signature:we(n)}}toHuman(t){return this.inner.toHuman(t)}toJSON(){return this.toHex()}toRawType(){return"ExtrinsicPayload"}toString(){return this.toHex()}toU8a(t){return super.toU8a(t?{method:!0}:!1)}}class hJ extends en{constructor(t,n,{version:r=0}={}){throw super(t,{}),new Error(`Unsupported extrinsic payload version ${r}`)}}class pJ extends en{constructor(t,n,{isSigned:r=!1,version:i=0}={}){throw super(t,{}),new Error(`Unsupported ${r?"":"un"}signed extrinsic version ${i&aC}`)}}const Vw={address:"Address",blockHash:"Hash",blockNumber:"BlockNumber",era:"ExtrinsicEra",genesisHash:"Hash",method:"Call",nonce:"Compact",runtimeVersion:"RuntimeVersion",signedExtensions:"Vec",tip:"Compact",version:"u8"};class mJ extends en{constructor(n,r){const i=$({},n.getSignedExtensionTypes(),n.getSignedExtensionExtra());super(n,$({},i,Vw),r);I(this,"__internal__extraTypes");this.__internal__extraTypes={};const a=s=>this.get(s);for(const[s,o]of Object.entries(i))Vw[s]||(this.__internal__extraTypes[s]=o),Fb(this,s,a)}get address(){return this.getT("address")}get blockHash(){return this.getT("blockHash")}get blockNumber(){return this.getT("blockNumber")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get runtimeVersion(){return this.getT("runtimeVersion")}get signedExtensions(){return this.getT("signedExtensions")}get tip(){return this.getT("tip")}get version(){return this.getT("version")}toPayload(){const n={},r=Object.keys(this.__internal__extraTypes);for(let i=0,a=r.length;ii.toString()),specVersion:this.runtimeVersion.specVersion.toHex(),tip:this.tip.toHex(),transactionVersion:this.runtimeVersion.transactionVersion.toHex(),version:this.version.toNumber()})}toRaw(){const n=this.toPayload(),r=we(this.registry.createTypeUnsafe("ExtrinsicPayload",[n,{version:n.version}]).toU8a({method:!0}));return{address:n.address,data:r,type:"payload"}}}function gJ(e,t,n,r){const i=n.length>256?e.hash(n):n;return t.sign(i,r)}class ly extends en{constructor(n,r){super(n,$({method:"Bytes"},n.getSignedExtensionTypes(),n.getSignedExtensionExtra()),r);I(this,"__internal__signOptions");this.__internal__signOptions={withType:n.createTypeUnsafe("ExtrinsicSignature",[])instanceof kr}}inspect(){return super.inspect({method:!0})}get blockHash(){return this.getT("blockHash")}get era(){return this.getT("era")}get genesisHash(){return this.getT("genesisHash")}get method(){return this.getT("method")}get nonce(){return this.getT("nonce")}get specVersion(){return this.getT("specVersion")}get tip(){return this.getT("tip")}get transactionVersion(){return this.getT("transactionVersion")}get assetId(){return this.getT("assetId")}sign(n){return gJ(this.registry,n,this.toU8a({method:!0}),this.__internal__signOptions)}}const yJ=new Uint8Array(256).fill(1);function qm(e,t){return e.createTypeUnsafe("Address",[me(t)?we(t):t])}class Ch extends en{constructor(n,r,{isSigned:i}={}){const a=n.getSignedExtensionTypes();super(n,$({signer:"Address",signature:"ExtrinsicSignature"},a),Ch.decodeExtrinsicSignature(r,i));I(this,"__internal__signKeys");this.__internal__signKeys=Object.keys(a),Hs(this,this.__internal__signKeys,s=>this.get(s))}static decodeExtrinsicSignature(n,r=!1){if(n){if(n instanceof Ch)return n}else return Xm;return r?n:Xm}get encodedLength(){return this.isSigned?super.encodedLength:0}get isSigned(){return!this.signature.isEmpty}get era(){return this.getT("era")}get nonce(){return this.getT("nonce")}get signature(){return this.multiSignature.value||this.multiSignature}get multiSignature(){return this.getT("signature")}get signer(){return this.getT("signer")}get tip(){return this.getT("tip")}_injectSignature(n,r,i){for(let a=0,s=this.__internal__signKeys.length;as))throw new Error(`Invalid AccountId provided, expected ${n>>3} bytes, found ${i.length}`);super(t,i,n)}eq(t){return super.eq(Nw(t))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return CT(this,this.registry.chainSS58)}toRawType(){return"AccountId"}}class Eh extends uC{constructor(t,n){super(t,256,n)}}class bJ extends uC{constructor(t,n){super(t,264,n)}}const xJ=239,Ow=252,Iw=253,Rw=254,vJ=new re(xJ),wJ=new re(1).shln(16),SJ=new re(1).shln(32);function dC(e){return e instanceof Ft?e.toBn():qr(e)||Oe(e)||Ne(e)||me(e)||qs(e)?e:dC(Ka(e))}class Ft extends ou{constructor(t,n=new re(0)){super(t,dC(n))}static calcLength(t){const n=$t(t);return n.lte(vJ)?1:n.lt(wJ)?2:n.lt(SJ)?4:8}static readLength(t){const n=t[0];return n===Ow?[1,2]:n===Iw?[1,4]:n===Rw?[1,8]:[0,1]}static writeLength(t){switch(t.length){case 2:return new Uint8Array([Ow]);case 4:return new Uint8Array([Iw]);case 8:return new Uint8Array([Rw]);default:return new Uint8Array([])}}eq(t){return qr(t)||Oe(t)?super.eq(t):super.eq(this.registry.createTypeUnsafe("AccountIndex",[t]))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){const t=Ft.calcLength(this);return CT(this.toU8a().subarray(0,t),this.registry.chainSS58)}toRawType(){return"AccountIndex"}}class TJ extends en{constructor(t,n){super(t,{header:"Header",extrinsics:"Vec"},n)}get contentHash(){return this.registry.hash(this.toU8a())}get extrinsics(){return this.getT("extrinsics")}get hash(){return this.header.hash}get header(){return this.getT("header")}}function Q2(e,t){return t.fields.reduce((n,{name:r,type:i},a)=>(n[r.unwrapOr(`param${a}`).toString()]=e.createLookupType(i),n),{})}function kJ(e,t,n){const{args:r,callIndex:i}=t,a=i instanceof fC?i.toU8a():i,s=n||e.findMetaCall(a).meta;return{args:r,argsDef:Q2(e,s),callIndex:i,meta:s}}function PJ(e,t,n){const r=e.firstCallIndex.slice();r.set(t.subarray(0,2),0);const i=n||e.findMetaCall(r).meta;return{args:t.subarray(2),argsDef:Q2(e,i),callIndex:r,meta:i}}function CJ(e,t=new Uint8Array,n){if(me(t)||Ne(t))return PJ(e,fe(t),n);if(Qn(t)&&t.callIndex&&t.args)return kJ(e,t,n);throw new Error(`Call: Cannot decode value '${t}' of type ${typeof t}`)}class fC extends Ja{constructor(t,n){super(t,n,16)}toPrimitive(){return this.toHex()}}class EJ extends en{constructor(n,r,i){var t=(...zoe)=>(super(...zoe),I(this,"_meta"),this);const a=CJ(n,r,i);try{t(n,{callIndex:fC,args:en.with(a.argsDef)},a)}catch(s){let o="unknown.unknown";try{const c=n.findMetaCall(a.callIndex);o=`${c.section}.${c.method}`}catch{}throw new Error(`Call: failed decoding ${o}:: ${s.message}`)}this._meta=a.meta}get args(){return[...this.getT("args").values()]}get argsDef(){return Q2(this.registry,this.meta)}get argsEntries(){return[...this.getT("args").entries()]}get callIndex(){return this.getT("callIndex").toU8a()}get data(){return this.getT("args").toU8a()}get meta(){return this._meta}get method(){return this.registry.findMetaCall(this.callIndex).method}get section(){return this.registry.findMetaCall(this.callIndex).section}is(n){return n.callIndex[0]===this.callIndex[0]&&n.callIndex[1]===this.callIndex[1]}toHuman(n){let r;try{r=this.registry.findMetaCall(this.callIndex)}catch{}return $({args:this.argsEntries.reduce((i,[a,s])=>$(i,{[a]:s.toHuman(n)}),{}),method:r==null?void 0:r.method,section:r==null?void 0:r.section},n&&r?{docs:r.meta.docs.map(i=>i.toString())}:null)}toRawType(){return"Call"}}function Dd(e,t,n,r=!0){return n&&oe(n.unwrapOrDefault)?n:e.createTypeUnsafe(t,[r?_s(n)||it(n)?null:Array.isArray(n)?n:[n]:n])}function _J(e,t,n){return t==="ss58Format"?Dd(e,"Option",n,!1):t==="tokenDecimals"?Dd(e,"Option>",n):t==="tokenSymbol"?Dd(e,"Option>",n):t==="isEthereum"?Dd(e,"Bool",n,!1):n}function MJ(e,t){return(t&&oe(t.entries)?[...t.entries()]:Object.entries(t||{})).reduce((n,[r,i])=>(n[r]=_J(e,r,i),n),{isEthereum:e.createTypeUnsafe("Bool",[]),ss58Format:e.createTypeUnsafe("Option",[]),tokenDecimals:e.createTypeUnsafe("Option>",[]),tokenSymbol:e.createTypeUnsafe("Option>",[])})}class AJ extends UP{constructor(t,n){super(t,MJ(t,n))}get isEthereum(){return this.getT("isEthereum")}get ss58Format(){return this.getT("ss58Format")}get tokenDecimals(){return this.getT("tokenDecimals")}get tokenSymbol(){return this.getT("tokenSymbol")}}const VJ=Fr("aura"),NJ=Fr("BABE"),OJ=Fr("FRNK"),IJ=Fr("pow_"),RJ=Fr("nmbs");function LJ(e,t,n){return n[e.createTypeUnsafe("RawAuraPreDigest",[t.toU8a(!0)]).slotNumber.mod(new re(n.length)).toNumber()]}function BJ(e,t,n){const r=e.createTypeUnsafe("RawBabePreDigestCompat",[t.toU8a(!0)]);return n[r.value.toNumber()]}function DJ(e,t){return e.createTypeUnsafe("AccountId",[t])}class HJ extends Ja{constructor(t,n){super(t,Oe(n)?Mi(n,{isLe:!1}):n,32)}get isAura(){return this.eq(VJ)}get isBabe(){return this.eq(NJ)}get isGrandpa(){return this.eq(OJ)}get isPow(){return this.eq(IJ)}get isNimbus(){return this.eq(RJ)}extractAuthor(t,n){if(n!=null&&n.length){if(this.isAura)return LJ(this.registry,t,n);if(this.isBabe)return BJ(this.registry,t,n)}if(this.isPow||this.isNimbus)return DJ(this.registry,t)}toHuman(){return this.toString()}toRawType(){return"ConsensusEngineId"}toString(){return this.isAscii?_i(this):we(this)}}const Lw=new Uint8Array([255]);function zJ(e,t){const n=Ka(t);return n.length===32?e.createTypeUnsafe("AccountId",[n]):e.createTypeUnsafe("AccountIndex",[zi(n)])}function jJ(e,t){if(t.length===32)return e.createTypeUnsafe("AccountId",[t]);if(t[0]===255)return e.createTypeUnsafe("AccountId",[t.subarray(1)]);const[n,r]=Ft.readLength(t);return e.createTypeUnsafe("AccountIndex",[zi(t.subarray(n,n+r))])}function UJ(e,t){return t instanceof hC?t.inner:t instanceof Eh||t instanceof Ft?t:qr(t)||Oe(t)||qs(t)?e.createTypeUnsafe("AccountIndex",[t]):Array.isArray(t)||Ne(t)||me(t)?jJ(e,fe(t)):zJ(e,t)}class hC extends Rp{constructor(t,n=new Uint8Array){super(t,UJ(t,n))}get encodedLength(){const t=this._rawLength;return t+(t>1?1:0)}get _rawLength(){return this.inner instanceof Ft?Ft.calcLength(this.inner):this.inner.encodedLength}inspect(){const t=this.inner.toU8a().subarray(0,this._rawLength);return{outer:[new Uint8Array(this.inner instanceof Ft?Ft.writeLength(t):Lw),t]}}toHex(){return we(this.toU8a())}toRawType(){return"Address"}toU8a(t){const n=this.inner.toU8a().subarray(0,this._rawLength);return t?n:Bn(this.inner instanceof Ft?Ft.writeLength(n):Lw,n)}}function Bw(e,t){return[0,32].includes(t.length)?{Id:t}:t.length===20?{Address20:t}:t.length<=8?{Index:e.createTypeUnsafe("AccountIndex",[t]).toNumber()}:t}function FJ(e,t){return t instanceof Eh?{Id:t}:me(t)?Bw(e,t):t instanceof uy?t:t instanceof Ft||qr(t)||Oe(t)?{Index:Oe(t)?t:t.toNumber()}:Ge(t)?Bw(e,Ka(t.toString())):t}class uy extends kr{constructor(t,n){super(t,{Id:"AccountId",Index:"Compact",Raw:"Bytes",Address32:"H256",Address20:"H160"},FJ(t,n))}inspect(){const{inner:t,outer:n=[]}=this.inner.inspect();return{inner:t,outer:[new Uint8Array([this.index]),...n]}}toString(){return this.value.toString()}}const _h=128,$2=0,WJ=127,pC=0;function Dw(e){return e?new Uint8Array([_h|pC]):new Uint8Array([$2])}function XJ(e){return e.length?e.subarray(0,1):new Uint8Array([$2])}function qJ(e,t){return new Uint8Array([(new uc(e,t.aye).isTrue?_h:$2)|e.createTypeUnsafe("Conviction",[t.conviction||pC]).index])}function GJ(e,t){return me(t)?XJ(t):it(t)||t instanceof Boolean||sh(t)?Dw(new uc(e,t).isTrue):Oe(t)?Dw(t<0):qJ(e,t)}class ZJ extends Ja{constructor(n,r){const i=GJ(n,r);super(n,i,8);I(this,"__internal__aye");I(this,"__internal__conviction");this.__internal__aye=(i[0]&_h)===_h,this.__internal__conviction=this.registry.createTypeUnsafe("Conviction",[i[0]&WJ])}get conviction(){return this.__internal__conviction}get isAye(){return this.__internal__aye}get isNay(){return!this.isAye}toHuman(n){return{conviction:this.conviction.toHuman(n),vote:this.isAye?"Aye":"Nay"}}toPrimitive(){return{aye:this.isAye,conviction:this.conviction.toPrimitive()}}toRawType(){return"Vote"}}function Hw(e){return me(e)||Array.isArray(e)?fe(e):Ne(e)||JD(e.toString())?Hi(e.toString()):Ge(e)?fe(e):e}class mC extends Ja{constructor(t,n=new Uint8Array){super(t,Hw(n),160)}eq(t){return!!t&&super.eq(Hw(t))}toHuman(){return this.toJSON()}toJSON(){return this.toString()}toPrimitive(){return this.toJSON()}toString(){return ZD(this)}toRawType(){return"AccountId"}}const KJ=new Uint8Array([255]);function YJ(e,t){const n=Ka(t);return n.length===20?e.createTypeUnsafe("EthereumAccountId",[n]):e.createTypeUnsafe("AccountIndex",[zi(n)])}function JJ(e,t){if(t.length===20)return e.createTypeUnsafe("EthereumAccountId",[t]);if(t[0]===255)return e.createTypeUnsafe("EthereumAccountId",[t.subarray(1)]);const[n,r]=Ft.readLength(t);return e.createTypeUnsafe("AccountIndex",[zi(t.subarray(n,n+r))])}function QJ(e,t){return t instanceof gC?t.inner:t instanceof mC||t instanceof Ft?t:me(t)||Array.isArray(t)||Ne(t)?JJ(e,fe(t)):qr(t)||Oe(t)||qs(t)?e.createTypeUnsafe("AccountIndex",[t]):YJ(e,t)}class gC extends Rp{constructor(t,n=new Uint8Array){super(t,QJ(t,n))}get encodedLength(){const t=this._rawLength;return t+(t>1?1:0)}get _rawLength(){return this.inner instanceof Ft?Ft.calcLength(this.inner):this.inner.encodedLength}toHex(){return we(this.toU8a())}toRawType(){return"Address"}toU8a(t){const n=this.inner.toU8a().subarray(0,this._rawLength);return t?n:Bn(this.inner instanceof Ft?Ft.writeLength(n):KJ,n)}}function $J(e,t){const n=t[0];if(n){if(n>=1&&n<=33){const r=n-1,i=t.subarray(1,r+1);return[e.createTypeUnsafe("Raw",[i]),1]}else if(n>=34&&n<=37)return[t.subarray(1,33),n-32]}else return[void 0,void 0];throw new Error(`Unable to decode Data, invalid indicator byte ${n}`)}function eQ(e,t){return me(t)||Ge(t)?$J(e,fe(t)):t?[t,void 0]:[void 0,void 0]}class tQ extends kr{constructor(t,n){if(super(t,{None:"Null",Raw:"Bytes",BlakeTwo256:"H256",Sha256:"H256",Keccak256:"H256",ShaThree256:"H256"},...eQ(t,n)),this.isRaw&&this.asRaw.length>32)throw new Error("Data.Raw values are limited to a maximum length of 32 bytes")}get asBlakeTwo256(){return this.value}get asKeccak256(){return this.value}get asRaw(){return this.value}get asSha256(){return this.value}get asShaThree256(){return this.value}get isBlakeTwo256(){return this.index===2}get isKeccak256(){return this.index===4}get isNone(){return this.index===0}get isRaw(){return this.index===1}get isSha256(){return this.index===3}get isShaThree256(){return this.index===5}get encodedLength(){return this.toU8a().length}toU8a(){if(this.index===0)return new Uint8Array(1);if(this.index===1){const n=this.value.toU8a(!0),r=Math.min(n.length,32),i=new Uint8Array(r+1);return i.set([r+1],0),i.set(n.subarray(0,r),1),i}const t=new Uint8Array(33);return t.set([this.index+32],0),t.set(this.value.toU8a(),1),t}}const nQ={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 rQ(e){if(me(e)||!e||Ge(e))return{key:e};if(e instanceof Fp)return{key:e,method:e.method,section:e.section};if(oe(e))return{key:e(),method:e.method,section:e.section};if(Array.isArray(e)){const[t,n=[]]=e;if(!oe(t))throw new Error("Expected function input for key construction");if(t.meta&&t.meta.type.isMap){const r=t.meta.type.asMap;if(!Array.isArray(n)||n.length!==r.hashers.length)throw new Error(`Expected an array of ${r.hashers.length} values as params to a Map query`)}return{key:t(...n),method:t.method,section:t.section}}throw new Error(`Unable to convert input ${e} to StorageKey`)}function iQ(e,t,n){let r=32;const i=n.length,a=new Array(i);for(let s=0;s[s,a[o]]))}function sQ(e){if(e instanceof Fp)return e.meta;if(oe(e))return e.meta;if(Array.isArray(e)){const[t]=e;return t.meta}}function oQ(e,t){if(t instanceof Fp)return t.outputType;if(oe(t))return sy(e,t.meta.type);if(Array.isArray(t)){const[n]=t;if(n.meta)return sy(e,n.meta.type)}return"Raw"}class Fp extends Dp{constructor(n,r,i={}){const{key:a,method:s,section:o}=rQ(r);super(n,a);I(this,"__internal__args");I(this,"__internal__meta");I(this,"__internal__outputType");I(this,"__internal__method");I(this,"__internal__section");this.__internal__outputType=oQ(n,r),this.setMeta(sQ(r),i.section||o,i.method||s)}get args(){return this.__internal__args}get meta(){return this.__internal__meta}get method(){return this.__internal__method}get outputType(){return this.__internal__outputType}get section(){return this.__internal__section}is(n){return n.section===this.section&&n.method===this.method}setMeta(n,r,i){this.__internal__meta=n,this.__internal__method=i||this.__internal__method,this.__internal__section=r||this.__internal__section,n&&(this.__internal__outputType=sy(this.registry,n.type));try{this.__internal__args=aQ(this.registry,this.toU8a(!0),n)}catch{}return this}toHuman(){return this.__internal__args.length?this.__internal__args.map(n=>n.toHuman()):super.toHuman()}toRawType(){return"StorageKey"}}const cQ=Object.freeze(Object.defineProperty({__proto__:null,BitVec:$Z,Bool:uc,Bytes:Dp,Data:tQ,F32:J5,F64:Q5,GenericAccountId:Eh,GenericAccountId32:Eh,GenericAccountId33:bJ,GenericAccountIndex:Ft,GenericAddress:uy,GenericBlock:TJ,GenericCall:EJ,GenericChainProperties:AJ,GenericConsensusEngineId:HJ,GenericEthereumAccountId:mC,GenericEthereumLookupSource:gC,GenericEvent:rJ,GenericEventData:tC,GenericExtrinsic:Up,GenericExtrinsicEra:cC,GenericExtrinsicPayload:lC,GenericExtrinsicPayloadUnknown:hJ,GenericExtrinsicPayloadV4:ly,GenericExtrinsicSignatureV4:Ch,GenericExtrinsicUnknown:pJ,GenericExtrinsicV4:kh,GenericImmortalEra:sC,GenericLookupSource:hC,GenericMortalEra:oC,GenericMultiAddress:uy,GenericSignerPayload:mJ,GenericVote:ZJ,I128:nw,I16:ew,I256:rw,I32:ry,I64:tw,I8:$5,ISize:iw,Null:li,OptionBool:dK,StorageKey:Fp,Text:jP,Type:hK,U128:ow,U16:sw,U256:cw,U32:ou,U64:yr,U8:aw,USize:lw,bool:uc,f32:J5,f64:Q5,i128:nw,i16:ew,i256:rw,i32:ry,i64:tw,i8:$5,isize:iw,u128:ow,u16:sw,u256:cw,u32:ou,u64:yr,u8:aw,usize:lw},Symbol.toStringTag,{value:"Module"}));function yC(e){return({name:t})=>e(t)}const ex=yC(ze),bC=yC(e=>e.toString());function lQ(e,t){return e.callIndex[0]===t[0]&&e.callIndex[1]===t[1]}function uQ(e,t,n,r){const i=r.fields,a=ze(r.name),s=(...o)=>{if(i.length!==o.length)throw new Error(`Extrinsic ${t}.${a} expects ${i.length} arguments, got ${o.length}.`);return e.createTypeUnsafe("Call",[{args:o,callIndex:n},r])};return s.is=o=>lQ(o,n),s.callIndex=n,s.meta=r,s.method=a,s.section=t,s.toJSON=()=>r.toJSON(),s}function xC({calls:e}){return e.isSome}function vC(e,t,n,r,i){const{fields:a,index:s}=n,o=a.length,c=new Array(o);for(let l=0;l=12?l.toNumber():s;hn(i,d,()=>Tc(t,c.unwrap(),ex,m=>vC(e,t,m,d,h)))}return i}function Gm(e,t){return t.toNumber()>=2?e.createTypeUnsafe("StorageHasherV10",[t.toNumber()+1]):e.createTypeUnsafe("StorageHasherV10",[t])}function fQ(e,t){return t.isMap?[$({},t.asMap,{hasher:Gm(e,t.asMap.hasher)}),1]:t.isDoubleMap?[$({},t.asDoubleMap,{hasher:Gm(e,t.asDoubleMap.hasher),key2Hasher:Gm(e,t.asDoubleMap.key2Hasher)}),2]:[t.asPlain,0]}function hQ(e,t){const n=t.storage.unwrapOr(null);return e.createTypeUnsafe("ModuleMetadataV10",[$({},t,{storage:n?$({},n,{items:n.items.map(r=>$({},r,{type:e.createTypeUnsafe("StorageEntryTypeV10",fQ(e,r.type))}))}):null})])}function pQ(e,{modules:t}){return e.createTypeUnsafe("MetadataV10",[{modules:t.map(n=>hQ(e,n))}])}function mQ(e,{modules:t}){return e.createTypeUnsafe("MetadataV11",[{extrinsic:{signedExtensions:[],version:0},modules:t}])}function gQ(e,{extrinsic:t,modules:n}){return e.createTypeUnsafe("MetadataV12",[{extrinsic:t,modules:n.map(r=>e.createTypeUnsafe("ModuleMetadataV12",[$({},r,{index:255})]))}])}function yQ(e,t){return e.createTypeUnsafe("MetadataV13",[t])}const bQ={assets:{Approval:"AssetApproval",ApprovalKey:"AssetApprovalKey",Balance:"TAssetBalance",DestroyWitness:"AssetDestroyWitness"},babe:{EquivocationProof:"BabeEquivocationProof"},balances:{Status:"BalanceStatus"},beefy:{AuthorityId:"BeefyId"},contracts:{StorageKey:"ContractStorageKey"},electionProviderMultiPhase:{Phase:"ElectionPhase"},ethereum:{Block:"EthBlock",Header:"EthHeader",Receipt:"EthReceipt",Transaction:"EthTransaction",TransactionStatus:"EthTransactionStatus"},evm:{Account:"EvmAccount",Log:"EvmLog",Vicinity:"EvmVicinity"},grandpa:{Equivocation:"GrandpaEquivocation",EquivocationProof:"GrandpaEquivocationProof"},identity:{Judgement:"IdentityJudgement"},inclusion:{ValidatorIndex:"ParaValidatorIndex"},paraDisputes:{ValidatorIndex:"ParaValidatorIndex"},paraInclusion:{ValidatorIndex:"ParaValidatorIndex"},paraScheduler:{ValidatorIndex:"ParaValidatorIndex"},paraShared:{ValidatorIndex:"ParaValidatorIndex"},parachains:{Id:"ParaId"},parasDisputes:{ValidatorIndex:"ParaValidatorIndex"},parasInclusion:{ValidatorIndex:"ParaValidatorIndex"},parasScheduler:{ValidatorIndex:"ParaValidatorIndex"},parasShared:{ValidatorIndex:"ParaValidatorIndex"},proposeParachain:{Proposal:"ParachainProposal"},proxy:{Announcement:"ProxyAnnouncement"},scheduler:{ValidatorIndex:"ParaValidatorIndex"},shared:{ValidatorIndex:"ParaValidatorIndex"},society:{Judgement:"SocietyJudgement",Vote:"SocietyVote"},staking:{Compact:"CompactAssignments"},treasury:{Proposal:"TreasuryProposal"},xcm:{AssetId:"XcmAssetId"},xcmPallet:{AssetId:"XcmAssetId"}};function xQ({knownTypes:e},t){var n;return{...bQ[t]??{},...((n=e.typesAlias)==null?void 0:n[t])??{}}}const vQ=[["<",">"],["<",","],[",",">"],["(",")"],["(",","],[",",","],[",",")"]];function ki(e,t){const n=t.toString(),r=e.findIndex(({def:i})=>i.HistoricMetaCompat===n);return r!==-1?r:e.push({def:{HistoricMetaCompat:n}})-1}function wQ(e,...t){for(let n=0,r=t.length;n[r.name.toString(),n>=12?r.index.toNumber():i]).sort((r,i)=>r[1]-i[1]).reduce((r,[i,a])=>{for(let s=Object.keys(r).length;s{const r=Object.keys(e).find(i=>n.eq(i));if(r)n.setOverride(e[r]);else{const i=n.toString(),a=Object.entries(e).reduce((s,[o,c])=>vQ.reduce((l,[u,d])=>l.replace(`${u}${o}${d}`,`${u}${c}${d}`),s),i);i!==a&&n.setOverride(a)}})}function kQ(e,t,n,r,i){const a=r.map(({args:s,docs:o,name:c},l)=>(Hu(i,s.map(({type:u})=>u)),t.createTypeUnsafe("SiVariant",[{docs:o,fields:s.map(({name:u,type:d})=>t.createTypeUnsafe("SiField",[{name:u,type:ki(e,d)}])),index:l,name:c}])));return t.createTypeUnsafe("PalletCallMetadataV14",[{type:tx(n,"Call",e,a)}])}function PQ(e,t,n,r){return n.map(({docs:i,name:a,type:s,value:o})=>(Hu(r,[s]),t.createTypeUnsafe("PalletConstantMetadataV14",[{docs:i,name:a,type:ki(e,s),value:o}])))}function CQ(e,t,n,r,i){const a=r.map(({docs:s,name:o},c)=>t.createTypeUnsafe("SiVariant",[{docs:s,fields:[],index:c,name:o}]));return t.createTypeUnsafe("PalletErrorMetadataV14",[{type:tx(n,"Error",e,a)}])}function EQ(e,t,n,r,i){const a=r.map(({args:s,docs:o,name:c},l)=>(Hu(i,s),t.createTypeUnsafe("SiVariant",[{docs:o,fields:s.map(u=>t.createTypeUnsafe("SiField",[{type:ki(e,u)}])),index:l,name:c}])));return t.createTypeUnsafe("PalletEventMetadataV14",[{type:tx(n,"Event",e,a)}])}function Zm(e,t,n,{hashers:r,isLinked:i,isOptional:a,keys:s,value:o}){return Hu(n,[o,...Array.isArray(s)?s:[s]]),t.createTypeUnsafe("StorageEntryTypeV14",[{Map:{hashers:r,key:r.length===1?ki(e,s[0]):SQ(e,s.map(c=>ki(e,c))),value:i?ki(e,`(${a?`Option<${o.toString()}>`:o.toString()}, Linkage<${s[0].toString()}>)`):ki(e,o)}}])}function _Q(e,t,{items:n,prefix:r},i){return t.createTypeUnsafe("PalletStorageMetadataV14",[{items:n.map(({docs:a,fallback:s,modifier:o,name:c,type:l})=>{let u;if(l.isPlain){const d=l.asPlain;Hu(i,[d]),u=t.createTypeUnsafe("StorageEntryTypeV14",[{Plain:ki(e,d)}])}else if(l.isMap){const d=l.asMap;u=Zm(e,t,i,{hashers:[d.hasher],isLinked:d.linked.isTrue,isOptional:o.isOptional,keys:[d.key],value:d.value})}else if(l.isDoubleMap){const d=l.asDoubleMap;u=Zm(e,t,i,{hashers:[d.hasher,d.key2Hasher],isLinked:!1,isOptional:o.isOptional,keys:[d.key1,d.key2],value:d.value})}else{const d=l.asNMap;u=Zm(e,t,i,{hashers:d.hashers,isLinked:!1,isOptional:o.isOptional,keys:d.keyVec,value:d.value})}return t.createTypeUnsafe("StorageEntryMetadataV14",[{docs:a,fallback:s,modifier:o,name:c,type:u}])}),prefix:r}])}function MQ(e,{signedExtensions:t,version:n}){return e.createTypeUnsafe("ExtrinsicMetadataV14",[{signedExtensions:t.map(r=>({identifier:r,type:0})),type:0,version:n}])}function AQ(e,t,n,{calls:r,constants:i,errors:a,events:s,storage:o}){const c=xQ(t,ze(n.name));return t.createTypeUnsafe("PalletMetadataV14",[{calls:r&&kQ(e,t,n.name,r,c),constants:PQ(e,t,i,c),errors:a&&CQ(e,t,n.name,a),events:s&&EQ(e,t,n.name,s,c),index:n.index,name:n.name,storage:o&&_Q(e,t,o,c)}])}function VQ(e,t,n){const r=[];wQ(r,"Null","u8","u16","u32","u64"),TQ(e,t.modules,n);const i=MQ(e,t.extrinsic),a=t.modules.map(s=>AQ(r,e,s,{calls:s.calls.unwrapOr(null),constants:s.constants,errors:s.errors.length?s.errors:null,events:s.events.unwrapOr(null),storage:s.storage.unwrapOr(null)}));return e.createTypeUnsafe("MetadataV14",[{extrinsic:i,lookup:{types:r.map((s,o)=>e.createTypeUnsafe("PortableType",[{id:o,type:s}]))},pallets:a}])}function NQ(e,t,n){var i;const r=t.lookup.paramTypes.SpRuntimeUncheckedExtrinsic;return e.createTypeUnsafe("MetadataV15",[$({},t,{extrinsic:e.createTypeUnsafe("ExtrinsicMetadataV15",[$({},t.extrinsic,{addressType:r==null?void 0:r[0].type.unwrapOr(0),callType:r==null?void 0:r[1].type.unwrapOr(0),extraType:r==null?void 0:r[3].type.unwrapOr(0),signatureType:r==null?void 0:r[2].type.unwrapOr(0)})]),outerEnums:e.createTypeUnsafe("OuterEnums15",[{callType:r==null?void 0:r[1].type.unwrapOr(0),eventType:(i=t.lookup.paramTypes.FrameSystemEventRecord)==null?void 0:i[0].type.unwrapOr(0)}])})])}function OQ(e,t,n){return t}const zw=1635018093;class IQ extends ou{constructor(t,n){if(super(t,n),!this.isEmpty&&!this.eq(zw))throw new Error(`MagicNumber mismatch: expected ${t.createTypeUnsafe("u32",[zw]).toHex()}, found ${this.toHex()}`)}}const RQ=[15,14,13,12,11,10,9],LQ=RQ[0],BQ=14;class Wp extends en{constructor(n,r){super(n,{magicNumber:IQ,metadata:"MetadataAll"},r);I(this,"__internal__converted",new Map);I(this,"__internal__assertVersion",n=>{if(this.version>n)throw new Error(`Cannot convert metadata from version ${this.version} to ${n}`);return this.version===n});I(this,"__internal__getVersion",(n,r)=>{if(n!=="latest"&&this.__internal__assertVersion(n)){const i=`asV${n}`;return this.__internal__metadata()[i]}if(!this.__internal__converted.has(n)){const i=n==="latest"?`asV${LQ}`:`asV${n-1}`;this.__internal__converted.set(n,r(this.registry,this[i],this.version))}return this.__internal__converted.get(n)});I(this,"__internal__metadata",()=>this.getT("metadata"))}get asCallsOnly(){return new Wp(this.registry,{magicNumber:this.magicNumber,metadata:this.registry.createTypeUnsafe("MetadataAll",[KY(this.registry,this.asLatest),BQ])})}get asV9(){return this.__internal__assertVersion(9),this.__internal__metadata().asV9}get asV10(){return this.__internal__getVersion(10,pQ)}get asV11(){return this.__internal__getVersion(11,mQ)}get asV12(){return this.__internal__getVersion(12,gQ)}get asV13(){return this.__internal__getVersion(13,yQ)}get asV14(){return this.__internal__getVersion(14,VQ)}get asV15(){return this.__internal__getVersion(15,NQ)}get asLatest(){return this.__internal__getVersion("latest",OQ)}get magicNumber(){return this.getT("magicNumber")}get version(){return this.__internal__metadata().index}getUniqTypes(n){return GY(this.registry,this.asLatest,n)}toJSON(){return this.asLatest,super.toJSON()}}const wC=new Uint8Array([109,101,116,97,9]),jw=wC.length-1;function DQ(e,t){if(t.length===0)return wC;if(t[jw]===9)try{return new Wp(e,t)}catch{t[jw]=10}return t}class Mh extends Wp{constructor(t,n){super(t,me(n)||Ge(n)?DQ(t,fe(n)):n)}}function SC(e,{pallets:t},n){const r={};for(let i=0,a=t.length;iMs({},s,c=>{const l=e.createTypeUnsafe(e.createLookupType(c.type),[Hi(c.value.toHex())]);return l.meta=c,l},ex))}return r}function TC(e,t){return $({args:t.fields.map(({type:n})=>e.getTypeDef(n).type)},t)}function HQ(e,{lookup:t,pallets:n},r){const i={};for(let a=0,s=n.length;a=12?c.toNumber():a;hn(i,ze(l),()=>Tc(t,o.unwrap(),bC,d=>({is:h=>Ai(h)&&Ai(h.index)&&h.index.eq(u)&&(me(h.error)?h.error[0]===d.index.toNumber():Ai(h.error)&&h.error.eq(d.index)),meta:e.createTypeUnsafe("ErrorMetadataLatest",[TC(t,d)])})))}}return i}function kC({events:e}){return e.isSome}function zQ(e,{lookup:t,pallets:n},r){const i={},a=n.filter(kC);for(let s=0,o=a.length;s=12?l.toNumber():s;hn(i,ze(u),()=>Tc(t,c.unwrap(),bC,h=>({is:m=>Ai(m)&&me(m.index)&&d===m.index[0]&&h.index.eq(m.index[1]),meta:e.createTypeUnsafe("EventMetadataLatest",[TC(t,h)])})))}return i}const jQ=e=>Lo(e,128),UQ={Blake2_128:e=>Oa(e,128),Blake2_128Concat:e=>Bn(Oa(e,128),fe(e)),Blake2_256:e=>Oa(e,256),Identity:e=>fe(e),Twox128:e=>Lo(e,128),Twox256:e=>Lo(e,256),Twox64Concat:e=>Bn(Lo(e,64),fe(e))};function FQ(e){return UQ[e.type]||jQ}const Xp={args:[],hashers:[],keys:[]};function WQ(e){return!it(e)}function PC({method:e,section:t},{args:n,keys:r}){if(Array.isArray(n)){if(n.filter(WQ).length!==r.length)throw new Error(`Call to ${ze(t||"unknown")}.${ze(e||"unknown")} needs ${r.length} arguments, found [${n.join(", ")}]`)}else throw new Error(`Call to ${ze(t||"unknown")}.${ze(e||"unknown")} needs ${r.length} arguments`)}function CC(e,t,{args:n,hashers:r,keys:i}){const a=i.length,s=new Array(a);for(let o=0;o`${c[d].type}(${lu(e.lookup,u)})`)}const o=["module","method"].concat(...n.args.map((c,l)=>s[l]));return{inner:i.concat(...a).map((c,l)=>({name:o[l],outer:[c]}))}}function Ah(e,t,n){const[r,i]=CC(e,t,n);return Bn(...r,...i)}function Ym(e,t,n){return PC(t,n),yc(Ah(e,t,n))}function XQ(e,t,n){const{meta:{type:r}}=t;return(...i)=>{if(r.isPlain)return n.skipHashing?{inner:[],name:"wellKnown",outer:[fe(n.key)]}:Km(e,t,Xp);const{hashers:a,key:s}=r.asMap;return a.length===1?Km(e,t,{args:i,hashers:a,keys:[s]}):Km(e,t,{args:i,hashers:a,keys:e.lookup.getSiType(s).def.asTuple})}}function qQ(e,t,n){const{meta:{type:r}}=t;let i=null;return(...a)=>{if(r.isPlain)return i||(i=n.skipHashing?yc(fe(n.key)):Ym(e,t,Xp)),i;const{hashers:s,key:o}=r.asMap;return s.length===1?Ym(e,t,{args:a,hashers:s,keys:[o]}):Ym(e,t,{args:a,hashers:s,keys:e.lookup.getSiType(o).def.asTuple})}}function GQ(e,t,n){const{meta:r,method:i,prefix:a,section:s}=t,o=qQ(e,t,n);return o.inspect=XQ(e,t,n),o.meta=r,o.method=ze(i),o.prefix=a,o.section=s,o.toJSON=()=>$({storage:{method:i,prefix:a,section:s}},r.toJSON()),o}function ZQ(e,{meta:{docs:t,name:n,type:r},section:i},{method:a},s){const o=e.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:t,fallback:e.createTypeUnsafe("Bytes",[]),modifier:e.createTypeUnsafe("StorageEntryModifierLatest",[1]),name:n,type:e.createTypeUnsafe("StorageEntryTypeLatest",[r.asMap.key,0])}]);s.meta=o;const c=(...l)=>e.createTypeUnsafe("StorageKey",[s(...l),{method:a,section:i}]);return c.meta=o,c}function KQ(e,t,n){const{meta:{type:r},method:i,section:a}=t;return n.iterKey=ZQ(e,t,n,(...s)=>{if(s.length&&(r.isPlain||s.length>=r.asMap.hashers.length))throw new Error(`Iteration of ${ze(a||"unknown")}.${ze(i||"unknown")} needs arguments to be at least one less than the full arguments, found [${s.join(", ")}]`);if(s.length&&r.isMap){const{hashers:o,key:c}=r.asMap,l=o.length===1?[c]:e.lookup.getSiType(c).def.asTuple;return new Pr(e,Ah(e,t,{args:s,hashers:o.slice(0,s.length),keys:l.slice(0,s.length)}))}return new Pr(e,Ah(e,t,Xp))}),n}function EC(e,t,n){const{meta:{type:r}}=t,i=GQ(e,t,n);return r.isMap&&KQ(e,t,i),i.keyPrefix=(...a)=>i.iterKey&&i.iterKey(...a)||ah(i())[1],i}function Uw(e,t){const n=t.toLowerCase();return e.lookup.types.find(r=>r.type.def.isPrimitive&&r.type.def.asPrimitive.toString().toLowerCase()===n||r.type.def.isHistoricMetaCompat&&r.type.def.asHistoricMetaCompat.toString().toLowerCase()===n)}function YQ(e,t){let n=Uw(e,t);if(!n&&(t==="Bytes"||t.startsWith("[u8;"))){const r=Uw(e,"u8");if(r)if(t==="Bytes")n=e.lookup.types.find(i=>i.type.def.isSequence&&i.type.def.asSequence.type.eq(r.id)||i.type.def.isHistoricMetaCompat&&i.type.def.asHistoricMetaCompat.eq(t));else{const i=Yi(t);n=e.lookup.types.find(a=>a.type.def.isArray&&a.type.def.asArray.eq({len:i.length,type:r.id})||a.type.def.isHistoricMetaCompat&&a.type.def.asHistoricMetaCompat.eq(t))}}return n||console.warn(`Unable to map ${t} to a lookup index`),n}function _C({method:e,prefix:t,section:n},r,{docs:i,type:a}){return s=>{var o;return EC(s,{meta:s.createTypeUnsafe("StorageEntryMetadataLatest",[{docs:s.createTypeUnsafe("Vec",[[i]]),modifier:s.createTypeUnsafe("StorageEntryModifierLatest",["Required"]),name:s.createTypeUnsafe("Text",[e]),toJSON:()=>r,type:s.createTypeUnsafe("StorageEntryTypeLatest",[{Plain:((o=YQ(s,a))==null?void 0:o.id)||0}])}]),method:e,prefix:t,section:n},{key:r,skipHashing:!0})}}const JQ="Substrate",QQ="substrate";function io(e,t,n){return _C({method:e,prefix:JQ,section:QQ},t,n)}const $Q={changesTrieConfig:io("changesTrieConfig",":changes_trie",{docs:"Changes trie configuration is stored under this key.",type:"u32"}),childStorageKeyPrefix:io("childStorageKeyPrefix",":child_storage:",{docs:"Prefix of child storage keys.",type:"u32"}),code:io("code",":code",{docs:"Wasm code of the runtime.",type:"Bytes"}),extrinsicIndex:io("extrinsicIndex",":extrinsic_index",{docs:"Current extrinsic index (u32) is stored under this key.",type:"u32"}),heapPages:io("heapPages",":heappages",{docs:"Number of wasm linear memory pages required for execution of the runtime.",type:"u64"}),intrablockEntropy:io("intrablockEntropy",":intrablock_entropy",{docs:"Current intra-block entropy (a universally unique `[u8; 32]` value) is stored here.",type:"[u8; 32]"})};function e$(e){const t={},n=Object.entries($Q);for(let r=0,i=n.length;rMs({palletVersion:_C({method:t$,prefix:d,section:c},Ah(e,{method:n$,prefix:s.toString()},Xp),r$)(e)},l,h=>EC(e,{meta:h,method:h.name.toString(),prefix:d,section:c},{}),ex))}}return r}function a$(e,t){if(!(t instanceof Mh))throw new Error("You need to pass a valid Metadata instance to Decorated");const n=t.asLatest,r=t.version;return{consts:SC(e,n),errors:HQ(e,n,r),events:zQ(e,n,r),query:i$(e,n),registry:e,tx:dQ(e,n,r)}}const s$=new Uint8Array(2),Fw=Cr("registry");function Ww(e,t){return parseInt(e,10)-parseInt(t,10)}function MC(e){return e.toString()}function AC(e,t){const n=t.length,r=new Array(n);for(let i=0;i=12?c.toNumber():a,()=>Tc(t,o.unwrap(),nx,({docs:d,fields:h,index:m,name:y})=>({args:AC(t,h),docs:d.map(MC),fields:h,index:m.toNumber(),method:y.toString(),name:y.toString(),section:u})))}}}function c$(e,{lookup:t,pallets:n},r,i){const a=n.filter(kC);Vh(i);for(let s=0,o=a.length;s=12?l.toNumber():s,()=>Tc(t,c.unwrap(),nx,d=>{const h=e.createType("EventMetadataLatest",$({},d,{args:AC(t,d.fields)}));return class extends tC{constructor(m,y){super(m,y,h,ze(u),d.name.toString())}}}))}}function l$(e,{lookup:t,pallets:n},r,i,a){const s=n.filter(xC);Vh(i),Vh(a);for(let o=0,c=s.length;o=12?u.toNumber():o,m=ze(d),y=l.unwrap();hn(i,h,()=>Tc(t,y,nx,S=>vC(e,t,S,m,h)));const{path:v}=e.lookup.getSiType(y.type),P=v.findIndex(S=>S.eq("pallet"));if(P!==-1){const S=ze(v.slice(0,P).map((b,w)=>w===0?b.replace(/^(frame|pallet)_/,""):b).join(" "));a[S]?a[S].push(m):a[S]=[m]}}}function u$(e,t){const n=e.getChainProperties(),r=SC(e,t.asLatest,t.version),i=r.system&&(r.system.sS58Prefix||r.system.ss58Prefix);if(!i)return n;const{isEthereum:a,tokenDecimals:s,tokenSymbol:o}=n||{};return e.createTypeUnsafe("ChainProperties",[{isEthereum:a,ss58Format:i,tokenDecimals:s,tokenSymbol:o}])}class VC{constructor(t){I(this,"__internal__chainProperties");I(this,"__internal__classes",new Map);I(this,"__internal__definitions",new Map);I(this,"__internal__firstCallIndex",null);I(this,"__internal__hasher",Oa);I(this,"__internal__knownTypes",{});I(this,"__internal__lookup");I(this,"__internal__metadata");I(this,"__internal__metadataVersion",0);I(this,"__internal__signedExtensions",Wm);I(this,"__internal__unknownTypes",new Map);I(this,"__internal__userExtensions");I(this,"__internal__knownDefaults");I(this,"__internal__knownDefaultsEntries");I(this,"__internal__knownDefinitions");I(this,"__internal__metadataCalls",{});I(this,"__internal__metadataErrors",{});I(this,"__internal__metadataEvents",{});I(this,"__internal__moduleMap",{});I(this,"createdAtHash");I(this,"__internal__registerObject",t=>{const n=Object.entries(t);for(let r=0,i=n.length;r{this.setLookup(t);let n=null;if(this.hasType("SpWeightsWeightV2Weight")){const r=this.createType("SpWeightsWeightV2Weight");n=r.refTime&&r.proofSize?"SpWeightsWeightV2Weight":"WeightV1"}else qr(this.createType("Weight"))||(n="WeightV1");n&&this.register({Weight:n})});this.__internal__knownDefaults=$({Json:UP,Metadata:Mh,PortableRegistry:UY,Raw:Pr},cQ),this.__internal__knownDefaultsEntries=Object.entries(this.__internal__knownDefaults),this.__internal__knownDefinitions=Th;const n=Object.values(this.__internal__knownDefinitions);for(let r=0,i=n.length;rr.toNumber())}return[12]}get chainIsEthereum(){var t;return((t=this.__internal__chainProperties)==null?void 0:t.isEthereum.isTrue)||!1}get chainSS58(){var t;return(t=this.__internal__chainProperties)!=null&&t.ss58Format.isSome?this.__internal__chainProperties.ss58Format.unwrap().toNumber():void 0}get chainTokens(){var t;if((t=this.__internal__chainProperties)!=null&&t.tokenSymbol.isSome){const n=this.__internal__chainProperties.tokenSymbol.unwrap();if(n.length)return n.map(MC)}return[Zs.getDefaults().unit]}get firstCallIndex(){return this.__internal__firstCallIndex||s$}isLookupType(t){return/Lookup\d+$/.test(t)}createLookupType(t){return`Lookup${typeof t=="number"?t:t.toNumber()}`}get knownTypes(){return this.__internal__knownTypes}get lookup(){return ya(this.__internal__lookup,"PortableRegistry has not been set on this registry")}get metadata(){return ya(this.__internal__metadata,"Metadata has not been set on this registry")}get unknownTypes(){return[...this.__internal__unknownTypes.keys()]}get signedExtensions(){return this.__internal__signedExtensions}clearCache(){this.__internal__classes=new Map}createClass(t){return Tl(this,t)}createClassUnsafe(t){return Tl(this,t)}createType(t,...n){return ay(this,t,n)}createTypeUnsafe(t,n,r){return ay(this,t,n,r)}findMetaCall(t){const[n,r]=[t[0],t[1]];return ya(this.__internal__metadataCalls[`${n}`]&&this.__internal__metadataCalls[`${n}`][`${r}`],()=>`findMetaCall: Unable to find Call with index [${n}, ${r}]/[${t.toString()}]`)}findMetaError(t){const[n,r]=me(t)?[t[0],t[1]]:[t.index.toNumber(),me(t.error)?t.error[0]:t.error.toNumber()];return ya(this.__internal__metadataErrors[`${n}`]&&this.__internal__metadataErrors[`${n}`][`${r}`],()=>`findMetaError: Unable to find Error with index [${n}, ${r}]/[${t.toString()}]`)}findMetaEvent(t){const[n,r]=[t[0],t[1]];return ya(this.__internal__metadataEvents[`${n}`]&&this.__internal__metadataEvents[`${n}`][`${r}`],()=>`findMetaEvent: Unable to find Event with index [${n}, ${r}]/[${t.toString()}]`)}get(t,n,r){return this.getUnsafe(t,n,r)}getUnsafe(t,n,r){let i=this.__internal__classes.get(t)||this.__internal__knownDefaults[t];if(!i){const a=this.__internal__definitions.get(t);let s;a?s=Tl(this,a):r?s=NK(this,r):n&&(Fw.warn(`Unable to resolve type ${t}, it will fail on construction`),this.__internal__unknownTypes.set(t,!0),s=Bp.with(t)),s&&(i=class extends s{},this.__internal__classes.set(t,i),r&&Oe(r.lookupIndex)&&this.__internal__classes.set(this.createLookupType(r.lookupIndex),i))}return i}getChainProperties(){return this.__internal__chainProperties}getClassName(t){const n=[];for(const[r,i]of this.__internal__knownDefaultsEntries)t===i&&n.push(r);for(const[r,i]of this.__internal__classes.entries())t===i&&n.push(r);return n.length?n.sort().reverse()[0]:void 0}getDefinition(t){return this.__internal__definitions.get(t)}getModuleInstances(t,n){var r,i,a,s,o;return((o=(s=(a=(i=(r=this.__internal__knownTypes)==null?void 0:r.typesBundle)==null?void 0:i.spec)==null?void 0:a[t.toString()])==null?void 0:s.instances)==null?void 0:o[n])||this.__internal__moduleMap[n]}getOrThrow(t){const n=this.get(t);if(!n)throw new Error(`type ${t} not found`);return n}getOrUnknown(t){return this.get(t,!0)}getSignedExtensionExtra(){return _w(this.__internal__signedExtensions,"payload",this.__internal__userExtensions)}getSignedExtensionTypes(){return _w(this.__internal__signedExtensions,"extrinsic",this.__internal__userExtensions)}hasClass(t){return this.__internal__classes.has(t)||!!this.__internal__knownDefaults[t]}hasDef(t){return this.__internal__definitions.has(t)}hasType(t){return!this.__internal__unknownTypes.get(t)&&(this.hasClass(t)||this.hasDef(t))}hash(t){return this.createType("CodecHash",this.__internal__hasher(t))}register(t,n){if(oe(t))this.__internal__classes.set(t.name,t);else if(Ge(t)){if(oe(n)){if(t===n.toString())throw new Error(`Unable to register circular ${t} === ${t}`)}else throw new Error(`Expected class definition passed to '${t}' registration`);this.__internal__classes.set(t,n)}else this.__internal__registerObject(t)}setChainProperties(t){t&&(this.__internal__chainProperties=t)}setHasher(t){this.__internal__hasher=t||Oa}setKnownTypes(t){this.__internal__knownTypes=t}setLookup(t){this.__internal__lookup=t,t.register()}setMetadata(t,n,r,i){this.__internal__metadata=t.asLatest,this.__internal__metadataVersion=t.version,this.__internal__firstCallIndex=null,this.__internal__registerLookup(this.__internal__metadata.lookup),l$(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataCalls,this.__internal__moduleMap),o$(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataErrors),c$(this,this.__internal__metadata,this.__internal__metadataVersion,this.__internal__metadataEvents);const[a]=Object.keys(this.__internal__metadataCalls).sort(Ww);if(a){const[s]=Object.keys(this.__internal__metadataCalls[a]).sort(Ww);s&&(this.__internal__firstCallIndex=new Uint8Array([parseInt(a,10),parseInt(s,10)]))}this.setSignedExtensions(n||(this.__internal__metadata.extrinsic.version.gt(Rt)?this.__internal__metadata.extrinsic.signedExtensions.map(({identifier:s})=>s.toString()):Wm),r,i),this.setChainProperties(u$(this,t))}setSignedExtensions(t=Wm,n,r){if(this.__internal__signedExtensions=t,this.__internal__userExtensions=n,!r){const i=tJ(this.__internal__signedExtensions,this.__internal__userExtensions);i.length&&Fw.warn(`Unknown signed extensions ${i.join(", ")} found, treating them as no-effect`)}}}function NC(e=1750){return t=>{let[n,r,i,a]=[0,0,Wi.EMPTY,Wi.EMPTY];return new qt(s=>(t.subscribe(s),r++===0&&(n===1?a.unsubscribe():i=t.connect(),n=3),()=>{--r===0&&(n===2?(n=0,a.unsubscribe()):(n=1,a=xX.schedule(()=>{n=0,i.unsubscribe()},e)))}))}}function d$(e,t){return Te({t:e})===Te({t})}function f$(e){throw e}function h$(){}function rx({delay:e,skipChange:t=!1,skipTimeout:n=!1}={}){return r=>r.pipe(Xi(f$),t?Fa(h$):iq(d$),VP(1),n?A2():NC(e))}function G(e,t){const r=el((...i)=>new qt(a=>{const s=t(...i).subscribe(a);return()=>{r.unmemoize(...i),s.unsubscribe()}}).pipe(rx()),{getInstanceId:()=>e});return r}const p$=Cr("rpc-core"),m$={fallback:void 0,modifier:{isOptional:!0},type:{asMap:{linked:{isTrue:!1}},isMap:!1}};function Hd(e,{noErrorLog:t,params:n,type:r},i){t||p$.error(`${e}(${n.map(({isOptional:a,name:s,type:o})=>`${s}${a?"?":""}: ${o}`).join(", ")}): ${r}:: ${i.message}`)}function Xw(e){return["0x3a636f6465"].includes(e.toHex())}class g${constructor(t,n,{isPedantic:r=!0,provider:i,userRpc:a={}}){I(this,"__internal__instanceId");I(this,"__internal__isPedantic");I(this,"__internal__registryDefault");I(this,"__internal__storageCache",new Map);I(this,"__internal__storageCacheHits",0);I(this,"__internal__storageCacheSize",0);I(this,"__internal__getBlockRegistry");I(this,"__internal__getBlockHash");I(this,"mapping",new Map);I(this,"provider");I(this,"sections",[]);if(!i||!oe(i.send))throw new Error("Expected Provider to API create");this.__internal__instanceId=t,this.__internal__isPedantic=r,this.__internal__registryDefault=n,this.provider=i;const s=Object.keys(kl);this.sections.push(...s),this.addUserInterfaces(a)}get isConnected(){return this.provider.isConnected}connect(){return this.provider.connect()}disconnect(){return this.provider.disconnect()}get stats(){const t=this.provider.stats;return t?{...t,core:{cacheHits:this.__internal__storageCacheHits,cacheSize:this.__internal__storageCacheSize}}:void 0}setRegistrySwap(t){this.__internal__getBlockRegistry=el(t,{getInstanceId:()=>this.__internal__instanceId})}setResolveBlockHash(t){this.__internal__getBlockHash=el(t,{getInstanceId:()=>this.__internal__instanceId})}addUserInterfaces(t){this.sections.push(...Object.keys(t).filter(n=>!this.sections.includes(n)));for(let n=0,r=this.sections.length;nh?this._createMethodSubscribe(i,l,u):this._createMethodSend(i,l,u))}}}}_memomize(t,n){const r={getInstanceId:()=>this.__internal__instanceId},i=el(t(!0),r);return i.raw=el(t(!1),r),i.meta=n,i}_formatResult(t,n,r,i,a,s,o){return t?this._formatOutput(n,r,i,a,s,o):o}_createMethodSend(t,n,r){const i=r.endpoint||`${t}_${n}`,a=r.params.findIndex(({isHistoric:l})=>l);let s=null;const o=async(l,u)=>{var P;const d=a===-1?null:u[a],h=d&&r.params[a].type==="BlockNumber"?await((P=this.__internal__getBlockHash)==null?void 0:P.call(this,d)):d,{registry:m}=l&&h&&this.__internal__getBlockRegistry?await this.__internal__getBlockRegistry(fe(h)):{registry:this.__internal__registryDefault},y=this._formatParams(m,null,r,u),v=await this.provider.send(i,y.map(S=>S.toJSON()),!!h);return this._formatResult(l,m,h,n,r,y,v)},c=l=>(...u)=>{const d=l&&a!==-1&&!!u[a];return new qt(h=>(o(l,u).then(m=>{h.next(m),h.complete()}).catch(m=>{Hd(n,r,m),h.error(m),h.complete()}),()=>{l?s==null||s.unmemoize(...u):s==null||s.raw.unmemoize(...u)})).pipe(VP(1),d?NC():A2())};return s=this._memomize(c,r),s}_createSubscriber({paramsJson:t,subName:n,subType:r,update:i},a){return new Promise((s,o)=>{this.provider.subscribe(r,n,t,i).then(s).catch(c=>{a(c),o(c)})})}_createMethodSubscribe(t,n,r){const[i,a,s]=r.pubsub,o=`${t}_${a}`,c=`${t}_${s}`,l=`${t}_${i}`;let u=null;const d=h=>(...m)=>new qt(y=>{let v=Promise.resolve(null);const P=this.__internal__registryDefault,S=b=>{Hd(n,r,b),y.error(b)};try{const b=this._formatParams(P,null,r,m),w=(N,D)=>{if(N){Hd(n,r,N);return}try{y.next(this._formatResult(h,P,null,n,r,b,D))}catch(H){y.error(H)}};v=this._createSubscriber({paramsJson:b.map(N=>N.toJSON()),subName:o,subType:l,update:w},S)}catch(b){S(b)}return()=>{h?u==null||u.unmemoize(...m):u==null||u.raw.unmemoize(...m),v.then(b=>_s(b)?Promise.resolve(!1):this.provider.unsubscribe(l,c,b)).catch(b=>Hd(n,r,b))}}).pipe(rx());return u=this._memomize(d,r),u}_formatParams(t,n,r,i){const a=i.length,s=r.params.filter(({isOptional:c})=>!c).length;if(ar.params.length)throw new Error(`Expected ${r.params.length} parameters${s===r.params.length?"":` (${r.params.length-s} optional)`}, ${a} found instead`);const o=new Array(a);for(let c=0;c"){const o=s,c=o.length,l=new Array(c);for(let u=0;uy===o),l=it(c);if(l&&a){const y=this.__internal__storageCache.get(o);if(y)return this.__internal__storageCacheHits++,y}const u=l?null:c[1],d=_s(u),h=d||Xw(r)?u:fe(u),m=this._newType(t,n,r,h,d,s);return this.__internal__storageCache.set(o,m),this.__internal__storageCacheSize++,m}_newType(t,n,r,i,a,s=-1){const o=r.outputType||"Raw",c=r.meta||m$,l=s===-1?"":` entry ${s}:`;try{return t.createTypeUnsafe(o,[a?c.fallback?o.includes("Linkage<")?Bn(Hi(c.fallback.toHex()),new Uint8Array(2)):Hi(c.fallback.toHex()):void 0:c.modifier.isOptional?t.createTypeUnsafe(o,[i],{blockHash:n,isPedantic:this.__internal__isPedantic}):i],{blockHash:n,isFallback:a&&!!c.fallback,isOptional:c.modifier.isOptional,isPedantic:this.__internal__isPedantic&&!c.modifier.isOptional})}catch(u){throw new Error(`Unable to decode storage ${r.section||"unknown"}.${r.method||"unknown"}:${l}: ${u.message}`)}}}function dy(e){return K6(e.number)?e.number.unwrap():e.number}const y$={del:()=>{},forEach:()=>{},get:()=>{},set:(e,t)=>t},b$=7*(24*60)*(60*1e3);let zu;function x$(e,t){return{del:n=>t.del(`${e}${n}`),forEach:t.forEach,get:n=>{const r=`${e}${n}`,i=t.get(r);if(i)return i.x=Date.now(),t.set(r,i),i.v},set:(n,r)=>{t.set(`${e}${n}`,{v:r,x:Date.now()})}}}function v$(e){const t=Date.now(),n=[];e.forEach((r,{x:i})=>{t-i>b$&&n.push(r)}),n.forEach(r=>e.del(r))}function w$(e="",t){zu=t?x$(`derive:${e}:`,t):y$,t&&v$(t)}w$();function OC(e){return e.pipe(W(([t])=>t))}function Ji(e){return(t,n)=>G(t,(...r)=>OC(e(n,...r)))}function IC(e,t,n,r){hn(e,t,()=>Ms({},n(t),i=>r(t,i)))}function S$(e,t){return G(e,n=>{const r=me(n)?n:Ka((n||"").toString());if(r.length>8)return X(t.registry.createType("AccountId",r));const i=t.registry.createType("AccountIndex",r);return t.derive.accounts.indexToId(i.toString()).pipe(W(a=>ya(a,"Unable to retrieve accountId")))})}function T$(e,[t,n,r,i,a]){const s=e==null?void 0:e.toString(),o=c=>c.toString()===s;return{isCouncil:((t==null?void 0:t.map(c=>Array.isArray(c)?c[0]:c.who))||n||[]).some(o),isSociety:(i||[]).some(o),isSudo:(a==null?void 0:a.toString())===s,isTechCommittee:(r||[]).some(o)}}function k$(e,t){return G(e,()=>{var a,s,o,c,l;const n=[void 0,[],[],[],void 0],r=[(a=t.query.elections||t.query.phragmenElection||t.query.electionsPhragmen)==null?void 0:a.members,(s=t.query.council)==null?void 0:s.members,(o=t.query.technicalCommittee)==null?void 0:o.members,(c=t.query.society)==null?void 0:c.members,(l=t.query.sudo)==null?void 0:l.key],i=r.filter(u=>u);return i.length?t.queryMulti(i).pipe(W(u=>{let d=-1;for(let h=0,m=r.length;ht.derive.accounts._flags().pipe(W(r=>T$(n,r))))}function C$(e,t){return G(e,n=>{try{const r=me(n)?n:Ka((n||"").toString());if(r.length>8){const a=t.registry.createType("AccountId",r);return t.derive.accounts.idToIndex(a).pipe(W(s=>[a,s]))}const i=t.registry.createType("AccountIndex",r);return t.derive.accounts.indexToId(i.toString()).pipe(W(a=>[a,i]))}catch{return X([void 0,void 0])}})}const E$={toHex:()=>{}};function Ir(e){return e.isRaw?_i(e.asRaw.toU8a(!0)):e.isNone?void 0:e.toHex()}function _$(e){return e.reduce((t,[n,r])=>{const i=Ir(n),a=Ir(r);return i&&a&&(t[i]=a),t},{})}function M$(e,t){if(!(e!=null&&e.isSome))return{judgements:[]};const{info:n,judgements:r}=e.unwrap(),i=Ir(n.display);return{display:t&&Ir(t[1])||i,displayParent:t&&i,email:Ir(n.email),image:Ir(n.image),judgements:r,legal:Ir(n.legal),other:_$(n.additional),parent:t==null?void 0:t[0],pgp:n.pgpFingerprint.unwrapOr(E$).toHex(),riot:Ir(n.riot),twitter:Ir(n.twitter),web:Ir(n.web)}}function A$(e,t,n){if(t!=null&&t.isSome)return X([t,void 0]);if(n!=null&&n.isSome){const r=n.unwrap();return Q([e.derive.accounts._identity(r[0]).pipe(W(([i])=>i)),X(r)])}return X([void 0,void 0])}function V$(e,t){return G(e,n=>{var r;return n&&((r=t.query.identity)!=null&&r.identityOf)?Q([t.query.identity.identityOf(n),t.query.identity.superOf(n)]):X([void 0,void 0])})}function N$(e,t){return G(e,n=>t.derive.accounts._identity(n).pipe(J(([r,i])=>A$(t,r,i)),W(([r,i])=>M$(r,i))))}const O$=Ji((e,t)=>e.derive.accounts.hasIdentityMulti([t]));function I$(e,t){return G(e,n=>{var r;return(r=t.query.identity)!=null&&r.identityOf?Q([t.query.identity.identityOf.multi(n),t.query.identity.superOf.multi(n)]).pipe(W(([i,a])=>i.map((s,o)=>{const c=a[o],l=c&&c.isSome?c.unwrap()[0].toString():void 0;let u;if(s&&s.isSome){const d=Ir(s.unwrap().info.display);d&&!Ne(d)&&(u=d)}return{display:u,hasIdentity:!!(u||l),parentId:l}}))):X(n.map(()=>({hasIdentity:!1})))})}function R$(e,t){return G(e,n=>t.derive.accounts.indexes().pipe(W(r=>r[n.toString()])))}let Jm=null;function L$(e){return e.query.indices.accounts.entries().pipe(W(t=>t.reduce((n,[r,i])=>(i.isSome&&(n[i.unwrap()[0].toString()]=e.registry.createType("AccountIndex",r.args[0])),n),{})))}function B$(e,t){return G(e,()=>Jm?X(Jm):(t.query.indices?L$(t).pipe(Du({})):X({})).pipe(W(n=>(Jm=n,n))))}function D$(e,t){return G(e,n=>t.query.indices?t.query.indices.accounts(n).pipe(W(r=>r.unwrapOr([])[0])):X(void 0))}function H$(e,t){var n;return(t&&((n=e.query.nicks)!=null&&n.nameOf)?e.query.nicks.nameOf(t):X(void 0)).pipe(W(r=>r!=null&&r.isSome?_i(r.unwrap()[0]).substring(0,e.consts.nicks.maxLength.toNumber()):void 0))}function z$(e,t){return G(e,n=>t.derive.accounts.idAndIndex(n).pipe(J(([r,i])=>Q([X({accountId:r,accountIndex:i}),t.derive.accounts.identity(r),H$(t,r)])),W(([{accountId:r,accountIndex:i},a,s])=>({accountId:r,accountIndex:i,identity:a,nickname:s}))))}const j$=Object.freeze(Object.defineProperty({__proto__:null,_flags:k$,_identity:V$,accountId:S$,flags:P$,hasIdentity:O$,hasIdentityMulti:I$,idAndIndex:C$,idToIndex:R$,identity:N$,indexToId:D$,indexes:B$,info:z$},Symbol.toStringTag,{value:"Module"}));function U$(e,t){const n=e.registry.getModuleInstances(e.runtimeVersion.specName,t),r=n!=null&&n.length?n[0]:t;return e.query[r]}function ju(e,t){return(n,r)=>G(n,t(U$(r,e),r,n))}function ix(e,t){return n=>ju(n,r=>()=>oe(r==null?void 0:r[e])?r[e]():X(t))}const qp=ix("members",[]);function Gp(e){return ju(e,t=>()=>oe(t==null?void 0:t.prime)?t.prime().pipe(W(n=>n.unwrapOr(null))):X(null))}function F$(e,[t,n,r]){return n.map((i,a)=>({hash:e.registry.createType("Hash",t[a]),proposal:i&&i.isSome?i.unwrap():null,votes:r[a].unwrapOr(null)}))}function RC(e,t,n){return(oe(t==null?void 0:t.proposals)&&n.length?Q([X(n),t.proposalOf.multi(n).pipe(Xi(()=>X(n.map(()=>null)))),t.voting.multi(n)]):X([[],[],[]])).pipe(W(r=>F$(e,r)))}function Zp(e){return ju(e,t=>()=>X(oe(t==null?void 0:t.proposals)))}function Kp(e){return ju(e,(t,n)=>()=>n.derive[e].proposalHashes().pipe(J(r=>RC(n,t,r))))}function Yp(e){return ju(e,(t,n)=>r=>oe(t==null?void 0:t.proposals)?OC(RC(n,t,[r])):X(null))}const Jp=ix("proposalCount",null),Qp=ix("proposals",[]),W$=qp("allianceMotion"),X$=Zp("allianceMotion"),q$=Yp("allianceMotion"),G$=Jp("allianceMotion"),Z$=Qp("allianceMotion"),K$=Kp("allianceMotion"),Y$=Gp("allianceMotion"),J$=Object.freeze(Object.defineProperty({__proto__:null,hasProposals:X$,members:W$,prime:Y$,proposal:q$,proposalCount:G$,proposalHashes:Z$,proposals:K$},Symbol.toStringTag,{value:"Module"}));function ax(e){return e.query.voterList||e.query.voterBagsList||e.query.bagsList}function Q$(e,t){const n=e.map((i,a)=>({bag:t[a].unwrapOr(null),id:i,key:i.toString()})).sort((i,a)=>a.id.cmp(i.id)),r=n.length-1;return n.map((i,a)=>$(i,{bagLower:a===r?Rt:n[a+1].id,bagUpper:i.id,index:a}))}function $$(e,t){const n=ax(t);return G(e,r=>{const i=r.map(a=>$t(a));return i.length?n.listBags.multi(i).pipe(W(a=>Q$(i,a))):X([])})}function eee(e,t){const n=ax(t);return G(e,()=>n.listBags.keys().pipe(J(r=>t.derive.bagsList._getIds(r.map(({args:[i]})=>i))),W(r=>r.filter(({bag:i})=>i))))}function tee(e,t){return G(e,n=>t.derive.bagsList._getIds([$t(n)]).pipe(W(r=>r[0])))}function nee(e,t){return G(e,n=>t.derive.bagsList.listNodes(n.bag).pipe(W(r=>$({nodes:r},n))))}function ree(e,t){return G(e,n=>t.derive.bagsList.get(n).pipe(J(r=>t.derive.bagsList.expand(r))))}function iee(e,t){const n=new au(t),r=ax(e);return n.pipe(J(i=>r.listNodes(i)),Fa(i=>{Ds(()=>{i.isSome&&i.value.next.isSome?n.next(i.unwrap().next.unwrap()):n.complete()})}),Op(),W(i=>i.map(a=>a.unwrap())))}function aee(e,t){return G(e,n=>n&&n.head.isSome?iee(t,n.head.unwrap()):X([]))}const see=Object.freeze(Object.defineProperty({__proto__:null,_getIds:$$,all:eee,expand:nee,get:tee,getExpanded:ree,listNodes:aee},Symbol.toStringTag,{value:"Module"})),oee="0x76657374696e6720";function cee(e,t,n){let r=e.registry.createType("Balance"),i=[],a=e.registry.createType("Balance"),s=!1;if(Array.isArray(n)){i=n.filter(({until:c})=>!c||t&&c.gt(t)),s=i.some(({amount:c})=>c&&c.isMax()),a=e.registry.createType("Balance",i.filter(({id:c})=>c.eq(oee)).reduce((c,{amount:l})=>c.iadd(l),new re(0)));const o=i.filter(({amount:c})=>c&&!c.isMax());o.length&&(r=e.registry.createType("Balance",F6(...o.map(({amount:c})=>c))))}return{allLocked:s,lockedBalance:r,lockedBreakdown:i,vestingLocked:a}}function qw(e,t,n,r){const{allLocked:i,lockedBalance:a,lockedBreakdown:s,vestingLocked:o}=cee(e,t,r);return $({},n,{availableBalance:e.registry.createType("Balance",i?0:F6(new re(0),n!=null&&n.freeBalance?n.freeBalance.sub(a):new re(0))),lockedBalance:a,lockedBreakdown:s,vestingLocked:o})}function lee(e,t,n){const r=n||[],i=!t.vestingLocked.isZero(),a=r.map(({locked:c,perBlock:l,startingBlock:u})=>e.gt(u)?DR(c,l.mul(e.sub(u))):Rt),s=a.reduce((c,l)=>c.iadd(l),new re(0)),o=r.reduce((c,{locked:l})=>c.iadd(l),new re(0));return{isVesting:i,vestedBalance:s,vestedClaimable:i?t.vestingLocked.sub(o.sub(s)):Rt,vesting:r.map(({locked:c,perBlock:l,startingBlock:u},d)=>({endBlock:c.div(l).iadd(u),locked:c,perBlock:l,startingBlock:u,vested:a[d]})).filter(({locked:c})=>!c.isZero()),vestingTotal:o}}function uee(e,t){const[n,[r,i,a],s]=t,o=qw(e,s,n,i[0]);return $(o,lee(s,o,r),{accountId:n.accountId,accountNonce:n.accountNonce,additional:i.slice(1).map((c,l)=>qw(e,s,n.additional[l],c)),namedReserves:a})}function dee(e,t){return Q([e.query.balances.locks(t),e.query.balances.vesting(t)]).pipe(W(([n,r])=>{let i=null;if(r.isSome){const{offset:a,perBlock:s,startingBlock:o}=r.unwrap();i=e.registry.createType("VestingInfo",{locked:a,perBlock:s,startingBlock:o})}return[i?[i]:null,[n],[]]}))}const fee=e=>!!e;function Gw(e){return[e.map(t=>!t),e.filter(fee)]}function hee(e,t,n=["balances"]){var o;const[r,i]=Gw(n.map(c=>{var l,u;return((l=e.derive[c])==null?void 0:l.customLocks)||((u=e.query[c])==null?void 0:u.locks)})),[a,s]=Gw(n.map(c=>{var l;return(l=e.query[c])==null?void 0:l.reserves}));return Q([(o=e.query.vesting)!=null&&o.vesting?e.query.vesting.vesting(t):X(e.registry.createType("Option")),i.length?Q(i.map(c=>c(t))):X([]),s.length?Q(s.map(c=>c(t))):X([])]).pipe(W(([c,l,u])=>{let d=-1,h=-1;const m=c.unwrapOr(null);return[m?Array.isArray(m)?m:[m]:null,r.map(y=>y?e.registry.createType("Vec"):l[++d]),a.map(y=>y?e.registry.createType("Vec"):u[++h])]}))}function LC(e,t){const n=t.registry.getModuleInstances(t.runtimeVersion.specName,"balances");return G(e,r=>{var i,a;return Q([t.derive.balances.account(r),oe((i=t.query.system)==null?void 0:i.account)||oe((a=t.query.balances)==null?void 0:a.account)?hee(t,r,n):dee(t,r)]).pipe(J(([s,o])=>Q([X(s),X(o),t.derive.chain.bestNumber()])),W(s=>uee(t,s)))})}function Nn(e){return e.registry.createType("Balance")}function Zw(e,[t,n,r,i]){const a=e.registry.createType("Balance",t.toBn());return{freeBalance:t,frozenFee:r,frozenMisc:i,reservedBalance:n,votingBalance:a}}function pee(e,[t,[n,[r,...i]]]){return $({accountId:t,accountNonce:n,additional:i.map(a=>Zw(e,a))},Zw(e,r))}function mee(e,t){return Q([e.query.balances.freeBalance(t),e.query.balances.reservedBalance(t),e.query.system.accountNonce(t)]).pipe(W(([n,r,i])=>[i,[[n,r,Nn(e),Nn(e)]]]))}function BC(e,t){const n=r=>[r,[[Nn(e),Nn(e),Nn(e),Nn(e)]]];return oe(e.query.system.account)?e.query.system.account(t).pipe(W(({nonce:r})=>n(r))):oe(e.query.system.accountNonce)?e.query.system.accountNonce(t).pipe(W(r=>n(r))):X(n(e.registry.createType("Index")))}function Kw(e,t,n=["balances"]){const r=n.map(a=>{var s,o;return((s=e.derive[a])==null?void 0:s.customAccount)||((o=e.query[a])==null?void 0:o.account)}).filter(a=>oe(a)),i=(a,s)=>[a,s.map(({feeFrozen:o,free:c,miscFrozen:l,reserved:u})=>[c,u,o,l])];return r.length?oe(e.query.system.account)?Q([e.query.system.account(t),...r.map(a=>a(t))]).pipe(W(([{nonce:a},...s])=>i(a,s))):Q([e.query.system.accountNonce(t),...r.map(a=>a(t))]).pipe(W(([a,...s])=>i(a,s))):BC(e,t)}function gee(e,t){return e.query.system.account(t).pipe(W(n=>{const r=n.nonce?n.data:n[1],i=n.nonce||n[0];if(!r||r.isEmpty)return[i,[[Nn(e),Nn(e),Nn(e),Nn(e)]]];const{feeFrozen:a,free:s,miscFrozen:o,reserved:c}=r;return[i,[[s,c,a,o]]]}))}function yee(e,t){const n=t.registry.getModuleInstances(t.runtimeVersion.specName,"balances"),r=n&&n[0]!=="balances";return G(e,i=>t.derive.accounts.accountId(i).pipe(J(a=>{var s,o,c;return a?Q([X(a),r?Kw(t,a,n):oe((s=t.query.system)==null?void 0:s.account)?gee(t,a):oe((o=t.query.balances)==null?void 0:o.account)?Kw(t,a):oe((c=t.query.balances)==null?void 0:c.freeBalance)?mee(t,a):BC(t,a)]):X([t.registry.createType("AccountId"),[t.registry.createType("Index"),[[Nn(t),Nn(t),Nn(t),Nn(t)]]]])}),W(a=>pee(t,a))))}function bee(e,t){return G(e,n=>n!=null&&n.length?Q(n.map(r=>t.derive.balances.account(r))):X([]))}const xee=LC,vee=Object.freeze(Object.defineProperty({__proto__:null,account:yee,all:LC,votingBalance:xee,votingBalances:bee},Symbol.toStringTag,{value:"Module"}));function wee(e,t){const n=e.tx.bounties?e.tx.bounties:e.tx.treasury,r=[n.approveBounty,n.closeBounty,n.proposeCurator,n.unassignCurator];return t.filter(i=>r.find(a=>i.proposal&&a.is(i.proposal)))}function Yw([e,t,n,r]){const i=[];return e.forEach((a,s)=>{a.isSome&&i.push({bounty:a.unwrap(),description:t[s].unwrapOrDefault().toUtf8(),index:n[s],proposals:r.filter(o=>o.proposal&&n[s].eq(o.proposal.args[0]))})}),i}function See(e,t){const n=t.query.bounties||t.query.treasury;return G(e,()=>n.bounties?Q([n.bountyCount(),t.query.council?t.query.council.proposalCount():X(0)]).pipe(J(()=>Q([n.bounties.keys(),t.derive.council?t.derive.council.proposals():X([])])),J(([r,i])=>{const a=r.map(({args:[s]})=>s);return Q([n.bounties.multi(a),n.bountyDescriptions.multi(a),X(a),X(wee(t,i))])}),W(Yw)):X(Yw([[],[],[],[]])))}const Tee=Object.freeze(Object.defineProperty({__proto__:null,bounties:See},Symbol.toStringTag,{value:"Module"}));function DC(e){return(t,n)=>G(t,()=>e(n).pipe(W(dy)))}function kee(e,t){var a,s,o,c;const n=(a=t.session)!=null&&a.validators?t.session.validators():X(null),{logs:[r]}=e.digest,i=r&&(r.isConsensus&&r.asConsensus[0].isNimbus&&r.asConsensus[1]||r.isPreRuntime&&r.asPreRuntime[0].isNimbus&&r.asPreRuntime[1]);if(i){if((s=t.authorMapping)!=null&&s.mappingWithDeposit)return Q([X(e),n,t.authorMapping.mappingWithDeposit(i).pipe(W(l=>l.unwrapOr({account:null}).account))]);if((o=t.parachainStaking)!=null&&o.selectedCandidates&&((c=t.session)!=null&&c.nextKeys)){const l=i.toHex();return Q([X(e),n,t.parachainStaking.selectedCandidates().pipe(Np(u=>Q([X(u),t.session.nextKeys.multi(u).pipe(W(d=>d.findIndex(h=>h.unwrapOrDefault().nimbus.toHex()===l)))])),W(([u,d])=>d===-1?null:u[d]))])}}return Q([X(e),n,X(null)])}function sx(e,t,n){return e.queryAt(t.parentHash.isEmpty?n||t.hash:t.parentHash).pipe(J(r=>kee(t,r)))}const Pee=DC(e=>e.rpc.chain.subscribeNewHeads()),Cee=DC(e=>e.rpc.chain.subscribeFinalizedHeads());function Eee(e,t){return G(e,()=>Q([t.derive.chain.bestNumber(),t.derive.chain.bestNumberFinalized()]).pipe(W(([n,r])=>t.registry.createType("BlockNumber",n.sub(r)))))}function HC(e,t){const[n]=e.logs.filter(s=>s.isConsensus),[r]=e.logs.filter(s=>s.isPreRuntime),[i]=e.logs.filter(s=>s.isSeal);let a;try{if(r){const[s,o]=r.asPreRuntime;a=s.extractAuthor(o,t)}if(!a&&n){const[s,o]=n.asConsensus;a=s.extractAuthor(o,t)}if(!a&&i){const[s,o]=i.asSeal;a=s.extractAuthor(o,t)}}catch{}return a}function zC(e,t,n,r){const i=e.createClass("Header");class a extends i{constructor(c,l,u,d){super(c,l);I(this,"__internal__author");this.__internal__author=d||HC(this.digest,u||[]),this.createdAtHash=l==null?void 0:l.createdAtHash}get author(){return this.__internal__author}}return new a(e,t,n,r)}function _ee(e,t){return e.map((n,r)=>{let i,a;const s=t.filter(({phase:o})=>o.isApplyExtrinsic&&o.asApplyExtrinsic.eq(r)).map(({event:o})=>(o.section==="system"&&(o.method==="ExtrinsicSuccess"?a=o.data[0]:o.method==="ExtrinsicFailed"&&(i=o.data[0],a=o.data[1])),o));return{dispatchError:i,dispatchInfo:a,events:s,extrinsic:n}})}function Mee(e,t,n,r,i){const a=e.createClass("SignedBlock");class s extends a{constructor(l,u,d,h,m){super(l,u);I(this,"__internal__author");I(this,"__internal__events");I(this,"__internal__extrinsics");this.__internal__author=m||HC(this.block.header.digest,h||[]),this.__internal__events=d||[],this.__internal__extrinsics=_ee(this.block.extrinsics,this.__internal__events),this.createdAtHash=u==null?void 0:u.createdAtHash}get author(){return this.__internal__author}get events(){return this.__internal__events}get extrinsics(){return this.__internal__extrinsics}}return new s(e,t,n,r,i)}function Aee(e,t){return G(e,n=>Q([t.rpc.chain.getBlock(n),t.queryAt(n)]).pipe(J(([r,i])=>Q([X(r),i.system.events(),sx(t,r.block.header,n)])),W(([r,i,[,a,s]])=>Mee(i.registry,r,i,a,s))))}function Vee(e,t){return G(e,n=>t.rpc.chain.getBlockHash(n).pipe(J(r=>t.derive.chain.getBlock(r))))}function Nee(e,t){return G(e,n=>t.rpc.chain.getHeader(n).pipe(J(r=>sx(t,r,n)),W(([r,i,a])=>zC((i||r).registry,r,i,a))))}function Oee(e,t){return G(e,()=>t.derive.chain.subscribeFinalizedHeads().pipe(J(n=>t.derive.chain.getBlock(n.createdAtHash||n.hash))))}function Iee(e,t){return G(e,(n,r,i=[])=>t.rpc.chain.getHeader(n).pipe(J(a=>a.parentHash.eq(r)?X([a,...i]):t.derive.chain._getHeaderRange(a.parentHash,r,[a,...i]))))}function Ree(e,t){return G(e,()=>{let n=null;return t.rpc.chain.subscribeFinalizedHeads().pipe(J(r=>{const i=n,a=r.parentHash;return n=r.createdAtHash=r.hash,i===null||a.eq(i)?X(r):t.derive.chain._getHeaderRange(a,i,[r]).pipe(J(s=>ri(s)))}))})}function Lee(e,t){return G(e,()=>t.derive.chain.subscribeNewHeads().pipe(J(n=>t.derive.chain.getBlock(n.createdAtHash||n.hash))))}function Bee(e,t){return G(e,()=>t.rpc.chain.subscribeNewHeads().pipe(J(n=>sx(t,n)),W(([n,r,i])=>(n.createdAtHash=n.hash,zC(n.registry,n,r,i)))))}const Dee=Object.freeze(Object.defineProperty({__proto__:null,_getHeaderRange:Iee,bestNumber:Pee,bestNumberFinalized:Cee,bestNumberLag:Eee,getBlock:Aee,getBlockByNumber:Vee,getHeader:Nee,subscribeFinalizedBlocks:Oee,subscribeFinalizedHeads:Ree,subscribeNewBlocks:Lee,subscribeNewHeads:Bee},Symbol.toStringTag,{value:"Module"}));function Hee(e){return X([e.consts.contracts.callBaseFee||e.registry.createType("Balance"),e.consts.contracts.contractFee||e.registry.createType("Balance"),e.consts.contracts.creationFee||e.registry.createType("Balance"),e.consts.contracts.transactionBaseFee||e.registry.createType("Balance"),e.consts.contracts.transactionByteFee||e.registry.createType("Balance"),e.consts.contracts.transferFee||e.registry.createType("Balance"),e.consts.contracts.rentByteFee||e.registry.createType("Balance"),e.consts.contracts.rentDepositOffset||e.registry.createType("Balance"),e.consts.contracts.surchargeReward||e.registry.createType("Balance"),e.consts.contracts.tombstoneDeposit||e.registry.createType("Balance")])}function zee(e,t){return G(e,()=>Hee(t).pipe(W(([n,r,i,a,s,o,c,l,u,d])=>({callBaseFee:n,contractFee:r,creationFee:i,rentByteFee:c,rentDepositOffset:l,surchargeReward:u,tombstoneDeposit:d,transactionBaseFee:a,transactionByteFee:s,transferFee:o}))))}const jee=Object.freeze(Object.defineProperty({__proto__:null,fees:zee},Symbol.toStringTag,{value:"Module"}));function Uee(e){return!Array.isArray(e)}function Fee(e){return e.stakeOf.entries().pipe(W(t=>t.map(([{args:[n]},r])=>[n,r])))}function Wee(e){return e.votesOf.entries().pipe(W(t=>t.map(([{args:[n]},r])=>[n,r])))}function Xee(e,t){return Q([Fee(t),Wee(t)]).pipe(W(([n,r])=>{const i=[];return r.forEach(([a,s])=>{i.push([a,{stake:e.registry.createType("Balance"),votes:s}])}),n.forEach(([a,s])=>{const o=i.find(([c])=>c.eq(a));o?o[1].stake=s:i.push([a,{stake:s,votes:[]}])}),i}))}function qee(e){return e.voting.entries().pipe(W(t=>t.map(([{args:[n]},r])=>[n,Uee(r)?{stake:r.stake,votes:r.votes}:{stake:r[0],votes:r[1]}])))}function Gee(e,t){const n=t.query.elections||t.query.phragmenElection||t.query.electionsPhragmen;return G(e,()=>n?n.stakeOf?Xee(t,n):qee(n):X([]))}function Zee(e,t){return G(e,n=>t.derive.council.votes().pipe(W(r=>(r.find(([i])=>i.eq(n))||[null,{stake:t.registry.createType("Balance"),votes:[]}])[1])))}const Kee=qp("council"),Yee=Zp("council"),Jee=Yp("council"),Qee=Jp("council"),$ee=Qp("council"),ete=Kp("council"),tte=Gp("council"),nte=Object.freeze(Object.defineProperty({__proto__:null,hasProposals:Yee,members:Kee,prime:tte,proposal:Jee,proposalCount:Qee,proposalHashes:$ee,proposals:ete,votes:Gee,votesOf:Zee},Symbol.toStringTag,{value:"Module"}));function rte(e){return we(Bn(":child_storage:default:",Oa(Bn("crowdloan",(e.fundIndex||e.trieIndex).toU8a()))))}function ite(e,t){return G(e,n=>t.query.crowdloan.funds(n).pipe(W(r=>r.isSome?rte(r.unwrap()):null)))}function jC(e,t){var i;const n=[],r=[];return t.filter(({event:{data:[,a],method:s,section:o}})=>o==="crowdloan"&&["Contributed","Withdrew"].includes(s)&&a.eq(e)).reduce((a,{event:{data:[s],method:o}})=>(o==="Contributed"?a.added.push(s.toHex()):a.removed.push(s.toHex()),a),{added:n,blockHash:((i=t.createdAtHash)==null?void 0:i.toHex())||"-",removed:r})}const Qm=1e3;function ate(e,t){let n=[],r=[];return e.query.system.events().pipe(J(i=>{var s;const a=jC(t,i);return a.added.length||a.removed.length?(n=n.concat(...a.added),r=r.concat(...a.removed),X({added:n,addedDelta:a.added,blockHash:((s=i.createdAtHash)==null?void 0:s.toHex())||"-",removed:r,removedDelta:a.removed})):Bu}),Du({added:n,addedDelta:[],blockHash:"-",removed:r,removedDelta:[]}))}function ste(e,t){return e.query.system.events().pipe(J(n=>{var i;return n.filter(({event:{data:[a],method:s,section:o}})=>o==="crowdloan"&&["AllRefunded","Dissolved","PartiallyRefunded"].includes(s)&&a.eq(t)).length?X(((i=n.createdAtHash)==null?void 0:i.toHex())||"-"):Bu}),Du("-"))}function ote(e,t){const n=new au(void 0);return n.pipe(J(r=>e.rpc.childstate.getKeysPaged(t,"0x",Qm,r)),Fa(r=>{Ds(()=>{r.length===Qm?n.next(r[Qm-1].toHex()):n.complete()})}),Op(),W(r=>Ro(r)))}function cte(e,t,n){return ste(e,t).pipe(J(()=>oe(e.rpc.childstate.getKeysPaged)?ote(e,n):e.rpc.childstate.getKeys(n,"0x")),W(r=>r.map(i=>i.toHex())))}function lte(e,t,n){return Q([cte(e,t,n),ate(e,t)]).pipe(W(([r,{added:i,blockHash:a,removed:s}])=>{const o={};return r.forEach(c=>{o[c]=!0}),i.forEach(c=>{o[c]=!0}),s.forEach(c=>{delete o[c]}),{blockHash:a,contributorsHex:Object.keys(o)}}))}function ute(e,t){return G(e,n=>t.derive.crowdloan.childKey(n).pipe(J(r=>r?lte(t,n,r):X({blockHash:"-",contributorsHex:[]}))))}function UC(e,t,n){return Q(n.map(r=>e.rpc.childstate.getStorage(t,r))).pipe(W(r=>r.map(i=>e.registry.createType("Option",i)).map(i=>i.isSome?e.registry.createType("Balance",i.unwrap()):e.registry.createType("Balance")).reduce((i,a,s)=>$(i,{[n[s]]:a}),{})))}function dte(e,t,n,r){return e.query.system.events().pipe(J(i=>{const a=jC(t,i),s=r.filter(o=>a.added.includes(o)||a.removed.includes(o));return s.length?UC(e,n,s):Bu}),Du({}))}function fte(e,t,n,r){return Q([UC(e,n,r),dte(e,t,n,r)]).pipe(W(([i,a])=>$({},i,a)))}function hte(e,t){return G(e,(n,r)=>t.derive.crowdloan.childKey(n).pipe(J(i=>i&&r.length?fte(t,n,i,r):X({}))))}const pte=Object.freeze(Object.defineProperty({__proto__:null,childKey:ite,contributions:ute,ownContributions:hte},Symbol.toStringTag,{value:"Module"}));function mte(e){return!!e.proposalHash}function gte(e){return!!e.tally}function Jw(e,t,n,r){for(;;){const i=e.div(t),a=n.div(r);if(i.lt(a))return!0;if(a.lt(i))return!1;const s=e.mod(t),o=n.mod(r);if(o.isZero())return!1;if(s.isZero())return!0;e=r,n=t,t=o,r=s}}function yte(e,t,{votedAye:n,votedNay:r,votedTotal:i}){const a=W6(i);return a.isZero()?!1:e.isSuperMajorityApprove?Jw(r,a,n,t):Jw(r,t,n,a)}function bte(e,t,n){return e.isSimpleMajority?n.votedAye.gt(n.votedNay):yte(e,t,n)}function xte(e){return e.reduce((t,n)=>{const{balance:r,vote:i}=n,a=i.conviction.index===0,s=r.muln(a?1:i.conviction.index).divn(a?10:1);return i.isAye?(t.allAye.push(n),t.voteCountAye++,t.votedAye.iadd(s)):(t.allNay.push(n),t.voteCountNay++,t.votedNay.iadd(s)),t.voteCount++,t.votedTotal.iadd(s),t},{allAye:[],allNay:[],voteCount:0,voteCountAye:0,voteCountNay:0,votedAye:new re(0),votedNay:new re(0),votedTotal:new re(0)})}function vte(e,t){const n=[],r=[];return t.forEach(i=>{i.vote.isAye?n.push(i):r.push(i)}),{allAye:n,allNay:r,voteCount:n.length+r.length,voteCountAye:n.length,voteCountNay:r.length,votedAye:e.ayes,votedNay:e.nays,votedTotal:e.turnout}}function wte(e,t,n){const r=gte(t.status)?vte(t.status.tally,n):xte(n);return $({},r,{isPassing:bte(t.status.threshold,e,r),votes:n})}function Ste(e){if(e.isNone)return null;const t=e.unwrap();return mte(t)?t:t.isOngoing?t.asOngoing:null}function $s(e){return e.isLegacy?e.asLegacy.hash_.toHex():e.isLookup?e.asLookup.hash_.toHex():e.isInline?e.asInline.hash.toHex():Ge(e)?Ne(e)?e:Q6(e):me(e)?we(e):e.toHex()}function Tte(e){return $s(e.proposal||e.proposalHash)}const kte=Q6("democrac");function Pte(e){return e instanceof kr}function Cte(e){return e.isInline||e.isLegacy||e.isLookup}function Ete(e){return e.query.democracy.dispatchQueue().pipe(J(t=>Q([X(t),e.derive.democracy.preimages(t.map(([,n])=>n))])),W(([t,n])=>t.map(([r,i,a],s)=>({at:r,image:n[s],imageHash:$s(i),index:a}))))}function _te(e){return e.derive.democracy.referendumsFinished().pipe(J(()=>e.query.scheduler.agenda.keys()),J(t=>{const n=t.map(({args:[r]})=>r);return n.length?Q([X(n),e.query.scheduler.agenda.multi(n).pipe(Xi(()=>X(n.map(()=>[]))))]):X([[],[]])}))}function Mte(e){return _te(e).pipe(J(([t,n])=>{const r=[];return t.forEach((i,a)=>{(n[a]||[]).filter(s=>s.isSome).forEach(s=>{const o=s.unwrap();if(o.maybeId.isSome){const c=o.maybeId.unwrap().toHex();if(c.startsWith(kte)){const l=Pte(o.call)?Cte(o.call)?$s(o.call):o.call.isHash?o.call.asHash.toHex():o.call.asValue.args[0].toHex():o.call.args[0].toHex();r.push({at:i,imageHash:l,index:e.registry.createType("(u64, ReferendumIndex)",c)[1]})}}})}),Q([X(r),r.length?e.derive.democracy.preimages(r.map(({imageHash:i})=>i)):X([])])}),W(([t,n])=>t.map((r,i)=>$({image:n[i]},r))))}function Ate(e,t){return G(e,()=>{var n;return oe((n=t.query.scheduler)==null?void 0:n.agenda)?Mte(t):t.query.democracy.dispatchQueue?Ete(t):X([])})}const FC=[0,1,2,4,8,16,32];function Vte(e,t,{approved:n,end:r}){return[r,n.isTrue&&t.isAye||n.isFalse&&t.isNay?r.add((e.consts.democracy.voteLockingPeriod||e.consts.democracy.enactmentPeriod).muln(FC[t.conviction.index])):Rt]}function Nte(e,[t,n],r){const{balance:i,vote:a}=n.asStandard,[s,o]=r.isFinished?Vte(e,a,r.asFinished):[Rt,Rt];return{balance:i,isDelegated:!1,isFinished:r.isFinished,referendumEnd:s,referendumId:t,unlockAt:o,vote:a}}function Ote(e,{balance:t,conviction:n,target:r}){return e.derive.democracy.locks(r).pipe(W(i=>i.map(({isFinished:a,referendumEnd:s,referendumId:o,unlockAt:c,vote:l})=>({balance:t,isDelegated:!0,isFinished:a,referendumEnd:s,referendumId:o,unlockAt:c.isZero()?c:s.add((e.consts.democracy.voteLockingPeriod||e.consts.democracy.enactmentPeriod).muln(FC[n.index])),vote:e.registry.createType("Vote",{aye:l.isAye,conviction:n})}))))}function Ite(e,{votes:t}){return t.length?e.query.democracy.referendumInfoOf.multi(t.map(([n])=>n)).pipe(W(n=>t.map((r,i)=>[r,n[i].unwrapOr(null)]).filter(r=>!!r[1]&&it(r[1].end)&&r[0][1].isStandard).map(([r,i])=>Nte(e,r,i)))):X([])}function Rte(e,t){return G(e,n=>t.query.democracy.votingOf?t.query.democracy.votingOf(n).pipe(J(r=>r.isDirect?Ite(t,r.asDirect):r.isDelegating?Ote(t,r.asDelegating):X([]))):X([]))}function Lte(e,t){if(t.isNone)return X(null);const[n,r]=t.unwrap();return e.derive.democracy.preimage(n).pipe(W(i=>({image:i,imageHash:$s(n),threshold:r})))}function Bte(e,t){return G(e,()=>{var n;return(n=t.query.democracy)!=null&&n.nextExternal?t.query.democracy.nextExternal().pipe(J(r=>Lte(t,r))):X(null)})}function Dte(e){return e.ticket||e.deposit}function Hte(e){return(e.maybeTicket||e.deposit).unwrapOrDefault()}function zte(e,t){return!!t&&!e.query.democracy.dispatchQueue}function Qw(e,[t,n,r,i]){let a;try{a=e.registry.createType("Call",t.toU8a(!0))}catch(s){console.error(s)}return{at:i,balance:r,proposal:a,proposer:n}}function jte(e,t){if(!t.isNone){if(zte(e,t)){const n=t.unwrap();if(n.isMissing)return;const{data:r,deposit:i,provider:a,since:s}=n.asAvailable;return Qw(e,[r,a,i,s])}return Qw(e,t.unwrap())}}function Ute(e,[t,n,r]){if(!n)return;const[i,a]=n.isUnrequested?Dte(n.asUnrequested):Hte(n.asRequested);let s;if(r)try{s=e.registry.createType("Call",r.toU8a(!0))}catch(o){console.error(o)}return{at:Rt,balance:a,proposal:s,proposalHash:t,proposer:i}}function Fte(e,t){const n=t.map(r=>$s(r));return e.query.democracy.preimages.multi(n).pipe(W(r=>r.map(i=>jte(e,i))))}function Wte(e,t){const n=t.map(i=>$s(i)),r=e.registry.lookup.getTypeDef(e.query.preimage.preimageFor.creator.meta.type.asMap.key).type;return e.query.preimage.statusFor.multi(n).pipe(J(i=>{const a=i.map(o=>o.unwrapOr(null)),s=a.map((o,c)=>o?r==="H256"?n[c]:o.isRequested?[n[c],o.asRequested.len.unwrapOr(0)]:[n[c],o.asUnrequested.len]:null).filter(o=>!!o);return e.query.preimage.preimageFor.multi(s).pipe(W(o=>{let c=-1;return a.map((l,u)=>l?[n[u],l,o[++c].unwrapOr(null)]:[n[u],null,null]).map(l=>Ute(e,l))}))}))}function Xte(e,t){return G(e,n=>n.length?oe(t.query.democracy.preimages)?Fte(t,n):oe(t.query.preimage.preimageFor)?Wte(t,n):X([]):X([]))}const qte=Ji((e,t)=>e.derive.democracy.preimages([t]));function Gte(e){return oe(e[1].mul)}function Zte([e,t,n]){return e.filter(([,,r],i)=>{var a;return!!((a=n[i])!=null&&a.isSome)&&!r.isEmpty}).map(([r,i,a],s)=>{const o=n[s].unwrap();return $({image:t[s],imageHash:$s(i),index:r,proposer:a},Gte(o)?{balance:o[1],seconds:o[0]}:{balance:o[0],seconds:o[1]})})}function Kte(e,t){return G(e,()=>{var n;return oe((n=t.query.democracy)==null?void 0:n.publicProps)?t.query.democracy.publicProps().pipe(J(r=>r.length?Q([X(r),t.derive.democracy.preimages(r.map(([,i])=>i)),t.query.democracy.depositOf.multi(r.map(([i])=>i))]):X([[],[],[]])),W(Zte)):X([])})}function Yte(e,t){return G(e,()=>{var n;return(n=t.query.democracy)!=null&&n.lowestUnbaked?t.queryMulti([t.query.democracy.lowestUnbaked,t.query.democracy.referendumCount]).pipe(W(([r,i])=>i.gt(r)?[...Array(i.sub(r).toNumber())].map((a,s)=>r.addn(s)):[])):X([])})}function Jte(e,t){return G(e,()=>t.derive.democracy.referendumsActive().pipe(J(n=>n.length?Q([X(n),t.derive.democracy._referendumsVotes(n)]):X([[],[]])),W(([n,r])=>n.map((i,a)=>$({},i,r[a])))))}function Qte(e,t){return G(e,()=>t.derive.democracy.referendumIds().pipe(J(n=>n.length?t.derive.democracy.referendumsInfo(n):X([]))))}function $te(e,t){return G(e,()=>t.derive.democracy.referendumIds().pipe(J(n=>t.query.democracy.referendumInfoOf.multi(n)),W(n=>n.map(r=>r.unwrapOr(null)).filter(r=>!!r&&r.isFinished).map(r=>r.asFinished))))}function ene(e,t){return e.query.democracy.votersFor(t).pipe(J(n=>Q([X(n),n.length?e.query.democracy.voteOf.multi(n.map(r=>[t,r])):X([]),e.derive.balances.votingBalances(n)])),W(([n,r,i])=>n.map((a,s)=>({accountId:a,balance:i[s].votingBalance||e.registry.createType("Balance"),isDelegating:!1,vote:r[s]||e.registry.createType("Vote")}))))}function tne(e,t){return e.filter(([,n])=>n.isDirect).map(([n,r])=>[n,r.asDirect.votes.filter(([i])=>i.eq(t))]).filter(([,n])=>!!n.length).reduce((n,[r,i])=>i.reduce((a,[,s])=>(s.isStandard&&a.push($({accountId:r,isDelegating:!1},s.asStandard)),a),n),[])}function nne(e,t){return e.query.democracy.votingOf.entries().pipe(W(n=>{const r=n.map(([{args:[s]},o])=>[s,o]),i=tne(r,t),a=r.filter(([,s])=>s.isDelegating).map(([s,o])=>[s,o.asDelegating]);return a.forEach(([s,{balance:o,conviction:c,target:l}])=>{const u=a.find(([h])=>h.eq(l)),d=i.find(({accountId:h})=>h.eq(u?u[0]:l));d&&i.push({accountId:s,balance:o,isDelegating:!0,vote:e.registry.createType("Vote",{aye:d.vote.isAye,conviction:c})})}),i}))}function rne(e,t){return G(e,n=>Q([t.derive.democracy.sqrtElectorate(),oe(t.query.democracy.votingOf)?nne(t,n.index):ene(t,n.index)]).pipe(W(([r,i])=>wte(r,n,i))))}function ine(e,t){return G(e,n=>n.length?Q(n.map(r=>t.derive.democracy._referendumVotes(r))):X([]))}function ane(e,t){return G(e,(n,r)=>{const i=Ste(r);return i?t.derive.democracy.preimage(i.proposal||i.proposalHash).pipe(W(a=>({image:a,imageHash:Tte(i),index:t.registry.createType("ReferendumIndex",n),status:i}))):X(null)})}function sne(e,t){return G(e,n=>n.length?t.query.democracy.referendumInfoOf.multi(n).pipe(J(r=>Q(n.map((i,a)=>t.derive.democracy._referendumInfo(i,r[a])))),W(r=>r.filter(i=>!!i))):X([]))}function one(e,t){return G(e,()=>t.query.balances.totalIssuance().pipe(W(W6)))}const cne=Object.freeze(Object.defineProperty({__proto__:null,_referendumInfo:ane,_referendumVotes:rne,_referendumsVotes:ine,dispatchQueue:Ate,locks:Rte,nextExternal:Bte,preimage:qte,preimages:Xte,proposals:Kte,referendumIds:Yte,referendums:Jte,referendumsActive:Qte,referendumsFinished:$te,referendumsInfo:sne,sqrtElectorate:one},Symbol.toStringTag,{value:"Module"}));function lne(e){return!Array.isArray(e)}function une(e){return Array.isArray(e)}function $w(e){return lne(e)?[e.who,e.stake]:e}function dne(e){return une(e)?e[0]:e}function e8([,e],[,t]){return t.cmp(e)}function fne(e,t){return t?{candidacyBond:e.consts[t].candidacyBond,desiredRunnersUp:e.consts[t].desiredRunnersUp,desiredSeats:e.consts[t].desiredMembers,termDuration:e.consts[t].termDuration,votingBond:e.consts[t].votingBond,votingBondBase:e.consts[t].votingBondBase,votingBondFactor:e.consts[t].votingBondFactor}:{}}function hne(e){const[t]=e.registry.getModuleInstances(e.runtimeVersion.specName,"council")||["council"],n=e.query.phragmenElection?"phragmenElection":e.query.electionsPhragmen?"electionsPhragmen":e.query.elections?"elections":null;return[t,n]}function pne(e,t,n){return e.queryMulti([e.query[t].members,e.query[n].candidates,e.query[n].members,e.query[n].runnersUp])}function mne(e,t){return Q([e.query[t].members(),X([]),X([]),X([])])}function gne(e,t){return G(e,()=>{const[n,r]=hne(t);return(r?pne(t,n,r):mne(t,n)).pipe(W(([i,a,s,o])=>$({},fne(t,r),{candidateCount:t.registry.createType("u32",a.length),candidates:a.map(dne),members:s.length?s.map($w).sort(e8):i.map(c=>[c,t.registry.createType("Balance")]),runnersUp:o.map($w).sort(e8)})))})}const yne=Object.freeze(Object.defineProperty({__proto__:null,info:gne},Symbol.toStringTag,{value:"Module"}));function bne([e,t,n,r]){return t.forEach((i,a)=>{const s=i.toString(),o=r[a],c=!n[a].isEmpty,l=e[s];(!l||l.hasMessage!==c||!l.blockCount.eq(o))&&(e[s]={blockCount:o,hasMessage:c,isOnline:c||o.gt(Rt)})}),e}function xne(e,t){return G(e,()=>{var n;return(n=t.query.imOnline)!=null&&n.receivedHeartbeats?t.derive.staking.overview().pipe(J(({currentIndex:r,validators:i})=>Q([X({}),X(i),t.query.imOnline.receivedHeartbeats.multi(i.map((a,s)=>[r,s])),t.query.imOnline.authoredBlocks.multi(i.map(a=>[r,a]))])),W(bne)):X({})})}const vne=Object.freeze(Object.defineProperty({__proto__:null,receivedHeartbeats:xne},Symbol.toStringTag,{value:"Module"})),wne=qp("membership"),Sne=Zp("membership"),Tne=Yp("membership"),kne=Jp("membership"),Pne=Qp("membership"),Cne=Kp("membership"),Ene=Gp("membership"),_ne=Object.freeze(Object.defineProperty({__proto__:null,hasProposals:Sne,members:wne,prime:Ene,proposal:Tne,proposalCount:kne,proposalHashes:Pne,proposals:Cne},Symbol.toStringTag,{value:"Module"}));function WC(e,t){return e.isSome?e.unwrap().some(n=>n.eq(t)):!1}function Mne(e,t){const n=t.find(([r])=>r===e);if(n&&n[1].isSome){const[r,i]=n[1].unwrap();return $({collatorId:r},i.isWithRetries?{isRetriable:!0,retries:i.asWithRetries.toNumber()}:{isRetriable:!1,retries:0})}return null}function t8(e,t){return t.map(n=>{const r=n.find(([i])=>i===e);return r?r[1]:null})}function Ane(e,[t,n,r,i,a,s,o,c]){return a.isNone?null:{active:Mne(e,t),didUpdate:WC(i,e),heads:o,id:e,info:$({id:e},a.unwrap()),pendingSwapId:s.unwrapOr(null),relayDispatchQueue:c,retryCollators:t8(e,n),selectedCollators:t8(e,r)}}function Vne(e,t){return G(e,n=>t.query.registrar&&t.query.parachains?t.queryMulti([t.query.registrar.active,t.query.registrar.retryQueue,t.query.registrar.selectedThreads,t.query.parachains.didUpdate,[t.query.registrar.paras,n],[t.query.registrar.pendingSwap,n],[t.query.parachains.heads,n],[t.query.parachains.relayDispatchQueue,n]]).pipe(W(r=>Ane(t.registry.createType("ParaId",n),r))):X(null))}function Nne([e,t,n,r,i]){return e.map((a,s)=>({didUpdate:WC(t,a),id:a,info:$({id:a},r[s].unwrapOr(null)),pendingSwapId:i[s].unwrapOr(null),relayDispatchQueueSize:n[s][0].toNumber()}))}function One(e,t){return G(e,()=>{var n;return(n=t.query.registrar)!=null&&n.parachains&&t.query.parachains?t.query.registrar.parachains().pipe(J(r=>Q([X(r),t.query.parachains.didUpdate(),t.query.parachains.relayDispatchQueueSize.multi(r),t.query.registrar.paras.multi(r),t.query.registrar.pendingSwap.multi(r)])),W(Nne)):X([])})}const Ine=Object.freeze(Object.defineProperty({__proto__:null,info:Vne,overview:One},Symbol.toStringTag,{value:"Module"}));function ox([e,t,n,r,i]){return{activeEra:t,activeEraStart:n,currentEra:r,currentIndex:e,validatorCount:i}}function Rne(e){return e.queryMulti([e.query.session.currentIndex,e.query.staking.activeEra,e.query.staking.currentEra,e.query.staking.validatorCount]).pipe(W(([t,n,r,i])=>{const{index:a,start:s}=n.unwrapOrDefault();return ox([t,a,s,r.unwrapOrDefault(),i])}))}function Lne(e){return e.query.session.currentIndex().pipe(W(t=>ox([t,e.registry.createType("EraIndex"),e.registry.createType("Option"),e.registry.createType("EraIndex"),e.registry.createType("u32")])))}function Bne(e){return X(ox([e.registry.createType("SessionIndex",1),e.registry.createType("EraIndex"),e.registry.createType("Option"),e.registry.createType("EraIndex"),e.registry.createType("u32")]))}function Dne(e,t){return G(e,()=>t.query.session?t.query.staking?Rne(t):Lne(t):Bne(t))}function Hne(e,t){return G(e,()=>t.derive.session.indexes().pipe(W(n=>{var a,s,o,c;const r=((s=(a=t.consts)==null?void 0:a.babe)==null?void 0:s.epochDuration)||t.registry.createType("u64",1),i=((c=(o=t.consts)==null?void 0:o.staking)==null?void 0:c.sessionsPerEra)||t.registry.createType("SessionIndex",1);return $({eraLength:t.registry.createType("BlockNumber",i.mul(r)),isEpoch:!!t.query.babe,sessionLength:r,sessionsPerEra:i},n)})))}function cx(e){return(t,n)=>G(t,()=>n.derive.session.progress().pipe(W(r=>r[e])))}function zne(e,t,[n,r,i,a]){const s=r.mul(t.sessionLength).iadd(i),o=n.sub(s),c=t.currentIndex.sub(a).imul(t.sessionLength).iadd(o);return $({eraProgress:e.registry.createType("BlockNumber",c),sessionProgress:e.registry.createType("BlockNumber",o)},t)}function jne(e){return e.derive.session.info().pipe(W(t=>$({eraProgress:e.registry.createType("BlockNumber"),sessionProgress:e.registry.createType("BlockNumber")},t)))}function Une(e){return e.derive.session.info().pipe(J(t=>{var n;return Q([X(t),(n=e.query.staking)!=null&&n.erasStartSessionIndex?e.queryMulti([e.query.babe.currentSlot,e.query.babe.epochIndex,e.query.babe.genesisSlot,[e.query.staking.erasStartSessionIndex,t.activeEra]]):e.queryMulti([e.query.babe.currentSlot,e.query.babe.epochIndex,e.query.babe.genesisSlot])])}),W(([t,[n,r,i,a]])=>[t,[n,r,i,a&&a.isSome?a.unwrap():e.registry.createType("SessionIndex",1)]]))}function Fne(e,t){return G(e,()=>t.query.babe?Une(t).pipe(W(([n,r])=>zne(t,n,r))):jne(t))}const Wne=cx("eraLength"),Xne=cx("eraProgress"),qne=cx("sessionProgress"),Gne=Object.freeze(Object.defineProperty({__proto__:null,eraLength:Wne,eraProgress:Xne,indexes:Dne,info:Hne,progress:Fne,sessionProgress:qne},Symbol.toStringTag,{value:"Module"}));function Zne(e){return e.query.society.candidates().pipe(J(t=>Q([X(t),e.query.society.suspendedCandidates.multi(t.map(({who:n})=>n))])),W(([t,n])=>t.map(({kind:r,value:i,who:a},s)=>({accountId:a,isSuspended:n[s].isSome,kind:r,value:i}))))}function Kne(e){return e.query.society.candidates.entries().pipe(W(t=>t.filter(([,n])=>n.isSome).map(([{args:[n]},r])=>[n,r.unwrap()]).map(([n,{bid:r,kind:i}])=>({accountId:n,isSuspended:!1,kind:i,value:r}))))}function Yne(e,t){return G(e,()=>t.query.society.suspendedCandidates&&t.query.society.candidates.creator.meta.type.isPlain?Zne(t):Kne(t))}function Jne(e,t){return G(e,()=>Q([t.query.society.bids(),t.query.society.defender?t.query.society.defender():X(void 0),t.query.society.founder(),t.query.society.head(),t.query.society.maxMembers?t.query.society.maxMembers():X(void 0),t.query.society.pot()]).pipe(W(([n,r,i,a,s,o])=>({bids:n,defender:r==null?void 0:r.unwrapOr(void 0),founder:i.unwrapOr(void 0),hasDefender:(r==null?void 0:r.isSome)&&a.isSome&&!a.eq(r)||!1,head:a.unwrapOr(void 0),maxMembers:s,pot:o}))))}function Qne(e,t){return G(e,n=>t.derive.society._members([n]).pipe(W(([r])=>r)))}function $ne(e,t){return Q([X(t),e.query.society.payouts.multi(t),e.query.society.strikes.multi(t),e.query.society.defenderVotes.multi(t),e.query.society.suspendedMembers.multi(t),e.query.society.vouching.multi(t)]).pipe(W(([n,r,i,a,s,o])=>n.map((c,l)=>({accountId:c,isDefenderVoter:a[l].isSome,isSuspended:s[l].isTrue,payouts:r[l],strikes:i[l],vote:a[l].unwrapOr(void 0),vouching:o[l].unwrapOr(void 0)}))))}function ere(e,t){return Q([X(t),e.query.society.members.multi(t),e.query.society.payouts.multi(t),e.query.society.defenderVotes.multi(t),e.query.society.suspendedMembers.multi(t)]).pipe(W(([n,r,i,a,s])=>n.map((o,c)=>r[c].isSome?{accountId:o,isDefenderVoter:a[c].isSome?a[c].unwrap().approve.isTrue:!1,isSuspended:s[c].isSome,member:r[c].unwrap(),payouts:i[c].payouts}:null).filter(o=>!!o).map(({accountId:o,isDefenderVoter:c,isSuspended:l,member:u,payouts:d})=>({accountId:o,isDefenderVoter:c,isSuspended:l,payouts:d,strikes:u.strikes,vouching:u.vouching.unwrapOr(void 0)}))))}function tre(e,t){return G(e,n=>t.query.society.members.creator.meta.type.isMap?ere(t,n):$ne(t,n))}function nre(e,t){return G(e,()=>t.query.society.members.creator.meta.type.isMap?t.query.society.members.keys().pipe(J(n=>t.derive.society._members(n.map(({args:[r]})=>r)))):t.query.society.members().pipe(J(n=>t.derive.society._members(n))))}const rre=Object.freeze(Object.defineProperty({__proto__:null,_members:tre,candidates:Yne,info:Jne,member:Qne,members:nre},Symbol.toStringTag,{value:"Module"})),ire={withDestination:!0,withLedger:!0,withNominations:!0,withPrefs:!0};function are(e){return e.reduce((t,{era:n,value:r})=>{const i=n.toString();return t[i]=(t[i]||Rt).add(r.unwrap()),t},{})}function sre(e,t,n){const r=Object.entries(are(((t==null?void 0:t.unlocking)||[]).filter(({era:i})=>i.unwrap().gt(n.activeEra)))).map(([i,a])=>({remainingEras:new re(i).isub(n.activeEra),value:e.registry.createType("Balance",a)}));return r.length?r:void 0}function ore(e,t,n){return e.registry.createType("Balance",((t==null?void 0:t.unlocking)||[]).reduce((r,{era:i,value:a})=>i.unwrap().gt(n.currentEra)?r:r.iadd(a.unwrap()),new re(0)))}function cre(e,t,n,r){return $({},n,r,{redeemable:ore(e,r.stakingLedger,t),unlocking:sre(e,r.stakingLedger,t)})}function lre(e,t){return G(e,(n,r=ire)=>t.derive.session.info().pipe(J(i=>Q([t.derive.staking.keysMulti(n),t.derive.staking.queryMulti(n,r)]).pipe(W(([a,s])=>s.map((o,c)=>cre(t,i,a[c],o)))))))}const ure=Ji((e,t,n)=>e.derive.staking.accounts([t],n));function dre(e,t){return G(e,()=>t.derive.session.indexes().pipe(J(({activeEra:n})=>t.query.staking.erasRewardPoints(n))))}const fre={withController:!0,withExposure:!0,withPrefs:!0};function hre(e,t){return Ro([e,t.filter(n=>!e.find(r=>r.eq(n)))])}function pre(e,t){return G(e,(n=fre)=>t.derive.staking.validators().pipe(J(({nextElected:r,validators:i})=>t.derive.staking.queryMulti(hre(r,i),n).pipe(W(a=>({info:a,nextElected:r,validators:i}))))))}function lx(e,t,n){const r=`${e}-${t.toString()}`;return[r,n?void 0:zu.get(r)]}function XC(e,t,n){return n?[]:t.map(i=>zu.get(`${e}-${i.toString()}`)).filter(i=>!!i)}function ux(e,t,n){return!t&&zu.set(e,n),n}function qC(e,t,n){return!t&&n.forEach(r=>zu.set(`${e}-${r.era.toString()}`,r)),n}function GC(e,t,n){return e.map(r=>t.find(({era:i})=>r.eq(i))||n.find(({era:i})=>r.eq(i))).filter(r=>!!r)}const mre=14;function gre(e,t){const n=v1(e,mre);let r=0;const i=new au(n[r]);return i.pipe(J(t),Fa(()=>{Ds(()=>{r++,r===n.length?i.complete():i.next(n[r])})}),Op(),W(Ro))}function ZC(e,t){return e.filter(n=>!t.some(({era:r})=>n.eq(r)))}function Uu(e){return(t,n)=>G(t,(r=!1)=>n.derive.staking.erasHistoric(r).pipe(J(i=>n.derive.staking[e](i,r))))}function Fu(e){return(t,n)=>G(t,(r,i=!1)=>n.derive.staking.erasHistoric(i).pipe(J(a=>n.derive.staking[e](r,a,i))))}function dx(e){return(t,n)=>G(t,r=>n.derive.staking[e](r,!0))}function fx(e){return(t,n)=>G(t,(r,i)=>r.length?gre(r,a=>Q(a.map(s=>n.derive.staking[e](s,i)))):X([]))}const yre="eraExposure";function bre(e,t){const n={},r={};return t.forEach(([i,a])=>{const s=i.args[1].toString();r[s]=a,a.others.forEach(({who:o},c)=>{const l=o.toString();n[l]=n[l]||[],n[l].push({validatorId:s,validatorIndex:c})})}),{era:e,nominators:n,validators:r}}function xre(e,t){return G(e,(n,r=!1)=>{const[i,a]=lx(yre,n,r);return a?X(a):t.query.staking.erasStakersClipped.entries(n).pipe(W(s=>ux(i,r,bre(n,s))))})}const vre=dx("_eraExposure"),wre=fx("_eraExposure"),Sre=Uu("_erasExposure");function Tre(e,t){return G(e,n=>Q([t.query.staking.activeEra(),t.consts.staking.historyDepth?X(t.consts.staking.historyDepth):t.query.staking.historyDepth()]).pipe(W(([r,i])=>{const a=[],s=i.toNumber(),o=r.unwrapOrDefault().index;let c=o;for(;c.gte(Rt)&&a.lengtht.gt(Rt)).reduce((t,[n,r])=>(t[n.toString()]=r,t),{})}function Pre(e,t){return e.map((n,r)=>({era:n,eraPoints:t[r].total,validators:kre(t[r])}))}function Cre(e,t){return G(e,(n,r)=>{if(!n.length)return X([]);const i=XC(n8,n,r),a=ZC(n,i);return a.length?t.query.staking.erasRewardPoints.multi(a).pipe(W(s=>GC(n,i,qC(n8,r,Pre(a,s))))):X(i)})}const Ere=Uu("_erasPoints"),_re="eraPrefs";function Mre(e,t){const n={};return t.forEach(([r,i])=>{n[r.args[1].toString()]=i}),{era:e,validators:n}}function Are(e,t){return G(e,(n,r)=>{const[i,a]=lx(_re,n,r);return a?X(a):t.query.staking.erasValidatorPrefs.entries(n).pipe(W(s=>ux(i,r,Mre(n,s))))})}const Vre=dx("_eraPrefs"),Nre=fx("_eraPrefs"),Ore=Uu("_erasPrefs"),r8="eraRewards";function Ire(e,t){return e.map((n,r)=>({era:n,eraReward:t[r].unwrapOrDefault()}))}function Rre(e,t){return G(e,(n,r)=>{if(!n.length)return X([]);const i=XC(r8,n,r),a=ZC(n,i);return a.length?t.query.staking.erasValidatorReward.multi(a).pipe(W(s=>GC(n,i,qC(r8,r,Ire(a,s))))):X(i)})}const Lre=Uu("_erasRewards"),Bre="eraSlashes";function Dre(e,t,n){const r={},i={};return t.forEach(([a,s])=>{r[a.args[1].toString()]=s.unwrap()}),n.forEach(([a,s])=>{i[a.args[1].toString()]=s.unwrapOrDefault()[1]}),{era:e,nominators:r,validators:i}}function Hre(e,t){return G(e,(n,r)=>{const[i,a]=lx(Bre,n,r);return a?X(a):Q([t.query.staking.nominatorSlashInEra.entries(n),t.query.staking.validatorSlashInEra.entries(n)]).pipe(W(([s,o])=>ux(i,r,Dre(n,s,o))))})}const zre=dx("_eraSlashes"),jre=fx("_eraSlashes"),Ure=Uu("_erasSlashes");function Fre(e,t,n){const r=(t.find(([a])=>a.eq(e))||[void 0,[]])[1],i=n.unwrapOr([]);return{nextSessionIds:Array.isArray(i)?i:[...i.values()],sessionIds:Array.isArray(r)?r:[...r.values()]}}const Wre=Ji((e,t)=>e.derive.staking.keysMulti([t]));function Xre(e,t){return G(e,n=>n.length?t.query.session.queuedKeys().pipe(J(r=>{var i;return Q([X(r),(i=t.consts.session)!=null&&i.dedupKeyPrefix?t.query.session.nextKeys.multi(n.map(a=>[t.consts.session.dedupKeyPrefix,a])):Q(n.map(a=>t.query.session.nextKeys(a)))])}),W(([r,i])=>n.map((a,s)=>Fre(a,r,i[s])))):X([]))}function qre(e,t){return G(e,()=>Q([t.derive.session.indexes(),t.derive.staking.validators()]).pipe(W(([n,{nextElected:r,validators:i}])=>$({},n,{nextElected:r,validators:i}))))}function Gre(e,t){return G(e,(n,r,i)=>r.length?Q([Q(r.map(a=>t.query.staking.erasStakersClipped(a,n))),Q(r.map(a=>t.query.staking.erasStakers(a,n)))]).pipe(W(([a,s])=>r.map((o,c)=>({clipped:a[c],era:o,exposure:s[c]})))):X([]))}const Zre=Ji((e,t,n)=>e.derive.staking._ownExposures(t,[n],!0)),Kre=Fu("_ownExposures");function Yre(e,t){return G(e,(n,r,i)=>r.length?Q([Q(r.map(a=>t.query.staking.validatorSlashInEra(a,n))),Q(r.map(a=>t.query.staking.nominatorSlashInEra(a,n)))]).pipe(W(([a,s])=>r.map((o,c)=>({era:o,total:a[c].isSome?a[c].unwrap()[1]:s[c].unwrapOrDefault()})))):X([]))}const Jre=Ji((e,t,n)=>e.derive.staking._ownSlashes(t,[n],!0)),Qre=Fu("_ownSlashes");function $re(e,t,n,r,i,a,s){return{accountId:e,controllerId:(t==null?void 0:t.unwrapOr(null))||null,exposure:a,nominators:n.isSome?n.unwrap().targets:[],rewardDestination:r,stakingLedger:s.unwrapOrDefault(),stashId:e,validatorPrefs:i}}function eie(e,t,{withLedger:n=!1}){const r=t.filter(a=>n&&!!a&&a.isSome).map(a=>a.unwrap()),i=e.registry.createType("Option");return(r.length?Q(r.map(a=>e.query.staking.ledger(a))):X([])).pipe(W(a=>{let s=-1;return t.map(o=>o&&o.isSome&&a[++s]||i)}))}function tie(e,t,n,{withController:r,withDestination:i,withExposure:a,withLedger:s,withNominations:o,withPrefs:c}){const l=e.registry.createType("Option"),u=e.registry.createType("RewardDestination"),d=e.registry.createType("Exposure"),h=e.registry.createType("ValidatorPrefs");return Q([r||s?Q(t.map(m=>e.query.staking.bonded(m))):X(t.map(()=>null)),o?Q(t.map(m=>e.query.staking.nominators(m))):X(t.map(()=>l)),i?Q(t.map(m=>e.query.staking.payee(m))):X(t.map(()=>u)),c?Q(t.map(m=>e.query.staking.validators(m))):X(t.map(()=>h)),a?Q(t.map(m=>e.query.staking.erasStakers(n,m))):X(t.map(()=>d))])}function nie(e,t,n,r){return tie(e,n,t,r).pipe(J(([i,a,s,o,c])=>eie(e,i,r).pipe(W(l=>n.map((u,d)=>$re(u,i[d],a[d],s[d],o[d],c[d],l[d]))))))}const rie=Ji((e,t,n)=>e.derive.staking.queryMulti([t],n));function iie(e,t){return G(e,(n,r)=>t.derive.session.indexes().pipe(J(({activeEra:i})=>{const a=n.map(s=>t.registry.createType("AccountId",s));return a.length?nie(t,i,a,r):X([])})))}function aie(e,t){return G(e,(n,r,i=!1)=>{const a=n.map(s=>t.registry.createType("AccountId",s).toString());return t.derive.staking._erasExposure(r,i).pipe(W(s=>a.map(o=>s.map(({era:c,nominators:l,validators:u})=>{const d=!!u[o],h={},m=l[o]||[];return d?h[o]=u[o]:m&&m.forEach(({validatorId:y})=>{h[y]=u[y]}),{era:c,isEmpty:!Object.keys(h).length,isValidator:d,nominating:m,validators:h}}))))})}function sie(e,t){return G(e,(n,r=!1)=>t.derive.staking.erasHistoric(r).pipe(J(i=>t.derive.staking._stakerExposures(n,i,r))))}const oie=Ji((e,t,n)=>e.derive.staking.stakerExposures([t],n));function cie(e,t){return G(e,(n,r,i)=>{const a=t.registry.createType("AccountId",n).toString();return t.derive.staking._erasPoints(r,i).pipe(W(s=>s.map(({era:o,eraPoints:c,validators:l})=>({era:o,eraPoints:c,points:l[a]||t.registry.createType("RewardPoint")}))))})}const lie=Fu("_stakerPoints");function uie(e,t){return G(e,(n,r,i)=>t.query.staking.erasValidatorPrefs.multi(r.map(a=>[a,n])).pipe(W(a=>a.map((s,o)=>({era:r[o],validatorPrefs:s})))))}const die=Fu("_stakerPrefs");function KC(e){return e?e.legacyClaimedRewards||e.claimedRewards:[]}function fie(e,t,[n,r,i],a){return a.map(({era:s,isEmpty:o,isValidator:c,nominating:l,validators:u})=>{const{eraPoints:d,validators:h}=n.find(S=>S.era.eq(s))||{eraPoints:Rt,validators:{}},{eraReward:m}=i.find(S=>S.era.eq(s))||{eraReward:e.registry.createType("Balance")},{validators:y}=r.find(S=>S.era.eq(s))||{validators:{}},v={},P=t.toString();return Object.entries(u).forEach(([S,b])=>{var k,_;const w=h[S]||Rt,N=((k=y[S])==null?void 0:k.commission.unwrap())||Rt,D=((_=b.total)==null?void 0:_.unwrap())||Rt;let H=Rt,U;if(!(D.isZero()||w.isZero()||d.isZero())){H=m.mul(w).div(d);const V=N.mul(H).div(ih);let R;if(S===P)R=b.own.unwrap();else{const z=b.others.find(({who:E})=>E.eq(P));R=z?z.value.unwrap():Rt}U=H.sub(V).imul(R).div(D).iadd(S===P?V:Rt)}v[S]={total:e.registry.createType("Balance",H),value:e.registry.createType("Balance",U)}}),{era:s,eraReward:m,isEmpty:o,isValidator:c,nominating:l,validators:v}})}function hie(e){return e.reduce(([t,n],r)=>{const i=[];return n.push(i),r.forEach(({validators:a})=>Object.keys(a).forEach(s=>{i.includes(s)||(i.push(s),t.includes(s)||t.push(s))})),[t,n]},[[],[]])}function pie(e,t,n){const r=[];Object.keys(n.validators).forEach(i=>{const a=e.indexOf(i);if(a!==-1){const s=t[a].stakingLedger;KC(s).some(o=>n.era.eq(o))&&r.push(i)}}),r.forEach(i=>{delete n.validators[i]})}function mie(e,t,{rewards:n,stakingLedger:r}){const i=e.filter(o=>!KC(r).some(c=>c.eq(o))),a=t.map(([o])=>o),s=t.map(([,o])=>o);return n.filter(({isEmpty:o})=>!o).filter(o=>i.some(c=>o.era.eq(c))?(pie(a,s,o),!0):!1).filter(({validators:o})=>Object.keys(o).length!==0).map(o=>$({},o,{nominators:o.nominating.filter(c=>o.validators[c.validatorId])}))}function gie(e,t){return G(e,(n,r=!1)=>Q([t.derive.staking._erasPoints(n,r),t.derive.staking._erasPrefs(n,r),t.derive.staking._erasRewards(n,r)]))}function yie(e,t){return G(e,(n,r,i=!1)=>Q([t.derive.staking.queryMulti(n,{withLedger:!0}),t.derive.staking._stakerExposures(n,r,i),t.derive.staking._stakerRewardsEras(r,i)]).pipe(J(([a,s,o])=>{const c=a.map(({stakingLedger:d,stashId:h},m)=>!h||!d?[]:fie(t,h,o,s[m]));if(i)return X(c);const[l,u]=hie(c);return t.derive.staking.queryMulti(l,{withLedger:!0}).pipe(W(d=>a.map(({stakingLedger:h},m)=>mie(r,u[m].map(y=>[y,d.find(v=>v.accountId.eq(y))]).filter(y=>!!y[1]),{rewards:c[m],stakingLedger:h}))))})))}const bie=Ji((e,t,n)=>e.derive.staking.erasHistoric(n).pipe(J(r=>e.derive.staking._stakerRewards([t],r,n))));function xie(e,t){return G(e,(n,r)=>n.length&&r.length?t.derive.staking._stakerRewards(n,r,!1):X([]))}function vie(e,t){return G(e,(n,r=!1)=>t.derive.staking.erasHistoric(r).pipe(J(i=>t.derive.staking.stakerRewardsMultiEras(n,i))))}function wie(e,t){return G(e,(n,r,i)=>{const a=t.registry.createType("AccountId",n).toString();return t.derive.staking._erasSlashes(r,i).pipe(W(s=>s.map(({era:o,nominators:c,validators:l})=>({era:o,total:c[a]||l[a]||t.registry.createType("Balance")}))))})}const Sie=Fu("_stakerSlashes");function Tie(e){let t=Date.now();return e.query.system.events().pipe(W(n=>(t=n.filter(({event:r,phase:i})=>{try{return i.isApplyExtrinsic&&r.section==="staking"&&r.method==="Bonded"}catch{return!1}})?Date.now():t,t)),Du(t),rx({skipTimeout:!0}))}function kie(e,t){return G(e,()=>Tie(t).pipe(J(()=>t.query.staking.validators.keys()),W(n=>n.map(({args:[r]})=>r).filter(r=>r))))}function Pie(e,t){return G(e,()=>t.query.staking.erasStakers?t.derive.session.indexes().pipe(J(({currentEra:n})=>t.query.staking.erasStakers.keys(n)),W(n=>n.map(({args:[,r]})=>r))):t.query.staking.currentElected())}function Cie(e,t){return G(e,()=>Q([t.query.session?t.query.session.validators():X([]),t.query.staking?t.derive.staking.nextElected():X([])]).pipe(W(([n,r])=>({nextElected:r.length?r:n,validators:n}))))}const Eie={withController:!0,withPrefs:!0};function _ie(e,t){return G(e,(n=Eie)=>Q([t.derive.staking.validators(),t.derive.staking.stashes()]).pipe(J(([{nextElected:r},i])=>{const a=r.map(o=>o.toString()),s=i.filter(o=>!a.includes(o.toString()));return t.derive.staking.queryMulti(s,n).pipe(W(o=>({info:o,waiting:s})))})))}const Mie=Object.freeze(Object.defineProperty({__proto__:null,_eraExposure:xre,_eraPrefs:Are,_eraSlashes:Hre,_erasExposure:wre,_erasPoints:Cre,_erasPrefs:Nre,_erasRewards:Rre,_erasSlashes:jre,_ownExposures:Gre,_ownSlashes:Yre,_stakerExposures:aie,_stakerPoints:cie,_stakerPrefs:uie,_stakerRewards:yie,_stakerRewardsEras:gie,_stakerSlashes:wie,account:ure,accounts:lre,currentPoints:dre,electedInfo:pre,eraExposure:vre,eraPrefs:Vre,eraSlashes:zre,erasExposure:Sre,erasHistoric:Tre,erasPoints:Ere,erasPrefs:Ore,erasRewards:Lre,erasSlashes:Ure,keys:Wre,keysMulti:Xre,nextElected:Pie,overview:qre,ownExposure:Zre,ownExposures:Kre,ownSlash:Jre,ownSlashes:Qre,query:rie,queryMulti:iie,stakerExposure:oie,stakerExposures:sie,stakerPoints:lie,stakerPrefs:die,stakerRewards:bie,stakerRewardsMulti:vie,stakerRewardsMultiEras:xie,stakerSlashes:Sie,stashes:kie,validators:Cie,waitingInfo:_ie},Symbol.toStringTag,{value:"Module"})),Aie=qp("technicalCommittee"),Vie=Zp("technicalCommittee"),Nie=Yp("technicalCommittee"),Oie=Jp("technicalCommittee"),Iie=Qp("technicalCommittee"),Rie=Kp("technicalCommittee"),Lie=Gp("technicalCommittee"),Bie=Object.freeze(Object.defineProperty({__proto__:null,hasProposals:Vie,members:Aie,prime:Lie,proposal:Nie,proposalCount:Oie,proposalHashes:Iie,proposals:Rie},Symbol.toStringTag,{value:"Module"}));function Die(e,{allIds:t,allProposals:n,approvalIds:r,councilProposals:i,proposalCount:a}){const s=[],o=[],c=i.filter(({proposal:l})=>l&&(e.tx.treasury.approveProposal.is(l)||e.tx.treasury.rejectProposal.is(l)));return t.forEach((l,u)=>{if(n[u].isSome){const d=c.filter(({proposal:y})=>y&&l.eq(y.args[0])).sort((y,v)=>y.proposal&&v.proposal?y.proposal.method.localeCompare(v.proposal.method):y.proposal?-1:1),h=r.some(y=>y.eq(l)),m={council:d,id:l,proposal:n[u].unwrap()};h?s.push(m):o.push(m)}}),{approvals:s,proposalCount:a,proposals:o}}function Hie(e,t,n){const r=[],i=t.toNumber();for(let s=0;so.eqn(s))||r.push(e.registry.createType("ProposalIndex",s));const a=[...r,...n];return Q([e.query.treasury.proposals.multi(a),e.derive.council?e.derive.council.proposals():X([])]).pipe(W(([s,o])=>Die(e,{allIds:a,allProposals:s,approvalIds:n,councilProposals:o,proposalCount:t})))}function zie(e,t){return G(e,()=>t.query.treasury?Q([t.query.treasury.proposalCount(),t.query.treasury.approvals()]).pipe(J(([n,r])=>Hie(t,n,r))):X({approvals:[],proposalCount:t.registry.createType("ProposalIndex"),proposals:[]}))}const jie=Object.freeze(Object.defineProperty({__proto__:null,proposals:zie},Symbol.toStringTag,{value:"Module"}));function Uie(e,t){return G(e,n=>Q([t.rpc.chain.getBlock(n),t.queryAt(n).pipe(J(r=>r.system.events()))]).pipe(W(([r,i])=>({block:r,events:i}))))}const Fie=250,Wie=new re(6*1e3),YC=new re(5),Xie=new re(5*60*1e3);function JC(e,t){return e.derive.balances.account(t).pipe(W(({accountNonce:n})=>n))}function qie(e,t){var n;return(n=e.rpc.system)!=null&&n.accountNextIndex?e.rpc.system.accountNextIndex(t):JC(e,t)}function Gie(e){return Q([e.rpc.chain.getHeader().pipe(J(t=>t.parentHash.isEmpty?X(t):e.rpc.chain.getHeader(t.parentHash).pipe(Xi(()=>X(t))))),e.rpc.chain.getFinalizedHead().pipe(J(t=>e.rpc.chain.getHeader(t).pipe(Xi(()=>X(null)))))]).pipe(W(([t,n])=>!n||dy(t).sub(dy(n)).gt(YC)?t:n))}function Zie(e,t){return(n,r,i)=>Q([it(r)?JC(t,n):r===-1?qie(t,n):X(t.registry.createType("Index",r)),it(i)||Oe(i)&&i>0?Gie(t):X(null)]).pipe(W(([a,s])=>{var o,c,l,u;return{header:s,mortalLength:Math.min(((c=(o=t.consts.system)==null?void 0:o.blockHashCount)==null?void 0:c.toNumber())||Fie,Xie.div(((l=t.consts.babe)==null?void 0:l.expectedBlockTime)||((u=t.consts.timestamp)==null?void 0:u.minimumPeriod.muln(2))||Wie).iadd(YC).toNumber()),nonce:a}}))}const Kie=Object.freeze(Object.defineProperty({__proto__:null,events:Uie,signingInfo:Zie},Symbol.toStringTag,{value:"Module"})),Yie={accounts:j$,alliance:J$,bagsList:see,balances:vee,bounties:Tee,chain:Dee,contracts:jee,council:nte,crowdloan:pte,democracy:cne,elections:yne,imOnline:vne,membership:_ne,parachains:Ine,session:Gne,society:rre,staking:Mie,technicalCommittee:Bie,treasury:jie,tx:Kie},is={allianceMotion:{instances:["allianceMotion"],methods:[]},bagsList:{instances:["voterBagsList","voterList","bagsList"],methods:[],withDetect:!0},contracts:{instances:["contracts"],methods:[]},council:{instances:["council"],methods:[],withDetect:!0},crowdloan:{instances:["crowdloan"],methods:[]},democracy:{instances:["democracy"],methods:[]},elections:{instances:["phragmenElection","electionsPhragmen","elections","council"],methods:[],withDetect:!0},imOnline:{instances:["imOnline"],methods:[]},membership:{instances:["membership"],methods:[]},parachains:{instances:["parachains","registrar"],methods:[]},session:{instances:["session"],methods:[]},society:{instances:["society"],methods:[]},staking:{instances:["staking"],methods:["erasRewardPoints"]},technicalCommittee:{instances:["technicalCommittee"],methods:[],withDetect:!0},treasury:{instances:["treasury"],methods:[]}};function Jie(e,t,n){return e.registry.getModuleInstances(t,n)||[]}function i8(e,t,n){const r={},i=Object.keys(n),a=Object.keys(t.query),s=t.runtimeVersion.specName,o=m=>a.includes(m),c=m=>Jie(t,s,m).some(o),l=m=>y=>m.some(v=>a.includes(v)&&t.query[v][y]),u=m=>Object.keys(n[m]),d=(m,y)=>n[m][y](e,t),h=m=>!is[m]||is[m].instances.some(o)&&(!is[m].methods.length||is[m].methods.every(l(is[m].instances)))||is[m].withDetect&&is[m].instances.some(c);for(let m=0,y=i.length;mObject.keys(t[s]),r=(s,o)=>e(t[s][o]),i={},a=Object.keys(t);for(let s=0,o=a.length;se;function hx(e,t,n,r){return e.filter(({event:i})=>t===i.section&&n.includes(i.method)).map(i=>r(i))}function eae({event:{data:[e]}}){return e}function tae({event:{data:e,method:t}}){return t==="ExtrinsicSuccess"?e[0]:e[1]}function nae(e=[]){return hx(e,"system",["ExtrinsicFailed"],eae)[0]}function rae(e=[]){return hx(e,"system",["ExtrinsicFailed","ExtrinsicSuccess"],tae)[0]}class $m{constructor({blockNumber:t,dispatchError:n,dispatchInfo:r,events:i,internalError:a,status:s,txHash:o,txIndex:c}){I(this,"dispatchError");I(this,"dispatchInfo");I(this,"internalError");I(this,"events");I(this,"status");I(this,"txHash");I(this,"txIndex");I(this,"blockNumber");this.dispatchError=n||nae(i),this.dispatchInfo=r||rae(i),this.events=i||[],this.internalError=a,this.status=s,this.txHash=o,this.txIndex=c,this.blockNumber=t}get isCompleted(){return this.isError||this.status.isInBlock||this.status.isFinalized}get isError(){return this.status.isDropped||this.status.isFinalityTimeout||this.status.isInvalid||this.status.isUsurped}get isFinalized(){return this.status.isFinalized}get isInBlock(){return this.status.isInBlock}get isWarning(){return this.status.isRetracted}filterRecords(t,n){return hx(this.events,t,Array.isArray(n)?n:[n],$ie)}findRecord(t,n){return this.filterRecords(t,n)[0]}toHuman(t){var n,r,i;return{dispatchError:(n=this.dispatchError)==null?void 0:n.toHuman(),dispatchInfo:(r=this.dispatchInfo)==null?void 0:r.toHuman(),events:this.events.map(a=>a.toHuman(t)),internalError:(i=this.internalError)==null?void 0:i.message.toString(),status:this.status.toHuman(t)}}}function s8(e,t,n,{header:r,mortalLength:i,nonce:a}){if(!r){if(n.era&&!n.blockHash)throw new Error("Expected blockHash to be passed alongside non-immortal era options");return Oe(n.era)&&(delete n.era,delete n.blockHash),fy(e,n,{nonce:a})}return fy(e,n,{blockHash:r.hash,era:t.createTypeUnsafe("ExtrinsicEra",[{current:r.number,period:n.era||i}]),nonce:a})}function o8(e,t){let n={};return oe(e)?t=e:n=$({},e),[n,t]}function fy(e,t,n){return $({blockHash:e.genesisHash,genesisHash:e.genesisHash},t,n,{runtimeVersion:e.runtimeVersion,signedExtensions:e.registry.signedExtensions,version:e.extrinsicType})}function iae(e={}){return qr(e)||Oe(e)?{nonce:e}:e}function aae({api:e,apiType:t,blockHash:n,decorateMethod:r}){const i=e.registry.createClass("Extrinsic");class a extends i{constructor(c,l){super(c,l,{version:e.extrinsicType});I(this,"__internal__ignoreStatusCb");I(this,"__internal__transformResult",Ks);I(this,"__internal__observeSign",(c,l)=>{const u=Im(c)?c.address:c.toString(),d=iae(l);return e.derive.tx.signingInfo(u,d.nonce,d.era).pipe(_5(),Np(async h=>{const m=s8(e,this.registry,d,h);let y=-1;return Im(c)?this.sign(c,m):y=await this.__internal__signViaSigner(u,m,h.header),{options:m,updateId:y}}))});I(this,"__internal__observeStatus",(c,l)=>{if(!l.isFinalized&&!l.isInBlock)return X(this.__internal__transformResult(new $m({status:l,txHash:c})));const u=l.isInBlock?l.asInBlock:l.asFinalized;return e.derive.tx.events(u).pipe(W(({block:d,events:h})=>this.__internal__transformResult(new $m({...uq(c,d,h,l),status:l,txHash:c}))),Xi(d=>X(this.__internal__transformResult(new $m({internalError:d,status:l,txHash:c})))))});I(this,"__internal__observeSend",c=>e.rpc.author.submitExtrinsic(this).pipe(Fa(l=>{this.__internal__updateSigner(l,c)})));I(this,"__internal__observeSubscribe",c=>{const l=this.hash;return e.rpc.author.submitAndWatchExtrinsic(this).pipe(J(u=>this.__internal__observeStatus(l,u)),Fa(u=>{this.__internal__updateSigner(u,c)}))});I(this,"__internal__signViaSigner",async(c,l,u)=>{const d=l.signer||e.signer;if(!d)throw new Error("No signer specified, either via api.setSigner or via sign options. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");const h=this.registry.createTypeUnsafe("SignerPayload",[$({},l,{address:c,blockNumber:u?u.number:0,method:this.method})]);let m;if(oe(d.signPayload))m=await d.signPayload(h.toPayload());else if(oe(d.signRaw))m=await d.signRaw(h.toRaw());else throw new Error("Invalid signer interface, it should implement either signPayload or signRaw (or both)");return super.addSignature(c,m.signature,h.toPayload()),m.id});I(this,"__internal__updateSigner",(c,l)=>{if(l&&l.updateId!==-1){const{options:u,updateId:d}=l,h=u.signer||e.signer;h&&oe(h.update)&&h.update(d,c)}});this.__internal__ignoreStatusCb=t==="rxjs"}get hasDryRun(){var c;return oe((c=e.rpc.system)==null?void 0:c.dryRun)}get hasPaymentInfo(){var c;return oe((c=e.call.transactionPaymentApi)==null?void 0:c.queryInfo)}dryRun(c,l){if(!this.hasDryRun)throw new Error("The system.dryRun RPC call is not available in your environment");return n||Ge(l)||me(l)?r(()=>e.rpc.system.dryRun(this.toHex(),n||l)):r(()=>this.__internal__observeSign(c,l).pipe(J(()=>e.rpc.system.dryRun(this.toHex()))))()}paymentInfo(c,l){if(!this.hasPaymentInfo)throw new Error("The transactionPaymentApi.queryInfo runtime call is not available in your environment");if(n||Ge(l)||me(l))return r(()=>e.callAt(n||l).pipe(J(h=>{const m=this.toU8a();return h.transactionPaymentApi.queryInfo(m,m.length)})));const[u]=o8(l),d=Im(c)?c.address:c.toString();return r(()=>e.derive.tx.signingInfo(d,u.nonce,u.era).pipe(_5(),J(h=>{const m=s8(e,this.registry,u,h),y=fy(e,m,{}),v=e.tx(this.toU8a()).signFake(d,y).toU8a();return e.call.transactionPaymentApi.queryInfo(v,v.length)})))()}send(c){const l=e.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!c);return r(l?this.__internal__observeSubscribe:this.__internal__observeSend)(c)}signAsync(c,l){return r(()=>this.__internal__observeSign(c,l).pipe(W(()=>this)))()}signAndSend(c,l,u){const[d,h]=o8(l,u),m=e.hasSubscriptions&&(this.__internal__ignoreStatusCb||!!h);return r(()=>this.__internal__observeSign(c,d).pipe(J(y=>m?this.__internal__observeSubscribe(y):this.__internal__observeSend(y))))(h)}withResultTransform(c){return this.__internal__transformResult=c,this}}return a}function c8(e,t,n,r,i){const a=aae({api:t,apiType:e,blockHash:i,decorateMethod:n});return s=>new a(r||t.registry,s)}function QC(e,t){return e.findMetaCall(fe(t))}function $C(e,t){return e.findMetaError(fe(t))}const sae={},eE={AnchorData:{anchoredBlock:"u64",docRoot:"H256",id:"H256"},DispatchErrorModule:"DispatchErrorModuleU8",PreCommitData:{expirationBlock:"u64",identity:"H256",signingRoot:"H256"},Fee:{key:"Hash",price:"Balance"},MultiAccountData:{deposit:"Balance",depositor:"AccountId",signatories:"Vec",threshold:"u16"},ChainId:"u8",DepositNonce:"u64",ResourceId:"[u8; 32]","chainbridge::ChainId":"u8",RegistryId:"H160",TokenId:"U256",AssetId:{registryId:"RegistryId",tokenId:"TokenId"},AssetInfo:{metadata:"Bytes"},MintInfo:{anchorId:"Hash",proofs:"Vec",staticHashes:"[Hash; 3]"},Proof:{leafHash:"H256",sortedHashes:"H256"},ProofMint:{hashes:"Vec",property:"Bytes",salt:"[u8; 32]",value:"Bytes"},RegistryInfo:{fields:"Vec",ownerCanBurn:"bool"},ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","NonProxy"]}},l8={...eE,AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",LookupSource:"IndicesLookupSource",Multiplier:"Fixed64",RefCount:"RefCountTo259"},oae=[{minmax:[240,243],types:{...l8,ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","Vesting"]}}},{minmax:[244,999],types:{...l8}},{minmax:[1e3,void 0],types:{...eE}}],or={CompactAssignments:"CompactAssignmentsWith24",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith24",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Governance","Staking","IdentityJudgement","CancelProxy","Auction"]},Weight:"WeightV1"},eg={AccountInfo:"AccountInfoWithRefCount",Address:"LookupSource",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"IndicesLookupSource",ValidatorPrefs:"ValidatorPrefsWithCommission"},oa={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"},cae=[{minmax:[1019,1031],types:{...eg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchError:"DispatchErrorTo198",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",IdentityInfo:"IdentityInfoTo198",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1032,1042],types:{...eg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",SlashingSpans:"SlashingSpansTo204",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1043,1045],types:{...eg,BalanceLock:"BalanceLockTo212",CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Keys:"SessionKeys5",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo223",Votes:"VotesTo230",Weight:"u32"}},{minmax:[1046,1049],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo223",Weight:"u32"}},{minmax:[1050,1054],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",ReferendumInfo:"ReferendumInfoTo239",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo240",Weight:"u32"}},{minmax:[1055,1056],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Scheduled:"ScheduledTo254",StakingLedger:"StakingLedgerTo240",Weight:"u32"}},{minmax:[1057,1061],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Scheduled:"ScheduledTo254"}},{minmax:[1062,2012],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[2013,2022],types:{...or,...oa,CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"}},{minmax:[2023,2024],types:{...or,...oa,RefCount:"RefCountTo259"}},{minmax:[2025,2027],types:{...or,...oa}},{minmax:[2028,2029],types:{...or,AccountInfo:"AccountInfoWithDualRefCount",CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"}},{minmax:[2030,9e3],types:{...or,CompactAssignments:"CompactAssignmentsWith16",RawSolution:"RawSolutionWith16"}},{minmax:[9010,9099],types:{...or,...Kn("V0")}},{minmax:[9100,9105],types:{...or,...Kn("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}],lae=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}],uae=[{minmax:[0,void 0],types:{Weight:"WeightV2"}}],ao={CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:{Any:0,NonTransfer:1,Governance:2,Staking:3,UnusedSudoBalances:4,IdentityJudgement:5,CancelProxy:6,Auction:7}},Weight:"WeightV1"},zd={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",DispatchErrorModule:"DispatchErrorModuleU8",Keys:"SessionKeys5",LookupSource:"AccountId",ValidatorPrefs:"ValidatorPrefsWithCommission"},dae=[{minmax:[0,12],types:{...ao,...zd,CompactAssignments:"CompactAssignmentsTo257",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[13,22],types:{...ao,...zd,CompactAssignments:"CompactAssignmentsTo257",RefCount:"RefCountTo259"}},{minmax:[23,24],types:{...ao,...zd,RefCount:"RefCountTo259"}},{minmax:[25,27],types:{...ao,...zd}},{minmax:[28,29],types:{...ao,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[30,9109],types:{...ao}},{minmax:[9110,void 0],types:{Weight:"WeightV1"}}],Wc={DispatchErrorModule:"DispatchErrorModuleU8",FullIdentification:"()",Keys:"SessionKeys7B",Weight:"WeightV1"},fae=[{minmax:[0,200],types:{...Wc,AccountInfo:"AccountInfoWithDualRefCount",Address:"AccountId",LookupSource:"AccountId"}},{minmax:[201,214],types:{...Wc,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[215,228],types:{...Wc,Keys:"SessionKeys6"}},{minmax:[229,9099],types:{...Wc,...Kn("V0")}},{minmax:[9100,9105],types:{...Wc,...Kn("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}],hae=[{minmax:[0,void 0],types:{}}],u8={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},pae=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...u8,...Kn("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...u8,...Kn("V1")}},{minmax:[500,9999],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[1e4,void 0],types:{Weight:"WeightV1"}}],d8={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},mae=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...d8,...Kn("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...d8,...Kn("V1")}},{minmax:[500,void 0],types:{Weight:"WeightV1",TAssetConversion:"Option"}}],ca={CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",RawSolution:"RawSolutionWith16",Keys:"SessionKeys6",ProxyType:{_enum:["Any","NonTransfer","Staking","SudoBalances","IdentityJudgement","CancelProxy"]},Weight:"WeightV1"},Xc={AccountInfo:"AccountInfoWithRefCount",Address:"AccountId",CompactAssignments:"CompactAssignmentsWith16",DispatchErrorModule:"DispatchErrorModuleU8",LookupSource:"AccountId",Keys:"SessionKeys5",RawSolution:"RawSolutionWith16",ValidatorPrefs:"ValidatorPrefsWithCommission"},gae=[{minmax:[1,2],types:{...ca,...Xc,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",Multiplier:"Fixed64",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259",Weight:"u32"}},{minmax:[3,22],types:{...ca,...Xc,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",OpenTip:"OpenTipTo225",RefCount:"RefCountTo259"}},{minmax:[23,42],types:{...ca,...Xc,CompactAssignments:"CompactAssignmentsTo257",DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"}},{minmax:[43,44],types:{...ca,...Xc,DispatchInfo:"DispatchInfoTo244",Heartbeat:"HeartbeatTo244",RefCount:"RefCountTo259"}},{minmax:[45,47],types:{...ca,...Xc}},{minmax:[48,49],types:{...ca,AccountInfo:"AccountInfoWithDualRefCount"}},{minmax:[50,9099],types:{...ca,...Kn("V0")}},{minmax:[9100,9105],types:{...ca,...Kn("V1")}},{minmax:[9106,void 0],types:{Weight:"WeightV1"}}],f8={DispatchErrorModule:"DispatchErrorModuleU8",TAssetBalance:"u128",ProxyType:{_enum:["Any","NonTransfer","CancelProxy","Assets","AssetOwner","AssetManager","Staking"]},Weight:"WeightV1"},yae=[{minmax:[0,3],types:{DispatchError:"DispatchErrorPre6First",...f8,...Kn("V0")}},{minmax:[4,5],types:{DispatchError:"DispatchErrorPre6First",...f8,...Kn("V1")}},{minmax:[500,9434],types:{Weight:"WeightV1",TAssetConversion:"Option"}},{minmax:[9435,void 0],types:{Weight:"WeightV1"}}],bae={"centrifuge-chain":oae,kusama:cae,node:lae,"node-template":uae,polkadot:dae,rococo:fae,shell:hae,statemine:pae,statemint:mae,westend:gae,westmint:yae},xae=[[0,1020,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[26669,1021,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[38245,1022,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[54248,1023,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[59659,1024,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[67651,1025,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[82191,1027,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[83238,1028,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[101503,1029,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[203466,1030,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[295787,1031,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[461692,1032,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[504329,1033,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[569327,1038,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",1],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[587687,1039,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[653183,1040,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[693488,1042,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[901442,1045,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1375086,1050,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1445458,1051,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1472960,1052,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1475648,1053,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1491596,1054,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1574408,1055,[["0xdf6acb689907609b",2],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",1],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2064961,1058,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2201991,1062,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2671528,2005,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2704202,2007,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2728002,2008,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2832534,2011,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2962294,2012,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[324e4,2013,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3274408,2015,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3323565,2019,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3534175,2022,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3860281,2023,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4143129,2024,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4401242,2025,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4841367,2026,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5961600,2027,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6137912,2028,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6561855,2029,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7100891,2030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7468792,9010,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7668600,9030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7812476,9040,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8010981,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8073833,9070,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8555825,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8945245,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9611377,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9625129,9111,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9866422,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10403784,9130,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10960765,9150,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11006614,9151,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11404482,9160,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11601803,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12008022,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12405451,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12665416,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12909508,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13109752,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13555777,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[13727747,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[14248044,9271,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[14433840,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[14645900,9291,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[15048375,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[15426015,9320,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[15680713,9340,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[15756296,9350,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]]],vae=[[0,0,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[29231,1,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[188836,5,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[199405,6,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[214264,7,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[244358,8,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[303079,9,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[314201,10,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[342400,11,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[443963,12,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[528470,13,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[687751,14,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[746085,15,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[787923,16,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[799302,17,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1205128,18,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1603423,23,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1733218,24,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2005673,25,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2436698,26,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3613564,27,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3899547,28,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4345767,29,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4876134,30,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5661442,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6321619,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6713249,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7217907,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7229126,9110,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7560558,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8115869,9140,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8638103,9151,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9280179,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9738717,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10156856,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10458576,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10655116,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10879371,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11328884,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11532856,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11933818,9270,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[12217535,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12245277,9281,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12532644,9291,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0x17a6bc0d0062aeb3",1],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]],[12876189,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0x17a6bc0d0062aeb3",1],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1]]]],wae=[[214356,4,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",1],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[392764,7,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[409740,8,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[809976,20,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[877581,24,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[879238,25,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[889472,26,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[902937,27,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[932751,28,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[991142,29,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1030162,31,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1119657,32,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1199282,33,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1342534,34,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1392263,35,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1431703,36,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1433369,37,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[1490972,41,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2087397,43,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2316688,44,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[2549864,45,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3925782,46,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[3925843,47,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4207800,48,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[4627944,49,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5124076,50,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5478664,900,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5482450,9e3,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",4],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5584305,9010,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5784566,9030,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5879822,9031,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5896856,9032,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[5897316,9033,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6117927,9050,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6210274,9070,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",2],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6379314,9080,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",2],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[6979141,9090,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7568453,9100,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7766394,9111,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7911691,9120,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7968866,9121,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[7982889,9122,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[8514322,9130,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9091726,9140,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9091774,9150,[["0xdf6acb689907609b",3],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",1],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9406726,9160,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[9921066,9170,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10007115,9180,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",5],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10480973,9190,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10578091,9200,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10678509,9210,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[10811001,9220,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11096116,9230,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11409279,9250,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11584820,9251,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11716837,9260,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11876919,9261,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1]]],[11987927,9270,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[12077324,9271,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0x17a6bc0d0062aeb3",1]]],[12301871,9280,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[12604343,9290,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",2],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[12841034,9300,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[13128237,9310,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",1],["0xf3ff14d5ab527059",1],["0x17a6bc0d0062aeb3",1]]],[13272363,9320,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13483497,9330,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13649433,9340,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]],[13761100,9350,[["0xdf6acb689907609b",4],["0x37e397fc7c91f5e4",1],["0x40fe3ad401f8959a",6],["0xd2bc9897eed08f15",3],["0xf78b278be53f454c",2],["0xaf2c0297a23e6d3d",3],["0x49eaaf1b548a0cb0",1],["0x91d5df18b0d2cf58",1],["0xed99c5acb25eedf5",3],["0xcbca25e39f142387",2],["0x687ad44ad37f03c2",1],["0xab3c0572291feb8b",1],["0xbc9d89904f5b923f",1],["0x37c8bb1350a9a2a8",2],["0xf3ff14d5ab527059",2],["0x17a6bc0d0062aeb3",1]]]],Sae=Object.freeze(Object.defineProperty({__proto__:null,kusama:xae,polkadot:vae,westend:wae},Symbol.toStringTag,{value:"Module"})),Tae={westend:{genesisHash:["0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e"]}};function kae([e,t]){const n=YB.find(r=>r.network===e)||Tae[e];if(!n)throw new Error(`Unable to find info for chain ${e}`);return{genesisHash:Hi(n.genesisHash[0]),network:e,versions:t.map(([r,i,a])=>({apis:a,blockNumber:new re(r),specVersion:new re(i)}))}}const Pae=Object.entries(Sae).map(kae);function kc(e,t,n){return n(e.toString(),t.toString())}function jd(e=[],t){return e.filter(({minmax:[n,r]})=>(n==null||t>=n)&&(r==null||t<=r)).reduce((n,{types:r})=>({...n,...r}),{})}function Cae({knownTypes:e},t,n){return kc(t,n,(r,i)=>{var a,s,o,c,l,u;return{...((o=(s=(a=e.typesBundle)==null?void 0:a.spec)==null?void 0:s[i])==null?void 0:o.signedExtensions)??{},...((u=(l=(c=e.typesBundle)==null?void 0:c.chain)==null?void 0:l[r])==null?void 0:u.signedExtensions)??{}}})}function Eae({knownTypes:e},t,n,r){const i=$t(r).toNumber();return kc(t,n,(a,s)=>{var o,c,l,u,d,h,m,y;return{...jd(bae[s],i),...jd(sae[a],i),...jd((l=(c=(o=e.typesBundle)==null?void 0:o.spec)==null?void 0:c[s])==null?void 0:l.types,i),...jd((h=(d=(u=e.typesBundle)==null?void 0:u.chain)==null?void 0:d[a])==null?void 0:h.types,i),...((m=e.typesSpec)==null?void 0:m[s])??{},...((y=e.typesChain)==null?void 0:y[a])??{},...e.types??{}}})}function _ae({knownTypes:e},t,n){return kc(t,n,(r,i)=>{var a,s,o,c,l,u;return e.hasher||((o=(s=(a=e.typesBundle)==null?void 0:a.chain)==null?void 0:s[r])==null?void 0:o.hasher)||((u=(l=(c=e.typesBundle)==null?void 0:c.spec)==null?void 0:l[i])==null?void 0:u.hasher)||null})}function h8({knownTypes:e},t,n){return kc(t,n,(r,i)=>{var a,s,o,c,l,u;return{...((o=(s=(a=e.typesBundle)==null?void 0:a.spec)==null?void 0:s[i])==null?void 0:o.rpc)??{},...((u=(l=(c=e.typesBundle)==null?void 0:c.chain)==null?void 0:l[r])==null?void 0:u.rpc)??{}}})}function Mae({knownTypes:e},t,n){return kc(t,n,(r,i)=>{var a,s,o,c,l,u;return{...((o=(s=(a=e.typesBundle)==null?void 0:a.spec)==null?void 0:s[i])==null?void 0:o.runtime)??{},...((u=(l=(c=e.typesBundle)==null?void 0:c.chain)==null?void 0:l[r])==null?void 0:u.runtime)??{}}})}function Aae({knownTypes:e},t,n){return kc(t,n,(r,i)=>{var a,s,o,c,l,u;return{...((o=(s=(a=e.typesBundle)==null?void 0:a.spec)==null?void 0:s[i])==null?void 0:o.alias)??{},...((u=(l=(c=e.typesBundle)==null?void 0:c.chain)==null?void 0:l[r])==null?void 0:u.alias)??{},...e.typesAlias??{}}})}function Vae(e,t){const n=Pae.find(r=>e.eq(r.genesisHash));return n?[n.versions.reduce((r,i)=>t.gt(i.blockNumber)?i:r,void 0),n.versions.find(r=>t.lte(r.blockNumber))]:[void 0,void 0]}const Nae=Cr("api/augment");function p8(e,t,n=[]){return t.length?` ${t.length} ${e}${n.length?" and":""}`:""}function m8(e,t){return t.length?` - ${e.padStart(7)}: ${t.sort().join(", ")}`:""}function g8(e,t,[n,r]){(n.length||r.length)&&Nae.warn(`api.${e}: Found${p8("added",n,r)}${p8("removed",r)} ${t}:${m8("added",n)}${m8("removed",r)}`)}function y8(e,t){return e.filter(n=>!t.includes(n))}function Oae(e,t){return e.filter(n=>t.includes(n))}function Iae(e,t){const n=Object.keys(e),r=Object.keys(t);return[y8(n,r),y8(r,n)]}function b8(e,t){const n=Object.keys(e),r=Oae(Object.keys(t),n),i=[];for(let a=0,s=r.length;ac[l])}return n}function x8({lookup:e},{method:t,section:n},r){return`${n}.${t}(${r.map(i=>e.getTypeDef(i).type).join(", ")})`}function Ud(e,t,n){const r=n.filter(i=>!it(i));if(t.meta.type.isPlain){if(r.length!==0)throw new Error(`${x8(e,t,[])} does not take any arguments, ${r.length} found`)}else{const{hashers:i,key:a}=t.meta.type.asMap,s=i.length===1?[a]:e.lookup.getSiType(a).def.asTuple.map(o=>o);if(r.length!==s.length)throw new Error(`${x8(e,t,s)} is a map, requiring ${s.length} arguments, ${r.length} found`)}return[t,r]}class Lae{constructor(){I(this,"__internal__eventemitter",new cP)}emit(t,...n){return this.__internal__eventemitter.emit(t,...n)}on(t,n){return this.__internal__eventemitter.on(t,n),this}off(t,n){return this.__internal__eventemitter.removeListener(t,n),this}once(t,n){return this.__internal__eventemitter.once(t,n),this}}const Fd=1e3,tg=250,Bae=50,ng=Cr("api/init");let Dae=0;function rg(e,{method:t,section:n}){return ya(e.rx.query[n]&&e.rx.query[n][t],()=>`query.${n}.${t} is not available in this version of the metadata`)}class Hae extends Lae{constructor(n,r,i){var s;super();I(this,"__internal__instanceId");I(this,"__internal__runtimeLog",{});I(this,"__internal__registry");I(this,"__internal__storageGetQ",[]);I(this,"__internal__storageSubQ",[]);I(this,"__phantom",new re(0));I(this,"_type");I(this,"_call",{});I(this,"_consts",{});I(this,"_derive");I(this,"_errors",{});I(this,"_events",{});I(this,"_extrinsics");I(this,"_extrinsicType",Up.LATEST_EXTRINSIC_VERSION);I(this,"_genesisHash");I(this,"_isConnected");I(this,"_isReady",!1);I(this,"_query",{});I(this,"_queryMulti");I(this,"_rpc");I(this,"_rpcCore");I(this,"_runtimeMap",{});I(this,"_runtimeChain");I(this,"_runtimeMetadata");I(this,"_runtimeVersion");I(this,"_rx",{call:{},consts:{},query:{},tx:{}});I(this,"_options");I(this,"_decorateMethod");I(this,"_rxDecorateMethod",n=>n);this.__internal__instanceId=`${++Dae}`,this.__internal__registry=((s=n.source)==null?void 0:s.registry)||n.registry||new VC,this._rx.callAt=(o,c)=>ri(this.at(o,c)).pipe(W(l=>l.rx.call)),this._rx.queryAt=(o,c)=>ri(this.at(o,c)).pipe(W(l=>l.rx.query)),this._rx.registry=this.__internal__registry,this._decorateMethod=i,this._options=n,this._type=r;const a=n.source?n.source._rpcCore.provider.isClonable?n.source._rpcCore.provider.clone():n.source._rpcCore.provider:n.provider||new Mp;this._rpcCore=new g$(this.__internal__instanceId,this.__internal__registry,{isPedantic:this._options.isPedantic,provider:a,userRpc:this._options.rpc}),this._isConnected=new au(this._rpcCore.provider.isConnected),this._rx.hasSubscriptions=this._rpcCore.provider.hasSubscriptions}get registry(){return this.__internal__registry}createType(n,...r){return this.__internal__registry.createType(n,...r)}registerTypes(n){n&&this.__internal__registry.register(n)}get hasSubscriptions(){return this._rpcCore.provider.hasSubscriptions}get supportMulti(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}_emptyDecorated(n,r){return{call:{},consts:{},errors:{},events:{},query:{},registry:n,rx:{call:{},query:{}},tx:c8(this._type,this._rx,this._decorateMethod,n,r)}}_createDecorated(n,r,i,a){i||(i=this._emptyDecorated(n.registry,a)),(r||!n.decoratedMeta)&&(n.decoratedMeta=a$(n.registry,n.metadata));const s=this._decorateCalls(n,this._decorateMethod,a),o=this._decorateCalls(n,this._rxDecorateMethod,a),c=this._decorateStorage(n.decoratedMeta,this._decorateMethod,a),l=this._decorateStorage(n.decoratedMeta,this._rxDecorateMethod,a);return Jr("consts",n.decoratedMeta.consts,i.consts,r),Jr("errors",n.decoratedMeta.errors,i.errors,r),Jr("events",n.decoratedMeta.events,i.events,r),Jr("query",c,i.query,r),Jr("query",l,i.rx.query,r),Jr("call",s,i.call,r),Jr("call",o,i.rx.call,r),i.findCall=u=>QC(n.registry,u),i.findError=u=>$C(n.registry,u),i.queryMulti=a?this._decorateMultiAt(i,this._decorateMethod,a):this._decorateMulti(this._decorateMethod),i.runtimeVersion=n.runtimeVersion,{createdAt:a,decoratedApi:i,decoratedMeta:n.decoratedMeta}}_injectMetadata(n,r=!1){(r||!n.decoratedApi)&&(n.decoratedApi=this._emptyDecorated(n.registry));const{decoratedApi:i,decoratedMeta:a}=this._createDecorated(n,r,n.decoratedApi);this._call=i.call,this._consts=i.consts,this._errors=i.errors,this._events=i.events,this._query=i.query,this._rx.call=i.rx.call,this._rx.query=i.rx.query;const s=this._decorateExtrinsics(a,this._decorateMethod),o=this._decorateExtrinsics(a,this._rxDecorateMethod);r||!this._extrinsics?(this._extrinsics=s,this._rx.tx=o):(Jr("tx",s,this._extrinsics,!1),Jr(null,o,this._rx.tx,!1)),Jr(null,a.consts,this._rx.consts,r),this.emit("decorated")}injectMetadata(n,r,i){this._injectMetadata({counter:0,metadata:n,registry:i||this.__internal__registry,runtimeVersion:this.__internal__registry.createType("RuntimeVersionPartial")},r)}_decorateFunctionMeta(n,r){return r.meta=n.meta,r.method=n.method,r.section=n.section,r.toJSON=n.toJSON,n.callIndex&&(r.callIndex=n.callIndex),r}_filterRpc(n,r){Object.keys(r).length!==0&&(this._rpcCore.addUserInterfaces(r),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));const i={};for(let s=0,o=n.length;s!a.includes(c)&&!c.includes("_unstable_"));o.length&&!this._options.noInitWarn&&ng.warn(`RPC methods not decorated: ${o.join(", ")}`);for(let c=0;cri(this._rpcCore.provider.send(i,a)))}_decorateRpc(n,r,i=this._rpcSubmitter(r)){const a=i,s=(o,c)=>{const l=n[o][c],u=r(l,{methodName:c});return u.meta=l.meta,u.raw=r(l.raw,{methodName:c}),u};for(let o=0,c=n.sections.length;os(l,h);for(let h=0,m=u.length;hd.version===m);h?$(h.methods,d.methods):n[o].push(d)}else n[o]=c}}_getRuntimeDefs(n,r,i=""){const a={},s=Object.values(Th);for(let o=0,c=s.length;o_.eq(U));if(u[U]=!0,k){const _=H.map(({version:R})=>R).sort(),V=H.find(({version:R})=>k[1].eq(R));if(V){const R=ze(D),z=Object.entries(V.methods);if(z.length){l[R]||(l[R]={});for(let E=0,f=z.length;E[w.toHex(),N.toString()]).filter(([w])=>!u[w]).map(([w,N])=>`${this._runtimeMap[w]||w}/${N}`);!this._options.noInitWarn&&!y&&(h.length&&ng.warn(`${m}: Not decorating runtime apis without matching versions: ${h.join(", ")}`),v.length&&ng.warn(`${m}: Not decorating unknown runtime apis: ${v.join(", ")}`));const P=o?(w,N)=>this._rpcCore.state.call(w,N,o):(w,N)=>this._rpcCore.state.call(w,N),S=w=>Ms({},Object.keys(l[w]),N=>this._decorateCall(n,l[w][N],P,s)),b=Object.keys(l);for(let w=0,N=b.length;w{if(o.length!==r.params.length)throw new Error(`${r.name}:: Expected ${r.params.length} arguments, found ${o.length}`);const c=n.createType("Raw",Zn(o.map((l,u)=>n.createTypeUnsafe(r.params[u].type,[l]).toU8a())));return i(r.name,c).pipe(W(l=>n.createTypeUnsafe(r.type,[l])))});return s.meta=r,s}_decorateMulti(n){return n(r=>r.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(r.map(i=>Array.isArray(i)?i[0].creator.meta.type.isPlain?[i[0].creator]:i[0].creator.meta.type.asMap.hashers.length===1?[i[0].creator,i.slice(1)]:[i[0].creator,...i.slice(1)]:[i.creator])):X([]))}_decorateMultiAt(n,r,i){return r(a=>a.length?this._rpcCore.state.queryStorageAt(a.map(s=>{if(Array.isArray(s)){const{creator:o}=rg(n,s[0].creator);return o.meta.type.isPlain?[o]:o.meta.type.asMap.hashers.length===1?[o,s.slice(1)]:[o,...s.slice(1)]}return[rg(n,s.creator).creator]}),i):X([]))}_decorateExtrinsics({tx:n},r){const i=c8(this._type,this._rx,r),a=o=>Ms({},Object.keys(n[o]),c=>c.startsWith("$")?n[o][c]:this._decorateExtrinsicEntry(n[o][c],i)),s=Object.keys(n);for(let o=0,c=s.length;or(n(...a));return i.is=a=>n.is(a),this._decorateFunctionMeta(n,i)}_decorateStorage({query:n,registry:r},i,a){const s={},o=l=>Ms({},Object.keys(n[l]),u=>a?this._decorateStorageEntryAt(r,n[l][u],i,a):this._decorateStorageEntry(n[l][u],i)),c=Object.keys(n);for(let l=0,u=c.length;lUd(c||this.__internal__registry,n,o),a=o=>ri(this.at(o)).pipe(W(c=>rg(c,n))),s=this._decorateStorageCall(n,r);return s.creator=n,s.at=r((o,...c)=>a(o).pipe(J(l=>l(...c)))),s.hash=r((...o)=>this._rpcCore.state.getStorageHash(i(o))),s.is=o=>o.section===n.section&&o.method===n.method,s.key=(...o)=>we(ah(n(...o))[1]),s.keyPrefix=(...o)=>we(n.keyPrefix(...o)),s.size=r((...o)=>this._rpcCore.state.getStorageSize(i(o))),s.sizeAt=r((o,...c)=>a(o).pipe(J(l=>this._rpcCore.state.getStorageSize(i(c,l.creator.meta.registry),o)))),n.iterKey&&n.meta.type.isMap&&(s.entries=r(G(this.__internal__instanceId,(...o)=>this._retrieveMapEntries(n,null,o))),s.entriesAt=r(G(this.__internal__instanceId,(o,...c)=>a(o).pipe(J(l=>this._retrieveMapEntries(l.creator,o,c))))),s.entriesPaged=r(G(this.__internal__instanceId,o=>this._retrieveMapEntriesPaged(n,void 0,o))),s.keys=r(G(this.__internal__instanceId,(...o)=>this._retrieveMapKeys(n,null,o))),s.keysAt=r(G(this.__internal__instanceId,(o,...c)=>a(o).pipe(J(l=>this._retrieveMapKeys(l.creator,o,c))))),s.keysPaged=r(G(this.__internal__instanceId,o=>this._retrieveMapKeysPaged(n,void 0,o)))),this.supportMulti&&n.meta.type.isMap&&(s.multi=r(o=>n.meta.type.asMap.hashers.length===1?this._retrieveMulti(o.map(c=>[n,[c]])):this._retrieveMulti(o.map(c=>[n,c])))),this._decorateFunctionMeta(n,s)}_decorateStorageEntryAt(n,r,i,a){const s=c=>Ud(n,r,c),o=i((...c)=>this._rpcCore.state.getStorage(s(c),a));return o.creator=r,o.hash=i((...c)=>this._rpcCore.state.getStorageHash(s(c),a)),o.is=c=>c.section===r.section&&c.method===r.method,o.key=(...c)=>we(ah(r(...c))[1]),o.keyPrefix=(...c)=>we(r.keyPrefix(...c)),o.size=i((...c)=>this._rpcCore.state.getStorageSize(s(c),a)),r.iterKey&&r.meta.type.isMap&&(o.entries=i(G(this.__internal__instanceId,(...c)=>this._retrieveMapEntries(r,a,c))),o.entriesPaged=i(G(this.__internal__instanceId,c=>this._retrieveMapEntriesPaged(r,a,c))),o.keys=i(G(this.__internal__instanceId,(...c)=>this._retrieveMapKeys(r,a,c))),o.keysPaged=i(G(this.__internal__instanceId,c=>this._retrieveMapKeysPaged(r,a,c)))),this.supportMulti&&r.meta.type.isMap&&(o.multi=i(c=>r.meta.type.asMap.hashers.length===1?this._retrieveMulti(c.map(l=>[r,[l]]),a):this._retrieveMulti(c.map(l=>[r,l]),a))),this._decorateFunctionMeta(r,o)}_queueStorage(n,r){const i=r===this.__internal__storageSubQ?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;let a=r.length-1,s=0,o;return a===-1||!r[a]||r[a][1].length===Bae?(a++,o=ri(new Promise(c=>{Ds(()=>{const l=r[a][1];delete r[a],c(l)})})).pipe(J(c=>i(c))),r.push([o,[n]])):(o=r[a][0],s=r[a][1].length,r[a][1].push(n)),o.pipe(W(c=>c[s]))}_decorateStorageCall(n,r){const i=G(this.__internal__instanceId,(...a)=>{const s=Ud(this.__internal__registry,n,a);return this.hasSubscriptions?this._queueStorage(s,this.__internal__storageSubQ):this._rpcCore.state.getStorage(s)});return r(i,{methodName:n.method,overrideNoSub:(...a)=>this._queueStorage(Ud(this.__internal__registry,n,a),this.__internal__storageGetQ)})}_retrieveMulti(n,r){if(!n.length)return X([]);const i=this.hasSubscriptions&&!r?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return n.length<=tg?r?i(n,r):i(n):Q(v1(n,tg).map(a=>r?i(a,r):i(a))).pipe(W(Ro))}_retrieveMapKeys({iterKey:n,meta:r,method:i,section:a},s,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const c=n(...o).toHex(),l=new au(c),u=s?h=>this._rpcCore.state.getKeysPaged(c,Fd,h,s):h=>this._rpcCore.state.getKeysPaged(c,Fd,h),d=h=>h.setMeta(r,a,i);return l.pipe(J(u),W(h=>h.map(d)),Fa(h=>Ds(()=>{h.length===Fd?l.next(h[Fd-1].toHex()):l.complete()})),Op(),W(Ro))}_retrieveMapKeysPaged({iterKey:n,meta:r,method:i,section:a},s,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const c=u=>u.setMeta(r,a,i);return(s?u=>this._rpcCore.state.getKeysPaged(u,o.pageSize,o.startKey||u,s):u=>this._rpcCore.state.getKeysPaged(u,o.pageSize,o.startKey||u))(n(...o.args).toHex()).pipe(W(u=>u.map(c)))}_retrieveMapEntries(n,r,i){const a=r?s=>this._rpcCore.state.queryStorageAt(s,r):s=>this._rpcCore.state.queryStorageAt(s);return this._retrieveMapKeys(n,r,i).pipe(J(s=>s.length?Q(v1(s,tg).map(a)).pipe(W(o=>Ro(o).map((c,l)=>[s[l],c]))):X([])))}_retrieveMapEntriesPaged(n,r,i){const a=r?s=>this._rpcCore.state.queryStorageAt(s,r):s=>this._rpcCore.state.queryStorageAt(s);return this._retrieveMapKeysPaged(n,r,i).pipe(J(s=>s.length?a(s).pipe(W(o=>o.map((c,l)=>[s[l],c]))):X([])))}_decorateDeriveRx(n){var a,s,o,c;const r=(a=this._runtimeVersion)==null?void 0:a.specName.toString(),i=Qie(this.__internal__instanceId,this._rx,$({},this._options.derives,(c=(o=(s=this._options.typesBundle)==null?void 0:s.spec)==null?void 0:o[r||""])==null?void 0:c.derives));return a8(n,i)}_decorateDerive(n){return a8(n,this._rx.derive)}}const zae=1e4,ig=Cr("api/init");function jae(e){return e.toString()}class Uae extends Hae{constructor(n,r,i){super(n,r,i);I(this,"__internal__atLast",null);I(this,"__internal__healthTimer",null);I(this,"__internal__registries",[]);I(this,"__internal__updateSub",null);I(this,"__internal__waitingRegistries",{});this.registry.setKnownTypes(n),n.source?this.__internal__registries=n.source.__internal__registries:this.registerTypes(n.types),this._rpc=this._decorateRpc(this._rpcCore,this._decorateMethod),this._rx.rpc=this._decorateRpc(this._rpcCore,this._rxDecorateMethod),this.supportMulti&&(this._queryMulti=this._decorateMulti(this._decorateMethod),this._rx.queryMulti=this._decorateMulti(this._rxDecorateMethod)),this._rx.signer=n.signer,this._rpcCore.setRegistrySwap(a=>this.getBlockRegistry(a)),this._rpcCore.setResolveBlockHash(a=>ar(this._rpcCore.chain.getBlockHash(a))),this.hasSubscriptions?(this._rpcCore.provider.on("disconnected",()=>this.__internal__onProviderDisconnect()),this._rpcCore.provider.on("error",a=>this.__internal__onProviderError(a)),this._rpcCore.provider.on("connected",()=>this.__internal__onProviderConnect())):this._options.noInitWarn||ig.warn("Api will be available in a limited mode since the provider does not support subscriptions"),this._rpcCore.provider.isConnected&&this.__internal__onProviderConnect().catch(Vi)}_initRegistry(n,r,i,a,s){n.clearCache(),n.setChainProperties(s||this.registry.getChainProperties()),n.setKnownTypes(this._options),n.register(Eae(n,r,i.specName,i.specVersion)),n.setHasher(_ae(n,r,i.specName)),n.knownTypes.typesBundle&&(n.knownTypes.typesAlias=Aae(n,r,i.specName)),n.setMetadata(a,void 0,$({},Cae(n,r,i.specName),this._options.signedExtensions),this._options.noInitWarn)}_getDefaultRegistry(){return ya(this.__internal__registries.find(({isDefault:n})=>n),"Initialization error, cannot find the default registry")}async at(n,r){const i=fe(n),a=we(i),s=await this.getBlockRegistry(i,r);return(!this.__internal__atLast||this.__internal__atLast[0]!==a)&&(this.__internal__atLast=[a,this._createDecorated(s,!0,null,i).decoratedApi]),this.__internal__atLast[1]}async _createBlockRegistry(n,r,i){const a=new VC(n),s=new Mh(a,await ar(this._rpcCore.state.getMetadata.raw(r.parentHash))),o=this._runtimeChain;if(!o)throw new Error("Invalid initializion order, runtimeChain is not available");this._initRegistry(a,o,i,s);const c={counter:0,lastBlockHash:n,metadata:s,registry:a,runtimeVersion:i};return this.__internal__registries.push(c),c}_cacheBlockRegistryProgress(n,r){let i=this.__internal__waitingRegistries[n];return it(i)&&(i=this.__internal__waitingRegistries[n]=new Promise((a,s)=>{r().then(o=>{delete this.__internal__waitingRegistries[n],a(o)}).catch(o=>{delete this.__internal__waitingRegistries[n],s(o)})})),i}_getBlockRegistryViaVersion(n,r){if(r){const i=this.__internal__registries.find(({runtimeVersion:{specName:a,specVersion:s}})=>a.eq(r.specName)&&s.eq(r.specVersion));if(i)return i.counter++,i.lastBlockHash=n,i}return null}async _getBlockRegistryViaHash(n){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");const r=this.registry.createType("HeaderPartial",this._genesisHash.eq(n)?{number:Rt,parentHash:this._genesisHash}:await ar(this._rpcCore.chain.getHeader.raw(n)));if(r.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");Vae(this._genesisHash,r.number);const i=this.registry.createType("RuntimeVersionPartial",await ar(this._rpcCore.state.getRuntimeVersion.raw(r.parentHash)));return this._getBlockRegistryViaVersion(n,i)||await this._cacheBlockRegistryProgress(i.toHex(),()=>this._createBlockRegistry(n,r,i))}async getBlockRegistry(n,r){return this.__internal__registries.find(({lastBlockHash:i})=>i&&j6(i,n))||this._getBlockRegistryViaVersion(n,r)||await this._cacheBlockRegistryProgress(we(n),()=>this._getBlockRegistryViaHash(n))}async _loadMeta(){var n;return this._isReady?!0:(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=(n=this._options.source)!=null&&n._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}async _metaFromSource(n){this._extrinsicType=n.extrinsicVersion,this._runtimeChain=n.runtimeChain,this._runtimeVersion=n.runtimeVersion;const r=Object.keys(n.rpc),i=[];for(let a=0,s=r.length;a{var r;return(r=this._runtimeVersion)!=null&&r.specVersion.eq(n.specVersion)?X(!1):this._rpcCore.state.getMetadata().pipe(W(i=>{ig.log(`Runtime version updated to spec=${n.specVersion.toString()}, tx=${n.transactionVersion.toString()}`),this._runtimeMetadata=i,this._runtimeVersion=n,this._rx.runtimeVersion=n;const a=this._getDefaultRegistry(),s=this._runtimeChain;if(!s)throw new Error("Invalid initializion order, runtimeChain is not available");return a.metadata=i,a.runtimeVersion=n,this._initRegistry(this.registry,s,n,i),this._injectMetadata(a,!0),!0}))})).subscribe())}async _metaFromChain(n){const[r,i,a,s,o,c]=await Promise.all([ar(this._rpcCore.chain.getBlockHash(0)),ar(this._rpcCore.state.getRuntimeVersion()),ar(this._rpcCore.system.chain()),ar(this._rpcCore.system.properties()),ar(this._rpcCore.rpc.methods()),n?Promise.resolve(null):ar(this._rpcCore.state.getMetadata())]);this._runtimeChain=a,this._runtimeVersion=i,this._rx.runtimeVersion=i;const l=`${r.toHex()||"0x"}-${i.specVersion.toString()}`,u=c||(n!=null&&n[l]?new Mh(this.registry,n[l]):await ar(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,a,i,u,s),this._filterRpc(o.methods.map(jae),h8(this.registry,a,i.specName)),this._subscribeUpdates(),this.__internal__registries.length||this.__internal__registries.push({counter:0,isDefault:!0,metadata:u,registry:this.registry,runtimeVersion:i}),u.getUniqTypes(this._options.throwOnUnknown||!1),[r,u]}_initFromMeta(n){const r=this._runtimeVersion;if(!r)throw new Error("Invalid initializion order, runtimeVersion is not available");return this._extrinsicType=n.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=r,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}_subscribeHealth(){this._unsubscribeHealth(),this.__internal__healthTimer=this.hasSubscriptions?setInterval(()=>{ar(this._rpcCore.system.health.raw()).catch(Vi)},zae):null}_unsubscribeHealth(){this.__internal__healthTimer&&(clearInterval(this.__internal__healthTimer),this.__internal__healthTimer=null)}_unsubscribeUpdates(){this.__internal__updateSub&&(this.__internal__updateSub.unsubscribe(),this.__internal__updateSub=null)}_unsubscribe(){this._unsubscribeHealth(),this._unsubscribeUpdates()}async __internal__onProviderConnect(){this._isConnected.next(!0),this.emit("connected");try{const n=this._options.initWasm===!1?!0:await KL(),r=await this._loadMeta();this._subscribeHealth(),r&&!this._isReady&&n&&(this._isReady=!0,this.emit("ready",this))}catch(n){const r=new Error(`FATAL: Unable to initialize the API: ${n.message}`);ig.error(r),this.emit("error",r)}}__internal__onProviderDisconnect(){this._isConnected.next(!1),this._unsubscribe(),this.emit("disconnected")}__internal__onProviderError(n){this.emit("error",n)}}function Cn(e){if(e===void 0)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return e}class Fae extends Uae{get call(){return Cn(this._call)}get consts(){return Cn(this._consts)}get derive(){return Cn(this._derive)}get errors(){return Cn(this._errors)}get events(){return Cn(this._events)}get extrinsicVersion(){return this._extrinsicType}get genesisHash(){return Cn(this._genesisHash)}get isConnected(){return this._isConnected.getValue()}get libraryInfo(){return`${m5.name} v${m5.version}`}get query(){return Cn(this._query)}get queryMulti(){return Cn(this._queryMulti)}get rpc(){return Cn(this._rpc)}get runtimeChain(){return Cn(this._runtimeChain)}get runtimeMetadata(){return Cn(this._runtimeMetadata)}get runtimeVersion(){return Cn(this._runtimeVersion)}get rx(){return Cn(this._rx)}get stats(){return this._rpcCore.stats}get type(){return this._type}get tx(){return Cn(this._extrinsics)}findCall(t){return QC(this.registry,t)}findError(t){return $C(this.registry,t)}}class Wae extends Fae{constructor(t={},n,r){super(t,n,r)}connect(){return this._rpcCore.connect()}disconnect(){return this._unsubscribe(),this._rpcCore.disconnect()}setSigner(t){this._rx.signer=t}async sign(t,n,{signer:r}={}){if(Ge(t)){const i=r||this._rx.signer;if(!(i!=null&&i.signRaw))throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");return(await i.signRaw($({type:"bytes"},n,{address:t}))).signature}return we(t.sign(fe(n.data)))}}class Xae{constructor(t,n){I(this,"__internal__allHasFired",!1);I(this,"__internal__callback");I(this,"__internal__fired",[]);I(this,"__internal__fns",[]);I(this,"__internal__isActive",!0);I(this,"__internal__results",[]);I(this,"__internal__subscriptions",[]);this.__internal__callback=n,this.__internal__subscriptions=t.map(async(r,i)=>{const[a,...s]=Array.isArray(r)?r:[r];return this.__internal__fired.push(!1),this.__internal__fns.push(a),a(...s,this._createCallback(i))})}_allHasFired(){return this.__internal__allHasFired||(this.__internal__allHasFired=this.__internal__fired.filter(t=>!t).length===0),this.__internal__allHasFired}_createCallback(t){return n=>{this.__internal__fired[t]=!0,this.__internal__results[t]=n,this._triggerUpdate()}}_triggerUpdate(){if(!(!this.__internal__isActive||!oe(this.__internal__callback)||!this._allHasFired()))try{Promise.resolve(this.__internal__callback(this.__internal__results)).catch(Vi)}catch{}}unsubscribe(){this.__internal__isActive&&(this.__internal__isActive=!1,this.__internal__subscriptions.map(async t=>{try{const n=await t;oe(n)&&n()}catch{}}))}}function px(e,t){let n=!1;return{reject:r=>(n||(n=!0,t(r)),Bu),resolve:r=>{n||(n=!0,e(r))}}}function qae(e,t){const n=e.slice(),r=e.length&&oe(e[e.length-1])?n.pop():void 0;if(t&&!oe(r))throw new Error("Expected a callback to be passed with subscriptions");return[n,r]}function Gae(e,t){return new Promise((n,r)=>{const i=px(n,r),a=e(...t).pipe(Xi(s=>i.reject(s))).subscribe(s=>{i.resolve(s),Ds(()=>a.unsubscribe())})})}function Zae(e,t,n){return new Promise((r,i)=>{const a=px(r,i),s=e(...t).pipe(Xi(o=>a.reject(o)),Fa(()=>a.resolve(()=>s.unsubscribe()))).subscribe(o=>{Ds(()=>n(o))})})}function Kae(e,t){const n=!!(t!=null&&t.methodName&&t.methodName.includes("subscribe"));return function(...r){const[i,a]=qae(r,n);return a?Zae(e,i,a):Gae((t==null?void 0:t.overrideNoSub)||e,i)}}class Nh extends Wae{constructor(n){super(n,"promise",Kae);I(this,"__internal__isReadyPromise");I(this,"__internal__isReadyOrErrorPromise");this.__internal__isReadyPromise=new Promise(r=>{super.once("ready",()=>r(this))}),this.__internal__isReadyOrErrorPromise=new Promise((r,i)=>{const a=px(r,i);super.once("ready",()=>a.resolve(this)),super.once("error",s=>a.reject(s))})}static create(n){const r=new Nh(n);return n&&n.throwOnConnect?r.isReadyOrError:(r.isReadyOrError.catch(Vi),r.isReady)}get isReady(){return this.__internal__isReadyPromise}get isReadyOrError(){return this.__internal__isReadyOrErrorPromise}clone(){return new Nh($({},this._options,{source:this}))}async combineLatest(n,r){const i=new Xae(n,r);return()=>{i.unsubscribe()}}}var uu,ba,ws,du,zo,T8;let Yae=(T8=class{constructor(t,n){to(this,uu,void 0);to(this,ba,void 0);to(this,ws,[]);to(this,du,void 0);to(this,zo,void 0);I(this,"ensureEventStatus",t=>["connecting","connected","disconnected","ready","error"].includes(t)?t:"error");Cc(this,zo,n),Cc(this,uu,t)}get chainId(){return Dn(this,uu)}get provider(){return Dn(this,ba)}get api(){return Dn(this,du)}get rpcEndpoint(){return Dn(this,zo)}async initialize(){Cc(this,ba,new Mp(Dn(this,zo))),this.dispatchEvent(this.ensureEventStatus("connecting")),this.initProviderEvents(),Cc(this,du,await Nh.create({provider:this.provider})),this.dispatchEvent(this.ensureEventStatus("ready"))}async initProviderEvents(){Dn(this,ws).push(Dn(this,ba).on("connected",()=>{this.dispatchEvent(this.ensureEventStatus("connected"))})),Dn(this,ws).push(Dn(this,ba).on("disconnected",()=>{this.dispatchEvent(this.ensureEventStatus("disconnected"))})),Dn(this,ws).push(Dn(this,ba).on("error",t=>{this.dispatchEvent(this.ensureEventStatus("error"),{err:t})}))}dispatchEvent(t,n){const r={event:t,chainId:this.chainId};n!=null&&n.err&&(r.err=n.err),document.dispatchEvent(new CustomEvent("api-status",{detail:r}))}unsubscribeProvider(){Dn(this,ws).forEach(t=>{t()})}async disconnect(){var t,n;this.unsubscribeProvider(),(t=this.provider)==null||t.disconnect(),await((n=this.api)==null?void 0:n.disconnect())}},uu=new WeakMap,ba=new WeakMap,ws=new WeakMap,du=new WeakMap,zo=new WeakMap,T8);const ds=class ds{static async instantiate(t,n,r){ds.instances[t]||(ds.instances[t]=new Yae(n,r),await ds.instances[t].initialize())}static async destroy(t){const n=ds.instances[t];n&&(await n.disconnect(),delete this.instances[t])}};I(ds,"instances",{});let Oh=ds;const ti=(e,t=!1)=>(e=t?e.toLowerCase().replace(/\s{2,}/g," "):e.replace(/\s{2,}/g," "),e=e.trim(),e),Jae=e=>"detail"in e,mx={"polkadot-relay-chain":{name:"Polkadot Relay Chain",unit:"DOT",providers:{"Automata 1RPC":"wss://1rpc.io/dot",Dwellir:"wss://polkadot-rpc.dwellir.com","Dwellir Tunisia":"wss://polkadot-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/polkadot","IBP-GeoDNS2":"wss://rpc.dotters.network/polkadot",LuckyFriday:"wss://rpc-polkadot.luckyfriday.io",RadiumBlock:"wss://polkadot.public.curie.radiumblock.co/ws",Stakeworld:"wss://dot-rpc.stakeworld.io",Parity:"wss://apps-rpc.polkadot.io"}},"kusama-relay-chain":{name:"Kusama Relay Chain",unit:"KSM",providers:{"Automata 1RPC":"wss://1rpc.io/ksm",Dwellir:"wss://kusama-rpc.dwellir.com","Dwellir Tunisia":"wss://kusama-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/kusama","IBP-GeoDNS2":"wss://rpc.dotters.network/kusama",LuckyFriday:"wss://rpc-kusama.luckyfriday.io",RadiumBlock:"wss://kusama.public.curie.radiumblock.co/ws",Stakeworld:"wss://ksm-rpc.stakeworld.io",Parity:"wss://kusama-rpc.polkadot.io"}},"westend-relay-chain":{name:"Westend Relay Chain",unit:"WND",providers:{Dwellir:"wss://westend-rpc.dwellir.com","Dwellir Tunisia":"wss://westend-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/westend","IBP-GeoDNS2":"wss://rpc.dotters.network/westend",LuckyFriday:"wss://rpc-westend.luckyfriday.io",RadiumBlock:"wss://westend.public.curie.radiumblock.co/ws",Stakeworld:"wss://wnd-rpc.stakeworld.io",Parity:"wss://westend-rpc.polkadot.io"}}},tE=O.createContext(LW),nE=()=>O.useContext(tE),Qae=({children:e})=>{const{getActiveTab:t,getChainTab:n,tabs:r}=Er(),[i,a]=O.useState({}),s=O.useRef(i),o=h=>{s.current=h,a(h)},c=h=>i[h],l=()=>{const h=t();if(h!=null&&h.chain)return Oh.instances[h.id]},u=h=>{if(Jae(h)){const{chainId:m,event:y}=h.detail,v=n(m);if(v){const P=v.id;switch(y){case"ready":o({...s.current,[P]:"ready"});break;case"connecting":o({...s.current,[P]:"connecting"});break;case"connected":o({...s.current,[P]:"connected"});break;case"disconnected":o({...s.current,[P]:"disconnected"});break;case"error":o({...s.current,[P]:"disconnected"});break}}}},d=O.useRef(document);return Fk("api-status",u,d),O.useEffect(()=>{console.log("initialise tab instances"),r.forEach(h=>{if(h!=null&&h.chain&&h.autoConnect){const{id:m,provider:y}=h.chain,v=mx[m].providers[y];Oh.instantiate(h.id,m,v)}})},[]),j.jsx(tE.Provider,{value:{isReady:!1,getApiStatus:c,getTabApi:l},children:e})},$ae=()=>{const{getApiStatus:e}=nE(),{pathname:t}=Lu(),{activeSection:n,setActiveSection:r}=_p(),{tabsHidden:i,setTabsHidden:a,activeTabId:s}=Er(),o=e(s);let c;switch(o){case"connecting":c="Connecting";break;case"ready":case"connected":c="Connected";break;default:c="Not Connected"}return j.jsxs(nP,{children:[j.jsxs("div",{className:"menu",children:[j.jsxs("section",{className:"main",children:[j.jsxs("div",{className:"label",children:[" ",c]}),j.jsx("button",{onClick:()=>r(0),className:n===0?"active":void 0,children:"Connect Chain"})]}),j.jsx("section",{className:"other"})]}),j.jsxs("div",{className:"config",children:[j.jsx(p5,{tooltipText:"Manage Tab",active:n===1,onClick:()=>r(1,!1),icon:wF,disabled:!1,iconTransform:"shrink-1"}),j.jsx(p5,{tooltipText:i?"Show Tabs":"Hide Tabs",active:!1,onClick:()=>a(!i),icon:i?TF:EF,disabled:t!=="/",iconTransform:"shrink-3"})]})]})},ese=Ae.div` + ${e.padStart(7)}: ${t.sort().join(", ")}`:""}function g8(e,t,[n,r]){(n.length||r.length)&&Nae.warn(`api.${e}: Found${p8("added",n,r)}${p8("removed",r)} ${t}:${m8("added",n)}${m8("removed",r)}`)}function y8(e,t){return e.filter(n=>!t.includes(n))}function Oae(e,t){return e.filter(n=>t.includes(n))}function Iae(e,t){const n=Object.keys(e),r=Object.keys(t);return[y8(n,r),y8(r,n)]}function b8(e,t){const n=Object.keys(e),r=Oae(Object.keys(t),n),i=[];for(let a=0,s=r.length;ac[l])}return n}function x8({lookup:e},{method:t,section:n},r){return`${n}.${t}(${r.map(i=>e.getTypeDef(i).type).join(", ")})`}function Ud(e,t,n){const r=n.filter(i=>!it(i));if(t.meta.type.isPlain){if(r.length!==0)throw new Error(`${x8(e,t,[])} does not take any arguments, ${r.length} found`)}else{const{hashers:i,key:a}=t.meta.type.asMap,s=i.length===1?[a]:e.lookup.getSiType(a).def.asTuple.map(o=>o);if(r.length!==s.length)throw new Error(`${x8(e,t,s)} is a map, requiring ${s.length} arguments, ${r.length} found`)}return[t,r]}class Lae{constructor(){I(this,"__internal__eventemitter",new cP)}emit(t,...n){return this.__internal__eventemitter.emit(t,...n)}on(t,n){return this.__internal__eventemitter.on(t,n),this}off(t,n){return this.__internal__eventemitter.removeListener(t,n),this}once(t,n){return this.__internal__eventemitter.once(t,n),this}}const Fd=1e3,tg=250,Bae=50,ng=Cr("api/init");let Dae=0;function rg(e,{method:t,section:n}){return ya(e.rx.query[n]&&e.rx.query[n][t],()=>`query.${n}.${t} is not available in this version of the metadata`)}class Hae extends Lae{constructor(n,r,i){var s;super();I(this,"__internal__instanceId");I(this,"__internal__runtimeLog",{});I(this,"__internal__registry");I(this,"__internal__storageGetQ",[]);I(this,"__internal__storageSubQ",[]);I(this,"__phantom",new re(0));I(this,"_type");I(this,"_call",{});I(this,"_consts",{});I(this,"_derive");I(this,"_errors",{});I(this,"_events",{});I(this,"_extrinsics");I(this,"_extrinsicType",Up.LATEST_EXTRINSIC_VERSION);I(this,"_genesisHash");I(this,"_isConnected");I(this,"_isReady",!1);I(this,"_query",{});I(this,"_queryMulti");I(this,"_rpc");I(this,"_rpcCore");I(this,"_runtimeMap",{});I(this,"_runtimeChain");I(this,"_runtimeMetadata");I(this,"_runtimeVersion");I(this,"_rx",{call:{},consts:{},query:{},tx:{}});I(this,"_options");I(this,"_decorateMethod");I(this,"_rxDecorateMethod",n=>n);this.__internal__instanceId=`${++Dae}`,this.__internal__registry=((s=n.source)==null?void 0:s.registry)||n.registry||new VC,this._rx.callAt=(o,c)=>ri(this.at(o,c)).pipe(W(l=>l.rx.call)),this._rx.queryAt=(o,c)=>ri(this.at(o,c)).pipe(W(l=>l.rx.query)),this._rx.registry=this.__internal__registry,this._decorateMethod=i,this._options=n,this._type=r;const a=n.source?n.source._rpcCore.provider.isClonable?n.source._rpcCore.provider.clone():n.source._rpcCore.provider:n.provider||new Mp;this._rpcCore=new g$(this.__internal__instanceId,this.__internal__registry,{isPedantic:this._options.isPedantic,provider:a,userRpc:this._options.rpc}),this._isConnected=new au(this._rpcCore.provider.isConnected),this._rx.hasSubscriptions=this._rpcCore.provider.hasSubscriptions}get registry(){return this.__internal__registry}createType(n,...r){return this.__internal__registry.createType(n,...r)}registerTypes(n){n&&this.__internal__registry.register(n)}get hasSubscriptions(){return this._rpcCore.provider.hasSubscriptions}get supportMulti(){return this._rpcCore.provider.hasSubscriptions||!!this._rpcCore.state.queryStorageAt}_emptyDecorated(n,r){return{call:{},consts:{},errors:{},events:{},query:{},registry:n,rx:{call:{},query:{}},tx:c8(this._type,this._rx,this._decorateMethod,n,r)}}_createDecorated(n,r,i,a){i||(i=this._emptyDecorated(n.registry,a)),(r||!n.decoratedMeta)&&(n.decoratedMeta=a$(n.registry,n.metadata));const s=this._decorateCalls(n,this._decorateMethod,a),o=this._decorateCalls(n,this._rxDecorateMethod,a),c=this._decorateStorage(n.decoratedMeta,this._decorateMethod,a),l=this._decorateStorage(n.decoratedMeta,this._rxDecorateMethod,a);return Jr("consts",n.decoratedMeta.consts,i.consts,r),Jr("errors",n.decoratedMeta.errors,i.errors,r),Jr("events",n.decoratedMeta.events,i.events,r),Jr("query",c,i.query,r),Jr("query",l,i.rx.query,r),Jr("call",s,i.call,r),Jr("call",o,i.rx.call,r),i.findCall=u=>QC(n.registry,u),i.findError=u=>$C(n.registry,u),i.queryMulti=a?this._decorateMultiAt(i,this._decorateMethod,a):this._decorateMulti(this._decorateMethod),i.runtimeVersion=n.runtimeVersion,{createdAt:a,decoratedApi:i,decoratedMeta:n.decoratedMeta}}_injectMetadata(n,r=!1){(r||!n.decoratedApi)&&(n.decoratedApi=this._emptyDecorated(n.registry));const{decoratedApi:i,decoratedMeta:a}=this._createDecorated(n,r,n.decoratedApi);this._call=i.call,this._consts=i.consts,this._errors=i.errors,this._events=i.events,this._query=i.query,this._rx.call=i.rx.call,this._rx.query=i.rx.query;const s=this._decorateExtrinsics(a,this._decorateMethod),o=this._decorateExtrinsics(a,this._rxDecorateMethod);r||!this._extrinsics?(this._extrinsics=s,this._rx.tx=o):(Jr("tx",s,this._extrinsics,!1),Jr(null,o,this._rx.tx,!1)),Jr(null,a.consts,this._rx.consts,r),this.emit("decorated")}injectMetadata(n,r,i){this._injectMetadata({counter:0,metadata:n,registry:i||this.__internal__registry,runtimeVersion:this.__internal__registry.createType("RuntimeVersionPartial")},r)}_decorateFunctionMeta(n,r){return r.meta=n.meta,r.method=n.method,r.section=n.section,r.toJSON=n.toJSON,n.callIndex&&(r.callIndex=n.callIndex),r}_filterRpc(n,r){Object.keys(r).length!==0&&(this._rpcCore.addUserInterfaces(r),this._decorateRpc(this._rpcCore,this._decorateMethod,this._rpc),this._decorateRpc(this._rpcCore,this._rxDecorateMethod,this._rx.rpc));const i={};for(let s=0,o=n.length;s!a.includes(c)&&!c.includes("_unstable_"));o.length&&!this._options.noInitWarn&&ng.warn(`RPC methods not decorated: ${o.join(", ")}`);for(let c=0;cri(this._rpcCore.provider.send(i,a)))}_decorateRpc(n,r,i=this._rpcSubmitter(r)){const a=i,s=(o,c)=>{const l=n[o][c],u=r(l,{methodName:c});return u.meta=l.meta,u.raw=r(l.raw,{methodName:c}),u};for(let o=0,c=n.sections.length;os(l,h);for(let h=0,m=u.length;hd.version===m);h?$(h.methods,d.methods):n[o].push(d)}else n[o]=c}}_getRuntimeDefs(n,r,i=""){const a={},s=Object.values(Th);for(let o=0,c=s.length;o_.eq(U));if(u[U]=!0,k){const _=H.map(({version:R})=>R).sort(),V=H.find(({version:R})=>k[1].eq(R));if(V){const R=ze(D),z=Object.entries(V.methods);if(z.length){l[R]||(l[R]={});for(let E=0,f=z.length;E[w.toHex(),N.toString()]).filter(([w])=>!u[w]).map(([w,N])=>`${this._runtimeMap[w]||w}/${N}`);!this._options.noInitWarn&&!y&&(h.length&&ng.warn(`${m}: Not decorating runtime apis without matching versions: ${h.join(", ")}`),v.length&&ng.warn(`${m}: Not decorating unknown runtime apis: ${v.join(", ")}`));const P=o?(w,N)=>this._rpcCore.state.call(w,N,o):(w,N)=>this._rpcCore.state.call(w,N),S=w=>Ms({},Object.keys(l[w]),N=>this._decorateCall(n,l[w][N],P,s)),b=Object.keys(l);for(let w=0,N=b.length;w{if(o.length!==r.params.length)throw new Error(`${r.name}:: Expected ${r.params.length} arguments, found ${o.length}`);const c=n.createType("Raw",Zn(o.map((l,u)=>n.createTypeUnsafe(r.params[u].type,[l]).toU8a())));return i(r.name,c).pipe(W(l=>n.createTypeUnsafe(r.type,[l])))});return s.meta=r,s}_decorateMulti(n){return n(r=>r.length?(this.hasSubscriptions?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt)(r.map(i=>Array.isArray(i)?i[0].creator.meta.type.isPlain?[i[0].creator]:i[0].creator.meta.type.asMap.hashers.length===1?[i[0].creator,i.slice(1)]:[i[0].creator,...i.slice(1)]:[i.creator])):X([]))}_decorateMultiAt(n,r,i){return r(a=>a.length?this._rpcCore.state.queryStorageAt(a.map(s=>{if(Array.isArray(s)){const{creator:o}=rg(n,s[0].creator);return o.meta.type.isPlain?[o]:o.meta.type.asMap.hashers.length===1?[o,s.slice(1)]:[o,...s.slice(1)]}return[rg(n,s.creator).creator]}),i):X([]))}_decorateExtrinsics({tx:n},r){const i=c8(this._type,this._rx,r),a=o=>Ms({},Object.keys(n[o]),c=>c.startsWith("$")?n[o][c]:this._decorateExtrinsicEntry(n[o][c],i)),s=Object.keys(n);for(let o=0,c=s.length;or(n(...a));return i.is=a=>n.is(a),this._decorateFunctionMeta(n,i)}_decorateStorage({query:n,registry:r},i,a){const s={},o=l=>Ms({},Object.keys(n[l]),u=>a?this._decorateStorageEntryAt(r,n[l][u],i,a):this._decorateStorageEntry(n[l][u],i)),c=Object.keys(n);for(let l=0,u=c.length;lUd(c||this.__internal__registry,n,o),a=o=>ri(this.at(o)).pipe(W(c=>rg(c,n))),s=this._decorateStorageCall(n,r);return s.creator=n,s.at=r((o,...c)=>a(o).pipe(J(l=>l(...c)))),s.hash=r((...o)=>this._rpcCore.state.getStorageHash(i(o))),s.is=o=>o.section===n.section&&o.method===n.method,s.key=(...o)=>we(ah(n(...o))[1]),s.keyPrefix=(...o)=>we(n.keyPrefix(...o)),s.size=r((...o)=>this._rpcCore.state.getStorageSize(i(o))),s.sizeAt=r((o,...c)=>a(o).pipe(J(l=>this._rpcCore.state.getStorageSize(i(c,l.creator.meta.registry),o)))),n.iterKey&&n.meta.type.isMap&&(s.entries=r(G(this.__internal__instanceId,(...o)=>this._retrieveMapEntries(n,null,o))),s.entriesAt=r(G(this.__internal__instanceId,(o,...c)=>a(o).pipe(J(l=>this._retrieveMapEntries(l.creator,o,c))))),s.entriesPaged=r(G(this.__internal__instanceId,o=>this._retrieveMapEntriesPaged(n,void 0,o))),s.keys=r(G(this.__internal__instanceId,(...o)=>this._retrieveMapKeys(n,null,o))),s.keysAt=r(G(this.__internal__instanceId,(o,...c)=>a(o).pipe(J(l=>this._retrieveMapKeys(l.creator,o,c))))),s.keysPaged=r(G(this.__internal__instanceId,o=>this._retrieveMapKeysPaged(n,void 0,o)))),this.supportMulti&&n.meta.type.isMap&&(s.multi=r(o=>n.meta.type.asMap.hashers.length===1?this._retrieveMulti(o.map(c=>[n,[c]])):this._retrieveMulti(o.map(c=>[n,c])))),this._decorateFunctionMeta(n,s)}_decorateStorageEntryAt(n,r,i,a){const s=c=>Ud(n,r,c),o=i((...c)=>this._rpcCore.state.getStorage(s(c),a));return o.creator=r,o.hash=i((...c)=>this._rpcCore.state.getStorageHash(s(c),a)),o.is=c=>c.section===r.section&&c.method===r.method,o.key=(...c)=>we(ah(r(...c))[1]),o.keyPrefix=(...c)=>we(r.keyPrefix(...c)),o.size=i((...c)=>this._rpcCore.state.getStorageSize(s(c),a)),r.iterKey&&r.meta.type.isMap&&(o.entries=i(G(this.__internal__instanceId,(...c)=>this._retrieveMapEntries(r,a,c))),o.entriesPaged=i(G(this.__internal__instanceId,c=>this._retrieveMapEntriesPaged(r,a,c))),o.keys=i(G(this.__internal__instanceId,(...c)=>this._retrieveMapKeys(r,a,c))),o.keysPaged=i(G(this.__internal__instanceId,c=>this._retrieveMapKeysPaged(r,a,c)))),this.supportMulti&&r.meta.type.isMap&&(o.multi=i(c=>r.meta.type.asMap.hashers.length===1?this._retrieveMulti(c.map(l=>[r,[l]]),a):this._retrieveMulti(c.map(l=>[r,l]),a))),this._decorateFunctionMeta(r,o)}_queueStorage(n,r){const i=r===this.__internal__storageSubQ?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;let a=r.length-1,s=0,o;return a===-1||!r[a]||r[a][1].length===Bae?(a++,o=ri(new Promise(c=>{Ds(()=>{const l=r[a][1];delete r[a],c(l)})})).pipe(J(c=>i(c))),r.push([o,[n]])):(o=r[a][0],s=r[a][1].length,r[a][1].push(n)),o.pipe(W(c=>c[s]))}_decorateStorageCall(n,r){const i=G(this.__internal__instanceId,(...a)=>{const s=Ud(this.__internal__registry,n,a);return this.hasSubscriptions?this._queueStorage(s,this.__internal__storageSubQ):this._rpcCore.state.getStorage(s)});return r(i,{methodName:n.method,overrideNoSub:(...a)=>this._queueStorage(Ud(this.__internal__registry,n,a),this.__internal__storageGetQ)})}_retrieveMulti(n,r){if(!n.length)return X([]);const i=this.hasSubscriptions&&!r?this._rpcCore.state.subscribeStorage:this._rpcCore.state.queryStorageAt;return n.length<=tg?r?i(n,r):i(n):Q(v1(n,tg).map(a=>r?i(a,r):i(a))).pipe(W(Ro))}_retrieveMapKeys({iterKey:n,meta:r,method:i,section:a},s,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const c=n(...o).toHex(),l=new au(c),u=s?h=>this._rpcCore.state.getKeysPaged(c,Fd,h,s):h=>this._rpcCore.state.getKeysPaged(c,Fd,h),d=h=>h.setMeta(r,a,i);return l.pipe(J(u),W(h=>h.map(d)),Fa(h=>Ds(()=>{h.length===Fd?l.next(h[Fd-1].toHex()):l.complete()})),Op(),W(Ro))}_retrieveMapKeysPaged({iterKey:n,meta:r,method:i,section:a},s,o){if(!n||!r.type.isMap)throw new Error("keys can only be retrieved on maps");const c=u=>u.setMeta(r,a,i);return(s?u=>this._rpcCore.state.getKeysPaged(u,o.pageSize,o.startKey||u,s):u=>this._rpcCore.state.getKeysPaged(u,o.pageSize,o.startKey||u))(n(...o.args).toHex()).pipe(W(u=>u.map(c)))}_retrieveMapEntries(n,r,i){const a=r?s=>this._rpcCore.state.queryStorageAt(s,r):s=>this._rpcCore.state.queryStorageAt(s);return this._retrieveMapKeys(n,r,i).pipe(J(s=>s.length?Q(v1(s,tg).map(a)).pipe(W(o=>Ro(o).map((c,l)=>[s[l],c]))):X([])))}_retrieveMapEntriesPaged(n,r,i){const a=r?s=>this._rpcCore.state.queryStorageAt(s,r):s=>this._rpcCore.state.queryStorageAt(s);return this._retrieveMapKeysPaged(n,r,i).pipe(J(s=>s.length?a(s).pipe(W(o=>o.map((c,l)=>[s[l],c]))):X([])))}_decorateDeriveRx(n){var a,s,o,c;const r=(a=this._runtimeVersion)==null?void 0:a.specName.toString(),i=Qie(this.__internal__instanceId,this._rx,$({},this._options.derives,(c=(o=(s=this._options.typesBundle)==null?void 0:s.spec)==null?void 0:o[r||""])==null?void 0:c.derives));return a8(n,i)}_decorateDerive(n){return a8(n,this._rx.derive)}}const zae=1e4,ig=Cr("api/init");function jae(e){return e.toString()}class Uae extends Hae{constructor(n,r,i){super(n,r,i);I(this,"__internal__atLast",null);I(this,"__internal__healthTimer",null);I(this,"__internal__registries",[]);I(this,"__internal__updateSub",null);I(this,"__internal__waitingRegistries",{});this.registry.setKnownTypes(n),n.source?this.__internal__registries=n.source.__internal__registries:this.registerTypes(n.types),this._rpc=this._decorateRpc(this._rpcCore,this._decorateMethod),this._rx.rpc=this._decorateRpc(this._rpcCore,this._rxDecorateMethod),this.supportMulti&&(this._queryMulti=this._decorateMulti(this._decorateMethod),this._rx.queryMulti=this._decorateMulti(this._rxDecorateMethod)),this._rx.signer=n.signer,this._rpcCore.setRegistrySwap(a=>this.getBlockRegistry(a)),this._rpcCore.setResolveBlockHash(a=>ar(this._rpcCore.chain.getBlockHash(a))),this.hasSubscriptions?(this._rpcCore.provider.on("disconnected",()=>this.__internal__onProviderDisconnect()),this._rpcCore.provider.on("error",a=>this.__internal__onProviderError(a)),this._rpcCore.provider.on("connected",()=>this.__internal__onProviderConnect())):this._options.noInitWarn||ig.warn("Api will be available in a limited mode since the provider does not support subscriptions"),this._rpcCore.provider.isConnected&&this.__internal__onProviderConnect().catch(Vi)}_initRegistry(n,r,i,a,s){n.clearCache(),n.setChainProperties(s||this.registry.getChainProperties()),n.setKnownTypes(this._options),n.register(Eae(n,r,i.specName,i.specVersion)),n.setHasher(_ae(n,r,i.specName)),n.knownTypes.typesBundle&&(n.knownTypes.typesAlias=Aae(n,r,i.specName)),n.setMetadata(a,void 0,$({},Cae(n,r,i.specName),this._options.signedExtensions),this._options.noInitWarn)}_getDefaultRegistry(){return ya(this.__internal__registries.find(({isDefault:n})=>n),"Initialization error, cannot find the default registry")}async at(n,r){const i=fe(n),a=we(i),s=await this.getBlockRegistry(i,r);return(!this.__internal__atLast||this.__internal__atLast[0]!==a)&&(this.__internal__atLast=[a,this._createDecorated(s,!0,null,i).decoratedApi]),this.__internal__atLast[1]}async _createBlockRegistry(n,r,i){const a=new VC(n),s=new Mh(a,await ar(this._rpcCore.state.getMetadata.raw(r.parentHash))),o=this._runtimeChain;if(!o)throw new Error("Invalid initializion order, runtimeChain is not available");this._initRegistry(a,o,i,s);const c={counter:0,lastBlockHash:n,metadata:s,registry:a,runtimeVersion:i};return this.__internal__registries.push(c),c}_cacheBlockRegistryProgress(n,r){let i=this.__internal__waitingRegistries[n];return it(i)&&(i=this.__internal__waitingRegistries[n]=new Promise((a,s)=>{r().then(o=>{delete this.__internal__waitingRegistries[n],a(o)}).catch(o=>{delete this.__internal__waitingRegistries[n],s(o)})})),i}_getBlockRegistryViaVersion(n,r){if(r){const i=this.__internal__registries.find(({runtimeVersion:{specName:a,specVersion:s}})=>a.eq(r.specName)&&s.eq(r.specVersion));if(i)return i.counter++,i.lastBlockHash=n,i}return null}async _getBlockRegistryViaHash(n){if(!this._genesisHash||!this._runtimeVersion)throw new Error("Cannot retrieve data on an uninitialized chain");const r=this.registry.createType("HeaderPartial",this._genesisHash.eq(n)?{number:Rt,parentHash:this._genesisHash}:await ar(this._rpcCore.chain.getHeader.raw(n)));if(r.parentHash.isEmpty)throw new Error("Unable to retrieve header and parent from supplied hash");Vae(this._genesisHash,r.number);const i=this.registry.createType("RuntimeVersionPartial",await ar(this._rpcCore.state.getRuntimeVersion.raw(r.parentHash)));return this._getBlockRegistryViaVersion(n,i)||await this._cacheBlockRegistryProgress(i.toHex(),()=>this._createBlockRegistry(n,r,i))}async getBlockRegistry(n,r){return this.__internal__registries.find(({lastBlockHash:i})=>i&&j6(i,n))||this._getBlockRegistryViaVersion(n,r)||await this._cacheBlockRegistryProgress(we(n),()=>this._getBlockRegistryViaHash(n))}async _loadMeta(){var n;return this._isReady?!0:(this._unsubscribeUpdates(),[this._genesisHash,this._runtimeMetadata]=(n=this._options.source)!=null&&n._isReady?await this._metaFromSource(this._options.source):await this._metaFromChain(this._options.metadata),this._initFromMeta(this._runtimeMetadata))}async _metaFromSource(n){this._extrinsicType=n.extrinsicVersion,this._runtimeChain=n.runtimeChain,this._runtimeVersion=n.runtimeVersion;const r=Object.keys(n.rpc),i=[];for(let a=0,s=r.length;a{var r;return(r=this._runtimeVersion)!=null&&r.specVersion.eq(n.specVersion)?X(!1):this._rpcCore.state.getMetadata().pipe(W(i=>{ig.log(`Runtime version updated to spec=${n.specVersion.toString()}, tx=${n.transactionVersion.toString()}`),this._runtimeMetadata=i,this._runtimeVersion=n,this._rx.runtimeVersion=n;const a=this._getDefaultRegistry(),s=this._runtimeChain;if(!s)throw new Error("Invalid initializion order, runtimeChain is not available");return a.metadata=i,a.runtimeVersion=n,this._initRegistry(this.registry,s,n,i),this._injectMetadata(a,!0),!0}))})).subscribe())}async _metaFromChain(n){const[r,i,a,s,o,c]=await Promise.all([ar(this._rpcCore.chain.getBlockHash(0)),ar(this._rpcCore.state.getRuntimeVersion()),ar(this._rpcCore.system.chain()),ar(this._rpcCore.system.properties()),ar(this._rpcCore.rpc.methods()),n?Promise.resolve(null):ar(this._rpcCore.state.getMetadata())]);this._runtimeChain=a,this._runtimeVersion=i,this._rx.runtimeVersion=i;const l=`${r.toHex()||"0x"}-${i.specVersion.toString()}`,u=c||(n!=null&&n[l]?new Mh(this.registry,n[l]):await ar(this._rpcCore.state.getMetadata()));return this._initRegistry(this.registry,a,i,u,s),this._filterRpc(o.methods.map(jae),h8(this.registry,a,i.specName)),this._subscribeUpdates(),this.__internal__registries.length||this.__internal__registries.push({counter:0,isDefault:!0,metadata:u,registry:this.registry,runtimeVersion:i}),u.getUniqTypes(this._options.throwOnUnknown||!1),[r,u]}_initFromMeta(n){const r=this._runtimeVersion;if(!r)throw new Error("Invalid initializion order, runtimeVersion is not available");return this._extrinsicType=n.asLatest.extrinsic.version.toNumber(),this._rx.extrinsicType=this._extrinsicType,this._rx.genesisHash=this._genesisHash,this._rx.runtimeVersion=r,this._injectMetadata(this._getDefaultRegistry(),!0),this._rx.derive=this._decorateDeriveRx(this._rxDecorateMethod),this._derive=this._decorateDerive(this._decorateMethod),!0}_subscribeHealth(){this._unsubscribeHealth(),this.__internal__healthTimer=this.hasSubscriptions?setInterval(()=>{ar(this._rpcCore.system.health.raw()).catch(Vi)},zae):null}_unsubscribeHealth(){this.__internal__healthTimer&&(clearInterval(this.__internal__healthTimer),this.__internal__healthTimer=null)}_unsubscribeUpdates(){this.__internal__updateSub&&(this.__internal__updateSub.unsubscribe(),this.__internal__updateSub=null)}_unsubscribe(){this._unsubscribeHealth(),this._unsubscribeUpdates()}async __internal__onProviderConnect(){this._isConnected.next(!0),this.emit("connected");try{const n=this._options.initWasm===!1?!0:await KL(),r=await this._loadMeta();this._subscribeHealth(),r&&!this._isReady&&n&&(this._isReady=!0,this.emit("ready",this))}catch(n){const r=new Error(`FATAL: Unable to initialize the API: ${n.message}`);ig.error(r),this.emit("error",r)}}__internal__onProviderDisconnect(){this._isConnected.next(!1),this._unsubscribe(),this.emit("disconnected")}__internal__onProviderError(n){this.emit("error",n)}}function Cn(e){if(e===void 0)throw new Error("Api interfaces needs to be initialized before using, wait for 'isReady'");return e}class Fae extends Uae{get call(){return Cn(this._call)}get consts(){return Cn(this._consts)}get derive(){return Cn(this._derive)}get errors(){return Cn(this._errors)}get events(){return Cn(this._events)}get extrinsicVersion(){return this._extrinsicType}get genesisHash(){return Cn(this._genesisHash)}get isConnected(){return this._isConnected.getValue()}get libraryInfo(){return`${m5.name} v${m5.version}`}get query(){return Cn(this._query)}get queryMulti(){return Cn(this._queryMulti)}get rpc(){return Cn(this._rpc)}get runtimeChain(){return Cn(this._runtimeChain)}get runtimeMetadata(){return Cn(this._runtimeMetadata)}get runtimeVersion(){return Cn(this._runtimeVersion)}get rx(){return Cn(this._rx)}get stats(){return this._rpcCore.stats}get type(){return this._type}get tx(){return Cn(this._extrinsics)}findCall(t){return QC(this.registry,t)}findError(t){return $C(this.registry,t)}}class Wae extends Fae{constructor(t={},n,r){super(t,n,r)}connect(){return this._rpcCore.connect()}disconnect(){return this._unsubscribe(),this._rpcCore.disconnect()}setSigner(t){this._rx.signer=t}async sign(t,n,{signer:r}={}){if(Ge(t)){const i=r||this._rx.signer;if(!(i!=null&&i.signRaw))throw new Error("No signer exists with a signRaw interface. You possibly need to pass through an explicit keypair for the origin so it can be used for signing.");return(await i.signRaw($({type:"bytes"},n,{address:t}))).signature}return we(t.sign(fe(n.data)))}}class Xae{constructor(t,n){I(this,"__internal__allHasFired",!1);I(this,"__internal__callback");I(this,"__internal__fired",[]);I(this,"__internal__fns",[]);I(this,"__internal__isActive",!0);I(this,"__internal__results",[]);I(this,"__internal__subscriptions",[]);this.__internal__callback=n,this.__internal__subscriptions=t.map(async(r,i)=>{const[a,...s]=Array.isArray(r)?r:[r];return this.__internal__fired.push(!1),this.__internal__fns.push(a),a(...s,this._createCallback(i))})}_allHasFired(){return this.__internal__allHasFired||(this.__internal__allHasFired=this.__internal__fired.filter(t=>!t).length===0),this.__internal__allHasFired}_createCallback(t){return n=>{this.__internal__fired[t]=!0,this.__internal__results[t]=n,this._triggerUpdate()}}_triggerUpdate(){if(!(!this.__internal__isActive||!oe(this.__internal__callback)||!this._allHasFired()))try{Promise.resolve(this.__internal__callback(this.__internal__results)).catch(Vi)}catch{}}unsubscribe(){this.__internal__isActive&&(this.__internal__isActive=!1,this.__internal__subscriptions.map(async t=>{try{const n=await t;oe(n)&&n()}catch{}}))}}function px(e,t){let n=!1;return{reject:r=>(n||(n=!0,t(r)),Bu),resolve:r=>{n||(n=!0,e(r))}}}function qae(e,t){const n=e.slice(),r=e.length&&oe(e[e.length-1])?n.pop():void 0;if(t&&!oe(r))throw new Error("Expected a callback to be passed with subscriptions");return[n,r]}function Gae(e,t){return new Promise((n,r)=>{const i=px(n,r),a=e(...t).pipe(Xi(s=>i.reject(s))).subscribe(s=>{i.resolve(s),Ds(()=>a.unsubscribe())})})}function Zae(e,t,n){return new Promise((r,i)=>{const a=px(r,i),s=e(...t).pipe(Xi(o=>a.reject(o)),Fa(()=>a.resolve(()=>s.unsubscribe()))).subscribe(o=>{Ds(()=>n(o))})})}function Kae(e,t){const n=!!(t!=null&&t.methodName&&t.methodName.includes("subscribe"));return function(...r){const[i,a]=qae(r,n);return a?Zae(e,i,a):Gae((t==null?void 0:t.overrideNoSub)||e,i)}}class Nh extends Wae{constructor(n){super(n,"promise",Kae);I(this,"__internal__isReadyPromise");I(this,"__internal__isReadyOrErrorPromise");this.__internal__isReadyPromise=new Promise(r=>{super.once("ready",()=>r(this))}),this.__internal__isReadyOrErrorPromise=new Promise((r,i)=>{const a=px(r,i);super.once("ready",()=>a.resolve(this)),super.once("error",s=>a.reject(s))})}static create(n){const r=new Nh(n);return n&&n.throwOnConnect?r.isReadyOrError:(r.isReadyOrError.catch(Vi),r.isReady)}get isReady(){return this.__internal__isReadyPromise}get isReadyOrError(){return this.__internal__isReadyOrErrorPromise}clone(){return new Nh($({},this._options,{source:this}))}async combineLatest(n,r){const i=new Xae(n,r);return()=>{i.unsubscribe()}}}var uu,ba,ws,du,zo,T8;let Yae=(T8=class{constructor(t,n){to(this,uu,void 0);to(this,ba,void 0);to(this,ws,[]);to(this,du,void 0);to(this,zo,void 0);I(this,"ensureEventStatus",t=>["connecting","connected","disconnected","ready","error"].includes(t)?t:"error");Cc(this,zo,n),Cc(this,uu,t)}get chainId(){return Dn(this,uu)}get provider(){return Dn(this,ba)}get api(){return Dn(this,du)}get rpcEndpoint(){return Dn(this,zo)}async initialize(){Cc(this,ba,new Mp(Dn(this,zo))),this.dispatchEvent(this.ensureEventStatus("connecting")),this.initProviderEvents(),Cc(this,du,await Nh.create({provider:this.provider})),this.dispatchEvent(this.ensureEventStatus("ready"))}async initProviderEvents(){Dn(this,ws).push(Dn(this,ba).on("connected",()=>{this.dispatchEvent(this.ensureEventStatus("connected"))})),Dn(this,ws).push(Dn(this,ba).on("disconnected",()=>{this.dispatchEvent(this.ensureEventStatus("disconnected"))})),Dn(this,ws).push(Dn(this,ba).on("error",t=>{this.dispatchEvent(this.ensureEventStatus("error"),{err:t})}))}dispatchEvent(t,n){const r={event:t,chainId:this.chainId};n!=null&&n.err&&(r.err=n.err),document.dispatchEvent(new CustomEvent("api-status",{detail:r}))}unsubscribeProvider(){Dn(this,ws).forEach(t=>{t()})}async disconnect(){var t,n;this.unsubscribeProvider(),(t=this.provider)==null||t.disconnect(),await((n=this.api)==null?void 0:n.disconnect())}},uu=new WeakMap,ba=new WeakMap,ws=new WeakMap,du=new WeakMap,zo=new WeakMap,T8);const ds=class ds{static async instantiate(t,n,r){ds.instances[t]||(ds.instances[t]=new Yae(n,r),await ds.instances[t].initialize())}static async destroy(t){const n=ds.instances[t];n&&(await n.disconnect(),delete this.instances[t])}};I(ds,"instances",{});let Oh=ds;const ti=(e,t=!1)=>(e=t?e.toLowerCase().replace(/\s{2,}/g," "):e.replace(/\s{2,}/g," "),e=e.trim(),e),Jae=e=>"detail"in e,mx={"polkadot-relay-chain":{name:"Polkadot Relay Chain",unit:"DOT",providers:{"Automata 1RPC":"wss://1rpc.io/dot",Dwellir:"wss://polkadot-rpc.dwellir.com","Dwellir Tunisia":"wss://polkadot-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/polkadot","IBP-GeoDNS2":"wss://rpc.dotters.network/polkadot",LuckyFriday:"wss://rpc-polkadot.luckyfriday.io",RadiumBlock:"wss://polkadot.public.curie.radiumblock.co/ws",Stakeworld:"wss://dot-rpc.stakeworld.io",Parity:"wss://apps-rpc.polkadot.io"}},"kusama-relay-chain":{name:"Kusama Relay Chain",unit:"KSM",providers:{"Automata 1RPC":"wss://1rpc.io/ksm",Dwellir:"wss://kusama-rpc.dwellir.com","Dwellir Tunisia":"wss://kusama-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/kusama","IBP-GeoDNS2":"wss://rpc.dotters.network/kusama",LuckyFriday:"wss://rpc-kusama.luckyfriday.io",RadiumBlock:"wss://kusama.public.curie.radiumblock.co/ws",Stakeworld:"wss://ksm-rpc.stakeworld.io",Parity:"wss://kusama-rpc.polkadot.io"}},"westend-relay-chain":{name:"Westend Relay Chain",unit:"WND",providers:{Dwellir:"wss://westend-rpc.dwellir.com","Dwellir Tunisia":"wss://westend-rpc-tn.dwellir.com","IBP-GeoDNS1":"wss://rpc.ibp.network/westend","IBP-GeoDNS2":"wss://rpc.dotters.network/westend",LuckyFriday:"wss://rpc-westend.luckyfriday.io",RadiumBlock:"wss://westend.public.curie.radiumblock.co/ws",Stakeworld:"wss://wnd-rpc.stakeworld.io",Parity:"wss://westend-rpc.polkadot.io"}}},tE=O.createContext(LW),nE=()=>O.useContext(tE),Qae=({children:e})=>{const{getActiveTab:t,getChainTab:n,tabs:r}=Er(),[i,a]=O.useState({}),s=O.useRef(i),o=h=>{s.current=h,a(h)},c=h=>i[h],l=()=>{const h=t();if(h!=null&&h.chain)return Oh.instances[h.id]},u=h=>{if(Jae(h)){const{chainId:m,event:y}=h.detail,v=n(m);if(v){const P=v.id;switch(y){case"ready":o({...s.current,[P]:"ready"});break;case"connecting":o({...s.current,[P]:"connecting"});break;case"connected":o({...s.current,[P]:"connected"});break;case"disconnected":o({...s.current,[P]:"disconnected"});break;case"error":o({...s.current,[P]:"disconnected"});break}}}},d=O.useRef(document);return Fk("api-status",u,d),O.useEffect(()=>{r.forEach(h=>{if(h!=null&&h.chain&&h.autoConnect){const{id:m,provider:y}=h.chain,v=mx[m].providers[y];Oh.instantiate(h.id,m,v)}})},[]),j.jsx(tE.Provider,{value:{isReady:!1,getApiStatus:c,getTabApi:l},children:e})},$ae=()=>{const{getApiStatus:e}=nE(),{pathname:t}=Lu(),{activeSection:n,setActiveSection:r}=_p(),{tabsHidden:i,setTabsHidden:a,activeTabId:s}=Er(),o=e(s);let c;switch(o){case"connecting":c="Connecting";break;case"ready":case"connected":c="Connected";break;default:c="Not Connected"}return j.jsxs(nP,{children:[j.jsxs("div",{className:"menu",children:[j.jsxs("section",{className:"main",children:[j.jsxs("div",{className:"label",children:[" ",c]}),j.jsx("button",{onClick:()=>r(0),className:n===0?"active":void 0,children:o?"Overview":"Connect Chain"})]}),j.jsx("section",{className:"other"})]}),j.jsxs("div",{className:"config",children:[j.jsx(p5,{tooltipText:"Manage Tab",active:n===1,onClick:()=>r(1,!1),icon:wF,disabled:!1,iconTransform:"shrink-1"}),j.jsx(p5,{tooltipText:i?"Show Tabs":"Hide Tabs",active:!1,onClick:()=>a(!i),icon:i?TF:EF,disabled:t!=="/",iconTransform:"shrink-3"})]})]})},ese=Ae.div` display: flex; justify-content: flex-end; align-items: center; @@ -1576,7 +1576,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho color: var(--text-color-secondary); } } -`,vf=({name:e,icon:t,large:n,onClick:r,light:i})=>j.jsxs(yse,{className:`${n?"large":""}${i?"light":""}`,onClick:a=>r(a),children:[t&&j.jsx(Ht,{icon:t,transform:"shrink-1",className:"icon"}),e]}),sE=({tagEntries:e,appliedTags:t,tagSearchTerm:n,onSelect:r,handleOnChange:i,selectLocked:a})=>{const{getChainsForTag:s}=Qi(),o=n!==""?e.filter(([,{name:c}])=>c.toLowerCase().includes(ti(n,!0))):e;return j.jsxs(N6,{children:[j.jsx("h5",{children:"Select Tags"}),j.jsx("div",{className:"search",children:j.jsx("input",{placeholder:"Search",value:n,onFocus:()=>{},onBlur:()=>{},onChange:c=>i(c.currentTarget.value)})}),j.jsx(Lb,{children:o.map(([c,l])=>{var m;const u=t.includes(c),d=((m=s(c))==null?void 0:m.length)||0,h=!a&&l.locked;return j.jsxs("li",{className:`${u?" selected":""}${h?" disabled":""}`,children:[j.jsx("button",{disabled:h,onClick:()=>r(c,u,t)}),j.jsxs("div",{className:"inner",children:[j.jsx("div",{children:h?j.jsx(Ht,{icon:zk,transform:"shrink-5"}):u&&j.jsx(Ht,{icon:S2,transform:"shrink-2"})}),j.jsx("div",{children:j.jsx("h3",{children:l.name})}),j.jsx("div",{children:j.jsx("h5",{children:d})})]})]},`tag_context_item_${c}`)})})]})},bse=({onSelect:e,chainId:t})=>{const{tags:n,getTagsForChain:r}=Qi(),[i,a]=O.useState(""),s=r(t),o=Object.entries(n).sort(([,l],[,u])=>Number(l.locked)-Number(u.locked)),c=l=>{a(l)};return j.jsx(sE,{tagEntries:o,appliedTags:s,tagSearchTerm:i,onSelect:e,handleOnChange:c,selectLocked:!1})},xse=({chainId:e,onSelect:t})=>{const[n,r]=O.useState(""),i=o=>{r(o)},a=Object.entries(mx[e].providers),s=n!==""?a.filter(([o])=>o.toLowerCase().includes(ti(n,!0))):a;return j.jsxs(N6,{children:[j.jsx("h5",{children:"Select Provider"}),j.jsx("div",{className:"search",children:j.jsx("input",{placeholder:"Search",value:n,onFocus:()=>{},onBlur:()=>{},onChange:o=>i(o.currentTarget.value)})}),j.jsx(Lb,{children:s.map(([o,c],l)=>j.jsxs("li",{children:[j.jsx("button",{onClick:()=>t(c)}),j.jsxs("div",{className:"inner",children:[j.jsx("div",{className:"none"}),j.jsx("div",{children:j.jsx("h3",{children:o})}),j.jsx("div",{children:j.jsx("h5",{children:c})})]})]},`provider_context_item_${l}`))})]})},vse=({chain:e,name:t})=>{const{openMenu:n}=ip(),{tags:r,getTagsForChain:i,addChainToTag:a,removeChainFromTag:s}=Qi(),o=i(e),c=O.useMemo(()=>O.lazy(()=>cse(Object.assign({"../../../config/networks/icons/kusama-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-D8DyLrdD.js"),__vite__mapDeps([])),"../../../config/networks/icons/polkadot-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-whCU5b6Q.js"),__vite__mapDeps([])),"../../../config/networks/icons/westend-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-86CzOZAW.js"),__vite__mapDeps([]))}),`../../../config/networks/icons/${e}/Inline.tsx`)),[]),l=d=>{console.log(d)},u=(d,h)=>{h?s(d,e):a(d,e)};return j.jsxs(ase,{children:[j.jsxs("div",{className:"header",children:[j.jsxs("section",{children:[j.jsx(O.Suspense,{fallback:j.jsx("div",{}),children:j.jsx("div",{className:"icon",children:j.jsx(c,{})})}),j.jsx("h3",{children:t})]}),j.jsx("section",{children:j.jsxs("button",{onClick:d=>{n(d,j.jsx(xse,{chainId:e,onSelect:l}))},children:["Connect",j.jsx(Ht,{icon:vF,transform:"shrink-1"})]})})]}),j.jsx("div",{className:"body",children:j.jsx("h5",{children:e})}),j.jsx("div",{className:"footer",children:j.jsxs("div",{className:"tags",children:[o.length?o.map(d=>j.jsx(rE,{name:r[d].name},`tag_${d}`)):null,j.jsx(vf,{light:!0,name:"Add",icon:Cp,onClick:d=>{n(d,j.jsx(bse,{chainId:e,onSelect:u}))}})]})})]})},wse={searchTerms:{},getSearchTerm:e=>"",setSearchTerm:(e,t)=>{},appliedTags:{},getAppliedTags:e=>[],applyTags:(e,t)=>{},removeAppliedTag:(e,t)=>{}},Sse={1:["tag_relay_chain","tag_canary_network","tag_test_network"],2:["tag_canary_network"],3:["tag_test_network"]},Tse={1:"",2:"Kusama",3:"Westend"},kse=()=>{const e=di("searchTerms",void 0,!0);if(e)return e},Pse=()=>{const e=di("appliedTags",void 0,!0);if(e)return e},Cse=e=>{localStorage.setItem("searchTerms",JSON.stringify(e))},Ese=e=>{localStorage.setItem("appliedTags",JSON.stringify(e))},oE=O.createContext(wse),Wu=()=>O.useContext(oE),_se=({children:e})=>{const{tags:t}=Qi(),[n,r]=O.useState(kse()||Tse),[i,a]=O.useState(Pse()||Sse),s=O.useRef(i),o=y=>{Cse(y),r(y)},c=y=>{Ese(y),a(y),s.current=y},l=y=>n[y]||"",u=(y,v)=>{o({...n,[y]:v})},d=y=>(i[y]||[]).map(P=>[P,t[P]]),h=(y,v)=>{c({...i,[y]:v})},m=(y,v)=>{if(typeof y=="number")c({...s.current,[y]:s.current[y].filter(P=>P!==v)});else{const P={};for(const S in i)P[S]=i[S].filter(b=>b!==v);c(P)}};return j.jsx(oE.Provider,{value:{searchTerms:n,getSearchTerm:l,setSearchTerm:u,getAppliedTags:d,appliedTags:i,applyTags:h,removeAppliedTag:m},children:e})},Mse=()=>{const{activeTabId:e}=Er(),{getTagsForChain:t}=Qi(),{getAppliedTags:n,getSearchTerm:r}=Wu(),i=mx,a=n(e);let s=Object.fromEntries(Object.entries(i).filter(([l])=>a.some(([u])=>t(l).includes(u))));const o=r(e);o!==""&&(s=Object.fromEntries(Object.entries(s).filter(([,{name:l}])=>l.includes(o))));const c=Object.keys(s).length;return j.jsxs(nse,{children:[j.jsx(rse,{}),j.jsxs("h4",{children:[c||"No"," ",c===1?"Chain":"Chains"," Found"]}),Object.entries(s).map(([l,{name:u}])=>j.jsx(vse,{chain:l,name:u},`chain_index_${l}`))]})},Ase=Ae.div` +`,vf=({name:e,icon:t,large:n,onClick:r,light:i})=>j.jsxs(yse,{className:`${n?"large":""}${i?"light":""}`,onClick:a=>r(a),children:[t&&j.jsx(Ht,{icon:t,transform:"shrink-1",className:"icon"}),e]}),sE=({tagEntries:e,appliedTags:t,tagSearchTerm:n,onSelect:r,handleOnChange:i,selectLocked:a})=>{const{getChainsForTag:s}=Qi(),o=n!==""?e.filter(([,{name:c}])=>c.toLowerCase().includes(ti(n,!0))):e;return j.jsxs(N6,{children:[j.jsx("h5",{children:"Select Tags"}),j.jsx("div",{className:"search",children:j.jsx("input",{placeholder:"Search",value:n,onFocus:()=>{},onBlur:()=>{},onChange:c=>i(c.currentTarget.value)})}),j.jsx(Lb,{children:o.map(([c,l])=>{var m;const u=t.includes(c),d=((m=s(c))==null?void 0:m.length)||0,h=!a&&l.locked;return j.jsxs("li",{className:`${u?" selected":""}${h?" disabled":""}`,children:[j.jsx("button",{disabled:h,onClick:()=>r(c,u,t)}),j.jsxs("div",{className:"inner",children:[j.jsx("div",{children:h?j.jsx(Ht,{icon:zk,transform:"shrink-5"}):u&&j.jsx(Ht,{icon:S2,transform:"shrink-2"})}),j.jsx("div",{children:j.jsx("h3",{children:l.name})}),j.jsx("div",{children:j.jsx("h5",{children:d})})]})]},`tag_context_item_${c}`)})})]})},bse=({onSelect:e,chainId:t})=>{const{tags:n,getTagsForChain:r}=Qi(),[i,a]=O.useState(""),s=r(t),o=Object.entries(n).sort(([,l],[,u])=>Number(l.locked)-Number(u.locked)),c=l=>{a(l)};return j.jsx(sE,{tagEntries:o,appliedTags:s,tagSearchTerm:i,onSelect:e,handleOnChange:c,selectLocked:!1})},xse=({chainId:e,onSelect:t})=>{const[n,r]=O.useState(""),i=o=>{r(o)},a=Object.entries(mx[e].providers),s=n!==""?a.filter(([o])=>o.toLowerCase().includes(ti(n,!0))):a;return j.jsxs(N6,{children:[j.jsx("h5",{children:"Select Provider"}),j.jsx("div",{className:"search",children:j.jsx("input",{placeholder:"Search",value:n,onFocus:()=>{},onBlur:()=>{},onChange:o=>i(o.currentTarget.value)})}),j.jsx(Lb,{children:s.map(([o,c],l)=>j.jsxs("li",{children:[j.jsx("button",{onClick:()=>t(c)}),j.jsxs("div",{className:"inner",children:[j.jsx("div",{className:"none"}),j.jsx("div",{children:j.jsx("h3",{children:o})}),j.jsx("div",{children:j.jsx("h5",{children:c})})]})]},`provider_context_item_${l}`))})]})},vse=({chain:e,name:t})=>{const{openMenu:n}=ip(),{tags:r,getTagsForChain:i,addChainToTag:a,removeChainFromTag:s}=Qi(),o=i(e),c=O.useMemo(()=>O.lazy(()=>cse(Object.assign({"../../../config/networks/icons/kusama-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-N9rLe-w5.js"),__vite__mapDeps([])),"../../../config/networks/icons/polkadot-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-MRakLQrl.js"),__vite__mapDeps([])),"../../../config/networks/icons/westend-relay-chain/Inline.tsx":()=>ag(()=>import("./Inline-ruB8Z1WC.js"),__vite__mapDeps([]))}),`../../../config/networks/icons/${e}/Inline.tsx`)),[]),l=d=>{console.log(d)},u=(d,h)=>{h?s(d,e):a(d,e)};return j.jsxs(ase,{children:[j.jsxs("div",{className:"header",children:[j.jsxs("section",{children:[j.jsx(O.Suspense,{fallback:j.jsx("div",{}),children:j.jsx("div",{className:"icon",children:j.jsx(c,{})})}),j.jsx("h3",{children:t})]}),j.jsx("section",{children:j.jsxs("button",{onClick:d=>{n(d,j.jsx(xse,{chainId:e,onSelect:l}))},children:["Connect",j.jsx(Ht,{icon:vF,transform:"shrink-1"})]})})]}),j.jsx("div",{className:"body",children:j.jsx("h5",{children:e})}),j.jsx("div",{className:"footer",children:j.jsxs("div",{className:"tags",children:[o.length?o.map(d=>j.jsx(rE,{name:r[d].name},`tag_${d}`)):null,j.jsx(vf,{light:!0,name:"Add",icon:Cp,onClick:d=>{n(d,j.jsx(bse,{chainId:e,onSelect:u}))}})]})})]})},wse={searchTerms:{},getSearchTerm:e=>"",setSearchTerm:(e,t)=>{},appliedTags:{},getAppliedTags:e=>[],applyTags:(e,t)=>{},removeAppliedTag:(e,t)=>{}},Sse={1:["tag_relay_chain","tag_canary_network","tag_test_network"],2:["tag_canary_network"],3:["tag_test_network"]},Tse={1:"",2:"Kusama",3:"Westend"},kse=()=>{const e=di("searchTerms",void 0,!0);if(e)return e},Pse=()=>{const e=di("appliedTags",void 0,!0);if(e)return e},Cse=e=>{localStorage.setItem("searchTerms",JSON.stringify(e))},Ese=e=>{localStorage.setItem("appliedTags",JSON.stringify(e))},oE=O.createContext(wse),Wu=()=>O.useContext(oE),_se=({children:e})=>{const{tags:t}=Qi(),[n,r]=O.useState(kse()||Tse),[i,a]=O.useState(Pse()||Sse),s=O.useRef(i),o=y=>{Cse(y),r(y)},c=y=>{Ese(y),a(y),s.current=y},l=y=>n[y]||"",u=(y,v)=>{o({...n,[y]:v})},d=y=>(i[y]||[]).map(P=>[P,t[P]]),h=(y,v)=>{c({...i,[y]:v})},m=(y,v)=>{if(typeof y=="number")c({...s.current,[y]:s.current[y].filter(P=>P!==v)});else{const P={};for(const S in i)P[S]=i[S].filter(b=>b!==v);c(P)}};return j.jsx(oE.Provider,{value:{searchTerms:n,getSearchTerm:l,setSearchTerm:u,getAppliedTags:d,appliedTags:i,applyTags:h,removeAppliedTag:m},children:e})},Mse=()=>{const{activeTabId:e}=Er(),{getTagsForChain:t}=Qi(),{getAppliedTags:n,getSearchTerm:r}=Wu(),i=mx,a=n(e);let s=Object.fromEntries(Object.entries(i).filter(([l])=>a.some(([u])=>t(l).includes(u))));const o=r(e);o!==""&&(s=Object.fromEntries(Object.entries(s).filter(([,{name:l}])=>l.includes(o))));const c=Object.keys(s).length;return j.jsxs(nse,{children:[j.jsx(rse,{}),j.jsxs("h4",{children:[c||"No"," ",c===1?"Chain":"Chains"," Found"]}),Object.entries(s).map(([l,{name:u}])=>j.jsx(vse,{chain:l,name:u},`chain_index_${l}`))]})},Ase=Ae.div` > label { border-radius: 100rem; display: flex; diff --git a/index.html b/index.html index aa38f0c5..0ab86990 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ Polkadot Developer Console - +